diff options
author | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2009-10-05 18:07:59 +0000 |
---|---|---|
committer | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2009-10-05 18:07:59 +0000 |
commit | 0cc4720cb8460ec1af1355c7aab37e19734f5eb9 (patch) | |
tree | 2a6334a13df9007b8cf19fadc960f3f3d482bef6 /epan/sigcomp-udvm.c | |
parent | 8ad8a9a233dfdafdaa943d2e3470d9f77920a66d (diff) | |
download | wireshark-0cc4720cb8460ec1af1355c7aab37e19734f5eb9.tar.gz wireshark-0cc4720cb8460ec1af1355c7aab37e19734f5eb9.tar.bz2 wireshark-0cc4720cb8460ec1af1355c7aab37e19734f5eb9.zip |
Allocate 64K buffer from heap
svn path=/trunk/; revision=30339
Diffstat (limited to 'epan/sigcomp-udvm.c')
-rw-r--r-- | epan/sigcomp-udvm.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/epan/sigcomp-udvm.c b/epan/sigcomp-udvm.c index d76da4540c..047382f0e6 100644 --- a/epan/sigcomp-udvm.c +++ b/epan/sigcomp-udvm.c @@ -131,7 +131,8 @@ decompress_sigcomp_message(tvbuff_t *bytecode_tvb, tvbuff_t *message_tvb, packet gint udvm_start_ip) { tvbuff_t *decomp_tvb; - guint8 buff[UDVM_MEMORY_SIZE]; + /* UDVM memory must be initialised to zero */ + guint8 *buff = ep_alloc0(UDVM_MEMORY_SIZE); char string[2]; guint8 *out_buff; /* Largest allowed size for a message is 65535 */ guint32 i = 0; @@ -251,12 +252,6 @@ decompress_sigcomp_message(tvbuff_t *bytecode_tvb, tvbuff_t *message_tvb, packet break; } - - - - - /* UDVM memory must be initialised to zero */ - memset(buff, 0, UDVM_MEMORY_SIZE); /* Set initial UDVM data * The first 32 bytes of UDVM memory are then initialized to special * values as illustrated in Figure 5. |