Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
padding: Avoid calling free on offsets
A 32b compiler has a lot of imagination: padding.c: In function 'sc_pkcs1_strip_02_padding_constant_time': padding.c:264:9: error: 'free' called on pointer 'msg_67' with nonzero offset [1, 2147483647] [-Werror=free-nonheap-object] 264 | free(msg); | ^~~~~~~~~ padding.c:203:15: note: returned from 'calloc' 203 | msg = calloc(n, sizeof(u8)); | ^~~~~~~~~~~~~~~~~~~~~
- Loading branch information