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

Commit 1911894a authored by Atish Kumar Patra's avatar Atish Kumar Patra
Browse files

lib: qmi_encdec: Fix initialization error in string encode/decode



The string length variable in string encode/decode function is not
initialized to zero. It may result in decoding failure in case it is
initialized to some garbage value from stack.

Initialize the variables to zero to avoid decoding failure.

Change-Id: I77c8dca296f1070f7bd7e6b79c7dc898c3fc23b4
Signed-off-by: default avatarAtish Kumar Patra <apatra@codeaurora.org>
parent a28dc2cc
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