|
Re: Patch for the pkcs15 cache: msg#00010encryption.opensc.devel
Hi Sirio, ok, thx, applied. In fact, I also removed the first check: @@ -86,8 +86,7 @@ } else { count = path->count; offset = path->index; - if (offset >= (size_t)stbuf.st_size - || offset + count >= (size_t)stbuf.st_size) + if (offset + count > (size_t)stbuf.st_size) return SC_ERROR_FILE_NOT_FOUND; /* cache file bad? */ } if (*buf == NULL) { It should be OK, but if you'd find any problems with, let us know. Stef Sirio Capizzi wrote: I've created a patch for the pkcs15 cache. It seems that with the actual code isn't possibile to read a cached file from the begin to the end. This is due to a wrong comparation (>= instead of >). It would be very nice if you will add this patch to the next cvs commit. Thanks |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: pinpad & opensc: 00010, Antti Tapaninen |
|---|---|
| Next by Date: | Re: CKA_MODULUS in OpenSC PKCS#11 module: 00010, Stef Hoeben |
| Previous by Thread: | Re: pinpad & opensci: 00010, Antti Tapaninen |
| Next by Thread: | eToken Pro openSSH: 00010, Boris von Alten Blaskowitz |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |