platform_system_core/lmkd
Greg Kaiser d6d847142b 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
2018-03-27 21:59:31 +00:00
..
include lmkd: Introduce liblmkd_utils for communicating with lmkd process 2018-01-31 18:10:49 +00:00
tests lmkd: Implement lmkd-test 2018-01-31 18:11:38 +00:00
Android.bp Use usel_mkd_stats_log build variable while compiling lmkd with stats logging feature. 2018-03-23 20:33:57 +00:00
liblmkd_utils.c lmkd: Introduce liblmkd_utils for communicating with lmkd process 2018-01-31 18:10:49 +00:00
lmkd.c lmkd: Protect against buffer overflow 2018-03-27 21:59:31 +00:00
lmkd.rc Enable hidepid=2 on /proc 2015-11-09 09:08:46 -08:00
OWNERS Add lmkd/OWNERS. 2017-12-08 16:12:58 -08:00
statslog.c Functions to log stats log from LMKD. 2018-01-29 15:18:04 -08:00
statslog.h Fix compilation issue when LMKD_LOG_STATS is defined. 2018-03-26 18:15:25 +00:00