Closed GoogleCodeExporter closed 9 years ago
Actually third case is handled properly, read() returns an error.
So it's only in the second case that we've a problem:
read(x) with auth0 - 4 < x < auth0
Original comment by yob...@gmail.com
on 14 Nov 2012 at 9:12
My proposal:
* use another temp buffer to hold read data
* reduce tag cache buffer to actual max size (today it's hacked =+3 to cope
with wrapped read of last page)
* if (UL or (ULC and AUTHENTICATED)), copy data to cache with proper wrapping
if required
* if (ULC and not AUTHENTICATED), copy one single page in cache and ignore rest
of data
It's less efficient when reading without being authenticated but it keeps the
code much clearer.
What do you think?
Original comment by yob...@gmail.com
on 14 Nov 2012 at 9:24
Issue moved to https://code.google.com/p/libfreefare/issues/detail?id=7
Original comment by yob...@gmail.com
on 15 Jan 2013 at 8:19
Original issue reported on code.google.com by
yob...@gmail.com
on 14 Nov 2012 at 8:46