DynamoRIO / DynamoRIO/drmemory
[False?] leak reports on MessageBox
- 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 11:39:12_
As of r57 , the following code:
===test.c===
#include
#pragma comment(lib, "user32.lib")
int main(void) {
MessageBox(NULL, "Test", "Caption", MB_OK);
return 0;
}
#
(compiled with "cl /Zi /MTd")
gives 63 uninits + 1 unaddr reports like:
Error `#1`: UNINITIALIZED READ: reading 0x0012f9e4-0x0012f9e5 1 byte(s)
@0:00:02.141 in thread 3664
0x74dcabc3 USP10.dll!UspFreeMem
??:0
0x74da49cd USP10.dll!ScriptIsComplex
??:0
0x629c32bf LPK.dll!LpkGetTextExtentExPoint
??:0
0x77f175f9 GDI32.dll!CreateCompatibleBitmap
??:0
0x77f16b25 GDI32.dll!GetTextExtentPointW
??:0
0x7e43a462 USER32.dll!SoftModalMessageBox
??:0
0x7e43a2bc USER32.dll!MessageBoxIndirectA
??:0
0x7e4663fd USER32.dll!MessageBoxTimeoutW
??:0
0x7e4664a2 USER32.dll!MessageBoxTimeoutA
??:0
0x7e450877 USER32.dll!MessageBoxExA
??:0
0x7e45082f USER32.dll!MessageBoxA
??:0
0x00401027 test.exe!main
z:\dr-sandbox\issues\msgbox\test.c:6
...
Error `#9`: UNINITIALIZED READ: reading register cx
@0:00:02.798 in thread 3664
0x7c80aa24 KERNEL32.dll!GetLocalTime
??:0
0x7c80aa8c KERNEL32.dll!lstrcmpW
??:0
0x74da74db USP10.dll!ScriptApplyDigitSubstitution
??:0
0x74da75e2 USP10.dll!ScriptApplyDigitSubstitution
??:0
0x74da82ea USP10.dll!ScriptApplyDigitSubstitution
??:0
0x74da506a USP10.dll!ScriptApplyDigitSubstitution
??:0
0x74da581a USP10.dll!ScriptApplyDigitSubstitution
??:0
0x74da5a8e USP10.dll!ScriptApplyDigitSubstitution
??:0
0x74da5ea3 USP10.dll!ScriptApplyDigitSubstitution
??:0
0x74da5f8b USP10.dll!ScriptApplyDigitSubstitution
??:0
0x74da4186 USP10.dll!ScriptStringAnalyse
??:0
0x629c48f8 LPK.dll!LpkTabbedTextOut
??:0
0x629c4651 LPK.dll!LpkTabbedTextOut
??:0
0x629c1269 LPK.dll!LpkDrawTextEx
??:0
0x7e44e667 USER32.dll!DeregisterShellHookWindow
??:0
0x7e42bae3 USER32.dll!DrawTextExW
??:0
0x7e42b5a1 USER32.dll!DrawTextExW
??:0
0x7e42b433 USER32.dll!DrawTextExW
??:0
0x7e43a566 USER32.dll!SoftModalMessageBox
??:0
0x7e43a2bc USER32.dll!MessageBoxIndirectA
??:0
...
_Original issue: http://code.google.com/p/drmemory/issues/detail?id=60_
Contributor guide
Assessment
This issue has not been assessed yet.