[ELF] Correctly compute .gdb_index size when symbol's name offset overflows
if `nameOff` overflows, `size` may be underestimated. In writeTo, `memcpy(buf + sym.nameOff, sym.name.data(), sym.name.size());` may cause an out-of-bounds write, leading to a SIGSEGV.
Loading
Please sign in to comment