1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Fix GH-19922: gzopen() double free

close GH-19924
This commit is contained in:
David Carlier
2025-09-22 19:02:46 +01:00
parent 3ee56f68ed
commit 93bac8cb1a
3 changed files with 16 additions and 8 deletions

View File

@@ -0,0 +1,12 @@
--TEST--
GH-19922 (gzopen double free on debug build and unseekable stream)
--EXTENSIONS--
zlib
--FILE--
<?php
var_dump(gzopen("php://output", 14));
?>
--EXPECTF--
Warning: gzopen(php://output): could not make seekable - php://output in %s on line %d
bool(false)