Changeset 2984 for trunk


Ignore:
Timestamp:
Apr 2, 2007, 12:34:03 AM (18 years ago)
Author:
bird
Message:

Guard against double truncation. Fixes #137

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/emx/src/emxomf/emxomf.c

    r2431 r2984  
    809809{
    810810    if (    cch > SYMBOL_MAX_LENGTH
     811        &&  !strstr(pszName + SYMBOL_MAX_LENGTH - SYMBOL_WEAK_LENGTH, "!_")
    811812        &&  !strstr(pszName + SYMBOL_MAX_LENGTH - SYMBOL_WEAK_LENGTH, "$w$"))
    812813    {
     
    835836    else
    836837    {
     838        assert(cch <= 0xff);
     839        cch &= 0xff;
    837840        if (!fits(1+cch))
    838841            doesn_fit();
Note: See TracChangeset for help on using the changeset viewer.