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

Commit a1b37f12 authored by lifr's avatar lifr Committed by Frank Li
Browse files

Fix hwasan stack buffer overflow in resolver stats

This change will handle netdID unknown case to avoid accessing the uninitialized
local variable stats. If the netId is unknown (which can happen for
valid net IDs for which no DNS servers have yet been configured),
it need to return error directly instead of access the stats.
(The happening is if stats->sample_next is uninitialized or corrupted.)


Test: ./runtests.sh pass
Bug: 123593418

Change-Id: I76b8b23ff618071e3aea9d8abc8aff8887bbab88
parent 3952ccca
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