Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is a memory leak defect at line 644 in the file /masscan/src/rawsock.c. #793

Open
LuMingYinDetect opened this issue Aug 6, 2024 · 0 comments

Comments

@LuMingYinDetect
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant