On Thu, Nov 28, 2019 at 1:11 PM Tim Rühsen <tim.rueh...@gmx.de> wrote: > > An empty name param leads to read buffer overflow in > function split_directories. > > * libiberty/make-relative-prefix.c (split_directories): > Return early on empty name. > --- > libiberty/ChangeLog | 7 +++++++ > libiberty/make-relative-prefix.c | 3 +++ > 2 files changed, 10 insertions(+) > > diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog > index b516903d94..b7e24d11ef 100644 > --- a/libiberty/ChangeLog > +++ b/libiberty/ChangeLog > @@ -1,3 +1,10 @@ > +2019-11-28 Tim Ruehsen <tim.rueh...@gmx.de> > + > + Fix read buffer overflow in split_directories > + > + * make-relative-prefix.c (split_directories): > + Return early on empty 'name' > +
This is OK. Thanks. Ian