RESOLVED INVALID29516
[Gtk] WebResource - initialize NULL-valued strings as a String
https://bugs.webkit.org/show_bug.cgi?id=29516
Summary [Gtk] WebResource - initialize NULL-valued strings as a String
Jan Alonzo
Reported 2009-09-18 23:33:35 PDT
webkit_web_resource_new doesn't check if values (e.g. encoding, frame name) are NULL. We should initialize these values as String instead of passing null values to ArchiveResource::create.
Attachments
Patch v1 (1.56 KB, patch)
2009-09-18 23:36 PDT, Jan Alonzo
xan.lopez: review-
Jan Alonzo
Comment 1 2009-09-18 23:36:00 PDT
Created attachment 39814 [details] Patch v1
Xan Lopez
Comment 2 2009-09-21 22:25:48 PDT
Comment on attachment 39814 [details] Patch v1 String::fromUTF8 already does this: String String::fromUTF8(const char* string) { if (!string) return String(); return UTF8Encoding().decode(string, strlen(string)); } Marking as r-.
Jan Alonzo
Comment 3 2009-09-22 04:10:09 PDT
Marking as invalid because this is already handled by String::fromUTF8 as pointed out by Xan.
Note You need to log in before you can comment on or make changes to this bug.