[php-src] master: [ci skip] Add missing oss-fuzz test for 8de697eb (#23761)
| From: | Nora Dossche via GitHub | Date: | Fri, 18 Sep 2026 19:43:46 +0000 |
| Subject: | [php-src] master: [ci skip] Add missing oss-fuzz test for 8de697eb (#23761) | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-141265@lists.php.net to get a copy of this message | ||
Author: Nora Dossche (ndossche)
Committer: GitHub (web-flow)
Pusher: ndossche
Date: 2026-09-18T21:43:43+02:00
Commit: https://github.com/php/php-src/commit/7ad3d023223a0eac1fb4585be144008ef07dd2e7
Raw diff: https://github.com/php/php-src/commit/7ad3d023223a0eac1fb4585be144008ef07dd2e7.diff
[ci skip] Add missing oss-fuzz test for 8de697eb (#23761)
Changed paths:
A ext/date/tests/time/duration/oss_fuzz_562721806.phpt
Diff:
diff --git a/ext/date/tests/time/duration/oss_fuzz_562721806.phpt
b/ext/date/tests/time/duration/oss_fuzz_562721806.phpt
new file mode 100644
index 000000000000..2efc6b4662af
--- /dev/null
+++ b/ext/date/tests/time/duration/oss_fuzz_562721806.phpt
@@ -0,0 +1,12 @@
+--TEST--
+OSS-Fuzz #562721806 (Use-of-uninitialized-value in zim_Time_Duration___unserialize)
+--FILE--
+<?php
+try {
+ unserialize('O:13:"Time\Duration"::{}');
+} catch (Throwable $e) {
+ echo $e::class, ": ", $e->getMessage(), "\n";
+}
+?>
+--EXPECT--
+Exception: Invalid serialization data for Time\Duration object