[pkg-opensc-commit] [opensc] 13/23: fixed missing initialisation and bad memory access

Eric Dorland eric at moszumanska.debian.org
Tue Jul 5 06:01:12 UTC 2016


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository opensc.

commit fcf9b9e706426cbabc88af5e50774d21cdca81cd
Author: Frank Morgner <frankmorgner at gmail.com>
Date:   Thu May 26 13:42:05 2016 +0200

    fixed missing initialisation and bad memory access
---
 src/libopensc/reader-pcsc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/libopensc/reader-pcsc.c b/src/libopensc/reader-pcsc.c
index 23b4dc3..6705d86 100644
--- a/src/libopensc/reader-pcsc.c
+++ b/src/libopensc/reader-pcsc.c
@@ -1080,6 +1080,7 @@ static void detect_reader_features(sc_reader_t *reader, SCARDHANDLE card_handle)
 	}
 
 	if(gpriv->SCardGetAttrib != NULL) {
+		rcount = sizeof(rbuf);
 		if (gpriv->SCardGetAttrib(card_handle, SCARD_ATTR_VENDOR_NAME,
 					rbuf, &rcount) == SCARD_S_SUCCESS
 				&& rcount > 0) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/opensc.git



More information about the pkg-opensc-commit mailing list