Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f8925d5b authored by Xiao Ma's avatar Xiao Ma
Browse files

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 ffc469e1)

Change-Id: I69928103d8cd2c9066d1f5886d43fbcf21eb5818
parent 347f667a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment