Sfoglia il codice sorgente

Fix processBinaryMessage freeing memory which it is not allowed

Only copying the buffer is not reallocating.
Setting realloced to true causes processBinaryMessage to call
UA_ByteArray_deleteMembers instead of connection->releaseRecvBuffer
Stefan Profanter 6 anni fa
parent
commit
2bd5563847
1 ha cambiato i file con 0 aggiunte e 1 eliminazioni
  1. 0 1
      src/ua_connection.c

+ 0 - 1
src/ua_connection.c

@@ -108,7 +108,6 @@ separateIncompleteChunk(UA_Connection *connection, UA_ByteString * UA_RESTRICT m
                 return retval;
             memcpy(connection->incompleteMessage.data, message->data, message->length);
             connection->releaseRecvBuffer(connection, message);
-            *realloced = true;
         } else {
             connection->incompleteMessage = *message;
             *message = UA_BYTESTRING_NULL;