summaryrefslogtreecommitdiff
path: root/libs/binder/ProcessState.cpp
diff options
context:
space:
mode:
author Siarhei Vishniakou <svv@google.com> 2019-09-17 14:53:07 +0100
committer Siarhei Vishniakou <svv@google.com> 2019-09-17 15:31:45 +0100
commit3d8df0e9c84d313bfe2ed7f88dccb984c041bac1 (patch)
tree6d4ae76c9661dcf65cc4ef597db5a83665c8b1eb /libs/binder/ProcessState.cpp
parent061e0af271e6bccc5a32ab78b96b8f6dd667e12f (diff)
Crash if too many open files
If there are too many open files, and we can't dup a socket because we received EMFILE or ENFILE, let's crash immediately to make this problem obvious. Otherwise, we are simply propagating null pointers through the system and witness null pointer dereference later (in the good cases), or undefined behaviour. Bug: 141111452 Test: none Change-Id: I012bc050e5246456e00c22f0c17a5752b2708875
Diffstat (limited to 'libs/binder/ProcessState.cpp')
0 files changed, 0 insertions, 0 deletions