aboutsummaryrefslogtreecommitdiffstats
path: root/epan/sigcomp_state_hdlr.c
diff options
context:
space:
mode:
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2010-06-25 17:14:41 +0000
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2010-06-25 17:14:41 +0000
commit7920c56b4564c4842f994a8ed32490dc891ddd40 (patch)
treeb16a18d20e5b0d61b300d2c18cde7fbe67b3d593 /epan/sigcomp_state_hdlr.c
parent45b8037e7c89f5dd7848fa5102435b9b6fefcbf4 (diff)
Make sure our addresses are modulo 2^16 in a lot of places. Fixes a
crash found while fuzzing, and hopefully fixes bug 4867. In sigcomp_init_udvm() initialize the first 8 bytes of our buffers, which squelches a valgrind complaint. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33321 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/sigcomp_state_hdlr.c')
-rw-r--r--epan/sigcomp_state_hdlr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/sigcomp_state_hdlr.c b/epan/sigcomp_state_hdlr.c
index e61847c517..bc783b3d3c 100644
--- a/epan/sigcomp_state_hdlr.c
+++ b/epan/sigcomp_state_hdlr.c
@@ -637,6 +637,7 @@ sigcomp_init_udvm(void){
/*
* Debug g_warning("Sigcomp init: Storing partial state =%s",partial_state_str);
*/
+ memset(sip_sdp_buff, 0, 8);
i = 0;
while ( i < SIP_SDP_STATE_LENGTH ){
sip_sdp_buff[i+8] = sip_sdp_static_dictionaty_for_sigcomp[i];
@@ -657,6 +658,7 @@ sigcomp_init_udvm(void){
partial_state_str = bytes_to_str(presence_state_identifier, 6);
+ memset(sip_sdp_buff, 0, 8);
i = 0;
while ( i < PRESENCE_STATE_LENGTH ){
presence_buff[i+8] = presence_static_dictionary_for_sigcomp[i];