https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97167
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-9 branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:e7285587186bac5692171d7493e29e16c729281d commit r9-8932-ge7285587186bac5692171d7493e29e16c729281d 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. (cherry picked from commit 49ff88bd0d8a36a9e903f01ce05685cfe07dee5d)