commit | d6c4a538fcc12272bc203af9f236d178a8f3cc67 | [log] [tgz] |
---|---|---|
author | Tom Cherry <tomcherry@google.com> | Wed Feb 05 14:55:27 2020 -0800 |
committer | Tom Cherry <tomcherry@google.com> | Wed Feb 05 15:04:32 2020 -0800 |
tree | 96979a08bbd27430058eeda447e1261d7e56a77e | |
parent | 80b69a6d1501cd6e609ef5ed92f8fd7c3e69959d [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