-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix concurrency issue in mutlithreaded environment (2.rc.03)
Problem: If two threads called base64_encode concurrently (one with url=true and the other with url=false, the values of base64_chars[62] and base64_chars[63] are undefined. For example, it's possible to get base64_chars[62]='-' and base64_chars[63]='/', which is not a valid encoding. This commit fixes this issue.
- Loading branch information
1 parent
2ca8b88
commit ac7161c
Showing
3 changed files
with
79 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters