|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2015-01-12 18:49 UTC] bugreports at internot dot info
Description:
------------
Hi,
In ext/json/JSON_parser.c:
585 buf.s->len = 0;
but it is possible for buf.s to not be initalized.
The proper code is demonstrated in the previous "case":
564 if (buf.s) { buf.s->len = 0; }
I imagine this can be triggered if "type == IS_STRING" is false.
Thanks,
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 16:00:01 2025 UTC |
But it is initialized at the top of the func: smart_str buf = {0}; Do you have a reproduce case?