Project

General

Profile

Actions

Bug #3256

closed

lp::Packet::wireDecode does not check TLV-TYPE

Added by Junxiao Shi about 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Base
Target version:
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 #1

Updated by Eric Newberry about 9 years ago

  • Status changed from New to In Progress
Actions #2

Updated by Eric Newberry about 9 years ago

  • Status changed from In Progress to Code review
Actions #3

Updated by Eric Newberry about 9 years ago

  • Status changed from Code review to Closed
Actions

Also available in: Atom PDF