Ralf Jung
|
7ff57edb93
|
also identiy MaybeUninit::uninit().assume_init() as dangerous
|
2019-11-02 17:52:57 +01:00 |
|
Ralf Jung
|
df4e12d889
|
uninit/zeroed lint: warn against NULL vtables
|
2019-11-02 11:56:06 +01:00 |
|
Ralf Jung
|
3288be515f
|
test in a way that works even with musl
|
2019-08-17 22:11:43 +02:00 |
|
Ralf Jung
|
a9efa738ab
|
invalid_value: also detect transmute-from-0 (seen in the wild)
|
2019-08-17 11:57:01 +02:00 |
|
Ralf Jung
|
0d242b3f90
|
invalid_value: warn for types with custom valid range
|
2019-08-17 11:56:58 +02:00 |
|
Ralf Jung
|
25d8a0a351
|
warn about uninit bools and chars
|
2019-08-17 11:56:57 +02:00 |
|
Ralf Jung
|
0499923b18
|
more informative error message from invalid_value lint
|
2019-08-12 11:23:56 +02:00 |
|
Ralf Jung
|
ca1e94b131
|
warn for more cases
|
2019-08-11 12:04:49 +02:00 |
|
Ralf Jung
|
da6fbb1895
|
add basic lint testing for misuse of mem::zeroed and mem::uninitialized
|
2019-08-11 12:04:49 +02:00 |
|