This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c/3844: UMR in sprintf for format %LE



>Number:         3844
>Category:       c
>Synopsis:       UMR in sprintf for format %LE
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 27 10:06:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     zhegulev@sigma.ispras.ru
>Release:        gcc version 2.95.3 20010315 (release)
>Organization:
>Environment:
SunOS 5.7 Generic_106541-16 sun4u sparc SUNW,Ultra-5_10
gcc version 2.95.3 20010315 (release)
>Description:
file: test.c

#include <stdio.h>

int main()
{
  char s[128];
  sprintf(s,"%LE\n",(long double)10);
  return 0;
}

If compiled with purify
Purify reports about UMR

same code on HP 10.20
receives segmentation fault
>How-To-Repeat:

>Fix:

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

H4sICBKXYTsAA3Rlc3QuYwBTzsxLzilNSVWwKS5JyczXy7Dj4srMK1HITczM09DkquZSUEjOSCxS
KI42NLKItQZyiwuKgArSNIp1lFR9XGPylHQ0cvLz0hVS8kuTclI1DQ00QaqKUktKi/IUDKy5arkA
aj8oHGQAAAA=


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]