commit | 6bbd521a246c8d07a012a208e04eb3acbb4ae6e7 | [log] [tgz] |
---|---|---|
author | Greg Kaiser <gkaiser@google.com> | Fri Mar 23 14:16:12 2018 -0700 |
committer | Greg Kaiser <gkaiser@google.com> | Fri Mar 23 14:30:37 2018 -0700 |
tree | cb50fa3b62d84f3822dd76841406da62bccef489 | |
parent | 56da98444bd08ddd8aaaa5442404f7e4f44997e5 [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