]> The Tcpdump Group git mirrors - libpcap/commit
rpcapd: make a shift count unsigned.
authorGuy Harris <[email protected]>
Wed, 24 Feb 2021 02:49:46 +0000 (18:49 -0800)
committerGuy Harris <[email protected]>
Thu, 25 Feb 2021 18:59:52 +0000 (10:59 -0800)
commit7a623bc8e98f693fea9c9f8e700e604c20dc8627
tree0eaf457dff10539ea82378d7fb51dc8fd0532d45
parentbc3de5fe9d46e62900c1d8157c4249083b7f0bc2
rpcapd: make a shift count unsigned.

That should prevent compilers and, more important, static analyzers (I'm
looking at *you*, Coverity!) from saying "this converts the unsigned
char to an int, which somehow taints it, so I get to use my favorite
meaningless word "tainted" in a warning".

(What does "tainted" mean to Coverity, anyway?  ZOMG UR READING NUMBERZ
FROM AN EXTERNAL SOURCE!!!!!!!!1111ONE!!!!!!!!!?)

(cherry picked from commit b1f9b176115eae9235ac4fd48aa0da9c61f46e67)
rpcapd/daemon.c