diff options
| author | Greg Kaiser <gkaiser@google.com> | 2018-03-23 14:16:12 -0700 |
|---|---|---|
| committer | Greg Kaiser <gkaiser@google.com> | 2018-03-27 21:59:31 +0000 |
| commit | d6d847142bb38caead1e180b6611e413f905b016 (patch) | |
| tree | 6003dbfebb29ba61462347a4935314f56bbb6245 /base/errors_unix.cpp | |
| parent | 677bed578eba29b47b9675c5b3e89f58390db947 (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
Merged-In: I9e50d4270f7099e37a9bfc7fb9b9b95cc7adb086
Change-Id: I9e50d4270f7099e37a9bfc7fb9b9b95cc7adb086
Diffstat (limited to 'base/errors_unix.cpp')
0 files changed, 0 insertions, 0 deletions
