Opened 6 years ago
Closed 6 years ago
#12495 closed Bugs (fixed)
create_directories crashes when passed empty string as path
| Reported by: | Owned by: | Beman Dawes | |
|---|---|---|---|
| Milestone: | To Be Determined | Component: | filesystem |
| Version: | Boost 1.60.0 | Severity: | Problem |
| Keywords: | Cc: | kevin.pulo@… |
Description
boost::system::error_code ec;
bool created = boost::filesystem::create_directories("", ec);
The above code hits an assertion in create_directories and crashes:
Assertion `(parent != p)&&("internal error: p == p.parent_path()")' failed.
Change History (3)
comment:1 by , 6 years ago
| Cc: | added |
|---|
comment:2 by , 6 years ago
comment:3 by , 6 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Fixed in develop. Should be in time for 1.63.0.
Thanks!
--Beman
Note:
See TracTickets
for help on using tickets.

Hi, I did a PR for that: https://github.com/boostorg/filesystem/pull/36 Thanks, Charles