bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CommonC++-1.4.2 engine.cpp


From: David Sugar
Subject: Re: CommonC++-1.4.2 engine.cpp
Date: Tue, 05 Jun 2001 10:03:29 -0400
User-agent: Mozilla/5.0 (X11; U; Linux 2.2.16-9mdk i686; en-US; m18) Gecko/20001013

Done and in cvs shortly...

OSP Dresden wrote:

Hello developers,

I found a bug at
void Engine::ReadBinary(uint8* data, uint32 size) THROWS
(Engine::Exception)
{
  ...
  // Next we have to deal such that, until we have a full output buffer,
  // (Or we run out of input)
  if (myUnderlyingStream.good())
  {
    ... 
  }
  else
  {
    // Oh dear - we ran out of input on the buffer.
    // Maybe we can still inflate some
    inflate(&myZStream,0);
    if (myZStream.avail_out == MAX_BUFFER)
    // THROW (PersistException(string("Oh dear - ran out of input")));
    THROW (Exception(string("Oh dear - ran out of input")));

  }
  ...   
}
Change "PersistException" into "Exception"

Best wishes

U.Merkel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]