commit | 0a1fcb6a535487065649a1475da7a5395f40072a | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Thu Jun 22 14:19:18 2017 -0700 |
committer | Colin Cross <ccross@android.com> | Thu Jun 22 14:21:52 2017 -0700 |
tree | 16ba7ed2f1dd2e8009dfda43067c8b9a22465e4a | |
parent | b5a1f4cd0a4ba76a6c3c7f6a0e2322ef9a3f4cca [diff] |
Fix stack test on arm32 The stack test puts a pointer to an allocation on the stack, checks that there are no leaks, then lets it go out of scope and checks that libmemunreachable can find a leak. This works on arm64, but on arm32 the pointer on the stack doesn't get overwitten and the leak is not detected. Rewrite the pointer to be NULL instead. Test: memunreachable_test Change-Id: I5959a34cbb572a5d8670270077a85d247a3a4880