Project

General

Profile

Bug #17052 » ruby-addr2line-DW_FORM_ref_addr.patch

Correctly interpret the size of `DW_FORM_ref_addr` - xtkoba (Tee KOBAYASHI), 08/12/2021 09:56 PM

View differences:

addr2line.c
set_uint_value(v, read_uleb128(reader));
break;
case DW_FORM_ref_addr:
if (reader->address_size == 4) {
if (reader->format == 4) {
set_uint_value(v, read_uint32(&reader->p));
} else if (reader->address_size == 8) {
} else if (reader->format == 8) {
set_uint_value(v, read_uint64(&reader->p));
} else {
fprintf(stderr,"unknown address_size:%d", reader->address_size);
fprintf(stderr,"unknown format:%d", reader->format);
abort();
}
break;
(1-1/5)