Commit ac53fea032056fef6cc73f7356e6e126017a6023

Authored by Wiebe Cazemier
1 parent 2ec623d5

Remove assert that also has an exception

The only thing it did was false trip the fuzzer.
Showing 1 changed file with 0 additions and 2 deletions
mqttpacket.cpp
@@ -1449,8 +1449,6 @@ size_t MqttPacket::remainingAfterPos() @@ -1449,8 +1449,6 @@ size_t MqttPacket::remainingAfterPos()
1449 1449
1450 size_t MqttPacket::decodeVariableByteIntAtPos() 1450 size_t MqttPacket::decodeVariableByteIntAtPos()
1451 { 1451 {
1452 - assert(pos < bites.size());  
1453 -  
1454 uint64_t multiplier = 1; 1452 uint64_t multiplier = 1;
1455 size_t value = 0; 1453 size_t value = 0;
1456 uint8_t encodedByte = 0; 1454 uint8_t encodedByte = 0;