tlv: Make tlv parser arrays 256 entries wide to prevent overflow on 0xff
[osmocom-bb.git] / include / osmocom / gsm / tlv.h
index 552af2b..1e59cca 100644 (file)
@@ -236,11 +236,11 @@ struct tlv_def {
 };
 
 struct tlv_definition {
-       struct tlv_def def[0xff];
+       struct tlv_def def[265];
 };
 
 struct tlv_parsed {
-       struct tlv_p_entry lv[0xff];
+       struct tlv_p_entry lv[265];
 };
 
 extern struct tlv_definition tvlv_att_def;