commit | e6cf914c3fea45d237e40c675ff20dea812d699d | [log] [tgz] |
---|---|---|
author | Taras Antoshchuk <tantoshchuk@google.com> | Fri May 13 18:15:11 2022 +0200 |
committer | Taras Antoshchuk <tantoshchuk@google.com> | Sun May 15 18:03:55 2022 +0000 |
tree | 2138bfcec1a79ca4c79d11a23c697704650cdb37 | |
parent | a1ae227bc289c9df8fdcfe586c209d33a1a35f09 [diff] |
Don't throw in socket_read if socket_read_all returns < 0. All codepaths in socket_read_all that return a negative value have already thrown an exception. socket_read should not throw again. This causes debuggagle apps to crash with a JNI failure if LocalSocket#read gets an error. Test: atest CtsNetTestCases Bug: 229813087 Change-Id: I2a04a799d3748c221f8555fa7afc40d73f0f392c