diff options
author | Kamil Rytarowski <n54@gmx.com> | 2018-01-12 20:45:56 +0000 |
---|---|---|
committer | Kamil Rytarowski <n54@gmx.com> | 2018-01-12 20:45:56 +0000 |
commit | d6b30fffda4700178f537098b1788c2ab1c0321d (patch) | |
tree | 8ae0bc45705b0066297b4859cfae8eae878ffa5e /llvm/test/CodeGen/Generic | |
parent | 6a684b25936084bc37ed42534710dbf1b4891596 (diff) | |
download | bcm5719-llvm-d6b30fffda4700178f537098b1788c2ab1c0321d.tar.gz bcm5719-llvm-d6b30fffda4700178f537098b1788c2ab1c0321d.zip |
Correct the setitimer interceptor on NetBSD
Summary:
itimerval can contain padding that may be legitimately uninitialized.
On NetBSD there are four integers of type "long, int, long, int", the
int argument stands for __sanitizer_suseconds_t. Compiler adds extra
padding in this layout.
Check every field of struct itimerval separately.
Define __sanitizer_suseconds_t as long on FreeBSD, Linux and SmartOS,
and int on NetBSD. Define __sanitizer_timeval and __sanitizer_itimerval.
Sponsored by <The NetBSD Foundation>
Reviewers: eugenis, joerg, vitalybuka
Reviewed By: vitalybuka
Subscribers: emaste, kubamracek, llvm-commits, #sanitizers
Tags: #sanitizers
Differential Revision: https://reviews.llvm.org/D41502
llvm-svn: 322399
Diffstat (limited to 'llvm/test/CodeGen/Generic')
0 files changed, 0 insertions, 0 deletions