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

Potential Divide By Zero Vulnerability in Darknet Project #2631

Open
CR7-source opened this issue Mar 14, 2024 · 0 comments
Open

Potential Divide By Zero Vulnerability in Darknet Project #2631

CR7-source opened this issue Mar 14, 2024 · 0 comments

Comments

@CR7-source
Copy link

I have identified a potential divide by zero vulnerability in the Darknet project and would like to report it to the maintainers. This vulnerability has the potential to cause unexpected application behavior, crashes.Can you please help me check it? Thank you for your effort and patience!
Below is the execution sequence of the program that may produce divide by zero vulnerability .

  1. darknet/src/detection_layer.c forward_detection_layer function:On line 73, the count variable is defined to be 0. On line 215, count is used as the divisor. Obviously count can be 0 if l.batch is 0, or the continue statement on line 94 is always executed in the loop

image

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