On Thu, 2019-11-28 at 22:10 +0100, Tim Rühsen 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'
> +
THanks. Installed on the trunk.
jeff