qemu/libcacard
Christophe Fergeau a5aa842a05 libcacard: fix soft=... parsing in vcard_emul_options
The previous parser had copy and paste errors when computing
vname_length and type_params_length, "name" was used instead
of respectively vname and type_params. This led to length that could
be bigger than the input string, and to access out of the array
bounds when trying to copy these strings. valgrind rightfully
complained about this. It also didn't handle empty fields correctly,

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
Reviewed-by: Alon Levy <alevy@redhat.com>
2011-07-22 18:05:36 +03:00
..
cac.c libcacard: initial commit 2011-04-01 19:07:48 -05:00
cac.h libcacard: initial commit 2011-04-01 19:07:48 -05:00
card_7816.c libcacard: initial commit 2011-04-01 19:07:48 -05:00
card_7816.h libcacard: initial commit 2011-04-01 19:07:48 -05:00
card_7816t.h libcacard: initial commit 2011-04-01 19:07:48 -05:00
event.c libcacard: initial commit 2011-04-01 19:07:48 -05:00
eventt.h libcacard: initial commit 2011-04-01 19:07:48 -05:00
link_test.c libcacard: initial commit 2011-04-01 19:07:48 -05:00
Makefile libcacard: add libcacard.la target 2011-06-14 09:34:34 -05:00
vcard_emul_nss.c libcacard: fix soft=... parsing in vcard_emul_options 2011-07-22 18:05:36 +03:00
vcard_emul_type.c libcacard: initial commit 2011-04-01 19:07:48 -05:00
vcard_emul_type.h libcacard: initial commit 2011-04-01 19:07:48 -05:00
vcard_emul.h libcacard: initial commit 2011-04-01 19:07:48 -05:00
vcard.c libcacard: initial commit 2011-04-01 19:07:48 -05:00
vcard.h libcacard: initial commit 2011-04-01 19:07:48 -05:00
vcardt.h libcacard: initial commit 2011-04-01 19:07:48 -05:00
vevent.h libcacard: initial commit 2011-04-01 19:07:48 -05:00
vreader.c libcacard: initial commit 2011-04-01 19:07:48 -05:00
vreader.h libcacard: initial commit 2011-04-01 19:07:48 -05:00
vreadert.h libcacard: initial commit 2011-04-01 19:07:48 -05:00
vscard_common.h Fix typos in comments (existance -> existence) 2011-05-08 10:02:17 +01:00
vscclient.c libcacard: add vscclient 2011-04-01 19:07:49 -05:00