Messages in this thread | | | From | David Laight <> | Subject | RE: [PATCH v6] kernel.h: Retain constant expression output for max()/min() | Date | Tue, 27 Mar 2018 08:55:55 +0000 |
| |
From: Kees Cook > Sent: 26 March 2018 23:16 ... > +#define __typecheck(x, y) \ > + (!!(sizeof((typeof(x)*)1 == (typeof(y)*)1)))
The two 1 should probably be at least 8 before the compiler starts bleating about accesses to misaligned addresses being undefined.
David
| |