summaryrefslogtreecommitdiff
path: root/libc/stdio/stdio_ext.cpp
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2017-10-05 13:48:08 -0700
committerJosh Gao <jmgao@google.com>2017-10-23 12:48:08 -0700
commitd162060928ceb7832766f386bf27b6e3003c2951 (patch)
tree919de1c6bf179237287da858cad6a94e83c5c1f3 /libc/stdio/stdio_ext.cpp
parentc189e43f1009529e31cdbbf4225cb3f78e724552 (diff)
Add explicit null checks to some stdio functions.
Applications fopening files and then blindly trying to read are widespread, leading to a recurring problem of SELinux tightening resulting in segfaults. Add a friendly diagnostic for this case. Bug: http://b/67455242 Test: bionic-unit-tests32/64 on sailfish Change-Id: I1734fa94487c4eff9b55a02c6b01baf6b265d236
Diffstat (limited to 'libc/stdio/stdio_ext.cpp')
0 files changed, 0 insertions, 0 deletions