diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-09-06 17:44:20 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-09-06 17:44:20 +0000 |
commit | 75dc6f1a66f3c31ba0714babc2102aaf4a892bf0 (patch) | |
tree | 8122a2076fc8feb3fe0dba9911fdf8842882c680 /asn1/h225 | |
parent | 33d72d3b9d2bf056956b1ddae5106dd84a0731d1 (diff) | |
download | wireshark-75dc6f1a66f3c31ba0714babc2102aaf4a892bf0.tar.gz wireshark-75dc6f1a66f3c31ba0714babc2102aaf4a892bf0.tar.bz2 wireshark-75dc6f1a66f3c31ba0714babc2102aaf4a892bf0.zip |
Make sure we don't overflow the dialedDigits array.
svn path=/trunk/; revision=15702
Diffstat (limited to 'asn1/h225')
-rw-r--r-- | asn1/h225/h225.cnf | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/asn1/h225/h225.cnf b/asn1/h225/h225.cnf index 142f648d28..8b34881265 100644 --- a/asn1/h225/h225.cnf +++ b/asn1/h225/h225.cnf @@ -213,10 +213,13 @@ CallIdentifier/guid guid if (h225_pi->is_destinationInfo == TRUE) { if (value_tvb) { len = tvb_length(value_tvb); + /* XXX - should this be allocated as an ephemeral string? */ + if (len > sizeof h225_pi->dialedDigits - 1) + len = sizeof h225_pi->dialedDigits - 1; tvb_memcpy(value_tvb, (guint8*)h225_pi->dialedDigits, 0, len); } h225_pi->dialedDigits[len] = '\0'; - h225_pi->is_destinationInfo = FALSE; + h225_pi->is_destinationInfo = FALSE; } #.END #---------------------------------------------------------------------------------------- |