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

Use of uninitialized variable #125

Open
ash1852 opened this issue Dec 9, 2021 · 1 comment
Open

Use of uninitialized variable #125

ash1852 opened this issue Dec 9, 2021 · 1 comment
Labels

Comments

@ash1852
Copy link

ash1852 commented Dec 9, 2021

hello, I found a bug of use of uninitialized variable in the source code of dynamips , would you help me check if this bug is true?Thank you very much!
here is an overview of bug occurrence.
1
step1:
in file dynamips/common/rom2c.c , line 100:
call pcap_next and use its return value to compare with pkt_ptr
step2:
in file libpcap-1.8.1/pcap.c, line 238:
pkt is declared here bug uninitialized.
step3:
in file libpcap-1.8.1/pcap.c, line 245:
return uninitialized pointer pkt
step4:
in file dynamips/common/rom2c.c , line 100:
return value of pcap_next is used in the compare operation but not initialized

@grossmj grossmj added the bug label Dec 9, 2021
@ash1852
Copy link
Author

ash1852 commented Dec 9, 2021

additionally, there is also a bug of use of uninitialized if the bug above is true. they can be fixed together.
2
thanks for your patience and effort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants