platform_system_core/liblog
Keith Preston b45b5c9f22 Fix Heap Corruption from too long of a TAG
snprintf has a weird return value.   It returns what would have been written given a large enough buffer.
In the case that the prefix is longer then our buffer(128), it messes up the calculations below possibly causing heap corruption.
To avoid this we double check and set the length at the maximum (size minus null byte
2010-02-18 15:33:28 -06:00
..
Android.mk auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
NOTICE Automated import from //branches/donutburger/...@140818,140818 2009-03-24 18:36:55 -07:00
event_tag_map.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
fake_log_device.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
logd_write.c eclair snapshot 2009-11-12 18:46:23 -08:00
logprint.c Fix Heap Corruption from too long of a TAG 2010-02-18 15:33:28 -06:00