Emanuele Placidi <[email protected]> writes:

> Hi,
>  I would to point out a strange behaviour when storing in a structure an
> xmlChar pointer returned by xmlGetProp().
> In attach there is a very simple code which sig faults when compiled with gcc

Well I didn't get a segfault on my machine using gcc 4.5.2 and libxml2
2.7.8, but valgrind did indicate many errors. For instance line 369:

  reg=calloc(0,sizeof(struct register_desc));

You are allocating memory for 0 register_desc structs here. If this code
ever worked it was only by accident.
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to