nagyistoce / cardpeek

Automatically exported from code.google.com/p/cardpeek
Other
1 stars 0 forks source link

Crash on unknown ATR #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I get a segfault when the ATR is not known:

#1  0x00007ffff770f2a2 in g_strdup () from 
/lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#2  0x00007ffff6131fad in ?? () from 
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
No symbol table info available.
#3  0x00007ffff6111e83 in g_object_new_valist () from 
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
No symbol table info available.
#4  0x00007ffff61121d4 in g_object_new () from 
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
No symbol table info available.
#5  0x00007ffff71004e5 in gtk_button_new_from_stock () from 
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
No symbol table info available.
#6  0x00007ffff712e2a5 in gtk_dialog_add_button () from 
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
No symbol table info available.
#7  0x000000000040fee8 in gui_question_l (message=0x41f0b8 "The local copy of 
the ATR database may be outdated.\nDo you whish to do an online update?", 
item_count=16, 
    items=0x76cca0) at gui.c:81
        dialog = 0x834150
        label = <optimized out>
        hbox = <optimized out>
        img = <optimized out>
        result = <optimized out>
#8  0x00000000004100ec in gui_question (message=0x41f0b8 "The local copy of the 
ATR database may be outdated.\nDo you whish to do an online update?") at 
gui.c:63
        al = {{gp_offset = 48, fp_offset = 32767, overflow_arg_area = 0x7fffffffdf20, reg_save_area = 0x7fffffffde70}}
        item = <optimized out>
        item_count = <optimized out>
        item_table = 0x76cca0
        retval = <optimized out>
#9  0x0000000000408e62 in update_smartcard_list_txt () at main.c:80
        res = <optimized out>
        url = <optimized out>
        retval = 0
        smartcard_list = <optimized out>
        user_agent = "\001\000\000\000\000\000\000\000\b\rd\000\000\000\000\000\001\000\000\000\000\000\000\000\065\362\336\367\377\177\000\000\377\377\377\377\377\377\377\377\360\267A\000\000\000\000\000(\341\377\377\377\177\000\000\030\341\377\377\377\177\000\000\300\"d\000\000\000\000\000\200\270A\000\000\000\000\000@\227\336\367\377\177\000\000\310\342\377\367\377\177\000\000\241\000\000"
        progress = <optimized out>
        curl = <optimized out>
        smartcard_list_txt = 0x646ad0 "/home/pterjan/.cardpeek/scripts/etc/smartcard_list.txt"
        smartcard_list_download = 0x646ba0 "/home/pterjan/.cardpeek/scripts/etc/smartcard_list.download"
        now = 1372604852
        next_update = 1372374955
#10 main (argc=1, argv=0x7fffffffe118) at main.c:452
        CTX = <optimized out>
        READER = 0x820d90
        opt = <optimized out>
        opt_index = 0
        run_gui = <optimized out>
        reader_name = 0x6dbfd0 "pcsc://Gemalto GemPC Twin 00 00"
        exec_command = 0x0

Original issue reported on code.google.com by pterjan on 30 Jun 2013 at 3:09

GoogleCodeExporter commented 9 years ago
Ah easy to fix, just a missing NULL after the strings in 
update_smartcard_list_txt

Original comment by pterjan on 30 Jun 2013 at 3:17

GoogleCodeExporter commented 9 years ago

Original comment by pterjan on 30 Jun 2013 at 5:12

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks! I noticed that as well a while ago, but I forgot to push the update to 
SVM. This should be corrected by now.

Original comment by L...@gmx.com on 2 Jul 2013 at 10:44