Bug 23080 - strtok() is not thread-safe
Summary: strtok() is not thread-safe
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-01 06:49 UTC by Jakub Wilk
Modified: 2010-05-01 11:51 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Replace strtok() with strtok_r() (3.53 KB, patch)
2009-08-01 06:49 UTC, Jakub Wilk
Details | Splinter Review

Description Jakub Wilk 2009-08-01 06:49:33 UTC
Created attachment 28251 [details] [review]
Replace strtok() with strtok_r()

(Tested with poppler 0.10.6.)

poppler uses the strtok() function, while it's not safe to do so in 
a multi-threaded application (or in a library aimed to be used in a 
multi-threaded applications).
Comment 1 Albert Astals Cid 2010-05-01 11:51:35 UTC
Patch commited, sorry it took so long.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.