summary refs log tree commit diff stats
path: root/results/scraper/launchpad-without-comments/1869497
blob: 823b580667304ebba58076717f3af37bac50e967 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
x86_cpu_gdb_read_register segfaults when gdb requests registers

When attempting to attach to the gdbstub, a segfault occurs.

I traced this down to a problem in a call to gdb_get_reg16 where the mem_buf
was being treated like a uint8_t* instead of a GByteArray.  The buffer passed
to gdb_get_reg16 ends up passing an invalid GByteArray pointer, which subsequently
causes a segfault in memcpy.

I have a fix for this - just need to educate myself on how to submit a patch.