Navigation Menu

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

UNINIT reports on PrintDlg function #518

Open
derekbruening opened this issue Nov 28, 2014 · 0 comments
Open

UNINIT reports on PrintDlg function #518

derekbruening opened this issue Nov 28, 2014 · 0 comments

Comments

@derekbruening
Copy link
Contributor

From timurrrr@google.com on July 28, 2011 11:58:45

On XP 32-bits:

#include <windows.h>
#pragma comment(lib, "comdlg32.lib")
#include <stdio.h>

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+0xbe2f> GDI32.dll!bCreateDCW
0x77f1be50 <GDI32.dll+0xbe50> GDI32.dll!CreateDCW
0x763cfc1d <comdlg32.dll+0x1fc1d> comdlg32.dll!PrintReturnICDC
0x763d004b <comdlg32.dll+0x2004b> comdlg32.dll!PrintReturnDefault
0x763d348e <comdlg32.dll+0x2348e> comdlg32.dll!PrintDlgX
0x763d4752 <comdlg32.dll+0x24752> comdlg32.dll!PrintDlgA
0x0040103e <test.exe+0x103e> 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+0xbe2f> GDI32.dll!bCreateDCW
0x77f1be50 <GDI32.dll+0xbe50> GDI32.dll!CreateDCW
0x763cfc1d <comdlg32.dll+0x1fc1d> comdlg32.dll!PrintReturnICDC
0x763d004b <comdlg32.dll+0x2004b> comdlg32.dll!PrintReturnDefault
0x763d348e <comdlg32.dll+0x2348e> comdlg32.dll!PrintDlgX
0x763d4752 <comdlg32.dll+0x24752> comdlg32.dll!PrintDlgA
0x0040103e <test.exe+0x103e> 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+0xbe2f> GDI32.dll!bCreateDCW
0x77f1be50 <GDI32.dll+0xbe50> GDI32.dll!CreateDCW
0x763cfc1d <comdlg32.dll+0x1fc1d> comdlg32.dll!PrintReturnICDC
0x763d004b <comdlg32.dll+0x2004b> comdlg32.dll!PrintReturnDefault
0x763d348e <comdlg32.dll+0x2348e> comdlg32.dll!PrintDlgX
0x763d4752 <comdlg32.dll+0x24752> comdlg32.dll!PrintDlgA
0x0040103e <test.exe+0x103e> test.exe!main
test.cpp:8

[and more]

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

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