1
0
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:
Thies C. Arntzen
1999-12-22 14:46:31 +00:00
parent ff737b6090
commit ec33704c39

View File

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