Re: [xml] Problem In Deprecated Catalog API
- From: Daniel Veillard <veillard redhat com>
- To: Igor Zlatkovic <igor zlatkovic com>
- Cc: xml gnome org
- Subject: Re: [xml] Problem In Deprecated Catalog API
- Date: Mon, 17 May 2004 22:48:25 -0400
On Mon, May 17, 2004 at 09:36:29PM +0200, Igor Zlatkovic wrote:
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
Damn, it's my fault, I moved the variables from static to local...blame
me I made a big mistake last sunday. We should revert that in CVS at least.
Daniel
--
Daniel Veillard | Red Hat Desktop team http://redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]