Changeset 4773


Ignore:
Timestamp:
Dec 11, 2000, 7:20:49 AM (24 years ago)
Author:
bird
Message:

Corrected fatal error in _strnlen; Test length before accessing the
character point to. This resulted in a fatal Trap 000e when invoked on a
string ending at the page boundrary with an invalid page following.

Location:
trunk/src/win32k
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/win32k/dev16/vprntf16.c

    r4164 r4773  
    1 /* $Id: vprntf16.c,v 1.3 2000-09-02 21:07:56 bird Exp $
     1/* $Id: vprntf16.c,v 1.4 2000-12-11 06:20:49 bird Exp $
    22 *
    33 * vprintf and printf - 16-bit.
     
    9393    const char *pszC = psz;
    9494
    95     while (*psz != '\0' && cchMax-- > 0)
     95    while (cchMax-- > 0 &&  *psz != '\0')
    9696        psz++;
    9797
  • TabularUnified trunk/src/win32k/misc/vprintf.c

    r4164 r4773  
    1 /* $Id: vprintf.c,v 1.8 2000-09-02 21:08:15 bird Exp $
     1/* $Id: vprintf.c,v 1.9 2000-12-11 06:20:48 bird Exp $
    22 *
    33 * vprintf and printf
     
    105105    const char *pszC = psz;
    106106
    107     while (*psz != '\0' && cchMax-- > 0)
     107    while (cchMax-- > 0 &&  *psz != '\0')
    108108        psz++;
    109109
  • TabularUnified trunk/src/win32k/misc/vsprintf.c

    r1678 r4773  
    1 /* $Id: vsprintf.c,v 1.4 1999-11-10 01:45:37 bird Exp $
     1/* $Id: vsprintf.c,v 1.5 2000-12-11 06:20:49 bird Exp $
    22 *
    33 * vsprintf and sprintf
     
    7575    const char *pszC = psz;
    7676
    77     while (*psz != '\0' && cchMax-- > 0)
     77    while (cchMax-- > 0 &&  *psz != '\0')
    7878        psz++;
    7979
Note: See TracChangeset for help on using the changeset viewer.