mirror of
https://github.com/php/php-src.git
synced 2026-04-02 05:32:28 +02:00
@- Fixed buffer overruns in iptcembed(). (Thies)
This commit is contained in:
@@ -218,7 +218,7 @@ PHP_FUNCTION(iptcembed)
|
||||
if (spool < 2) {
|
||||
fstat(fileno(fp),&sb);
|
||||
|
||||
poi = spoolbuf = emalloc(len + 30 + sb.st_size);
|
||||
poi = spoolbuf = emalloc(len + sizeof(psheader) + sb.st_size + 1024);
|
||||
|
||||
if (! spoolbuf) {
|
||||
fclose(fp);
|
||||
|
||||
Reference in New Issue
Block a user