]> git.kaiwu.me - nginx.git/commit
HTTP/2: fixed undefined behavior in ngx_http_v2_huff_encode().
authorValentin Bartenev <vbart@nginx.com>
Fri, 12 Feb 2016 13:36:20 +0000 (16:36 +0300)
committerValentin Bartenev <vbart@nginx.com>
Fri, 12 Feb 2016 13:36:20 +0000 (16:36 +0300)
commit822fc91b093b85a94ca54fc8c7e2d85fc5a4daf8
tree6bb1c7a1402cd0c3bda32799e1d7e1dd0e6e0bf6
parent531e6fbfd6c785a7b42c285c12d3f0721cc989c7
HTTP/2: fixed undefined behavior in ngx_http_v2_huff_encode().

When the "pending" value is zero, the "buf" will be right shifted
by the width of its type, which results in undefined behavior.

Found by Coverity (CID 1352150).
src/http/v2/ngx_http_v2_huff_encode.c