Re: catching 32/64 bit integer mixing

2020-12-29 Thread Florian Weimer
* Drew Parsons: > An upstream author has asked whether we know of tools or compiler flags > to help catch problems mixing 64 and 32 bit integers, for instance > catching implicit conversions, as in > >int64_t n = ...; >for (int32_t i=0; i ... >} > > There is -fsanitize=signed-in

catching 32/64 bit integer mixing

2020-05-23 Thread Drew Parsons
An upstream author has asked whether we know of tools or compiler flags to help catch problems mixing 64 and 32 bit integers, for instance catching implicit conversions, as in int64_t n = ...; for (int32_t i=0; iThere is -fsanitize=signed-integer-overflow (which generates a runtime error m