Use unsigned constants for ICMP6 filters [BZ #22489]
commitc2d0411488c68a07cc22a5dd76fa37e952d2a66b
authorSergey <s.korolev@ndmsystems.com>
Fri, 24 Apr 2020 21:18:41 +0000 (24 17:18 -0400)
committerDJ Delorie <dj@redhat.com>
Mon, 11 May 2020 21:09:05 +0000 (11 17:09 -0400)
tree54a88f59533c6ef46c27fd7bca207e178be4fc0a
parent6fcb0272f76721a45e33061404120907e8c5dae4
Use unsigned constants for ICMP6 filters [BZ #22489]

The core problem here is that the filter array elements are unsigned
but the computed constants are signed.  This both causes a
signededness conversion at the &= step and may cause undefined
behavior if the MSB is being modified.  This patch uses unsigned
constants to avoid both cases. - DJ
inet/netinet/icmp6.h