Project

General

Profile

Bug #1528

Updated by Alex Afanasyev over 10 years ago

Original report 

 > I got an unconfirmed report that when Interest is validated, but CommandParameters are malformed, NFD does not properly handle the exception and terminates. 

 Most likely this problem If it is due true, we need to inconsistent use of exception throwing.    In particular, most wire errors will trigger an exception that is derived from Tlv::Error (which is handled in various places).    At the same time, some exceptions that can be caused by malformed packet do not derive from Tlv::Error.    In particular, errors in Name, name::Component, Exclude, KeyLocator, Signature, and may be some others are directly inherited from runtime_error. 
 fix this.

Back