[patch] Fix a couple of null-derefs in setup.exe
Fri Sep 18 11:33:00 GMT 2009
There are a couple of places where setup can bomb if you blow away your
stored settings (cached mirror list or last mirror), as it gets a null pointer
on trying to read them back; both strtok and the std::string(const char *)
ctor blow up on this. Attached patch trivially protects against both.
* site.cc (get_site_list): Use empty string if user settings
return NULL pointer for cached mirrors list.
(SiteSetting::getSavedSites): Do nothing if user settings return
NULL pointer for last mirror URL.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 837 bytes
Desc: not available
More information about the Cygwin-apps