https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97167
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:ebf259b243069e77dc7199072304b455e8fcb865 commit r10-8789-gebf259b243069e77dc7199072304b455e8fcb865 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)