Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

liboauth should use strtok_r instead of strtok to support multithreaded usage #232

Open
GoogleCodeExporter opened this issue Apr 6, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link

In oauth_split_post_paramters, strtok_r should be used instead of strtok. In 
multithreaded environments, not doing so can result in failure to sign the url 
correctly (getting parameters from a url in another thread) or invalid memory 
access (strtok internal context pointing to another thread's stack).


http://linux.die.net/man/3/strtok_r


Original issue reported on code.google.com by [email protected] on 1 Oct 2012 at 12:59

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant