Opened 12 years ago

Closed 11 years ago

#662 closed Bugs (fixed)

[filesystem] portable_posix_name() may fail on premain call

Reported by: kbluck Owned by: Beman Dawes
Milestone: Component: filesystem
Version: None Severity: Showstopper
Keywords: Cc:

Description (last modified by Beman Dawes)

Boost 1.33.1

The constant valid_posix defined in
path_posix_windows.cpp is a module-level static
definition. This means that instances of path also
defined at some other module scope may fail when
checking against portable_posix_name due to
initialization-order problems; valid_posix may not yet
be initialized at the time it is referenced.

This can be avoided by wrapping valid_posix and similar
static constants in functions as function statics,
which guarantees initialization order.


Change History (2)

comment:1 Changed 11 years ago by Marshall Clow

Owner: changed from beman_dawes to Beman Dawes
Severity: Showstopper
Status: assignednew

assigning to actual user "bemandawes" instead of unknown user "beman_dawes"

comment:2 Changed 11 years ago by Beman Dawes

Description: modified (diff)
Resolution: Nonefixed
Status: newclosed

1.34.0 and later code no longer contains this or any other problem statics.

Note: See TracTickets for help on using tickets.