Actions
Bug #2629
closedExclude: cannot decode ImplicitSha256DigestComponent
Start date:
03/09/2015
Due date:
% Done:
100%
Estimated time:
1.50 h
Description
Snippet to reproduce:
// g++ -std=c++0x x.cpp $(pkg-config --cflags --libs libndn-cxx)
#include <ndn-cxx/exclude.hpp>
using ndn::Exclude;
using ndn::Block;
int
main()
{
uint8_t WIRE[] = {
0x10, 0x22, // Exclude
0x01, 0x20, // ImplicitSha256DigestComponent
0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd,
0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd,
0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd,
0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd
};
Block block(WIRE, sizeof(WIRE));
Exclude exclude;
exclude.wireDecode(block);
return 0;
}
Expect: no error
Actual: Exclude::wireDecode
throws ndn::Exclude::Error
Files
Actions