diff options
author | Kilian Kilger <kkilger@gmail.com> | 2024-05-26 10:41:12 +0200 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2024-06-12 08:18:47 -0600 |
commit | 4239c6015a9353bd75f6c61709935312312ec605 (patch) | |
tree | ec874a0bc4d0936cc9e7ebe203547fd8287069cb /gdb/rust-parse.c | |
parent | f41400ee71f8cfa40b4fb784cbba231394b9c698 (diff) | |
download | gdb-4239c6015a9353bd75f6c61709935312312ec605.zip gdb-4239c6015a9353bd75f6c61709935312312ec605.tar.gz gdb-4239c6015a9353bd75f6c61709935312312ec605.tar.bz2 |
fix division by zero in target_read_string()
Under certain circumstances, a floating point exception in
target_read_string() can happen when the type has been obtained
by a call to stpy_lazy_string_elt_type(). In the latter function,
a call to check_typedef() has been forgotten. This makes
type->length = 0 in this case.
(cherry picked from commit 8130c1a430c952f65b621aee2c801316a61fab14)
Diffstat (limited to 'gdb/rust-parse.c')
0 files changed, 0 insertions, 0 deletions