[xmlsec] xmlSecPtrListEnsureSize failing

Rob Richards rrichards at ctindustries.net
Thu Jan 22 10:36:08 PST 2004


From: Aleksey Sanin

> xmlRealloc() is realloc() eququivalent. And as far as I can remember,
> ANSI C realloc() MUST accept NULL pointer as first argument.
> 
> Aleksey

So then this can be considered a libxml2 bug then?

xmlRealloc() passes through to xmlReallocLoc()

xmlReallocLoc(void *ptr,size_t size, const char * file, int line)
{
MEMHDR *p;
unsigned long number;
if (!xmlMemInitialized) xmlInitMemory();
if (ptr == NULL)
return(NULL);
.....

it bombs out at if(ptr == NULL)

Rob







More information about the xmlsec mailing list