summaryrefslogtreecommitdiff
path: root/init/rlimit_parser_test.cpp
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2020-02-05 14:55:27 -0800
committerTom Cherry <tomcherry@google.com>2020-02-05 15:04:32 -0800
commitd44a5f840d9912b2c2c1aca0942f1cc93fb77923 (patch)
treeaf662259f6b2d0a3482b6605399ed7bff14b846d /init/rlimit_parser_test.cpp
parente6211eb978d4c66c61e113379f8e6315005258d3 (diff)
liblog: null terminate log_msg
Also, use LOGGER_ENTRY_MAX_LEN instead of sizeof(log_msg) for ensuring that the read did not overflow, since sizeof(log_msg) is one byte longer to allow for placing a null terminator already. Bug: 148966104 Test: liblog unit tests Change-Id: Id4fe8aa5da44e9d62f59b6541f157a4e7b038d07
Diffstat (limited to 'init/rlimit_parser_test.cpp')
0 files changed, 0 insertions, 0 deletions