Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368886 - Strtok is non-reentrant
Summary: Strtok is non-reentrant
Status: RESOLVED FIXED
Alias: None
Product: TCF
Classification: Tools
Component: Agent (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.0.0   Edit
Assignee: Project Inbox CLA
QA Contact: Eugene Tarassov CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-17 16:14 EST by Chris Wyse CLA
Modified: 2013-06-05 05:42 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Wyse CLA 2012-01-17 16:14:32 EST
Build Identifier: 

The strtok function used in the agent is non-reentrant.  It should be replaced with a reentrant function.  As the agent is expanded it could cause problems for users (and did in our case).

Reproducible: Always

Steps to Reproduce:
1.No need to reproduce
2.
3.
Comment 1 Eugene Tarassov CLA 2012-01-17 19:32:46 EST
I have changed the code to work without usage of strtok().
Fixed. Thanks.