Skip to content
Snippets Groups Projects
Commit 00241c31 authored by Mohit Aggarwal's avatar Mohit Aggarwal Committed by Thierry Strudel
Browse files

diag: Fix possible underflow/overflow issues


Add check in order to fix possible integer underflow
during HDLC encoding which may lead to buffer
overflow. Also added check for packet length to
avoid buffer overflow.

Bug: 28767796
Change-Id: I6dfe890c9db521c9144f05155c50b289c83b5b8f
Signed-off-by: default avatarMohit Aggarwal <maggarwa@codeaurora.org>
Signed-off-by: default avatarYuan Lin <yualin@google.com>
parent 9c1e3538
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment