Fixed a potential integer overflow in MemToBlock().
When the integer overflow happens, the block_t returned will be smaller
than requested.
It fixes the second half of #5841.
(cherry picked from commit 04c9c0e7e8f4687c9881c6ad10d9e31152249697)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Showing
Please register or sign in to comment