Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 251447 Details for
Bug 341743
sys-devel/gcc-4.5.1 -fno-strict-overflow causes bad code generation (exercised by sys-devel/patch-2.6.1 on hardened)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
testcase.c file as reported in the comments
testcase.c (text/plain), 480 bytes, created by
Diego Elio Pettenò (RETIRED)
on 2010-10-21 14:03:42 UTC
(
hide
)
Description:
testcase.c file as reported in the comments
Filename:
MIME Type:
Creator:
Diego Elio Pettenò (RETIRED)
Created:
2010-10-21 14:03:42 UTC
Size:
480 bytes
patch
obsolete
>#include <stdio.h> > >static char const * >parse_ranged (char const *s, int digits) >{ > fprintf(stderr, "%p\n", s); > int n = 0; > char const *lim = s + digits; > while (s < lim) > { > unsigned d = *s++ - '0'; > if (9 < d) > return 0; > n = 10 * n + d; > } > return s && 0 <= n && n <= 59 ? s : 0; >} > >int main() >{ > const char *s = "10092240"; > > s = parse_ranged (s, 2); > s = parse_ranged (s, 2); > s = parse_ranged (s, 2); > s = parse_ranged (s, 2); > > return 0; >}
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 341743
:
251223
|
251225
| 251447 |
254577