Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix examples/network/clone.c: heap-buffer-overflow #4074

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

Merged
merged 1 commit into from
Jan 11, 2017
Merged

fix examples/network/clone.c: heap-buffer-overflow #4074

merged 1 commit into from
Jan 11, 2017

Conversation

fcharlie
Copy link
Contributor

@fcharlie fcharlie commented Jan 9, 2017

Format of a length of string to the correct format is:%.*s

How to reproduce? Used when compiling libgit2 AddressSanitizer flag
-fsanitize=address -fno-omit-frame-pointer,
then under the example program gives you.

Format of a length of string to the correct format is:%.*s
@ethomson
Copy link
Member

Oops! Thanks for fixing this. 😀

@ethomson ethomson merged commit ffe259d into libgit2:master Jan 11, 2017
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

Successfully merging this pull request may close these issues.

2 participants