Fixed buffer overrun in template parsing.

This commit is contained in:
Ianos Gnatiuc 2006-07-03 04:05:16 +00:00
parent 501d7c1aa8
commit 9702c54802
3 changed files with 5 additions and 1 deletions

View File

@ -10,6 +10,7 @@ _____________________________________________________________________________
‡ ¬¥âª¨ ¤«ï GoldED+ 1.1.5, /snapshot/
_____________________________________________________________________________
- Golded+ ¬®£ 㯠áâì ¢® ¢à¥¬ï ¯ àᨭ£  ⥬¯«¥©â  ¨§-§  ¢ë室  §  £à ­¨æã ¡ãä¥à .
+ <20>®¤¤¥à¦ª  ª¥©¢®à¤  'set' ¢ fidoconfig-¥.
- Golded+ ¬®£ 㯠áâì ¢® ¢à¥¬ï ¯ àᨭ£  fidoconfig- .
- ˆá¯à ¢«¥­ ¡ £ ¢ á⥪¥ ®âª â  । ªâ®à , ¯à¨ ª®â®à®¬ £®«¤¥¤ ¯à®¡®¢ « ¯à®ç¥áâì ¯®

View File

@ -10,6 +10,8 @@ ______________________________________________________________________
Notes for GoldED+ 1.1.5, /snapshot/
______________________________________________________________________
- Fixed buffer overrun in template parsing.
+ Support for keyword 'set' in fidoconfig.
- Golded+ can crash when parsing fidoconfig.

View File

@ -62,7 +62,8 @@ static bool tokenxchg(std::string &input, std::string::iterator &pos,
for (int i = 0; i < cnt; i++)
{
std::string::iterator beg = tokend;
if (*beg++ != '{') break;
if ((beg == input.end()) || (*beg++ != '{'))
break;
std::string::iterator end;
for (end = beg; end != input.end(); end++)