From 2d4a42ff157ff647fcbd15d286fa0f6af966dff6 Mon Sep 17 00:00:00 2001 From: George Peter Banyard Date: Tue, 8 Aug 2023 10:44:04 +0100 Subject: [PATCH] Fix GH-11876: ini_parse_quantity() accepts invalid quantities --- Zend/tests/zend_ini/gh11876.phpt | 51 ++++++++++++++++++++++++++++++++ Zend/zend_ini.c | 40 +++++++++++++++++++++++++ 2 files changed, 91 insertions(+) create mode 100644 Zend/tests/zend_ini/gh11876.phpt diff --git a/Zend/tests/zend_ini/gh11876.phpt b/Zend/tests/zend_ini/gh11876.phpt new file mode 100644 index 0000000000000..b83061bf161e3 --- /dev/null +++ b/Zend/tests/zend_ini/gh11876.phpt @@ -0,0 +1,51 @@ +--TEST-- +Invalid INI quantities, base prefix followed by stuff eaten by strtoull() +--EXTENSIONS-- +zend_test +--FILE-- +