]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/emv/emvcore.c
fix memory overflow in hf mf nested (issue #479)
[proxmark3-svn] / client / emv / emvcore.c
index 8dc9325964142dedc24d6633c4838e7db0bfba61..63a69baab82176ac48a68c0667bff163250ae703 100644 (file)
 
 #include "emvcore.h"
 
-static bool print_cb(void *data, const struct tlv *tlv, int level) {
+static bool print_cb(void *data, const struct tlv *tlv, int level, bool is_leaf) {
        emv_tag_dump(tlv, stdout, level);
-       dump_buffer(tlv->value, tlv->len, stdout, level);
+       if (is_leaf) {
+               dump_buffer(tlv->value, tlv->len, stdout, level);
+       }
 
        return true;
 }
Impressum, Datenschutz