[libksba] asn1-func.c: array index out of range
Petr Uzel
petr.uzel at suse.cz
Wed Jun 24 18:26:10 CEST 2009
Hi,
as David Binderman (CC:) pointed out in [1], there's a 'array index
out of range' bug in current libksba. Patch follows ;)
[1] https://bugzilla.novell.com/show_bug.cgi?id=515038
Index: src/asn1-func.c
===================================================================
--- src/asn1-func.c (revision 306)
+++ src/asn1-func.c (working copy)
@@ -171,7 +171,7 @@
break;
case VALTYPE_BOOL:
len = 1;
- helpbuf[1] = s->value.v_bool;
+ helpbuf[0] = s->value.v_bool;
buf = helpbuf;
break;
case VALTYPE_CSTR:
--
Best regards / s pozdravem
Petr Uzel, Packages maintainer
---------------------------------------------------------------------
SUSE LINUX, s.r.o. e-mail: puzel at suse.cz
Lihovarská 1060/12 http://www.suse.cz
190 00 Prague 9
Czech Republic
More information about the Gnupg-devel
mailing list