DynamoRIO / DynamoRIO/drmemory
UNINIT reports on PrintDlg function
- 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 July 28, 2011 11:58:45_
On XP 32-bits:
#
#include
#pragma comment(lib, "comdlg32.lib")
#include
int main() {
PRINTDLG opts = { sizeof(PRINTDLG) };
opts.Flags = PD_RETURNDC | PD_RETURNDEFAULT;
PrintDlg(&opts);
printf("PASS\n");
return 0;
}
#
UNINITIALIZED READ: reading 0x001830b4-0x001830b6 2 byte(s) within 0x001830b0-0x001830ce
system call NtGdiOpenDCW DEVMODEW dmFields through dmCollate [NtGdiOpenDCW - xref issue #501 ?]
0x77f1be2f GDI32.dll!bCreateDCW
0x77f1be50 GDI32.dll!CreateDCW
0x763cfc1d comdlg32.dll!PrintReturnICDC
0x763d004b comdlg32.dll!PrintReturnDefault
0x763d348e comdlg32.dll!PrintDlgX
0x763d4752 comdlg32.dll!PrintDlgA
0x0040103e test.exe!main
test.cpp:8
UNINITIALIZED READ: reading 0x00183124-0x00183130 12 byte(s) within 0x001830ce-0x00183144
system call NtGdiOpenDCW DEVMODEW dmFormName onward
0x77f1be2f GDI32.dll!bCreateDCW
0x77f1be50 GDI32.dll!CreateDCW
0x763cfc1d comdlg32.dll!PrintReturnICDC
0x763d004b comdlg32.dll!PrintReturnDefault
0x763d348e comdlg32.dll!PrintDlgX
0x763d4752 comdlg32.dll!PrintDlgA
0x0040103e test.exe!main
test.cpp:8
UNINITIALIZED READ: reading 0x00183148-0x001831b4 108 byte(s) within 0x00183144-0x00183a24
@0:00:11.721 in thread 528
system call NtGdiOpenDCW DEVMODEW driver extra info
0x77f1be2f GDI32.dll!bCreateDCW
0x77f1be50 GDI32.dll!CreateDCW
0x763cfc1d comdlg32.dll!PrintReturnICDC
0x763d004b comdlg32.dll!PrintReturnDefault
0x763d348e comdlg32.dll!PrintDlgX
0x763d4752 comdlg32.dll!PrintDlgA
0x0040103e test.exe!main
test.cpp:8
[and more]
_Original issue: http://code.google.com/p/drmemory/issues/detail?id=518_
Contributor guide
Assessment
This issue has not been assessed yet.