aboutsummaryrefslogtreecommitdiffstats
path: root/epan/sigcomp-udvm.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/sigcomp-udvm.c')
-rw-r--r--epan/sigcomp-udvm.c9
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.