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

NSData+Base64.m warning #105

Open
paulocheque opened this issue Jun 14, 2012 · 1 comment
Open

NSData+Base64.m warning #105

paulocheque opened this issue Jun 14, 2012 · 1 comment

Comments

@paulocheque
Copy link

File NSData+Base64.m

in Method initWithBase64EncodedString:

I believe you have to change the unsigned char inbuf[3] to unsigned char inbuf[4]

@loic-couharde
Copy link

Array index of '3' indexes past the end of an array (that contains 3 elements)

You have just to change the declaration in line 35 to:

unsigned char inbuf[4], outbuf[3];

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

No branches or pull requests

2 participants