]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix type-limits and add this warning to default strict warnings
authorMilan Broz <gmazyland@gmail.com>
Wed, 14 Jan 2026 12:48:40 +0000 (13:48 +0100)
committerTomas Mraz <tomas@openssl.org>
Tue, 20 Jan 2026 18:44:52 +0000 (19:44 +0100)
One mistake recently introduced in commit b6aed64e47b.

Fixes: https://github.com/openssl/project/issues/1815
Signed-off-by: Milan Broz <gmazyland@gmail.com>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
MergeDate: Tue Jan 20 18:44:58 2026
(Merged from https://github.com/openssl/openssl/pull/29662)

Configure
crypto/evp/encode.c

index 173096816b4379ba75eeb57a6dc1f8454dfc075c..28c7b05c236c964a3c4a277dc8f31d76bb8b0cbb 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -175,7 +175,7 @@ my @gcc_devteam_warn = qw(
     -Wsign-compare
     -Wshadow
     -Wformat
-    -Wno-type-limits
+    -Wtype-limits
     -Wundef
     -Werror
     -Wmissing-prototypes
index 49b02ed4dd13ef7679eca3748534f4c85a889210..ec6fa0328423accfa9c1d33852cedd2a8846c016 100644 (file)
@@ -451,7 +451,7 @@ int EVP_EncodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl,
 
 void EVP_EncodeFinal(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl)
 {
-    unsigned int ret = 0;
+    int ret = 0;
     int wrap_cnt = 0;
 
     if (ctx->num != 0) {