Hi guys, this is my first mail to this list, I'm Matteo Nastasi, a developer from Milan (Italy), I'm using web based authentication with the CRS card (like InfoCamere card) but with the new version of the card all go in segmentation-fault (I'm using Linux to develop but official libraries not work with 64bit systems so I moved to your tools).
Investigating I found the problem. I attach the patch (but the mantainer of the file, Emanuele Pucciarelli, is also informed so tomorrow he will commit a more consistent version of the fix, with my fix also). Keep this mail as a reminder. I'm interested to work on this project, there is a TODO list of missing pieces ? Best regards and thank's a lot for your code. Matteo Nastasi. -- email: nast...@alternativeoutput.it, matteo.nast...@gmail.com web: www.alternativeoutput.it irc: #linux...@irc.freenode.net
--- opensc-0.12.0-rc2.orig/src/libopensc/pkcs15-itacns.c 2010-12-06 15:20:30.000000000 +0100 +++ opensc-0.12.0-rc2/src/libopensc/pkcs15-itacns.c 2010-12-18 14:25:22.000000000 +0100 @@ -710,10 +710,10 @@ itacns_drv_data_t *data = (itacns_drv_data_t*) p15card->card->drv_data; mask_code = data->mask_manufacturer_code; - if (mask_code >= sizeof(itacns_mask_manufacturers)) + if (mask_code >= (sizeof(itacns_mask_manufacturers) / sizeof(char *)) ) mask_code = 0; ic_code = data->ic_manufacturer_code; - if (ic_code >= sizeof(iso7816_ic_manufacturers)) + if (ic_code >= (sizeof(iso7816_ic_manufacturers) / sizeof(char *)) ) ic_code = 0; snprintf(buffer, sizeof(buffer), "IC: %s; mask: %s", iso7816_ic_manufacturers[ic_code],
_______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel