Project

General

Profile

Bug #1970

Updated by Junxiao Shi over 9 years ago

Snippet to reproduce: 

     echo -ne '\x05\x34\x07\x10\x08\x03\x6e\x64\x6e\x08\x03\x65\x64\x75\x08\x04\x75\x63\x6c\x61\x09\x13\x0d\x01\x00\x0e\x01\x00\x0f\x04\x07\x00\x1d\x00\x10\x00\x11\x01\x00\x12\x00\x0a\x04\xdd\x64\x58\x92\x0b\x01\x00\x0c\x02\x0f\xa0' | nc -U /var/run/nfd.sock 

 ``` 
 Block block(tlv::Exclude); 
 try { 
   Exclude exclude(block); 
 } 
 catch(tlv::Error&) { 
 } 
 ``` 

 Expected: `Exclude` throws a `tlv::Error` which can be caught   
 Actual: segmentation fault NFD crashes

Back