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

[BUG] Null pointer dereference vulnerability in parser.c #2650

Open
shiyujunz opened this issue Feb 9, 2025 · 0 comments
Open

[BUG] Null pointer dereference vulnerability in parser.c #2650

shiyujunz opened this issue Feb 9, 2025 · 0 comments

Comments

@shiyujunz
Copy link

I have found a potential null pointer dereference bug in parser.c 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 null pointer dereference bug .
First, in function parse_contrastive of file src/parser.c, yolo_layer is assigned null at line 379.
Second, if the conditional judgment on line 382 fails, yolo_layer will not be reassigned.
Finally, on line 383, yolo_layer is dereferenced, which can lead to a null pointer dereference vulnerability.

Image

Thank you very much for reading and I look forward to hearing from you!

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