[wp-trac] [WordPress Trac] #47164: map_deep in formatting.php do not handle null-byte

WordPress Trac noreply at wordpress.org
Thu Jul 18 13:33:09 UTC 2019


#47164: map_deep in formatting.php do not handle null-byte
--------------------------+------------------------------
 Reporter:  bitcomplex    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Formatting    |     Version:  5.2.2
 Severity:  critical      |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------
Changes (by bitcomplex):

 * version:   => 5.2.2
 * severity:  normal => critical


Comment:

 I was pretty sure this was an issue related to a php bug patched in php7.2
 ( https://bugs.php.net/bug.php?id=49649 )
 But after upgrading to 7.3.7 (from 7.1.x) we get issues with this.

 serialized objects fetched from db fails here. It is possible because of
 the objectes in the db is serialized with an old php version where the bug
 exists. But wp could handle it better.

 Error: Cannot access property started with '\0'
 #12 /home/httpd/rackesbutiken/rackesbutiken.se/wp-
 includes/formatting.php(4742): map_deep
 #11 /home/httpd/rackesbutiken/rackesbutiken.se/wp-
 includes/formatting.php(2691): stripslashes_deep
 #10 /home/httpd/rackesbutiken/rackesbutiken.se/wp-
 includes/formatting.php(5342): wp_unslash
 #9 /home/httpd/rackesbutiken/rackesbutiken.se/wp-includes/meta.php(182):
 update_metadata
 #8 /home/httpd/rackesbutiken/rackesbutiken.se/wp-includes/post.php(2061):
 update_post_meta

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47164#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list