« Previous | Next » 

Revision a5aa842a

IDa5aa842a0597ef9a24e80966b02ca01f287fb334

Added by Christophe Fergeau almost 10 years ago

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 <>
Reviewed-by: Alon Levy <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences