mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-23 15:07:03 +01:00
ecc-sos: Fix SOS handling in do_unprotect.
* agent/cvt-openpgp.c (do_unprotect): Exclude the case when the first byte is zero. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
bc3d003e00
commit
43c0c19fca
@ -451,6 +451,7 @@ do_unprotect (const char *passphrase,
|
||||
nbytes = (nbits+7)/8;
|
||||
|
||||
nbits = nbytes * 8;
|
||||
if (*buffer)
|
||||
if (nbits >= 8 && !(*buffer & 0x80))
|
||||
if (--nbits >= 7 && !(*buffer & 0x40))
|
||||
if (--nbits >= 6 && !(*buffer & 0x20))
|
||||
|
Loading…
x
Reference in New Issue
Block a user