diff options
author | Mark Salyzyn <salyzyn@google.com> | 2014-04-24 09:43:23 -0700 |
---|---|---|
committer | Mark Salyzyn <salyzyn@google.com> | 2014-04-24 15:49:57 -0700 |
commit | 8444eb81b37991ce0fc4ae1d8d79b01688a02426 (patch) | |
tree | c9811ef5483060bee93a90277fa32afa7314c211 /logd | |
parent | 6798914b6fc93d6a9964129b734ec7d7be88d99b (diff) | |
download | system_core-8444eb81b37991ce0fc4ae1d8d79b01688a02426.zip system_core-8444eb81b37991ce0fc4ae1d8d79b01688a02426.tar.gz system_core-8444eb81b37991ce0fc4ae1d8d79b01688a02426.tar.bz2 |
logd: liblog: ALOG silently drops excessively long messages
Bug: 14280914
Change-Id: Idddd29784625094e54144953c29f64692a88eee9
Diffstat (limited to 'logd')
-rw-r--r-- | logd/LogListener.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/logd/LogListener.cpp b/logd/LogListener.cpp index ed5b391..1d0a51c 100644 --- a/logd/LogListener.cpp +++ b/logd/LogListener.cpp @@ -31,7 +31,7 @@ LogListener::LogListener(LogBuffer *buf, LogReader *reader) { } bool LogListener::onDataAvailable(SocketClient *cli) { - char buffer[sizeof_log_id_t + sizeof(log_time) + sizeof(char) + char buffer[sizeof_log_id_t + sizeof(uint16_t) + sizeof(log_time) + LOGGER_ENTRY_MAX_PAYLOAD]; struct iovec iov = { buffer, sizeof(buffer) }; memset(buffer, 0, sizeof(buffer)); |