diff options
| author | Tom Tromey <tom@tromey.com> | 2025-09-13 15:32:50 -0600 |
|---|---|---|
| committer | Tom Tromey <tom@tromey.com> | 2025-10-05 14:59:01 -0600 |
| commit | ba597bdd245056667ca3a4ce0dc5264df7a58d80 (patch) | |
| tree | 1424ba64c1c34b0ffe8dd179baf5a5255f173bc3 /gdb/python/py-frame.c | |
| parent | eb781e047fa1bbb4de14154645265e060031c055 (diff) | |
| download | binutils-ba597bdd245056667ca3a4ce0dc5264df7a58d80.zip binutils-ba597bdd245056667ca3a4ce0dc5264df7a58d80.tar.gz binutils-ba597bdd245056667ca3a4ce0dc5264df7a58d80.tar.bz2 | |
Fix name checks in ctfread.c
I noticed that ctfread.c could create a symbol with the name "". This
happens because a couple of spots check that a name is not NULL -- but
libctf never returns such names. Instead check the string contents.
I left the NULL checks in for robustness.
Note that other spots in ctfread.c already do check the contents of
the name. I changed these to avoid strlen and instead check the first
character.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/python/py-frame.c')
0 files changed, 0 insertions, 0 deletions
