aboutsummaryrefslogtreecommitdiff
path: root/bfd/cpu-m10200.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-02-24 09:01:42 -0700
committerTom Tromey <tom@tromey.com>2022-02-24 14:38:08 -0700
commit4c937052c13b13053559a5aa2b1345545a185ca5 (patch)
treeda1c7680fef3345636fffc45b22592a59150f0f4 /bfd/cpu-m10200.c
parent7124770976d3f051532faf864013b76ab36249bf (diff)
downloadbinutils-4c937052c13b13053559a5aa2b1345545a185ca5.zip
binutils-4c937052c13b13053559a5aa2b1345545a185ca5.tar.gz
binutils-4c937052c13b13053559a5aa2b1345545a185ca5.tar.bz2
Fix crash in Fortran code
PR fortran/28801 points out a gdb crash that can be provoked by certain Fortran code. The bug is that f77_get_upperbound assumes the property is either a constant or undefined, but in this case it is PROP_LOCEXPR. This patch fixes the crash by making this function (and the lower-bound one as well) do the correct check before calling 'const_val'. Thanks to Andrew for writing the test case. Co-authored-by: Andrew Burgess <aburgess@redhat.com> Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=28801
Diffstat (limited to 'bfd/cpu-m10200.c')
0 files changed, 0 insertions, 0 deletions