Просмотр исходного кода

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 лет назад: 7
Родитель
Сommit
2bd5563847
1 измененных файлов с 0 добавлено и 1 удалено
  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;