diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-04-23 18:47:58 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-04-23 18:47:58 +0200 |
commit | 55093592b4f5dd3dd9d96b986c55e4974a7af1c6 (patch) | |
tree | 15394b24fe7e6ee260489feeb66344fa76f89905 | |
parent | d2667671add2d9b97212ec8c3121e5287fdcaf16 (diff) | |
download | rsyslog-55093592b4f5dd3dd9d96b986c55e4974a7af1c6.tar.gz rsyslog-55093592b4f5dd3dd9d96b986c55e4974a7af1c6.tar.bz2 rsyslog-55093592b4f5dd3dd9d96b986c55e4974a7af1c6.zip |
bugfix: potential segfault in guardtime signature provider
it could segfault if an error was reported by the GuardTime API, because
an invalid free could happen then
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | runtime/librsgt.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,4 +1,9 @@ --------------------------------------------------------------------------- +Version 7.3.12 [devel] 2013-04-?? +- bugfix: potential segfault in guardtime signature provider + it could segfault if an error was reported by the GuardTime API, because + an invalid free could happen then +--------------------------------------------------------------------------- Version 7.3.11 [devel] 2013-04-23 - added support for encrypting log files - omhiredis: added support for redis pipeline support diff --git a/runtime/librsgt.c b/runtime/librsgt.c index afafe2f2..2127e306 100644 --- a/runtime/librsgt.c +++ b/runtime/librsgt.c @@ -775,7 +775,7 @@ done: static int timestampIt(gtfile gf, GTDataHash *hash) { - unsigned char *der; + unsigned char *der = NULL; size_t lenDer; int r = GT_OK; int ret = 0; |