RESOLVED FIXED24212
Crashes when given the URI of a directory, or other non-regular files
https://bugs.webkit.org/show_bug.cgi?id=24212
Summary Crashes when given the URI of a directory, or other non-regular files
Gustavo Noronha (kov)
Reported 2009-02-26 15:39:14 PST
The crash happens because in this specific case an error is reported, but the GError that is given to networkErrorForFile is NULL, and error->message is accessed unconditionally.
Attachments
proposed fix (1.92 KB, patch)
2009-02-26 15:40 PST, Gustavo Noronha (kov)
zecke: review+
errors cleanup (3.73 KB, patch)
2009-03-01 07:51 PST, Gustavo Noronha (kov)
zecke: review+
Gustavo Noronha (kov)
Comment 1 2009-02-26 15:40:13 PST
Created attachment 28049 [details] proposed fix
Holger Freyther
Comment 2 2009-03-01 07:26:50 PST
Comment on attachment 28049 [details] proposed fix Yeah. we leak the GError in the caller though.
Gustavo Noronha (kov)
Comment 3 2009-03-01 07:51:35 PST
Created attachment 28143 [details] errors cleanup
Holger Freyther
Comment 4 2009-03-01 08:12:19 PST
Comment on attachment 28143 [details] errors cleanup looks good, please split it in two parts.
Gustavo Noronha (kov)
Comment 5 2009-03-01 08:22:24 PST
Landed as r41332 and r41333.
Note You need to log in before you can comment on or make changes to this bug.