]> Sergey Matveev's repositories - nnn.git/commit
icons-hash: fix bitwise rotation
authorNRK <nrk@disroot.org>
Mon, 2 Jan 2023 20:20:21 +0000 (02:20 +0600)
committerNRK <nrk@disroot.org>
Mon, 2 Jan 2023 20:20:21 +0000 (02:20 +0600)
commitfb5b2e5e649cf1a05813f44b466a613e697404fc
treee7877d5eaa3262ba5967842cb3856108f4989b36
parentc9b384f00904caa7545a366b8e00efeb17486977
icons-hash: fix bitwise rotation

in case the rotation is 0, `v >> (32 - r)` would end up doing a 32 right
shift which is equal to the width of `v` and thus undefined behavior.

ref: https://blog.regehr.org/archives/1063
src/icons-hash.c