|author||Adam Buchbinder <email@example.com>||2014-06-13 14:18:50 -0700|
|committer||David Sterba <firstname.lastname@example.org>||2014-08-22 14:39:34 +0200|
btrfs-progs: Fix undefined behavior in radix-tree.c.
When running with UndefinedBehaviorSanitizer, the tests produce the following error: radix-tree.c:836:30: runtime error: shift exponent 18446744073709551613 is too large for 64-bit type 'unsigned long' (That's a negative shift exponent represented as an unsigned long.) Even though the value is discarded in those cases, it's still undefined behavior; see the C99 standard, section 6.5.7, paragraph three: "If the value of the right operand is negative [...] the behavior is undefined." Signed-off-by: Adam Buchbinder <email@example.com> Reviewed-by: Satoru Takeuchi <firstname.lastname@example.org> Signed-off-by: David Sterba <email@example.com>
Diffstat (limited to 'volumes.h')
0 files changed, 0 insertions, 0 deletions