Package: gnupg2 / 2.0.26-6+deb8u2

0041-gpgconf-Fix-validity-check-for-UINT32-values.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
From 068ec6c8ed07268469f33e5b3ba1e094d9bf3394 Mon Sep 17 00:00:00 2001
From: Werner Koch <wk@gnupg.org>
Date: Fri, 23 Jan 2015 15:37:51 +0100
Subject: [PATCH 41/56] gpgconf: Fix validity check for UINT32 values.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

* tools/gpgconf-comp.c (option_check_validity): Enable check for
UINT32.
--

Reported-by: G√ľnther Noack <gnoack@google.com>

This is actually a bug which inhibited the checking of values of type
UINT32.

Signed-off-by: Werner Koch <wk@gnupg.org>
(cherry picked from commit 3f6abb57a7b5e54b593c5775c8f7a07d61119705)
---
 tools/gpgconf-comp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/gpgconf-comp.c b/tools/gpgconf-comp.c
index 83bc24e..4993989 100644
--- a/tools/gpgconf-comp.c
+++ b/tools/gpgconf-comp.c
@@ -2249,7 +2249,7 @@ option_check_validity (gc_option_t *option, unsigned long flags,
 	    gc_error (1, 0, "garbage after argument for option %s",
 		      option->name);
 	}
-      else if (gc_arg_type[option->arg_type].fallback == GC_ARG_TYPE_INT32)
+      else if (gc_arg_type[option->arg_type].fallback == GC_ARG_TYPE_UINT32)
 	{
 	  errno = 0;
 	  (void) strtoul (arg, &arg, 0);
-- 
2.1.4