-
Notifications
You must be signed in to change notification settings - Fork 642
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Crash in png_convert_from_time_t (libpng1.6.37) #362
Comments
The code in question calls
does the error still occur? |
It's in the first post: Ubuntu 18.04
http://manpages.ubuntu.com/manpages/bionic/man3/ctime.3.html
In png_convert_from_time_t, gmtime returns NULL, this dues to crash in next fuction png_convert_from_struct_tm |
It looks like there needs to be a check for NULL pointers within |
You can get these values to test on Ubuntu:
|
Fixed in the master branch. Apologies for the delay, and many thanks for your report! |
Hello libpng team,
This bug was found by FUTAG - a program for automated generating fuzz-targets of libraries (a product of Ivannikov Institute for System Programming of the Russian Academy of Sciences - https://www.ispras.ru/). Thanks to following colleagues: Tran Chi Thien (thientc@ispras.ru) and Shamil Kurmangaleev(kursh@ispras.ru).
Product version: libpng1.6.37
Environment: Ubuntu 18.04
Reprocedure:
Compile fuzz-target generated by FUTAG with libFuzzer:
Compile script:
AddressSanitizer Debug result:
Analysis:
Function png_convert_from_time_t call function png_convert_from_struct_tm, in which lack of checking input value ttime->tm_year:
The text was updated successfully, but these errors were encountered: