[PATCH v2] gdb/source.c: Fix undefined behaviour dereferencing empty string

Magne Hov mhov@undo.io
Thu Sep 22 13:11:20 GMT 2022


On Wed, Sep 21 2022, Simon Marchi wrote:
>>        result = openp (path, OPF_SEARCH_IN_PATH | OPF_RETURN_REALPATH,
>>  		      cdir_filename.c_str (), OPEN_MODE, fullname);
>
> Thanks, this is OK, nice cleanup.

Thanks, I'll push the patch tomorrow morning if no other concerns are raised.

>
> Simon

-- 
Magne Hov | Software Engineer | Direct: +44 7395 395 648 | mhov@undo.io

Undo | Record. Replay. Resolve


More information about the Gdb-patches mailing list