Last active
August 29, 2015 14:19
-
-
Save xophiix/1fe48684de4cba73076e to your computer and use it in GitHub Desktop.
solve pointer alignment bug on ios device
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
// see http://www.galloway.me.uk/2010/10/arm-hacking-exc_arm_da_align-exception/ | |
// force size to align 4 byte | |
if ((dataSize & 0x3) != 0) { | |
dataSize += 4 - (dataSize & 0x3); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://www.galloway.me.uk/2010/10/arm-hacking-exc_arm_da_align-exception/