summaryrefslogtreecommitdiff
path: root/ext/bz2/bz2_filter.c
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-04-17 15:48:20 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2020-04-20 14:21:50 +0200
commitd757be640f5105b8542b781ce93804af494229a8 (patch)
treef240c50032a8ccc9c758a699d7948ed1acf34889 /ext/bz2/bz2_filter.c
parent6111d64cda04a86e3a428edb36f064a187163825 (diff)
downloadphp-git-d757be640f5105b8542b781ce93804af494229a8.tar.gz
Fix #71263: fread() does not report bzip2.decompress errors
If the bzip2.decompress filter fails to decompress the stream, we raise a notice instead of failing silently.
Diffstat (limited to 'ext/bz2/bz2_filter.c')
-rw-r--r--ext/bz2/bz2_filter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/bz2/bz2_filter.c b/ext/bz2/bz2_filter.c
index 40e01edca0..bb001198f4 100644
--- a/ext/bz2/bz2_filter.c
+++ b/ext/bz2/bz2_filter.c
@@ -123,6 +123,7 @@ static php_stream_filter_status_t php_bz2_decompress_filter(
}
} else if (status != BZ_OK) {
/* Something bad happened */
+ php_error_docref(NULL, E_NOTICE, "bzip2 decompression failed");
php_stream_bucket_delref(bucket);
return PSFS_ERR_FATAL;
}