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 749 in the file /masscan/src/proto-http.c. #790

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

Comments

@LuMingYinDetect
Copy link

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