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/rawsock.c, a pointer variable named adapter is defined at line 602. At line 609, a new dynamic memory area is allocated to this pointer through the CALLOC function. If the if statement at line 642 returns true, the function will return at line 644, and the dynamic memory area pointed to by adapter is neither released nor returned as done at line 830, resulting in a memory leak defect, as shown in the figure below: https://github.com/LuMingYinDetect/masscan_defects/blob/main/masscan_5.png
The text was updated successfully, but these errors were encountered:
In the file /masscan/src/rawsock.c, a pointer variable named adapter is defined at line 602. At line 609, a new dynamic memory area is allocated to this pointer through the CALLOC function. If the if statement at line 642 returns true, the function will return at line 644, and the dynamic memory area pointed to by adapter is neither released nor returned as done at line 830, resulting in a memory leak defect, as shown in the figure below:
https://github.com/LuMingYinDetect/masscan_defects/blob/main/masscan_5.png
The text was updated successfully, but these errors were encountered: