File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed
Expand file tree Collapse file tree 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)
568568
569569static void update_property (zend_object * object , zend_string * key , zval * prop_val )
570570{
571- if (ZSTR_VAL (key )[0 ] == '\0' ) { // not public
571+ if (ZSTR_LEN ( key ) > 0 && ZSTR_VAL (key )[0 ] == '\0' ) { // not public
572572 const char * class_name , * prop_name ;
573573 size_t prop_name_len ;
574574
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 = [
66 'ossfuzz-55589.txt ' ,
77 'ossfuzz-55599.txt ' ,
88 'ossfuzz-55727.txt ' ,
9+ 'ossfuzz-56931.txt ' ,
910];
1011
1112foreach ($ files as $ file ) {
@@ -24,16 +25,23 @@ foreach ($files as $file) {
2425?>
2526--EXPECTF--
2627ossfuzz-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
2829bool(false)
2930
3031
3132ossfuzz-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
3334Error: Invalid serialization data for DateTime object
3435bool(false)
3536
3637
3738ossfuzz-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
3947bool(false)
You can’t perform that action at this time.
0 commit comments