aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/lpp/lpp.cnf
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2014-12-12 15:19:58 +0100
committerPascal Quantin <pascal.quantin@gmail.com>2014-12-12 14:26:05 +0000
commit8e96830156bea314207b97315ccebd605317f142 (patch)
treeef17cb023fa8bd84eb9fb47b7e873ef4c708f235 /asn1/lpp/lpp.cnf
parenta2a6e3153297ad13ef0855065931ed6e93db2c6a (diff)
LPP: avoid doing an out of bound access in case the PER decoding gives an invalid value
Bug: 10773 Change-Id: I4fcde84d7be1e42729b6ec0763064e9885951468 Reviewed-on: https://code.wireshark.org/review/5729 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'asn1/lpp/lpp.cnf')
-rw-r--r--asn1/lpp/lpp.cnf4
1 files changed, 3 insertions, 1 deletions
diff --git a/asn1/lpp/lpp.cnf b/asn1/lpp/lpp.cnf
index ca80a47719..b495ad9cc8 100644
--- a/asn1/lpp/lpp.cnf
+++ b/asn1/lpp/lpp.cnf
@@ -268,7 +268,9 @@ PolygonPoints/degreesLongitude DISPLAY=BASE_CUSTOM STRINGS=&lpp_degreesLongitude
%(DEFAULT_BODY)s
#.FN_FTR PeriodicalReportingCriteria/reportingInterval
- proto_item_append_text(actx->created_item, "%s", interval[idx]);
+ if (idx < 10) {
+ proto_item_append_text(actx->created_item, "%s", interval[idx]);
+ }
#.FN_BODY ReportingDuration VAL_PTR = &duration
guint32 duration;