Skip to content

Commit c7a2bd0

Browse files
committedMar 16, 2025
Implemented suggestion: moved allocation under request initialization to avoid unnecessary free call
1 parent f10a6ba commit c7a2bd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎sapi/fuzzer/fuzzer-mbregex.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@
3030

3131
int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
3232
#ifdef HAVE_MBREGEX
33-
char *args[2];
3433

3534
if (fuzzer_request_startup() == FAILURE) {
3635
return 0;
3736
}
3837

38+
char *args[2];
3939
char *data = malloc(Size+1);
4040
memcpy(data, Data, Size);
4141
data[Size] = '\0';

0 commit comments

Comments
 (0)
Failed to load comments.