HomePhabricator
Diffusion MITK a2d2c1fc6629

Check filename for invalid characters before attempting to save.

Description

Check filename for invalid characters before attempting to save.

Without such a check writers might (and some do) create empty files
that are not even named as expected (e.g. "a" instead of "a:b.obj").

The opening std::ofstream for such a filename does not seem to set
any fail-bits (all checked for in the affected writer class).

The alternative to a check here would be a check in each possible writer
class. This seems worse.

Signed-off-by: Daniel Maleike <daniel.maleike@stryker.com>

Details

Provenance
maleikeAuthored on Aug 28 2019, 2:05 PM
kislinskPushed on Oct 16 2019, 12:01 PM
Parents
rMITK3c9b6ff72d12: Bump version
Branches
Unknown
Tags
Unknown