summaryrefslogtreecommitdiffstats
path: root/client/glz_decoder_window.cpp
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2015-09-17 15:00:22 +0100
committerFrediano Ziglio <fziglio@redhat.com>2015-10-06 11:11:10 +0100
commitac5f64a80ae637742ed95fd6c98f66281b3e15c6 (patch)
tree5d7d212122a1ad9980d0b52de37847d71a1fecbb /client/glz_decoder_window.cpp
parent0205a6ce63f50af9eda03f14d93b3a2517c42fae (diff)
Fix some integer overflow causing large memory allocations
Prevent integer overflow when computing image sizes. Image index computations are done using 32 bit so this can cause easily security issues. MAX_DATA_CHUNK is larger than the virtual card limit, so this is not going to cause change in behaviours. Comparing size calculation results with MAX_DATA_CHUNK will allow us to catch overflows. Prevent guest from allocating large amount of memory. Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Diffstat (limited to 'client/glz_decoder_window.cpp')
0 files changed, 0 insertions, 0 deletions