You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inside the Linux implementation of yr_process_get_next_memory_block() variable int n is declared before using fgets(), but the initial variable is only assigned if successful before sscanf().
Inside the Linux implementation of
yr_process_get_next_memory_block()
variableint n
is declared before usingfgets()
, but the initial variable is only assigned if successful beforesscanf()
.yara/libyara/proc/linux.c
Lines 325 to 355 in 9ab96d1
n
is checked even iffgets()
returns NULL, so we get UB:yara/libyara/proc/linux.c
Lines 384 to 393 in 9ab96d1
The text was updated successfully, but these errors were encountered: