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-value in _libssh2_packet_add #477

Closed
ltx2018 opened this issue May 28, 2020 · 2 comments
Closed

use-of-uninitialized-value in _libssh2_packet_add #477

ltx2018 opened this issue May 28, 2020 · 2 comments

Comments

@ltx2018
Copy link
Contributor

ltx2018 commented May 28, 2020

i found use-of-uninitialized-value in _libssh2_packet_add by fuzzing libssh2-master:
image

it may caused by malloc(0) in _libssh2_transport_read:
image
total_num is zero, p->payload is a wild ptr(NOT NULL)

OS: ubuntu 16.04

@ltx2018
Copy link
Contributor Author

ltx2018 commented May 28, 2020

#476 may be a way to fix

@willco007
Copy link
Member

Committed #476, thanks for the report.

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

2 participants