Bug 23080

Summary: strtok() is not thread-safe
Product: poppler Reporter: Jakub Wilk <jwilk>
Component: generalAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Replace strtok() with strtok_r()

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.