metajack/libstrophe — Issue #13: A parameter of xmpp_conn_t is not initialized.
Author: curse666
Created: 2012-01-16 07:56:36+00:00
State: open

Hi every one.

Thank you for create this library. This is great help for our project.

I had experienced a bug which caused by this library.
The bug was brought by Initialization leak "state" of xmpp_conn_t structure.
Architecture of memory allocation of our architecture is allocate memory with not initialized value.
So, undefined behavior sometimes occurred.

We solved this problem by initializing "state" by "XMPP STATE DISCONNECTED" in "xmpp_conn_new" function.

Thanks.