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 Change-Id: I96c548ff9df4989769127d11abd9ed1a79631e05
Loading
Please register or sign in to comment