[redland-dev] Memory overrun in
raptor_uri_filename_to_uri_string() / WIN32
Dave Beckett
dave at dajobe.org
Tue Aug 19 16:33:59 BST 2008
Aymeric Barthe wrote:
>> That's no different, if filename[1] == ':' is true, then filename[1]
>> will be true also.
>
>> Conjunctive expressions in C evaluate left to right and shortcut.
>
>> - Steve
>
> That's quite right.
> Mea Culpa.
So the patch should be what Steve proposed?
if (filename[0] && filename[1] == ':' && filename[2] != '\\')
Is there a test we can add too?
Dave
More information about the redland-dev
mailing list