diff options
author | Tobias Thierer <tobiast@google.com> | 2018-01-24 13:28:38 +0000 |
---|---|---|
committer | Tobias Thierer <tobiast@google.com> | 2018-01-24 13:30:32 +0000 |
commit | 50e20daf19d19acd61bb2ac0fddf4be09814defb (patch) | |
tree | 9e395eec943f3f0d3fb21bc08cc73447ba53c43d /annotations/generate_annotated_java_files.py | |
parent | 31c2a38b75e42fb894a33be98ed7c26b3d52b9a4 (diff) |
Fix android.system.Os.waitpid() for status == null.
Os.waitpid() is implemented on top of libcore_io_Linux.waitpid().
This native implementation unconditionally dereferenced the
javaStatus pointer; when it was NULL (which is allowed), this
triggered a native crash.
Test: Ran the (unsubmitted) tests from
https://r.android.com/c/platform/libcore/+/593113/4
Specifically, test_waitpid_blocks_nullStatus() triggers a
native crash before this CL but passes after this CL.
Bug: 72154644
Change-Id: Id314b743577566a4eac842884087c4ec9538259a
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions