Bug #1454
closed
bundle - strtok() race in fb_opendir()
Added by Jaroslav Kysela over 12 years ago.
Updated over 12 years ago.
Found in version:
current git
Description
I experience a re-entrant race in fb_opendir() function. See patch for details.
Files
- Status changed from New to Accepted
- Assignee set to Adam Sutton
- Affected Versions 3.2, 3.3 added
Agreed, but I think the problem is more general than this.
I think we should probably avoid using strtok() anywhere that requires a second call, else we need to carefully check all such instances to ensure they are only called from a single thread.
Adam
Thanks for the patch, I did the change myself in the end as I decided to do a complete (except one startup use) replacement of strtok() to avoid potential re-entrance/race issues.
Need to decide whether to backport to 3.2, probably yes!
Adam
- Status changed from Accepted to Resolved
Should now be fixed on master, needs back porting.
Adam
- Target version set to 3.2
- Status changed from Resolved to Fixed
- % Done changed from 0 to 100
Applied in changeset commit:165e3d4cb08f21ed2501b4b06e6d12bd3f4c9f26.
Also available in: Atom
PDF