summaryrefslogtreecommitdiff
path: root/wrapping/java/openjp2/JavaOpenJPEGDecoder.c
diff options
context:
space:
mode:
authorYoung Xiao <YangX92@hotmail.com>2019-03-16 19:57:27 +0800
committerYoung Xiao <92siuyang@gmail.com>2019-04-15 16:10:18 +0800
commit21399f6b7d318fcdf4406d5e88723c4922202aa3 (patch)
treebb5cdf4d2a0fdf1e2cc3338732d2ea66cde13190 /wrapping/java/openjp2/JavaOpenJPEGDecoder.c
parentd0dd894ae24d0f2f09072adf1b966033dd64672d (diff)
convertbmp: detect invalid file dimensions early
width/length dimensions read from bmp headers are not necessarily valid. For instance they may have been maliciously set to very large values with the intention to cause DoS (large memory allocation, stack overflow). In these cases we want to detect the invalid size as early as possible. This commit introduces a counter which verifies that the number of written bytes corresponds to the advertized width/length. See commit 8ee335227bbc for details. Signed-off-by: Young Xiao <YangX92@hotmail.com>
Diffstat (limited to 'wrapping/java/openjp2/JavaOpenJPEGDecoder.c')
0 files changed, 0 insertions, 0 deletions