Accepting request 560920 from home:avindra
- update to 0.1.7 * Fixed segfault in yaml_string_write_handler * Fixed invalid simple key assertion (CVE-2014-9130) * Fixed error handling in some examples - remove CVE-2014-9130.patch - fixed upstream in 946596172d140497b560e016e581accb0a92cca4 - cleanup spec file with spec-cleaner OBS-URL: https://build.opensuse.org/request/show/560920 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libyaml?expand=0&rev=17
This commit is contained in:
parent
83296f9f6f
commit
2998ae3a4a
@ -1,16 +0,0 @@
|
|||||||
diff --git a/src/scanner.c b/src/scanner.c
|
|
||||||
index 88d4fa5..c5f3d2f 100644
|
|
||||||
--- a/src/scanner.c
|
|
||||||
+++ b/src/scanner.c
|
|
||||||
@@ -1110,7 +1110,9 @@ yaml_parser_save_simple_key(yaml_parser_t *parser)
|
|
||||||
* line. Therefore it is always allowed. But we add a check anyway.
|
|
||||||
*/
|
|
||||||
|
|
||||||
- assert(parser->simple_key_allowed || !required); /* Impossible. */
|
|
||||||
+ /* XXX This caused:
|
|
||||||
+ * https://bitbucket.org/xi/libyaml/issue/10/wrapped-strings-cause-assert-failure
|
|
||||||
+ assert(parser->simple_key_allowed || !required); */ /* Impossible. */
|
|
||||||
|
|
||||||
/*
|
|
||||||
* If the current position may start a simple key, save it.
|
|
||||||
|
|
@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Dec 31 22:20:11 UTC 2017 - avindra@opensuse.org
|
||||||
|
|
||||||
|
- update to 0.1.7
|
||||||
|
* Fixed segfault in yaml_string_write_handler
|
||||||
|
* Fixed invalid simple key assertion (CVE-2014-9130)
|
||||||
|
* Fixed error handling in some examples
|
||||||
|
- remove CVE-2014-9130.patch
|
||||||
|
- fixed upstream in 946596172d140497b560e016e581accb0a92cca4
|
||||||
|
- cleanup spec file with spec-cleaner
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Dec 3 12:49:34 UTC 2014 - jmassaguerpla@suse.com
|
Wed Dec 3 12:49:34 UTC 2014 - jmassaguerpla@suse.com
|
||||||
|
|
||||||
|
28
libyaml.spec
28
libyaml.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package libyaml
|
# spec file for package libyaml
|
||||||
#
|
#
|
||||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -17,16 +17,14 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: libyaml
|
Name: libyaml
|
||||||
Version: 0.1.6
|
Version: 0.1.7
|
||||||
Release: 0
|
Release: 0
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
Url: http://pyyaml.org/wiki/LibYAML
|
|
||||||
Source: http://pyyaml.org/download/libyaml/yaml-%{version}.tar.gz
|
|
||||||
Patch0: CVE-2014-9130.patch
|
|
||||||
BuildRequires: pkg-config
|
|
||||||
Summary: A YAML 1.1 parser and emitter written in C
|
Summary: A YAML 1.1 parser and emitter written in C
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
|
Url: http://pyyaml.org/wiki/LibYAML
|
||||||
|
Source: http://pyyaml.org/download/libyaml/yaml-%{version}.tar.gz
|
||||||
|
BuildRequires: pkgconfig
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A YAML 1.1 parser and emitter written in C
|
A YAML 1.1 parser and emitter written in C
|
||||||
@ -43,9 +41,9 @@ A YAML 1.1 parser and emitter written in C
|
|||||||
This package holds the shared library of libyaml.
|
This package holds the shared library of libyaml.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Requires: %{lib_name} = %{version}
|
|
||||||
Summary: Development files for libyaml
|
Summary: Development files for libyaml
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
|
Requires: %{lib_name} = %{version}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
A YAML 1.1 parser and emitter written in C
|
A YAML 1.1 parser and emitter written in C
|
||||||
@ -53,31 +51,27 @@ A YAML 1.1 parser and emitter written in C
|
|||||||
This package holds the development files for libyaml.
|
This package holds the development files for libyaml.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -n yaml-%{version}
|
%setup -q -n yaml-%{version}
|
||||||
%patch0 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --with-pic --disable-static
|
%configure --with-pic --disable-static
|
||||||
make %{?_smp_flags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%makeinstall
|
%make_install
|
||||||
find %{buildroot} -name \*.la -delete -print
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make check
|
make %{?_smp_mflags} check
|
||||||
|
|
||||||
%post -n %{lib_name} -p /sbin/ldconfig
|
%post -n %{lib_name} -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n %{lib_name} -p /sbin/ldconfig
|
%postun -n %{lib_name} -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -n %{lib_name}
|
%files -n %{lib_name}
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_libdir}/libyaml-0.so.2
|
%{_libdir}/libyaml-0.so.2
|
||||||
%{_libdir}/libyaml-0.so.2.0.*
|
%{_libdir}/libyaml-0.so.2.0.*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_includedir}/yaml.h
|
%{_includedir}/yaml.h
|
||||||
%{_libdir}/libyaml.so
|
%{_libdir}/libyaml.so
|
||||||
%{_libdir}/pkgconfig/yaml-0.1.pc
|
%{_libdir}/pkgconfig/yaml-0.1.pc
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:7da6971b4bd08a986dd2a61353bc422362bd0edcc67d7ebaac68c95f74182749
|
|
||||||
size 503012
|
|
3
yaml-0.1.7.tar.gz
Normal file
3
yaml-0.1.7.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:8088e457264a98ba451a90b8661fcb4f9d6f478f7265d48322a196cec2480729
|
||||||
|
size 527518
|
Loading…
x
Reference in New Issue
Block a user