summaryrefslogtreecommitdiffstats
path: root/fs/udf/inode.c
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-03-15 09:21:13 +0100
committerJan Kara <jack@suse.cz>2010-04-08 15:35:20 +0200
commit69ecbbedac8e353bbd924fad16fed0c7c54e6382 (patch)
treef008c3ad0750585ea3d403718251922f215cb626 /fs/udf/inode.c
parentMerge branch 'urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/brodo/... (diff)
downloadlinux-69ecbbedac8e353bbd924fad16fed0c7c54e6382.tar.xz
linux-69ecbbedac8e353bbd924fad16fed0c7c54e6382.zip
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: Dan Carpenter <error27@gmail.com> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf/inode.c')
0 files changed, 0 insertions, 0 deletions