diff options
author | tb <> | 2023-07-05 17:30:14 +0000 |
---|---|---|
committer | tb <> | 2023-07-05 17:30:14 +0000 |
commit | 3e3c527fc69ce89da1f756006b2b9d3023306411 (patch) | |
tree | 2308241780607b1b4aad110bdd6add6ac866ef7c /src/lib | |
parent | 2a76217befc26467e87c42042da9454d58534279 (diff) | |
download | openbsd-3e3c527fc69ce89da1f756006b2b9d3023306411.tar.gz openbsd-3e3c527fc69ce89da1f756006b2b9d3023306411.tar.bz2 openbsd-3e3c527fc69ce89da1f756006b2b9d3023306411.zip |
Avoid undefined behavior in tlsexttest
An empty array cannot be initialized and it is an incomplete type, so the
sizeof() operator can't be applied to it. Therefore initialize it with a
zero byte and replace sizeof() use with lengths.
Slightly tweaked version of a patch by inoguchi in portable.
Discussed with bcook, beck, kettenis
Diffstat (limited to 'src/lib')
0 files changed, 0 insertions, 0 deletions