Changeset 3504

Show
Ignore:
Timestamp:
04/29/08 08:11:34 (5 months ago)
Author:
alonbl
Message:

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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/libopensc/asn1.c

    r3401 r3504  
    224224 
    225225        while (bytesleft >= 2) { 
    226                 unsigned int cla, tag, hlen; 
     226                unsigned int cla = 0, tag = 0, hlen; 
    227227                const u8 *tagp = p; 
    228228                size_t len;