diff options
-rw-r--r-- | epan/sigcomp-udvm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/sigcomp-udvm.c b/epan/sigcomp-udvm.c index dc11c8fc64..8e6a8851f2 100644 --- a/epan/sigcomp-udvm.c +++ b/epan/sigcomp-udvm.c @@ -1100,10 +1100,11 @@ execute_next_instruction: buff[stack_location] = (stack_fill >> 8) & 0x00FF; buff[(stack_location+1) & 0xFFFF] = stack_fill & 0x00FF; + address = (stack_location + stack_fill * 2 + 2) & 0xFFFF; + if (address >= UDVM_MEMORY_SIZE - 1) goto decompression_failure; - address = (stack_location + stack_fill * 2 + 2) & 0xFFFF; value = (buff[address] << 8) | buff[(address+1) & 0xFFFF]; |