android_system_core/debuggerd/libdebuggerd/include/libdebuggerd
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
..
backtrace.h Use the new AndroidUnwinder object. 2022-05-12 15:18:46 -07:00
gwp_asan.h Use the new AndroidUnwinder object. 2022-05-12 15:18:46 -07:00
open_files_list.h libdebuggerd: extract and print the fdsan table. 2018-08-06 18:50:10 -07:00
scudo.h Replace malloc_not_svelte with malloc_low_memory. 2024-04-26 13:33:26 -07:00
tombstone.h Make pbtombstone a host tool. 2024-10-30 14:42:55 -07:00
tombstone_proto_to_text.h Add support for tombstone symbolization to pbtombstone. 2024-10-30 14:43:25 -07:00
types.h [MTE] write stack history into tombstone 2024-08-20 18:04:01 -07:00
utility.h Make pbtombstone a host tool. 2024-10-30 14:42:55 -07:00
utility_host.h Remove non-UTF8 characters from string fields. 2024-11-15 22:44:42 +00:00