projects
/
osmocom-bb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tlv: Make tlv parser arrays 256 entries wide to prevent overflow on 0xff
[osmocom-bb.git]
/
include
/
osmocom
/
gsm
/
tlv.h
diff --git
a/include/osmocom/gsm/tlv.h
b/include/osmocom/gsm/tlv.h
index
552af2b
..
1e59cca
100644
(file)
--- 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;