aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-sigcomp.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-sigcomp.c')
-rw-r--r--epan/dissectors/packet-sigcomp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-sigcomp.c b/epan/dissectors/packet-sigcomp.c
index 6983fdc40e..d38bc72ae9 100644
--- a/epan/dissectors/packet-sigcomp.c
+++ b/epan/dissectors/packet-sigcomp.c
@@ -2497,7 +2497,8 @@ execute_next_instruction:
handle_now = byte_copy_right - position;
}
- if (k + handle_now >= UDVM_MEMORY_SIZE) {
+ if ((k + handle_now >= UDVM_MEMORY_SIZE) ||
+ (n + handle_now >= UDVM_MEMORY_SIZE)) {
gcry_md_close(sha1_handle);
goto decompression_failure;
}