Fix an illegal memory access triggered by an attempt to parse a corrupt input file. PR 28046 * dwarf2.c (read_ranges): Check that range_ptr does not exceed range_end.