just connecting and disconnecting does not seem to be enough to mess the heap
seems we need to auth before getting CardUID
this does not yet crash
still no crash
still no crash
still no crash
NOW it crashes
then again this does NOT crash
this crashes
switching to uint32 for ACL seems to work fine... go figure...
now it atleast does not segfault...
after a couple of succesfull reads I now keep getting "unknown error" when re-authenticatingwith the ACL-read key (either key diversification gets fscked or something goes wrong in libfreefare
this does not help with the "unknown error"
it seems we lose first byte of aidbytes somewhere...
it seems these two approaches return different result... anyway we lose the first byte at some poitn for reasons unknown...
now we the aidbytes totally...
this seems reliable though
and now we are losing parts of the sysid... something is fscked...
let it run long enough and fatal error: markallocated: bad pointer
be less noisy