diff options
author | Kilian Kilger <kkilger@gmail.com> | 2024-05-26 10:41:12 +0200 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2024-06-11 09:50:08 -0600 |
commit | 8130c1a430c952f65b621aee2c801316a61fab14 (patch) | |
tree | b8b72230620014d2d8e63d9d27af434414942a3d /gdb/gmp-utils.h | |
parent | ce6b89bfdfd530551a6c00761aaf1e4bb204c2be (diff) | |
download | binutils-8130c1a430c952f65b621aee2c801316a61fab14.zip binutils-8130c1a430c952f65b621aee2c801316a61fab14.tar.gz binutils-8130c1a430c952f65b621aee2c801316a61fab14.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.
Diffstat (limited to 'gdb/gmp-utils.h')
0 files changed, 0 insertions, 0 deletions