- Introduce patch 0003-increase-ini-max-value-length.patch

to support longer values in INI file parser. bsc#989488

OBS-URL: https://build.opensuse.org/package/show/network:ldap/ding-libs?expand=0&rev=30
This commit is contained in:
Howard Guo 2016-07-29 10:26:23 +00:00 committed by Git OBS Bridge
parent 1a664690c4
commit b8ca5ffc58
3 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,16 @@
In order to support longer values in INI parser, the maximum value length
is increased.
Author: David Bond <dbond@suse.com>
diff -rupN ding-libs-0.5.0/ini/ini_defines.h ding-libs-0.5.0-patched/ini/ini_defines.h
--- ding-libs-0.5.0/ini/ini_defines.h 2015-06-23 14:12:00.000000000 +0200
+++ ding-libs-0.5.0-patched/ini/ini_defines.h 2016-07-29 12:15:41.866273555 +0200
@@ -66,7 +66,7 @@
#define INI_SECTION_KEY "["
/* Internal sizes. MAX_KEY is defined in config.h */
-#define MAX_VALUE PATH_MAX
+#define MAX_VALUE (PATH_MAX + 4096)
#define BUFFER_SIZE MAX_KEY + MAX_VALUE + 3
/* Beffer length used for int to string conversions */

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Jul 29 10:24:17 UTC 2016 - hguo@suse.com
- Introduce patch 0003-increase-ini-max-value-length.patch
to support longer values in INI file parser. bsc#989488
-------------------------------------------------------------------
Wed Feb 24 19:09:25 UTC 2016 - jengelh@inai.de

View File

@ -37,6 +37,7 @@ Source: https://fedorahosted.org/released/ding-libs/%name-%version.tar.g
Source2: https://fedorahosted.org/released/ding-libs/%name-%version.tar.gz.asc
Source3: %name.keyring
Source4: baselibs.conf
Patch1: 0001-increase-ini-max-value-length.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: doxygen
BuildRequires: pkgconfig
@ -179,6 +180,7 @@ A dynamically-growing, reference-counted array
%prep
%setup -q
%patch1 -p1
%build
%configure --disable-static