Actions
Bug #2729
closedBlock::fromStream decode error when TLV-LENGTH equals zero
Start date:
04/04/2015
Due date:
% Done:
100%
Estimated time:
0.50 h
Description
Snippet to reproduce:
uint8_t BUFFER[] = { 0x07, 0x00 };
std::stringstream stream;
stream.write(reinterpret_cast<const char*>(BUFFER), sizeof(BUFFER));
stream.seekg(0);
Block::fromStream(stream);
Expected: no error
Actual: "Not enough data in the buffer to fully parse TLV"
Actions