DynamoRIO / DynamoRIO/drmemory

False reports when printing floats using printf

Open
#58 1 comment 0 reactions 0 assignees View on GitHub
Bug-FalsePositive Migrated Priority-Low
Dominant language
C
Stars
2.7k
Forks
290
PR merge metrics
No merged PRs in 30d

Description

_From [timurrrr@google.com](https://code.google.com/u/timurrrr@google.com/) on September 29, 2010 09:44:53_

As of r57 ,
===test.c===
#include

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!__ld12mul
??:0
0x0042f85f test.exe!__multtenpow12
??:0
0x004300b1 test.exe!$I10_OUTPUT
??:0
0x0041aa25 test.exe!_fltout2
??:0
0x004057ac test.exe!_cftof_l
??:0
0x00405e5b test.exe!_cfltcvt_l
??:0
0x0040280a test.exe!_output_l
f:\dd\vctools\crt_bld\self_x86\crt\src\output.c:1828
0x00401120 test.exe!printf
f:\dd\vctools\crt_bld\self_x86\crt\src\printf.c:63
0x00401029 test.exe!main
z:\dr-sandbox\issues\timers\test.c:4
...

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.