M7350v7_en_gpl
This commit is contained in:
5
system/core/liblog/logprint.c
Normal file → Executable file
5
system/core/liblog/logprint.c
Normal file → Executable file
@ -359,6 +359,11 @@ int android_log_processLogBuffer(struct logger_entry *buf,
|
||||
entry->tid = buf->tid;
|
||||
entry->tag = buf->msg + 1;
|
||||
tag_len = strlen(entry->tag);
|
||||
if(buf->len < (tag_len + 3))
|
||||
{
|
||||
|
||||
return -1;
|
||||
}
|
||||
entry->messageLen = buf->len - tag_len - 3;
|
||||
entry->message = entry->tag + tag_len + 1;
|
||||
|
||||
|
Reference in New Issue
Block a user