Description of problem: String buffer overflow (allocation fails to include room for trailing '\0') Version-Release number of selected component (if applicable): gdb-6.3.0.0-1.96 How reproducible: In ddd (gdb console) type b 'AnyView::~AnyView' Actual results: glibc detected memory corruption in free. Expected results: Set breakpoint. Additional info: The maximum extra size of the string should be 10, not 9. I calculate it as sizeof("'::base$(")+1.
Created attachment 130337 [details] Correctly calculate size of string to allocate
Patch confirmed as required and valid - for Red Hat patch gdb-6.3-linespec-20041213.patch (CVS release 1.2). Patch still needed for RPM built on top of "gdb-6.5.50.20060725-cvs". Upstream "gdb-6.5.50.20060725-cvs" is not affected by this Bug.
QE ack for 4.5.
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2007-0229.html