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
In the file /masscan/src/proto-http.c, a pointer variable named x is defined at line 807 and a new dynamic memory area is allocated through the STRDUP function. If the if statement at line 815 returns true, the function will return at line 817, and the dynamic memory area pointed to by x is not released, resulting in a memory leak defect. It is also worth noting that even if the if statement at line 815 returns false, the function does not release the dynamic memory area pointed to by x as done at line 880, as shown in the figure below: https://github.com/LuMingYinDetect/masscan_defects/blob/main/masscan_3.png
The text was updated successfully, but these errors were encountered:
In the file /masscan/src/proto-http.c, a pointer variable named x is defined at line 807 and a new dynamic memory area is allocated through the STRDUP function. If the if statement at line 815 returns true, the function will return at line 817, and the dynamic memory area pointed to by x is not released, resulting in a memory leak defect. It is also worth noting that even if the if statement at line 815 returns false, the function does not release the dynamic memory area pointed to by x as done at line 880, as shown in the figure below:
https://github.com/LuMingYinDetect/masscan_defects/blob/main/masscan_3.png
The text was updated successfully, but these errors were encountered: