Actions
Bug #3256
closedlp::Packet::wireDecode does not check TLV-TYPE
Start date:
10/09/2015
Due date:
% Done:
0%
Estimated time:
0.50 h
Description
Snippet to reproduce:
// g++ -o x -std=c++0x x.cpp $(pkg-config --cflags --libs libndn-cxx)
#include <ndn-cxx/lp/packet.hpp>
#include <ndn-cxx/encoding/block-helpers.hpp>
using namespace ndn;
int main()
{
Block packet = encoding::makeEmptyBlock(tlv::Name);
lp::Packet lpPacket(packet);
return 0;
}
Expected: exception
Actual: no exception
Actions