Skip to content

Commit

Permalink
add a range check for dch_id
Browse files Browse the repository at this point in the history
this should fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9005

svn path=/trunk/; revision=51195
  • Loading branch information
martin-kaiser committed Aug 7, 2013
1 parent 6fea3ab commit 2f072ac
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 59 deletions.
3 changes: 2 additions & 1 deletion asn1/nbap/nbap.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading

0 comments on commit 2f072ac

Please sign in to comment.