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 uninited variable in process_img() #44

Closed
kcwu opened this issue Nov 21, 2016 · 0 comments
Closed

use uninited variable in process_img() #44

kcwu opened this issue Nov 21, 2016 · 0 comments

Comments

@kcwu
Copy link
Contributor

kcwu commented Nov 21, 2016

Input

00000000: 3c69 6d67 2073 7263 3d3e                 <img src=>

Please review process_img().
If <img> tag has no height attribute and USE_IMAGE is not defined. Variable i will be uninitialized.
However https://github.com/tats/w3m/blob/master/file.c#L3468 uses i.

 if (w > 0 && i > 0) {

This issue is probably not security related.

This is found by afl-fuzz.

kcwu added a commit to kcwu/w3m that referenced this issue Nov 27, 2016
@tats tats closed this as completed in 41a607b Nov 27, 2016
tats added a commit that referenced this issue Nov 27, 2016
fix uninitialized variable in process_img(). fix #44
kcwu added a commit to kcwu/w3m that referenced this issue Oct 26, 2021
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