Skip to content

Commit

Permalink
Fix regression memory issue caught by ASAN.
Browse files Browse the repository at this point in the history
This does not affect the library itself, but might result in crashes
during `make regress`.
  • Loading branch information
kristapsdz committed Dec 26, 2024
1 parent 9f5e613 commit 3774e75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion regress/test-fcgi-upload.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ parent(CURL *curl)
*/
namelength = strlen(namebuffer);
htmlbufferlength = strlen(htmlbuffer);
record_length = strlen(htmlbuffer);
record_length = strlen(record);
htmlbuffer[8] = '\0';
post = last = NULL;

Expand Down
2 changes: 1 addition & 1 deletion regress/test-upload.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ parent(CURL *curl)
*/
namelength = strlen(namebuffer);
htmlbufferlength = strlen(htmlbuffer);
record_length = strlen(htmlbuffer);
record_length = strlen(record);
htmlbuffer[8] = '\0';
post = last = NULL;

Expand Down

0 comments on commit 3774e75

Please sign in to comment.