Project

General

Profile

Actions

Bug #3200

closed

Type mismatch in Selectors, MetaInfo, SignatureInfo, and ControlResponse

Added by Davide Pesavento about 9 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Base
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
1.50 h

Description

The NDN Packet Format spec defines {Min,Max}SuffixComponents and ChildSelector as nonNegativeInteger, which can be up to 8 octets long.
However, in ndn-cxx's Selectors class, these fields are declared as int, which is usually 32 bits long.

Same problem occurs in MetaInfo::m_type, SignatureInfo::m_type, and ControlResponse::m_code.


Related issues 1 (0 open1 closed)

Related to ndn-cxx - Bug #3974: Unsafe casts in ndn::nfd::*::wireDecode()ClosedJunxiao Shi

Actions
Actions

Also available in: Atom PDF