Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 246809 Details for
Bug 318661
dev-scheme/bigloo fortify/aborts with gcc-4.5
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
testcase for x86_64
fortify-test.c (text/plain), 878 bytes, created by
Cyprien Nicolas (fulax)
on 2010-09-11 09:32:34 UTC
(
hide
)
Description:
testcase for x86_64
Filename:
MIME Type:
Creator:
Cyprien Nicolas (fulax)
Created:
2010-09-11 09:32:34 UTC
Size:
878 bytes
patch
obsolete
>#include <string.h> >#include "bigloo.h" > >obj_t my_make_string( int len, unsigned char c ) >{ > obj_t string = malloc( STRING_SIZE + len ); >#if( !defined( TAG_STRING ) ) > string->string_t.header = MAKE_HEADER( STRING_TYPE, 0 ); >#endif > string->string_t.length = len; > memset( &(string->string_t.char0), c, len ); > (&(string->string_t.char0))[ len ] = '\0'; > > return BSTRING( string ); >} > >obj_t my_get_cwd () >{ AN_OBJECT; > int arg_len = (int)(((long)1024)); > char * res; > > obj_t b_buf = my_make_string(((long)1024), ((unsigned char)' ')); > char * c_buf = BSTRING_TO_STRING(b_buf); > > printf("__bof(c_buf)=%lu\n", __bos(c_buf)); > res = (char *)(long)getcwd(c_buf, arg_len); > > return string_to_bstring(res); >} > > >int main (void) >{ > obj_t p; > printf("_FORTIFY_SOURCE=%d\n", _FORTIFY_SOURCE); > > p = my_get_cwd(); > printf("%p: %s\n", p, &(p->string_t.char0)); >}
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 Raw
Actions:
View
Attachments on
bug 318661
:
230517
|
244951
| 246809 |
247472