Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False reports when printing floats using printf #58

Open
derekbruening opened this issue Nov 28, 2014 · 1 comment
Open

False reports when printing floats using printf #58

derekbruening opened this issue Nov 28, 2014 · 1 comment

Comments

@derekbruening
Copy link
Contributor

From timurrrr@google.com on September 29, 2010 09:44:53

As of r57 ,
===test.c===
#include <stdio.h>

int main(void) {
printf("%5.2f\n", 123456.789);
return 0;
}

Gives reports like these:
Error #6: UNINITIALIZED READ: reading 0x0012fa06-0x0012fa08 2 byte(s) within 0x0012fa06-0x0012fa0a
@0:00:01.890 in thread 2404
0x0042fba1 <test.exe+0x2fba1> test.exe!__ld12mul
??:0
0x0042f85f <test.exe+0x2f85f> test.exe!__multtenpow12
??:0
0x004300b1 <test.exe+0x300b1> test.exe!$I10_OUTPUT
??:0
0x0041aa25 <test.exe+0x1aa25> test.exe!_fltout2
??:0
0x004057ac <test.exe+0x57ac> test.exe!_cftof_l
??:0
0x00405e5b <test.exe+0x5e5b> test.exe!_cfltcvt_l
??:0
0x0040280a <test.exe+0x280a> test.exe!_output_l
f:\dd\vctools\crt_bld\self_x86\crt\src\output.c:1828
0x00401120 <test.exe+0x1120> test.exe!printf
f:\dd\vctools\crt_bld\self_x86\crt\src\printf.c:63
0x00401029 <test.exe+0x1029> test.exe!main
z:\dr-sandbox\issues\timers\test.c:4
...

Original issue: http://code.google.com/p/drmemory/issues/detail?id=58

@derekbruening
Copy link
Contributor Author

From timurrrr@google.com on September 29, 2010 07:05:48

Such reports go away if we suppress
UNINITIALIZED READ
...
*!_cfltcvt_l

Labels: -Priority-Medium Priority-Low

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant