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

Fixes for arm64 #21

Closed
wants to merge 2 commits into from
Closed

Fixes for arm64 #21

wants to merge 2 commits into from

Conversation

macdrevx
Copy link

@macdrevx macdrevx commented Jan 3, 2014

No description provided.

Andrew Hershberger added 2 commits January 3, 2014 14:26
This test was only passing on 32 bit by chance. Changing the source
string to `@"test dataa"` causes the test to fail on both 32 and 64 bit
architectures. The problem is that `+[NSString stringWithUTF8String:]`
expects a null-terminated, UTF-8 encoded C-string, but `encodedAesKey`
is not guaranteed to meet this requirement.

The solution is to use `-[NSString initWithBytes:length:encoding:]` and
specify the length of the data explicitly.
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

Successfully merging this pull request may close these issues.

2 participants