RESOLVED FIXED Bug 54737
Memory allocation error in convertV8ObjectToNPVariant() for strings
https://bugs.webkit.org/show_bug.cgi?id=54737
Summary Memory allocation error in convertV8ObjectToNPVariant() for strings
Steve Block
Reported 2011-02-18 03:08:48 PST
http://trac.webkit.org/changeset/76264 modified convertV8ObjectToNPVariant() to use malloc() and memcpy() rather than strdup(). This introduced a crashing bug as the null terminator is not included in the length used to allocate memory and copy the string.
Attachments
Patch (1.72 KB, patch)
2011-02-18 04:16 PST, Steve Block
kling: review+
Steve Block
Comment 1 2011-02-18 04:16:31 PST
Andreas Kling
Comment 2 2011-02-18 04:23:55 PST
Comment on attachment 82941 [details] Patch LGTM.
Steve Block
Comment 3 2011-02-18 04:27:58 PST
Note You need to log in before you can comment on or make changes to this bug.