https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97167

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>:

https://gcc.gnu.org/g:49ff88bd0d8a36a9e903f01ce05685cfe07dee5d

commit r11-3367-g49ff88bd0d8a36a9e903f01ce05685cfe07dee5d
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Tue Sep 22 20:02:58 2020 +0100

    libstdc++: Fix out-of-bounds string_view access in filesystem::path [PR
97167]

    libstdc++-v3/ChangeLog:

            PR libstdc++/97167
            * src/c++17/fs_path.cc (path::_Parser::root_path()): Check
            for empty string before inspecting the first character.
            * testsuite/27_io/filesystem/path/append/source.cc: Append
            empty string_view to path.

Reply via email to