Modify

Opened 11 years ago

Closed 10 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.


Attachments (0)

Change History (2)

comment:1 Changed 10 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 10 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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Beman Dawes.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.