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

Skip to content
Commit 2de21e68 authored by Mohit Aggarwal's avatar Mohit Aggarwal Committed by Dyneteve
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: I198ef82c72687732e46893013dc21ef3b85244e2
Signed-off-by: default avatarMohit Aggarwal <maggarwa@codeaurora.org>
Signed-off-by: default avatarYuan Lin <yualin@google.com>
parent fc9ca097
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