cn-uofbasel / ccn-lite

CCN-lite, a lightweight implementation of the CCNx protocol and its variations
ISC License
74 stars 63 forks source link

len is garbage value in ccnl_ccnb_bytes2pkt in ccnl-pkt-ccnb #338

Open mfrey opened 5 years ago

mfrey commented 5 years ago

Description

The value of lenin file ccnl-pkt-ccnb.c in line 217 is a garbage value since the variable is never initialized and hence the performed check will fail.

Steps to reproduce the issue

This is a finding of clangs static code analyzer (can be retrieved via running our ./scan-build.sh script)