diff options
| author | Anatol Belski <ab@php.net> | 2013-05-14 09:45:02 +0200 |
|---|---|---|
| committer | Anatol Belski <ab@php.net> | 2013-05-14 09:45:02 +0200 |
| commit | 8c3615607006f185137f2c2fea41d3c89dec46ef (patch) | |
| tree | 34581029fe5c75b3ec2f2c414b89f6e9b501d1a8 | |
| parent | 74555e7c26b2c61bb8e67b7d6a6f4d2b8eb3a5f3 (diff) | |
| parent | f37c54ab276bc55339e4b8aa2b6f5caa88cb4b86 (diff) | |
| download | php-git-8c3615607006f185137f2c2fea41d3c89dec46ef.tar.gz | |
Merge branch 'PHP-5.4' of git.php.net:php-src into PHP-5.4
| -rw-r--r-- | ext/phar/zip.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/phar/zip.c b/ext/phar/zip.c index 33732fbd63..2d57c08c5a 100644 --- a/ext/phar/zip.c +++ b/ext/phar/zip.c @@ -1122,6 +1122,10 @@ static int phar_zip_applysignature(phar_archive_data *phar, struct _phar_zip_pas entry.fp = php_stream_fopen_tmpfile(); entry.fp_type = PHAR_MOD; entry.is_modified = 1; + if (entry.fp == NULL) { + spprintf(pass->error, 0, "phar error: unable to create temporary file for signature"); + return FAILURE; + } PHAR_SET_32(sigbuf, phar->sig_flags); PHAR_SET_32(sigbuf + 4, signature_length); |
