diff options
author | Alexander Duyck <aduyck@mirantis.com> | 2016-01-28 13:42:24 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-01-29 19:41:00 -0800 |
commit | a5829f536b3d11a57617e83d4bcb2b7d70671e98 (patch) | |
tree | 3c4133a1240bf8e40ec6ea4ff964ddc101c4354d /fs/hfs | |
parent | 59a557be385b66c1da20e9cfc6ff6c2e676c6804 (diff) | |
download | linux-a5829f536b3d11a57617e83d4bcb2b7d70671e98.tar.bz2 |
fib_trie: Fix shift by 32 in fib_table_lookup
The fib_table_lookup function had a shift by 32 that triggered a UBSAN
warning. This was due to the fact that I had placed the shift first and
then followed it with the check for the suffix length to ignore the
undefined behavior. If we reorder this so that we verify the suffix is
less than 32 before shifting the value we can avoid the issue.
Reported-by: Toralf Förster <toralf.foerster@gmx.de>
Signed-off-by: Alexander Duyck <aduyck@mirantis.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/hfs')
0 files changed, 0 insertions, 0 deletions