SIGSEGV print_tags_recursive - fix

Patch opensc-0.11.4.trunk-r3502-fix-segv_print_tags_asn1.diff (for trunk
trunk revision 3502) is draft.


Example 1 (SIGSEGV):

OpenSC Explorer version 0.11.4-svn
OpenSC [3F00]> cd ff00
OpenSC [3F00/FF00]> asn1 0001
Printing tags for buffer of length 512
[Switching to Thread -1211906368 (LWP 25131)]

By Aktiv Co. Aleksey Samsonov



git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3504 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
alonbl 2008-04-29 06:11:34 +00:00
parent 6c740b907e
commit c862f88ce7
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,7 @@ static void print_tags_recursive(const u8 * buf0, const u8 * buf,
const u8 *p = buf;
while (bytesleft >= 2) {
unsigned int cla, tag, hlen;
unsigned int cla = 0, tag = 0, hlen;
const u8 *tagp = p;
size_t len;