[Box Backup-dev] Problem/unportability with malloc(0) on AIX
Stefan Norlin
boxbackup-dev@fluffy.co.uk
Mon, 24 Apr 2006 16:23:21 +0200
> This is a bug in box, so if you can track down where it is being
> allocated we can look at fixing it.
Hi Martin,
it is the malloc in the section:
// Allocate a new block (this way to be exception safe)
char *pblock = (char*)malloc(size);
if(pblock == 0)
{
throw std::bad_alloc();
}
in lib/common/StreamableMemBlock.cpp
Function: void StreamableMemBlock::ReadFromStream(IOStream &rStream, int
Timeout)
Regards,
Stefan