This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat-native.git


The following commit(s) were added to refs/heads/main by this push:
     new 65fd6d647 Ensure buf size
65fd6d647 is described below

commit 65fd6d6478e6912ab936a07a326f5a00bf70696f
Author: Chenjp <[email protected]>
AuthorDate: Mon Jan 26 11:09:32 2026 +0800

    Ensure buf size
    
    Buf size correction.
---
 native/src/sslconf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/native/src/sslconf.c b/native/src/sslconf.c
index b5ff3fd55..fb5723f89 100644
--- a/native/src/sslconf.c
+++ b/native/src/sslconf.c
@@ -286,7 +286,7 @@ TCN_IMPLEMENT_CALL(jint, SSLConf, apply)(TCN_STDARGS, jlong 
cctx,
          *  no matter what was given in the config.
          */
         len = strlen(J2S(value)) + strlen(SSL_CIPHERS_ALWAYS_DISABLED) + 1;
-        buf = malloc(len * sizeof(char *));
+        buf = malloc(len * sizeof(char));
         if (buf == NULL) {
             tcn_Throw(e, "Could not allocate memory to adjust cipher string");
             return SSL_THROW_RETURN;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to