Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » In some cases CParser can be out of buffer
Re: In some cases CParser can be out of buffer [message #20523 is a reply to message #20514] Sun, 22 March 2009 09:06 Go to previous messageGo to previous message
gridem is currently offline  gridem
Messages: 45
Registered: August 2008
Member
luzr wrote on Sun, 22 March 2009 02:07



I am perhaps missing something. Which cases? Do you have any testcase demostrating the problem?

(Note that you should not call GetChar when IsEof...)

Mirek


Yes, in case of calling GetChar twice without check on IsEof() (it can be treated as error of using CParser yet). But the function SkipTerm already has this check: two subsequent calls of SkipTerm work fine.

There is another issue: when CParser::term == '\n' and the function CParser::SkipTerm() is called than CParser::line will not be increased.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: bug StaticConditionVariable::Initialize() has no implementation
Next Topic: The problem with 'Null'
Goto Forum:
  


Current Time: Thu Jun 13 01:14:57 CEST 2024

Total time taken to generate the page: 0.02403 seconds