diff options
author | Greg Kaiser <gkaiser@google.com> | 2018-03-23 14:16:12 -0700 |
---|---|---|
committer | Suren Baghdasaryan <surenb@google.com> | 2018-08-07 15:42:19 -0700 |
commit | f0da9b0cc2875dde93d58c28f9c9b0901dc6897d (patch) | |
tree | 56cd275655f5c2d8853cb607dde0715293ce6929 /libutils/Unicode.cpp | |
parent | 7d4e7d3156997da003b3e60e5b9fe024ae244940 (diff) |
lmkd: Protect against buffer overflow
We're passing a 'line' whose backing buffer is PAGE_MAX in size
into memory_stat_parse_line(). We protect overflowing the smaller
LINE_MAX 'key' buffer via some C preprocessing macros to assure
we limit the size.
Test: Local build with LMKD_LOG_STATS set for this file.
Bug: 76220622
Change-Id: I9e50d4270f7099e37a9bfc7fb9b9b95cc7adb086
Diffstat (limited to 'libutils/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions