qflow / wamp

qt implementation of wamp protocol. Contains both router and client. Could be used from C++ and QML
GNU Lesser General Public License v3.0
9 stars 8 forks source link

Anonymous authentication causes crash #8

Open yinzara opened 6 years ago

yinzara commented 6 years ago

If you do not call "setUser" on the WampConnection and provide a username and password, when the WampConnection attempts to connect, the application crashes because of a memory allocation issue related to WampCraUser in the WampConnectionPrivate class

The primary issue seems to be the odd way that the parent of the WampCraUser class is managed. I believe if you just remove all the special code related to parent and use it as a standard QtObject struct, you remove any issues related to the memory management. I can't understand why the special parent management is necessary.

I have fixed this issue in my fork and will update when I have more information.