[Box Backup-dev] Problem/unportability with malloc(0) on AIX

Stefan Norlin boxbackup-dev at fluffy.co.uk
Mon Apr 24 15:23:21 BST 2006


> 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




More information about the Boxbackup-dev mailing list