From 805c6b5a30e24bf937614fc79fabc38f49de4cc4 Mon Sep 17 00:00:00 2001 From: Frank Morgner Date: Tue, 11 Jul 2017 10:07:28 +0200 Subject: [PATCH] PIV: workaround for reading public key closes https://github.com/OpenSC/OpenSC/pull/1069 --- src/libopensc/pkcs15-pubkey.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libopensc/pkcs15-pubkey.c b/src/libopensc/pkcs15-pubkey.c index e1935a19..63879fca 100644 --- a/src/libopensc/pkcs15-pubkey.c +++ b/src/libopensc/pkcs15-pubkey.c @@ -1234,7 +1234,7 @@ sc_pkcs15_read_der_file(sc_context_t *ctx, char * filename, int r; int f = -1; size_t len, offs; - u8 tagbuf[16]; /* enough to read in the tag and length */ + u8 tagbuf[1024]; /* enough to read in the tag and length */ u8 * rbuf = NULL; size_t rbuflen = 0; const u8 * body = NULL;