diff options
author | Anders Broman <anders.broman@ericsson.com> | 2005-09-28 16:38:40 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2005-09-28 16:38:40 +0000 |
commit | 264288023cf80aa3fdb6fc0840617f18ac6774de (patch) | |
tree | 1eda5dc203b56a66f3e8876925e672b1b3312681 /epan/sigcomp_state_hdlr.c | |
parent | f6ef22c553bea7cfbdc19460d3cc720470b1c7cd (diff) | |
download | wireshark-264288023cf80aa3fdb6fc0840617f18ac6774de.tar.gz |
It's the UDVM_MEMORY_SIZE that should be checked.
svn path=/trunk/; revision=16040
Diffstat (limited to 'epan/sigcomp_state_hdlr.c')
-rw-r--r-- | epan/sigcomp_state_hdlr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/sigcomp_state_hdlr.c b/epan/sigcomp_state_hdlr.c index a181a42897..78f168fcd0 100644 --- a/epan/sigcomp_state_hdlr.c +++ b/epan/sigcomp_state_hdlr.c @@ -546,10 +546,10 @@ int udvm_state_access(tvbuff_t *tvb, proto_tree *tree,guint8 *buff,guint16 p_id_ /* debug *g_warning(" state_begin %u state_address %u",state_begin , *state_address); */ - while ( n < (state_begin + *state_length + 8) && n < STATE_BUFFER_SIZE ){ + while ( n < (state_begin + *state_length + 8) && n < UDVM_MEMORY_SIZE ){ buff[k] = state_buff[n]; /* debug - * g_warning(" Loading 0x%x at address %u",buff[k] , k); + g_warning(" Loading 0x%x at address %u",buff[k] , k); */ k = ( k + 1 ) & 0xffff; if ( k == byte_copy_right ){ |