]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
fix division by zero in target_read_string()
authorKilian Kilger <kkilger@gmail.com>
Sun, 26 May 2024 08:41:12 +0000 (10:41 +0200)
committerTom Tromey <tromey@adacore.com>
Tue, 11 Jun 2024 15:50:08 +0000 (09:50 -0600)
commit8130c1a430c952f65b621aee2c801316a61fab14
treeb8b72230620014d2d8e63d9d27af434414942a3d
parentce6b89bfdfd530551a6c00761aaf1e4bb204c2be
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.
gdb/python/py-lazy-string.c