[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 01/10] argp-parse.c (__argp_input): Don't crash if pstate is N
From: |
Robbie Harwood |
Subject: |
[PATCH v2 01/10] argp-parse.c (__argp_input): Don't crash if pstate is NULL |
Date: |
Wed, 1 Dec 2021 16:01:56 -0500 |
From: Colin Watson <cjwatson@ubuntu.com>
[rharwood@redhat.com: tweaked commit message]
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
---
lib/argp-parse.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/argp-parse.c b/lib/argp-parse.c
index 053495ec0..4f1c65d73 100644
--- a/lib/argp-parse.c
+++ b/lib/argp-parse.c
@@ -940,7 +940,7 @@ weak_alias (__argp_parse, argp_parse)
void *
__argp_input (const struct argp *argp, const struct argp_state *state)
{
- if (state)
+ if (state && state->pstate)
{
struct group *group;
struct parser *parser = state->pstate;
--
2.33.0
[PATCH v2 04/10] Fix width computation, Robbie Harwood, 2021/12/01
[PATCH v2 03/10] gnulib/regexec: Resolve unused variable, Robbie Harwood, 2021/12/01
[PATCH v2 02/10] gnulib/regexec: Fix possible null-dereference, Robbie Harwood, 2021/12/01