diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-03-18 10:02:27 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-03-18 10:02:27 -0400 |
commit | 204f7255f4c06fe12d99e785b91ea2fb18047018 (patch) | |
tree | c70d8d99a5ebf689edb78a5ac8e4c094e632c6db /src/ext | |
parent | 98b1aad2018b572e19d2404ea7369afa2d0c4b05 (diff) | |
download | tor-204f7255f4c06fe12d99e785b91ea2fb18047018.tar.gz tor-204f7255f4c06fe12d99e785b91ea2fb18047018.zip |
memarea.c: use flexible array member for mem
This make clang's memory sanitizer happier that we aren't reading
off the end of a char[1]. We hadn't replaced the char[1] with a
char[FLEXIBLE_ARRAY_MEMBER] before because we were doing a union
trick to force alignment. Now we use __attribute__(aligned) where
available, and we do the union trick elsewhere.
Most of this patch is just replacing accesses to (x)->u.mem with
(x)->U_MEM, where U_MEM is defined as "u.mem" or "mem" depending on
our implementation.
Diffstat (limited to 'src/ext')
0 files changed, 0 insertions, 0 deletions