diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-07-16 12:05:49 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-07-16 12:08:28 +0200 |
commit | 79599ba0eb7a9aeaeb9dfbbf4881f0633724a471 (patch) | |
tree | 15d66fc0e03a7e5de171d5725c217a2e8cf608ad /include/osmocom/gsm | |
parent | 4876dcf12b2db9847073fbd2b3e28c4f962bd48a (diff) |
tlv: Make tlv parser arrays 256 entries wide to prevent overflow on 0xff
If we encounter a tag with 0xFF, we overflow our existing tlv_parse
array definitions.
Warning: this breaks ABI
Diffstat (limited to 'include/osmocom/gsm')
-rw-r--r-- | include/osmocom/gsm/tlv.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/osmocom/gsm/tlv.h b/include/osmocom/gsm/tlv.h index 552af2bd..1e59ccaa 100644 --- a/include/osmocom/gsm/tlv.h +++ b/include/osmocom/gsm/tlv.h @@ -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; |