mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
- Fix null-termination problem
This commit is contained in:
parent
d5158c20a4
commit
069d83c68a
@ -282,6 +282,7 @@ PHP_FUNCTION(zip_entry_read)
|
||||
|
||||
buf = emalloc(len + 1);
|
||||
ret = zzip_read(entry->fp, buf, len);
|
||||
buf[ret] = 0;
|
||||
if (ret == 0) {
|
||||
RETURN_FALSE;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user