mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-02 17:28:30 +00:00
Make more functions friendly to Address Sanitizer
This commit is contained in:
parent
3ab76b2312
commit
cbfd4ccd1e
70 changed files with 1267 additions and 291 deletions
|
@ -29,6 +29,6 @@
|
|||
void(psrldq)(uint8_t b[16], const uint8_t a[16], unsigned long n) {
|
||||
unsigned i;
|
||||
if (n > 16) n = 16;
|
||||
memcpy(b, a + n, 16 - n);
|
||||
memset(b + (16 - n), 0, n);
|
||||
__builtin_memcpy(b, a + n, 16 - n);
|
||||
__builtin_memset(b + (16 - n), 0, n);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue