Browse Source

@- Fixed buffer overruns in iptcembed(). (Thies)

PHP-4.0.5
Thies C. Arntzen 27 years ago
parent
commit
ec33704c39
  1. 2
      ext/standard/iptc.c

2
ext/standard/iptc.c

@ -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);

Loading…
Cancel
Save