diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2021-04-28 21:45:07 +0200 |
---|---|---|
committer | Dr. David von Oheimb <dev@ddvo.net> | 2021-05-20 16:29:13 +0200 |
commit | ff3810332483f79b55f90db0ca9f93145d8f06b5 (patch) | |
tree | 216593546ab0baa2b5a9a861ca394081eb793f4d /util/check-format-test-negatives.c | |
parent | f14bead2c4898e484b6c01808c07edf3b61f01e9 (diff) | |
download | openssl-new-ff3810332483f79b55f90db0ca9f93145d8f06b5.tar.gz |
check-format.pl: Add check for constant left of comparison operator
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15077)
Diffstat (limited to 'util/check-format-test-negatives.c')
-rw-r--r-- | util/check-format-test-negatives.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/util/check-format-test-negatives.c b/util/check-format-test-negatives.c index c9f77ecf6c..01216718fd 100644 --- a/util/check-format-test-negatives.c +++ b/util/check-format-test-negatives.c @@ -150,6 +150,10 @@ int f(void) /* hanging_stmt; } +/* should not trigger: constant on LHS of comparison or assignment operator */ +X509 *x509 = NULL; +int y = a + 1 < b; + const OPTIONS passwd_options[] = { {"aixmd5", OPT_AIXMD5, '-', "AIX MD5-based password algorithm"}, #if !defined(OPENSSL_NO_DES) && !defined(OPENSSL_NO_DEPRECATED_3_0) |