Hi,
The Assert(buffer != NULL) is placed after the buffer is accessed,which could lead to a segmentation fault before the check is executed.
Attached a small patch to correct that.
--Regards,Amul SulEDB: http://www.enterprisedb.com