Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 188091 Details for
Bug 231893
sys-apps/ed: Segmentation Fault on Alpha when built with -O2 -finline-functions
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch against 1.2 (should work on other versions)
inline_segfault.patch (text/plain), 884 bytes, created by
Matthew Kern
on 2009-04-12 14:54:19 UTC
(
hide
)
Description:
patch against 1.2 (should work on other versions)
Filename:
MIME Type:
Creator:
Matthew Kern
Created:
2009-04-12 14:54:19 UTC
Size:
884 bytes
patch
obsolete
>--- ed-1.2/carg_parser.c.old 2009-01-15 06:24:29.000000000 -0500 >+++ ed-1.2/carg_parser.c 2009-04-12 11:39:56.000000000 -0400 >@@ -14,21 +14,20 @@ > You should have received a copy of the GNU General Public License > along with this program. If not, see <http://www.gnu.org/licenses/>. > */ >- > #include <stdlib.h> > #include <string.h> > > #include "carg_parser.h" > >- > /* assure at least a minimum size for buffer `buf' */ >-char ap_resize_buffer( void *buf, const int min_size ) >+char ap_resize_buffer( void **buf, const int min_size ) > { >- void *new_buf = 0; >- if( *(void **)buf ) new_buf = realloc( *(void **)buf, min_size ); >- else new_buf = malloc( min_size ); >- if( !new_buf ) return 0; >- *(void **)buf = new_buf; >+ void *old_buf = *buf; >+ *buf = realloc(*buf, min_size); >+ if (*buf == NULL) { >+ *buf = old_buf; >+ return 0; >+ } > return 1; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 231893
:
160478
|
160480
|
188091
|
188308