Opened 6 years ago

Closed 6 years ago

#12495 closed Bugs (fixed)

create_directories crashes when passed empty string as path

Reported by: Samantha Ritter <samantha.ritter@…> 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 Kevin Pulo <kevin.pulo@…>, 6 years ago

Cc: kevin.pulo@… added

comment:2 by Charles Olivi <charles.olivi@…>, 6 years ago

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

comment:3 by Beman Dawes, 6 years ago

Resolution: fixed
Status: newclosed

Fixed in develop. Should be in time for 1.63.0.

Thanks!

--Beman

Note: See TracTickets for help on using tickets.