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 1300 in the file /masscan/src/proto-ssl.c. #792

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

Comments

@LuMingYinDetect
Copy link

In the file /masscan/src/proto-ssl.c, a pointer variable named banner1 is defined at line 1272. At line 1289, a new dynamic memory area is allocated to this variable through the function banner1_create. If the if statement at line 1298 returns true, the function will return at line 1300, thus skipping the memory release operation for the dynamic memory area pointed to by banner1 at line 1304, resulting in a memory leak defect, as shown in the figure below:
https://github.com/LuMingYinDetect/masscan_defects/blob/main/masscan_4.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