Files
nanopb/docs
Petteri Aimonen 252f419954 Fix undefined behavior with bool fields (#434)
Previously nanopb didn't enforce that decoded bool fields
had valid true/false values. This could lead to undefined
behavior in user code.

This has potential security implications when

1) message contains bool field (has_ fields are safe)
and
2) user code uses ternary operator dependent on the field value,
   such as: int value = msg.my_bool ? 1234 : 0
and
3) the value returned from ternary operator affects a memory access,
   such as: data_array[value] = 9999
2019-10-02 10:56:49 +03:00
..
2012-01-05 18:35:12 +00:00
2011-08-23 18:50:09 +00:00