Valid integer and enumerated types always have non-zero length. Perform
authorrob <rob@openbsd.org>
Fri, 22 Jan 2021 03:20:56 +0000 (03:20 +0000)
committerrob <rob@openbsd.org>
Fri, 22 Jan 2021 03:20:56 +0000 (03:20 +0000)
commit68ec4783ef349f19c081b409615ef48bf54724c0
tree6e1e0497c2c4ad20698a2fcae1e0e8083084ae86
parent4bcc70e0ee830594cc74e23566f667c84f3c748e
Valid integer and enumerated types always have non-zero length. Perform
check to ensure we avoid a possible (undefined) negative shift. Found
with clang static analyzer.

Tweaked and OK martijn@
lib/libutil/ber.c