diff options
author | Gerald Combs <gerald@wireshark.org> | 2010-06-25 17:14:41 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2010-06-25 17:14:41 +0000 |
commit | 5f932275b08158ae96a4ffdcfc8a17bde04cfe2e (patch) | |
tree | b16a18d20e5b0d61b300d2c18cde7fbe67b3d593 /epan/sigcomp_state_hdlr.c | |
parent | 5a69e41f6e67b78108de9e5439526d1dc908ae9d (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.
svn path=/trunk/; revision=33321
Diffstat (limited to 'epan/sigcomp_state_hdlr.c')
-rw-r--r-- | epan/sigcomp_state_hdlr.c | 2 |
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]; |