Skip to content
Commit 69ecbbed authored by Dan Carpenter's avatar Dan Carpenter Committed by Jan Kara
Browse files

udf: potential integer overflow



bloc->logicalBlockNum is unsigned so it's never less than zero.

When I saw that, it made me worry that "bloc->logicalBlockNum + count"
could overflow.  That's why I changed the check for less than zero
to an overflow check.  (The test works because "count" is also
unsigned.)

Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent 0fdf8675
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