summaryrefslogtreecommitdiff
path: root/platform/win32
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2018-03-01 17:36:54 +0800
committerSebastian Rasmussen <sebras@gmail.com>2018-03-22 12:33:34 +0800
commitf3b0e4373af7500155e470931e5a50060f5b4612 (patch)
treeaeb05f63684cc1bd5481eb1ad821038b5fed156f /platform/win32
parent188d61ef347d644b3e122754af73decdfb8d8ab1 (diff)
downloadmupdf-f3b0e4373af7500155e470931e5a50060f5b4612.tar.xz
Fix 699085: Use at most 16 bytes from MD5 digests.
Previously crypt->len / 8 could be 0..32. In the case of crypt->len == 256 this meant that when an 16 byte MD5 was computed, uninitalized key data would be accessed because 32 bytes of key data was accessed. Now crypt->len / 8 is limited to 0..16. So when the 16 byte MD5 is computed and later accessed only the initialized part of the key data is accessed. Because crypt->len / 8 is now limited to 0..16 the key data buffer can also be shrunk to 16 bytes without risking the code stepping over its boundaries.
Diffstat (limited to 'platform/win32')
0 files changed, 0 insertions, 0 deletions