From: Frank M. <mo...@in...> - 2013-05-27 20:30:14
|
Hi! Enabling compiler warnings, I just found a bug in OpenSC. An array is accessed out of bounds. The pull request is issued, but the same bug also exists in PCSC-Lite (Drivers/ccid/MacOSX/reader.h and PCSC/src/PCSC/reader.h). Ludovic, you might want to have a look: https://github.com/frankmorgner/OpenSC/commit/e74d33441e87826b3409446d2e7b5c917b2697c4 And by the way, do you think it is usefull to add __attribute__((packed)) to the struct? Otherwise there might be some padding between the members... -- Frank Morgner Virtual Smart Card Architecture http://vsmartcard.sourceforge.net OpenPACE http://openpace.sourceforge.net IFD Handler for libnfc Devices http://sourceforge.net/projects/ifdnfc |