https://bugs.winehq.org/show_bug.cgi?id=38159
Bug ID: 38159 Summary: NULL pointer dereferencing Product: Wine Version: 1.7.37 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: kernel32 Assignee: wine-bugs@winehq.org Reporter: isakov-sl@bk.ru Distribution: ---
File /dlls/krnl386.exe16/int2f.c Lines 1026-1034
if (!driver_request) { /* FIXME - to be deleted ?? */ ERR("ES:BX==0 ! SEGFAULT ?\n"); ERR("-->BX=0x%04x, ES=0x%04x, DS=0x%04x, CX=0x%04x\n", BX_reg(context), context->SegEs, context->SegDs, CX_reg(context)); driver_request[4] |= 0x80; driver_request[3] = 5; /* bad request length */ return; }
If driver_request == NULL then driver_request[4] will be NULL pointer dereferencing.