[ https://forge.continuent.org/jira/browse/CAROB-66?page=all ] Simon Csaba Endre closed CAROB-66: ----------------------------------
> byteArrayDeserializer is buggy > ------------------------------ > > Key: CAROB-66 > URL: https://forge.continuent.org/jira/browse/CAROB-66 > Project: Carob > Type: Bug > Components: C++ API > Versions: Carob 0.1 > Reporter: Zsolt Simon > Assignee: Simon Csaba Endre > Fix For: Carob 0.5 > > Time Spent: 2 hours > Remaining: 0 minutes > > byteArrayDeserializer is not working. > The problem is, after the length is received, it tries to read int32 x length > bytes from the stream, which is not correct. > A solution to this could be either using > input.receiveFromSocket(L"byteArrayDeserializer", L"byteArray", > byteArrayRead, baLength, 0) or input.recvFully(byteArrayRead, baLength, > 0), but both methods are not public. > Also at storing this byteArray to the res.as_other, the length of this array > is lost. Another problem is that the allocated structure is never released > from the memory => memory leak. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://forge.continuent.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira _______________________________________________ Carob mailing list [email protected] https://forge.continuent.org/mailman/listinfo/carob
