https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85773
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-05-14 Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- Possible solutions: 1) Detect embedded nulls when constructing paths (and forming them by concatenation and other modifications). Opinions differ on whether this is allowed, as filesystem::path objects are purely lexical and can represent invalid or impossible paths. 2) Check for embedded nulls every time we call an OS function with the NTBS returned by c_str(). This is tedious and error-prone. 3) Add a workaround to recursive_directory_iterator only.