File tree 3 files changed +13
-4
lines changed 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -568,7 +568,7 @@ PHPAPI timelib_tzinfo *get_timezone_info(void)
568
568
569
569
static void update_property (zend_object * object , zend_string * key , zval * prop_val )
570
570
{
571
- if (ZSTR_VAL (key )[0 ] == '\0' ) { // not public
571
+ if (ZSTR_LEN ( key ) > 0 && ZSTR_VAL (key )[0 ] == '\0' ) { // not public
572
572
const char * class_name , * prop_name ;
573
573
size_t prop_name_len ;
574
574
Original file line number Diff line number Diff line change
1
+ |O:12:"DateInterval":1:{s:0:"";s:2:" ";
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ $files = [
6
6
'ossfuzz-55589.txt ' ,
7
7
'ossfuzz-55599.txt ' ,
8
8
'ossfuzz-55727.txt ' ,
9
+ 'ossfuzz-56931.txt ' ,
9
10
];
10
11
11
12
foreach ($ files as $ file ) {
@@ -24,16 +25,23 @@ foreach ($files as $file) {
24
25
?>
25
26
--EXPECTF--
26
27
ossfuzz-55589.txt:
27
- %s: unserialize(): Error at offset 39 of 39 bytes in %sunserialize-test.php on line 14
28
+ %s: unserialize(): Error at offset 39 of 39 bytes in %sunserialize-test.php on line %d
28
29
bool(false)
29
30
30
31
31
32
ossfuzz-55599.txt:
32
- %s: unserialize(): Error at offset 26 of 26 bytes in %sunserialize-test.php on line 14
33
+ %s: unserialize(): Error at offset 26 of 26 bytes in %sunserialize-test.php on line %d
33
34
Error: Invalid serialization data for DateTime object
34
35
bool(false)
35
36
36
37
37
38
ossfuzz-55727.txt:
38
- %s: unserialize(): Error at offset 230 of 509 bytes in %sunserialize-test.php on line 14
39
+ %s: unserialize(): Error at offset 230 of 509 bytes in %sunserialize-test.php on line %d
40
+ bool(false)
41
+
42
+
43
+ ossfuzz-56931.txt:
44
+ Notice: unserialize(): Error at offset 39 of 39 bytes in %sunserialize-test.php on line %d
45
+
46
+ Deprecated: Creation of dynamic property DateInterval::$ is deprecated in %s on line %d
39
47
bool(false)
You can’t perform that action at this time.
0 commit comments