platform_system_core/liblog
Nick Kralevich e1ede1530f liblog: do better checks of log messages.
Testing:

The following test cases all passed and generated log entries:

 # echo -n '\03foo\0bar\0' > /dev/log/main
 # echo -n '\03\0bar\0' > /dev/log/main
 # echo -n '\03\0a\0' > /dev/log/main

The following entries were successfully processed by
logcat but produced no log entries:

 # echo -n '\03\0\0' > /dev/log/main
 # echo -n '\03a\0\0' > /dev/log/main
 # echo -n '\03b\0\0' > /dev/log/main

Also tested the pathological error condition:

 cat /dev/urandom > /dev/log/main

which produced many "+++ LOG: malformed log entry" errors.

Bug: 5478600
Change-Id: I53bc79507242dcfc14445746c29edf47be0a90b4
2011-10-18 15:37:15 -07:00
..
Android.mk Remove the simulator target from all makefiles. 2011-07-11 22:12:32 -07:00
event_tag_map.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
fake_log_device.c Fix SDK build. 2011-06-27 11:14:46 -07:00
logd_write.c Fix SDK build. 2011-06-27 11:14:46 -07:00
logprint.c liblog: do better checks of log messages. 2011-10-18 15:37:15 -07:00
NOTICE Automated import from //branches/donutburger/...@140818,140818 2009-03-24 18:36:55 -07:00