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

Magne Hov mhov@undo.io
Wed Sep 21 14:51:19 GMT 2022


On Tue, Sep 20 2022, Tom Tromey wrote:

> I wonder if this code should be changed to use path_join instead.
> That function doesn't seem to have this bug:

Good point, I've rerun the test suite and I will send an updated patch.

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

Undo | Record. Replay. Resolve


More information about the Gdb-patches mailing list