[xml] Problem In Deprecated Catalog API



Hi,

The two functions xmlCatalogGetPublic and xmlCatalogGetSystem in catalog.c are deprecated, true enough. But...

Both have an execution path which returns the address of the local variable 'result'. This address isn't valid after the relevant function returns. This can cause various amounts of trouble.

Will someone's legs end up broken if I remove the code from these functions and delegate the call to xmlCatalogResolveSystem and xmlCatalogResolvePublic?

Ciao,
Igor



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