From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39868) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCuRq-0007f7-UV for qemu-devel@nongnu.org; Fri, 23 Aug 2013 12:42:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VCuRm-0003n9-Js for qemu-devel@nongnu.org; Fri, 23 Aug 2013 12:42:54 -0400 Message-ID: <52179107.9070302@redhat.com> Date: Fri, 23 Aug 2013 10:42:47 -0600 From: Eric Blake MIME-Version: 1.0 References: <1377275808-9017-1-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1377275808-9017-1-git-send-email-peter.maydell@linaro.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="JHJBtiFx3WpQgUCJu8KNlDIvUC5gMX2PK" Subject: Re: [Qemu-devel] [PATCH] slirp/arp_table.c: Avoid shifting into sign bit of signed integers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-trivial@nongnu.org, Jan Kiszka , qemu-devel@nongnu.org, patches@linaro.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --JHJBtiFx3WpQgUCJu8KNlDIvUC5gMX2PK Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 08/23/2013 10:36 AM, Peter Maydell wrote: > "0xf << 28" shifts right into the sign bit, since 0xf is a signed > integer. Use the 'U' suffix to force an unsigned shift to avoid > this undefined behaviour and a clang sanitizer warning. >=20 > Signed-off-by: Peter Maydell > --- > slirp/arp_table.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Eric Blake --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --JHJBtiFx3WpQgUCJu8KNlDIvUC5gMX2PK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJSF5EHAAoJEKeha0olJ0Nqa4sH/ikCj2zeLkyMurctQ6aQDEUI NCqG18j9QQsw+pg3DTXvreoIpy5WHrJr9AmyDmPXYNgG0K5fbDdilgtlG7xIaVLJ a0C8ydtdMJXquYv0U6pIVyv4mFRAFT94fgjQ2J84J2TEeh8CPS3395MghwsbK+mf PPAjLhGwZz82lGnXa5bFr5hjHZ6vPCdA/vLLWP6NFmHx4aFLyy1C6a/p3kIuEkF9 Gog+e64PSzLL/R0Ya7Ar4SFmYxX/tq8jBVY6mRpyNpKRMHVq1KoasYojdYwkSvcX atUxwDXnEhh6E29pWrIQmHhpjGQLByNWUqeoynqnLII+5jGfxL1jWIo6om6QrLo= =hYnq -----END PGP SIGNATURE----- --JHJBtiFx3WpQgUCJu8KNlDIvUC5gMX2PK--