Page MenuHome GnuPG

Probable typo in sexp.c - mising parentheses
Closed, ResolvedPublic

Description

There are probably missing parentheses in the

else if (!arrayisdesc[idx] == 1)

conditional expression above. It is at line 2408 of sexp.c as of libgcrypt-1.6.2
release.
Without the parentheses the condition does not make sense.
I found it by inspecting the build logs.

Details

Version
1.6.2

Event Timeline

t8m added projects: libgcrypt, Bug Report.
t8m added a subscriber: t8m.

You are right. Due to the first condition the second evaluates to (0==1). I
need to check whether thsi used inside libgcrypt.

What a pity that I released 1.6.3 without noticing this bug. ("typo" falsely
made be believe a doc problem). Sorry.

Fix for master backported for 1.6.4 with commit 67d93a2.

werner claimed this task.