According to RFC 3220 section 7 the max UDVM message size is 65536,
authorGerald Combs <gerald@wireshark.org>
Fri, 4 Jun 2010 18:28:02 +0000 (18:28 -0000)
committerGerald Combs <gerald@wireshark.org>
Fri, 4 Jun 2010 18:28:02 +0000 (18:28 -0000)
not 65535. Hopefully fixes bug 4837.

svn path=/trunk/; revision=33087

epan/sigcomp-udvm.c

index cb5a3a61ba370d908fc378da3605c8f6ff10ea4b..04dab21df29fd857b459de3f4fe2dd073383bfa9 100644 (file)
@@ -318,7 +318,7 @@ decompress_sigcomp_message(tvbuff_t *bytecode_tvb, tvbuff_t *message_tvb, packet
 
        }
        /* Largest allowed size for a message is 65535  */
-       out_buff = g_malloc(65535);
+       out_buff = g_malloc(UDVM_MEMORY_SIZE);
        /* Start executing code */
        current_address = udvm_start_ip;
        input_address = 0;