diff --git a/pcsc-lite-1.3.3-array.patch b/pcsc-lite-1.3.3-array.patch new file mode 100644 index 0000000..153c60f --- /dev/null +++ b/pcsc-lite-1.3.3-array.patch @@ -0,0 +1,11 @@ +--- src/winscard_svc.c ++++ src/winscard_svc.c +@@ -90,8 +90,6 @@ + + if (i == PCSCLITE_MAX_APPLICATIONS_CONTEXTS) + { +- SYS_CloseFile(psContext[i].dwClientID); +- psContext[i].dwClientID = 0; + Log2(PCSC_LOG_CRITICAL, "No more context available (max: %d)", + PCSCLITE_MAX_APPLICATIONS_CONTEXTS); + return SCARD_F_INTERNAL_ERROR; diff --git a/pcsc-lite.changes b/pcsc-lite.changes index e6fe202..acfe262 100644 --- a/pcsc-lite.changes +++ b/pcsc-lite.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Mar 5 17:32:11 CET 2007 - pgajdos@suse.cz + +- fixed 'warning: array subscript is above array bounds' (#239174) + ------------------------------------------------------------------- Tue Feb 13 14:08:53 CET 2007 - sbrabec@suse.cz diff --git a/pcsc-lite.spec b/pcsc-lite.spec index b67d05c..593c892 100644 --- a/pcsc-lite.spec +++ b/pcsc-lite.spec @@ -15,7 +15,7 @@ Name: pcsc-lite %define ifddir %{_libdir}/readers BuildRequires: libusb pkg-config readline-devel resmgr Version: 1.3.3 -Release: 1 +Release: 3 PreReq: %{insserv_prereq} %{fillup_prereq} # For upgrade from <= SLES9: PreReq: coreutils @@ -28,6 +28,7 @@ Source0: %{name}-%{version}.tar.bz2 Source1: pcscd.init Source2: README.SUSE Source3: pre_checkin.sh +Patch: %{name}-%{version}-array.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -76,6 +77,7 @@ Authors: %prep %setup -q +%patch %build ACLOCAL="aclocal -I m4" autoreconf -f -i @@ -139,7 +141,9 @@ fi %{_libdir}/*.*a %{_libdir}/pkgconfig/*.pc -%changelog -n pcsc-lite +%changelog +* Mon Mar 05 2007 - pgajdos@suse.cz +- fixed 'warning: array subscript is above array bounds' (#239174) * Tue Feb 13 2007 - sbrabec@suse.cz - Updated to version 1.3.3: * Added -H --hotplug argument.