Bug #2222
Updated by fixeria almost 7 years ago
Look at include/osmocom/gsm/tlv.h:63 <pre> /*! \brief gross length of vTvLV (tag+len+val) */ static inline uint16_t VTVLV_GAN_GROSS_LEN(uint16_t tag, uint16_t len) { uint16_t ret; if (len <= TVLV_MAX_ONEBYTE) return TLV_GROSS_LEN(len); else return TL16V_GROSS_LEN(len); if (tag > TVLV_MAX_ONEBYTE) ret += 1; return ret; } </pre> Second condition is unreachable part of code.