Forwarding a question asked on xenserver list.
---------- Forwarded message ----------
From: Shakeel Butt <shakeel.butt@gmail.com>
Date: Mon, Feb 24, 2014 at 6:10 PM
Subject: libxenserver crash
To: "xs-devel@lists.xenserver.org" <xs-devel@lists.xenserver.org>
Hi all,
I am trying to use libxenserver from XenServer 6.2.0 SDK but it is
crashing whenever I tried to free the records returned by
libxenserver. More specifically the program is crashing on the
following line for all the modules having function like
"*_record_map_free".
*_record_opt_free(map->contents[i].key);
On further investigation, in "xen_common.c::parse_into" the key is
just a malloc(ed) string but *_record_opt_free is assuming that the
key is of type struct *_record_opt and try to access its field which
is crashing.
Is this known issue or am I missing something?
thanks,
Shakeel
_______________________________________________
Xen-api mailing list
Xen-api@lists.xen.org
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
---------- Forwarded message ----------
From: Shakeel Butt <shakeel.butt@gmail.com>
Date: Mon, Feb 24, 2014 at 6:10 PM
Subject: libxenserver crash
To: "xs-devel@lists.xenserver.org" <xs-devel@lists.xenserver.org>
Hi all,
I am trying to use libxenserver from XenServer 6.2.0 SDK but it is
crashing whenever I tried to free the records returned by
libxenserver. More specifically the program is crashing on the
following line for all the modules having function like
"*_record_map_free".
*_record_opt_free(map->contents[i].key);
On further investigation, in "xen_common.c::parse_into" the key is
just a malloc(ed) string but *_record_opt_free is assuming that the
key is of type struct *_record_opt and try to access its field which
is crashing.
Is this known issue or am I missing something?
thanks,
Shakeel
_______________________________________________
Xen-api mailing list
Xen-api@lists.xen.org
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api