This is the mail archive of the 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
>Release:        gcc version 2.95.3 20010315 (release)
SunOS 5.7 Generic_106541-16 sun4u sparc SUNW,Ultra-5_10
gcc version 2.95.3 20010315 (release)
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


Content-Type: application/octet-stream; name="test.c.gz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.c.gz"


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