Skip to content

V2, release candidate 3

Compare
Choose a tag to compare
@ReneNyffenegger ReneNyffenegger released this 18 May 14:20
· 14 commits to master since this release
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.