diff options
author | Tom Tromey <tom@tromey.com> | 2023-07-13 17:28:48 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-11-14 09:02:46 -0700 |
commit | 07b3255c3bae7126a0d679f957788560351eb236 (patch) | |
tree | 8348461b66c3c9da6781126b48808bfe4c924c7b /ld/testsuite/ld-elfcomm/common-3a.rd | |
parent | 5006ea556dad71c4c868cf5705e007e72e3b02b4 (diff) | |
download | gdb-07b3255c3bae7126a0d679f957788560351eb236.zip gdb-07b3255c3bae7126a0d679f957788560351eb236.tar.gz gdb-07b3255c3bae7126a0d679f957788560351eb236.tar.bz2 |
Filter invalid encodings from Linux thread names
On Linux, a thread can only be 16 bytes (including the trailing \0).
A user sent in a test case where this causes a truncated UTF-8
sequence, causing gdbserver to create invalid XML.
I went back and forth about different ways to solve this, and in the
end decided to fix it in gdbserver, with the reason being that it
seems important to generate correct XML for the <thread> response.
I am not totally sure whether the call to setlocale could have
unplanned consequences. This is needed, though, for nl_langinfo to
return the correct result.
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30618
Diffstat (limited to 'ld/testsuite/ld-elfcomm/common-3a.rd')
0 files changed, 0 insertions, 0 deletions