summaryrefslogtreecommitdiff
path: root/src/android/net/util/NetworkStackUtils.java
diff options
context:
space:
mode:
authorXiao Ma <xiaom@google.com>2020-03-23 10:42:30 +0000
committerXiao Ma <xiaom@google.com>2020-03-23 14:20:31 +0000
commitf8925d5b570484f605a5e211a1e84b7458a5ac68 (patch)
treebfc07011d594331a7699647f3243a4c74d4beed6 /src/android/net/util/NetworkStackUtils.java
parent347f667a3fd8f495cb7cb9442bf5a55e9d610264 (diff)
Fix the potential BufferUnderflowException when parsing ByteBuffer.
Miss catching BufferUnderflowException when converting ByteBuffer to bytes array for InformationElement member of ScanResultInfo, it might throw BufferUnderflowException when calling ByteBuffer.get() method. Reset the position of copied ByteBuffer before calling get() method should prevent BufferUnderflowException to be thrown. Bug: 137835398 Test: atest NetworkStackIntegrationTests FrameworksNetTests Merged-In: Ibec0991c1f7158f503f8808bf34d9049984099e0 (cherry picked from commit ffc469e1e710c5d22accb551baaf4c4c40c7c752) Change-Id: I69928103d8cd2c9066d1f5886d43fbcf21eb5818
Diffstat (limited to 'src/android/net/util/NetworkStackUtils.java')
0 files changed, 0 insertions, 0 deletions