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 352 in the file /masscan/src/in-report.c. #789

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

Comments

@LuMingYinDetect
Copy link

In the file /masscan/src/in-report.c, a pointer variable named der is defined at line 338 and a new dynamic memory area is allocated using the MALLOC function. After using the pointer der at line 352, the dynamically allocated memory area pointed to by der is not released, leading to a memory leak defect, as shown in the figure below:
https://github.com/LuMingYinDetect/masscan_defects/blob/main/masscan_1.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