To: | bind9-public@isc.org |
From: | ondrej@isc.org |
Subject: | Implicint typing to int leads to singed/unsigned confusing when shifting the top bit |
Date: | Thu, 30 Nov 2017 16:48:32 +0000 |
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.