Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 56e69e59 authored by Roman Smirnov's avatar Roman Smirnov Committed by Jan Kara
Browse files

udf: prevent integer overflow in udf_bitmap_free_blocks()

An overflow may occur if the function is called with the last
block and an offset greater than zero. It is necessary to add
a check to avoid this.

Found by Linux Verification Center (linuxtesting.org) with Svace.

[JK: Make test cover also unalloc table freeing]

Link: https://patch.msgid.link/20240620072413.7448-1-r.smirnov@omp.ru


Suggested-by: default avatarJan Kara <jack@suse.com>
Signed-off-by: default avatarRoman Smirnov <r.smirnov@omp.ru>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent ebbe26fd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment