PennMUSH Community

Changeset 1238 for 1.8.3/branches

Show
Ignore:
Timestamp:
07/14/08 08:30:31 (5 months ago)
Author:
walker
Message:

Fix a security bug in pueblo re-parsing.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 1.8.3/branches/devel/src/parse.c

    r1150 r1238  
    796796 
    797797    switch (**str) { 
    798     case 0x1B:                 /* ANSI escapes. */ 
     798    case TAG_START: 
     799      /* Skip over until TAG_END. */ 
     800      for (; *str && **str && **str != TAG_END; (*str)++) 
     801        safe_chr(**str, buff, bp); 
     802      if (*str && **str) { 
     803        safe_chr(**str, buff, bp); 
     804        (*str)++; 
     805      } 
     806      break; 
     807    case ESC_CHAR:                 /* ANSI escapes. */ 
    799808      /* Skip over until the 'm' that matches the end. */ 
    800809      for (; *str && **str && **str != 'm'; (*str)++)