]> granicus.if.org Git - zfs/commit
Avoid undefined shift overflow in fzap_cursor_retrieve()
authorGvozden Neskovic <neskovic@gmail.com>
Fri, 2 Sep 2016 13:10:34 +0000 (15:10 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 29 Sep 2016 22:55:41 +0000 (15:55 -0700)
commit6ca636a1526ea08a7e0a972fa164b22815529d4b
tree59ffe0bd8cf66168cb941ff26ac92886e203e69d
parent4ca9c1de129f8250c446c2355349e6b300d84586
Avoid undefined shift overflow in fzap_cursor_retrieve()

Avoid calculating (1<<64) if lh_prefix_len == 0. Semantics of the method remain
the same.

Assert (lh_prefix_len > 0) in zap_expand_leaf() to detect possibly the same
problem.

Issue #4883

Signed-off-by: Gvozden Neskovic <neskovic@gmail.com>
module/zfs/zap.c