c/10339: strncmp generates imPure code

ubell@sleepycat.com ubell@sleepycat.com
Mon Apr 7 16:16:00 GMT 2003


>Number:         10339
>Category:       c
>Synopsis:       strncmp generates imPure code
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 07 16:16:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Michael Ubell
>Release:        gcc (GCC) 3.2.2
>Organization:
>Environment:
SunOS bear 5.8 Generic_108528-03 sun4u sparc SUNW,Ultra-60
>Description:
generated code reads past end of allocated string
>How-To-Repeat:
gcc -O -S test.c
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="test.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.c"

bWFpbigpIHsKCWNoYXIgKm5hbWUxLCAqbmFtZTsKCgluYW1lID0gbWFsbG9jKDMpOwoKCXN0cmNw
eShuYW1lLCAieHgiKTsKCglleGl0KHN0cm5jbXAoImxvZy4iLCBuYW1lLCA0KSk7CgkKfQo=



More information about the Gcc-bugs mailing list