android_system_core/debuggerd
Christopher Ferris 6a5db68385 Remove non-UTF8 characters from string fields.
The string type in the tombstone proto does not support non-UTF8
characters. Therefore, use the oct_encode function to encode the
abort_message field and message field from LogMessage.

Fix up stl includes, add ones that were missing and remove those not
being used.

Add new unit test to verify that the abort and log messages are
sanitized.

Bug: 279496937
Bug: 377940849
Bug: 378185483

Test: All unit tests pass.
Test: Ran pbtombstone on a crash with non-UTF8 characters and verified
Test: it processes properly after this change and fails before the change.
Change-Id: I3554d56caf9fcbfc410b4d554f6c3b4888b37e28
2024-11-15 22:44:42 +00:00
..
client Make timeout messages distinct 2024-07-03 17:33:08 -07:00
common/include Add ability to handle multiple intercepts per pid. 2023-10-19 15:13:59 +00:00
crasher crasher: hide xom from help when unavailable 2024-05-16 13:53:02 -07:00
handler Add source of unwind when fatal error. 2024-11-14 03:59:29 +00:00
include/debuggerd [MTE] Implement permissive (recoverable) MTE for apps 2024-03-19 11:26:02 +01:00
libdebuggerd Remove non-UTF8 characters from string fields. 2024-11-15 22:44:42 +00:00
proto Make pbtombstone a host tool. 2024-10-30 14:42:55 -07:00
rust/tombstoned_client Format all of the blueprint files. 2024-02-26 13:34:38 -08:00
seccomp_policy Fix up the debuggerd policy files. 2024-02-22 16:23:46 -08:00
test_permissive_mte Remove dependencies on the 1-variant fallback 2024-10-22 16:33:50 -07:00
tombstoned Remove unnecessary std::move 2024-08-12 18:15:19 +08:00
.clang-format
Android.bp Add support for tombstone symbolization to pbtombstone. 2024-10-30 14:43:25 -07:00
crash_dump.cpp Remove log spam. 2024-10-19 00:25:12 +00:00
crash_test.cpp Add a test to verify the dex_pc is correct. 2021-09-15 22:14:28 +00:00
crash_test.h Add a test to verify the dex_pc is correct. 2021-09-15 22:14:28 +00:00
debuggerd.cpp debuggerd: dump frozen Java processes 2024-01-12 14:06:43 -08:00
debuggerd_benchmark.cpp debuggerd: add pause time benchmark. 2017-12-19 16:36:04 -08:00
debuggerd_test.cpp Remove non-UTF8 characters from string fields. 2024-11-15 22:44:42 +00:00
MODULE_LICENSE_APACHE2
OWNERS Remove jmgao from OWNERS files. 2021-08-10 21:42:14 -07:00
pbtombstone.cpp Add support for tombstone symbolization to pbtombstone. 2024-10-30 14:43:25 -07:00
protocol.h [MTE] Implement permissive (recoverable) MTE for apps 2024-03-19 11:26:02 +01:00
TEST_MAPPING Make sure debuggerd_test is run on device. 2024-04-25 13:57:52 -07:00
tombstone_handler.cpp Add tombstone_handler for crashes in Microdroid 2023-03-20 11:46:09 +00:00
tombstone_handler.h Add tombstone_handler for crashes in Microdroid 2023-03-20 11:46:09 +00:00
tombstone_symbolize.cpp Add support for tombstone symbolization to pbtombstone. 2024-10-30 14:43:25 -07:00
tombstone_symbolize.h Add support for tombstone symbolization to pbtombstone. 2024-10-30 14:43:25 -07:00
util.cpp Fix fallback paths for dumping threads. 2022-05-27 13:05:56 -07:00
util.h Dump threads in tombstone fallback path. 2022-02-16 15:02:38 -08:00