MIME-Version: 1.0 Content-Disposition: inline To: bind9-public@isc.org Content-Type: text/plain; charset="utf-8" From: ondrej@isc.org Subject: Implicint typing to int leads to singed/unsigned confusing when shifting the top bit X-RT-Interface: Web Date: Thu, 30 Nov 2017 16:48:32 +0000 X-Mailer: MIME-tools 5.508 (Entity 5.508) Content-Transfer-Encoding: binary Message-ID: X-RT-Original-Encoding: utf-8 Content-Length: 291 The UndefinedBehaviorSanitizer found a couple of issues where the value of non uint32_t type was implicitly typed to int and then the top bit would be shifted. It's probably harmless if size of int == 4, but I am afraid that it might be broken completely on platforms where sizeof(int) < 4.