qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gmur...@apache.org
Subject qpid-dispatch git commit: DISPATCH-254 - Initialized fingerprint char array. Fix for bug reported by Coverity
Date Thu, 07 Apr 2016 13:26:42 GMT
Repository: qpid-dispatch
Updated Branches:
  refs/heads/master d7e9b161b -> bdf489a1f


DISPATCH-254 - Initialized fingerprint char array. Fix for bug reported by Coverity


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/bdf489a1
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/bdf489a1
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/bdf489a1

Branch: refs/heads/master
Commit: bdf489a1fcb15dd4d0ac9db8ebfbd03100c8a09e
Parents: d7e9b16
Author: Ganesh Murthy <gmurthy@redhat.com>
Authored: Thu Apr 7 09:26:26 2016 -0400
Committer: Ganesh Murthy <gmurthy@redhat.com>
Committed: Thu Apr 7 09:26:26 2016 -0400

----------------------------------------------------------------------
 src/server.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/bdf489a1/src/server.c
----------------------------------------------------------------------
diff --git a/src/server.c b/src/server.c
index 1f3add2..69a880b 100644
--- a/src/server.c
+++ b/src/server.c
@@ -159,7 +159,7 @@ static const char *qd_transport_get_user(qd_connection_t *conn, pn_transport_t
*
         // SHA1 is 20 octets (40 hex characters); SHA256 is 32 octets (64 hex characters).
         // SHA512 is 64 octets (128 hex characters)
         //
-        char fingerprint[129];
+        char fingerprint[129] = "\0";
 
         int uid_length = 0;
         int semi_colon_count = -1;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message