|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-08-04 14:08 UTC] jani@php.net
[2007-08-04 16:42 UTC] joungkyun at gmail dot com
[2013-08-06 07:56 UTC] yohgaki@php.net
-Status: Open
+Status: Closed
-Package: Feature/Change Request
+Package: *General Issues
-Assigned To:
+Assigned To: yohgaki
[2013-08-06 07:56 UTC] yohgaki@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 12:00:01 2025 UTC |
Description: ------------ There is serialized data that made with 64bit integer on 64 bit system. On 32bit machine, if unserialize this data, you have result of integer overflow. Reproduce code: --------------- On, 64bit system echo serialize (4294967296 + 1); => result : "i:4294967297;" On, 32bit system echo unserilaize ("i:4294967297;"); => result : 1 Expected result: ---------------- On, 32bit system echo unserilaize ("i:4294967297;"); => result : 4294967297 Actual result: -------------- On, 32bit system echo unserilaize ("i:4294967297;"); => result : 1