]> git.ipfire.org Git - thirdparty/openssl.git/commit
tasn_dec: use do/while around statement macros
authorBenjamin Kaduk <bkaduk@akamai.com>
Tue, 4 May 2021 19:33:28 +0000 (12:33 -0700)
committerBenjamin Kaduk <bkaduk@akamai.com>
Sat, 8 May 2021 16:22:36 +0000 (09:22 -0700)
commit32b1da718d5d6f35fcef82f3794273807d6202e9
treea55d6ee323e2e88f85fcc3ade3e0e147a5ae76f2
parentab9d1af955ef71c0000bc27140623481a003d35c
tasn_dec: use do/while around statement macros

Use the do {} while (0) construct around macros whose bodies are complete
statements (including one that has internal control flow!).  This is
safer and avoids any risk of misinterpretation if the macro is used in
an unexpected context.

Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15143)
crypto/asn1/tasn_dec.c