From eb8f5859b1349f8147ba47a1da8032df192f2370 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 17 Jul 2013 08:03:38 +0200 Subject: Fix various issues highlighted by coverity scanner Among others fix possible usage of large stack allocation. --- common/hash.c | 1 + common/lexer.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'common') diff --git a/common/hash.c b/common/hash.c index 68a6d40..5572085 100644 --- a/common/hash.c +++ b/common/hash.c @@ -143,6 +143,7 @@ p11_hash_murmur3 (void *hash, h1 = rotl (h1, 13); h1 = h1 * 5 + 0xe6546b64; } + va_end (va); /* tail */ diff --git a/common/lexer.c b/common/lexer.c index 329881f..6253492 100644 --- a/common/lexer.c +++ b/common/lexer.c @@ -102,7 +102,8 @@ p11_lexer_next (p11_lexer *lexer, return_val_if_fail (lexer != NULL, false); clear_state (lexer); - *failed = false; + if (failed) + *failed = false; /* Go through lines and process them */ while (lexer->remaining != 0) { -- cgit v1.1