summaryrefslogtreecommitdiff
path: root/asn1/nbap
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2013-08-07 20:18:11 +0000
committerMartin Kaiser <wireshark@kaiser.cx>2013-08-07 20:18:11 +0000
commit2f072ac53cc0d6cbc34bd9162c878bfbe27514cf (patch)
tree34a31512c7c117eac8b216b8f9166a670789631b /asn1/nbap
parent6fea3ab734ef54289574508539ef01ba62093886 (diff)
downloadwireshark-2f072ac53cc0d6cbc34bd9162c878bfbe27514cf.tar.gz
add a range check for dch_id
this should fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9005 svn path=/trunk/; revision=51195
Diffstat (limited to 'asn1/nbap')
-rw-r--r--asn1/nbap/nbap.cnf3
1 files changed, 2 insertions, 1 deletions
diff --git a/asn1/nbap/nbap.cnf b/asn1/nbap/nbap.cnf
index 61325200a5..1b6cf895f1 100644
--- a/asn1/nbap/nbap.cnf
+++ b/asn1/nbap/nbap.cnf
@@ -671,7 +671,8 @@ guint32 payload_crc_value;
#.FN_BODY DCH-Specific-FDD-Item/dCH-ID
offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index,
- 0U, 255U, &dch_id, FALSE);
+ 0U, maxNrOfDCHs, &dch_id, FALSE);
+
if(g_num_dch_in_flow>0){
g_dchs_in_flow_list[g_num_dch_in_flow-1]=dch_id;
nbap_dch_chnl_info[dch_id].next_dch = 0;