[riot-notifications] [RIOT-OS/RIOT] sys/crypto/aes: avoid UB by explicit unsigned integer promotion (#10785)
notifications at github.com
Wed Jan 16 15:33:44 CET 2019
### Contribution description
Fixing undefined behavior through implicit integer promotion of uint8_t to int.
### Testing procedure
Binary result should be identical.
To see the error messages:
- merge #10782
- compile unittests with "UBSAN_ENABLE=1 UBSAN_MODE=msg_recover make"
- run unittests, see aes errors
### Issues/PRs references
Found using #10782.
You can view, comment on, or merge this pull request online at:
-- Commit Summary --
* sys/crypto/aes: avoid UB by explicit unsigned integer promotion
-- File Changes --
M sys/crypto/aes.c (7)
-- Patch Links --
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications