diff options
| author | Stephen Hines <srhines@google.com> | 2014-09-11 00:58:18 -0700 |
|---|---|---|
| committer | Stephen Hines <srhines@google.com> | 2014-09-11 00:58:18 -0700 |
| commit | af7373fe53edba115746430553e8edfddd03ae9e (patch) | |
| tree | 1cf82b7d046d3cad6fe8e3648adb9dae11a048fa /cpp/RenderScript.cpp | |
| parent | 6e6cdbc303bef581cfb7d1fd0902cb42c89010cc (diff) | |
Return a void* from AllocationGetPointer!
Bug: 16846318
We mistakenly used a function that returned void with a function pointer
that expected to return back a void pointer. This leads to undefined
behavior, since it is unknown what value will be present in the space
where the return value would appear. Under the 64-bit C++ tests, this
was returning invalid pointers (due to optimizations moving things around).
Change-Id: Iea75a29212a06bbacc2fc523f9c43b3efe471a31
Diffstat (limited to 'cpp/RenderScript.cpp')
0 files changed, 0 insertions, 0 deletions
