Changeset 9680


Ignore:
Timestamp:
Jan 16, 2003, 1:47:52 PM (22 years ago)
Author:
sandervl
Message:

Fixed heap corruption in CreateProcess (with current dir)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/kernel32/wprocess.cpp

    r9678 r9680  
    1 /* $Id: wprocess.cpp,v 1.173 2003-01-16 00:44:32 sandervl Exp $ */
     1/* $Id: wprocess.cpp,v 1.174 2003-01-16 12:47:52 sandervl Exp $ */
    22
    33/*
     
    20302030            char *newcmdline;
    20312031
    2032             newcmdline = (char *)malloc(strlen(lpCurrentDirectory) + iNewCommandLineLength + strlen(lpszPE) + 16);
     2032            newcmdline = (char *)malloc(strlen(lpCurrentDirectory) + iNewCommandLineLength + strlen(lpszPE) + 64);
    20332033            sprintf(newcmdline, "%s /OPT:[CURDIR=%s] %s %s", lpszPE, lpCurrentDirectory, szAppName, lpCommandLine);
    20342034            free(cmdline);
Note: See TracChangeset for help on using the changeset viewer.