[ros-bugs] [Bug 1102] New: No return value checking could cause
segfault
ReactOS.Bugzilla at reactos.org
ReactOS.Bugzilla at reactos.org
Sat Dec 10 16:51:00 CET 2005
http://www.reactos.org/bugzilla/show_bug.cgi?id=1102
Summary: No return value checking could cause segfault
Product: ReactOS
Version: TRUNK
Platform: x86 Hardware
OS/Version: ReactOS
Status: NEW
Severity: normal
Priority: P3
Component: Win32
AssignedTo: ros-bugs at reactos.org
ReportedBy: mbealby at gmail.com
QAContact: ros-bugs at reactos.org
File: reactos/lib/kernel32/misc/dllmail.c
Func: DllMain
Line: 348 (svn revision 19963)
The return value from RtlAllocateHeap is not checked. If it fails null is
returned and the wcscpy function will seg-fault.
--- Broken code start ---
SystemDirectory.Buffer = RtlAllocateHeap(hProcessHeap, 0,
SystemDirectory.MaximumLength);
wcscpy(SystemDirectory.Buffer, WindowsDirectory.Buffer);
wcscat(SystemDirectory.Buffer, L"\\System32");
--- Broken code end ---
--
Configure bugmail: http://www.reactos.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
You are the QA contact for the bug, or are watching the QA contact.
More information about the Ros-bugs
mailing list