summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@digia.com>2014-10-24 17:12:35 +0200
committerTor Arne Vestbø <tor.arne.vestbo@digia.com>2014-10-25 00:20:21 +0200
commit27a321e1ed929a3de72ede000a38d95f98f68150 (patch)
treeffd5e70af3d1bfe23bb7c0b74a74ff58c43d0645 /tests
parent0c482869fb342d7a7ed44d8101e84aec9f981549 (diff)
iOS: Make room for zero-terminator when building argv from NSProcessInfo
[NSString lengthOfBytesUsingEncoding] only returns the number of bytes required for the actual string, not including the zero terminator, so when we then used cStringUsingEncoding to fill the malloced buffer with data, we overwrote the byte after our buffer with 0, resulting in random and hard to reproduce crashes at application startup, seemingly depending on the application name. Change-Id: I35d261bea5924e917475b0270bfa280bfb0c787a Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions