summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Salyzyn2014-04-24 11:43:23 -0500
committerMark Salyzyn2014-04-24 17:49:57 -0500
commit8444eb81b37991ce0fc4ae1d8d79b01688a02426 (patch)
treec9811ef5483060bee93a90277fa32afa7314c211 /logd/LogListener.cpp
parent6798914b6fc93d6a9964129b734ec7d7be88d99b (diff)
downloadplatform-system-core-8444eb81b37991ce0fc4ae1d8d79b01688a02426.tar.gz
platform-system-core-8444eb81b37991ce0fc4ae1d8d79b01688a02426.tar.xz
platform-system-core-8444eb81b37991ce0fc4ae1d8d79b01688a02426.zip
logd: liblog: ALOG silently drops excessively long messages
Bug: 14280914 Change-Id: Idddd29784625094e54144953c29f64692a88eee9
Diffstat (limited to 'logd/LogListener.cpp')
-rw-r--r--logd/LogListener.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/logd/LogListener.cpp b/logd/LogListener.cpp
index ed5b39156..1d0a51cfd 100644
--- a/logd/LogListener.cpp
+++ b/logd/LogListener.cpp
@@ -31,7 +31,7 @@ LogListener::LogListener(LogBuffer *buf, LogReader *reader)
31{ } 31{ }
32 32
33bool LogListener::onDataAvailable(SocketClient *cli) { 33bool LogListener::onDataAvailable(SocketClient *cli) {
34 char buffer[sizeof_log_id_t + sizeof(log_time) + sizeof(char) 34 char buffer[sizeof_log_id_t + sizeof(uint16_t) + sizeof(log_time)
35 + LOGGER_ENTRY_MAX_PAYLOAD]; 35 + LOGGER_ENTRY_MAX_PAYLOAD];
36 struct iovec iov = { buffer, sizeof(buffer) }; 36 struct iovec iov = { buffer, sizeof(buffer) };
37 memset(buffer, 0, sizeof(buffer)); 37 memset(buffer, 0, sizeof(buffer));