Created attachment 148031 [details]
the patch to gdb 7.8_3
This patch solve an issue, using strcpy; now strncpy is used using moreover the right size (Thanks to James Muchow)
Adding the signal trampoline detection via the new sysctl. If the new sysctl is not available, gdb still uses the old sysctl.
Removing also some gcc specific warning options, causing tons of unuseful warnings.
A commit references this bug:
Date: Tue Oct 7 10:25:44 UTC 2014
New revision: 370292
- Fix a buffer overflow when copying a string
- Use sysctl KERN_PROC_SIGTRAMP to retrieve the signal trampoline
location for the native amd64 ABI. This fixes unwinding over the
signal frame after trampoline was moved to the shared page.
- Remove some gcc specific warning flags
Submitted by: email@example.com (maintainer)