CVSROOT: /cvs Module name: src Changes by: [email protected] 2023/07/05 11:30:14
Modified files:
regress/lib/libssl/tlsext: tlsexttest.c
Log message:
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
