mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
- use png_sig_cmp to support libpng 1.4, old is deprecated already in older version
This commit is contained in:
parent
81695689b9
commit
7aacc1ccbc
1
NEWS
1
NEWS
@ -5,6 +5,7 @@ PHP NEWS
|
||||
|
||||
- Improved LCG entropy. (Rasmus, Samy Kamkar)
|
||||
|
||||
- Added libpng 1.4.0 support. (Pierre)
|
||||
- Added support for DISABLE_AUTHENTICATOR for imap_open. (Pierre)
|
||||
- Added missing host validation for HTTP urls inside FILTER_VALIDATE_URL.
|
||||
(Ilia)
|
||||
|
@ -145,7 +145,7 @@ gdImagePtr gdImageCreateFromPngCtx (gdIOCtx * infile)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (!png_check_sig (sig, 8)) { /* bad signature */
|
||||
if (png_sig_cmp(sig, 0, 8) != 0) { /* bad signature */
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user