Skip to content

Commit ec33704

Browse files
author
Thies C. Arntzen
committed
@- Fixed buffer overruns in iptcembed(). (Thies)
1 parent ff737b6 commit ec33704

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/iptc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ PHP_FUNCTION(iptcembed)
218218
if (spool < 2) {
219219
fstat(fileno(fp),&sb);
220220

221-
poi = spoolbuf = emalloc(len + 30 + sb.st_size);
221+
poi = spoolbuf = emalloc(len + sizeof(psheader) + sb.st_size + 1024);
222222

223223
if (! spoolbuf) {
224224
fclose(fp);

0 commit comments

Comments
 (0)