Name |
Last commit
|
Last update |
---|---|---|
.. | ||
c++11 | ||
c++17 | ||
c++98 | ||
filesystem | ||
shared | ||
Makefile.am | ||
Makefile.in |
When concatenating a path ending in a root-directory onto another path, we added an empty filename to the end of the path twice, but only reserved space for one. That meant the second write went past the end of the allocated buffer. PR libstdc++/92853 * src/c++17/fs_path.cc (filesystem::path::operator+=(const path&)): Do not process a trailing directory separator twice. * testsuite/27_io/filesystem/path/concat/92853.cc: New test. * testsuite/27_io/filesystem/path/concat/path.cc: Test more cases. From-SVN: r279110
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
c++11 | Loading commit data... | |
c++17 | Loading commit data... | |
c++98 | Loading commit data... | |
filesystem | Loading commit data... | |
shared | Loading commit data... | |
Makefile.am | Loading commit data... | |
Makefile.in | Loading commit data... |