yaml-cpp.git
5 years agoRevert "Apply formatting/style tweaks to comply with compile time diagnostics for...
Adrian Bunk [Sun, 10 May 2020 08:39:29 +0000 (11:39 +0300)]
Revert "Apply formatting/style tweaks to comply with compile time diagnostics for g++ and clang++ (#686)"

This reverts commit 0d5c57150cebb430fcc216d8066dbb28aeaafe8e.

Gbp-Pq: Name 0004-Revert-Apply-formatting-style-tweaks-to-comply-with-.patch

5 years agoRevert "Disallow moving for the Parser."
Adrian Bunk [Sun, 10 May 2020 08:39:29 +0000 (11:39 +0300)]
Revert "Disallow moving for the Parser."

This reverts commit bd7f8c60c82614bb0bd1c526db2cbc39dac02fec.

Gbp-Pq: Name 0003-Revert-Disallow-moving-for-the-Parser.patch

5 years agoRevert "Improve error messages on operator[] or as<> (#656)"
Adrian Bunk [Sun, 10 May 2020 08:39:29 +0000 (11:39 +0300)]
Revert "Improve error messages on operator[] or as<> (#656)"

This reverts commit 012269756149ae99745b6dafefd415843d7420bb.

Gbp-Pq: Name 0002-Revert-Improve-error-messages-on-operator-or-as-656.patch

5 years agoRevert "Static analysis fix: replace 0 and NULL with nullptr (#738)"
Adrian Bunk [Sun, 10 May 2020 08:39:29 +0000 (11:39 +0300)]
Revert "Static analysis fix: replace 0 and NULL with nullptr (#738)"

This reverts commit db0bda7087a6fac811e78957787fc5037465ac4e.

Gbp-Pq: Name 0001-Revert-Static-analysis-fix-replace-0-and-NULL-with-n.patch

5 years agoFix unbounded recursion CVEs
Simon Quigley [Wed, 13 May 2020 17:26:42 +0000 (18:26 +0100)]
Fix unbounded recursion CVEs

Origin: https://github.com/jbeder/yaml-cpp/pull/807
Forwarded: yes
Bug: https://github.com/jbeder/yaml-cpp/issues/459
Bug: https://github.com/jbeder/yaml-cpp/issues/655
Bug: https://github.com/jbeder/yaml-cpp/issues/654
Bug: https://github.com/jbeder/yaml-cpp/issues/660

This cherry-picks the (so-far-unmerged) upstream pull request.
The final 5 commits of that PR are not included; they only add tests
to a file not present in the 0.6.2 (or 0.6.3) release.

From d540476e31b080aa1f903ad20ec0426dd3838be7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= <anarcat@debian.org>
Date: Tue, 25 Apr 2017 20:10:20 -0400
Subject: [PATCH 1/9] fix stack overflow in HandleNode() (CVE-2017-5950)

simply set a hardcoded recursion limit to 2000 (inspired by Python's)
to avoid infinitely recursing into arbitrary data structures

assert() the depth. unsure if this is the right approach, but given
that HandleNode() is "void", I am not sure how else to return an
error. the problem with this approach of course is that it will still
crash the caller, unless they have proper exception handling in place.

Closes: #459
Gbp-Pq: Name fix-unbounded-recursion-depth.patch

5 years agofix-CVE-2017-11692
Simon Quigley [Wed, 13 May 2020 17:26:42 +0000 (18:26 +0100)]
fix-CVE-2017-11692

commit c9460110e072df84b7dee3eb651f2ec5df75fb18
Author: Jesse Beder <jbeder@gmail.com>
Date:   Mon Jan 20 18:05:15 2020 -0600

    Fix reading empty token stack with a node with properties but no scalar.

    E.g. `!2`.

Gbp-Pq: Name fix-CVE-2017-11692.patch

5 years agosymbol-visibility
Simon Quigley [Wed, 13 May 2020 17:26:42 +0000 (18:26 +0100)]
symbol-visibility

commit df9206778fe9ff1bdd56d975c29c43dfe1e66de7
Author: Christopher James Halse Rogers <christopher.halse.rogers@canonical.com>
Date:   Fri Nov 23 15:26:53 2018 +1100

    Export only YAML_CPP_API-tagged symbols on Linux.

    This marks classes tagged with YAML_CPP_API with visibility("default"), to
    explicitly export them, and then makes the default visibility "hidden" via
    -fvisibility=hidden.

    This reduces the number of exported symbols by more than 50%, which has
    a small application start-up time and memory useage benefit. It also
    makes it more feasible to audit the set of exported symbols in automated
    ABI compatibility systems.

Gbp-Pq: Name symbol-visibility.patch

5 years agoMake the build reproducible
Reiner Herrmann [Wed, 13 May 2020 17:26:42 +0000 (18:26 +0100)]
Make the build reproducible

Bug-Debian: https://bugs.debian.org/808714
Last-Update: 2016-10-11

Gbp-Pq: Name reproducible-build.patch

5 years agoInstall libs and cmake files to the Debian location
Paul Novotny [Wed, 13 May 2020 17:26:42 +0000 (18:26 +0100)]
Install libs and cmake files to the Debian location

Forwarded: not-needed
Last-Update: 2015-11-29

Instead of moving the libs to the DEB_HOST_MULTIARCH lib directory during
packaging, have cmake install the libs directly. This is needed so the CMake
development files point to the correct location for the libs. Also, install
yaml-cpp-config.cmake, yaml-cpp-config-version.cmake, and
yaml-cpp-targets.cmake.

Gbp-Pq: Name install-cmake-dev-files.patch

5 years agoyaml-cpp (0.6.3-7) unstable; urgency=medium
Gianfranco Costamagna [Wed, 13 May 2020 17:26:42 +0000 (18:26 +0100)]
yaml-cpp (0.6.3-7) unstable; urgency=medium

  * Team upload
  [ Adrian Bunk ]
  * From Adrian Bunk, fix other c++ symbols that broke ABI
    (Closes: #959201)

[dgit import unpatched yaml-cpp 0.6.3-7]

5 years agoImport yaml-cpp_0.6.3-7.debian.tar.xz
Gianfranco Costamagna [Wed, 13 May 2020 17:26:42 +0000 (18:26 +0100)]
Import yaml-cpp_0.6.3-7.debian.tar.xz

[dgit import tarball yaml-cpp 0.6.3-7 yaml-cpp_0.6.3-7.debian.tar.xz]

5 years agoImport yaml-cpp_0.6.3.orig.tar.gz
Simon Quigley [Thu, 30 Apr 2020 01:24:07 +0000 (02:24 +0100)]
Import yaml-cpp_0.6.3.orig.tar.gz

[dgit import orig yaml-cpp_0.6.3.orig.tar.gz]