]> git.proxmox.com Git - libgit2.git/commitdiff
Updated version
authorRussell Sim <russell.sim@gmail.com>
Sun, 23 Oct 2016 03:37:11 +0000 (14:37 +1100)
committerRussell Sim <russell.sim@gmail.com>
Thu, 27 Oct 2016 08:19:04 +0000 (19:19 +1100)
* Added patch for CVEs
* Bumped standards version
* Set debian hardening complie flags
* patched with fixes for CVEs
* Fix compile in GMT-14

debian/changelog
debian/control
debian/libgit2-24.lintian-overrides
debian/libgit2-dev.lintian-overrides
debian/patches/commit-always-initialize-commit-message.patch [new file with mode: 0644]
debian/patches/series
debian/rules
debian/source.lintian-overrides

index 4bd1d5c9e2393e2f413a9f18a760367c7ac34421..1a6870264225cacdec13cc8c85af86ea8b4ca25f 100644 (file)
@@ -1,3 +1,14 @@
+libgit2 (0.24.2-1) UNRELEASED; urgency=medium
+
+  * New upstream release.
+  * Bump Standards-Version to 3.9.8
+  * Add commit-always-initialize-commit-message.patch fixes CVE-2016-8568,
+    CVE-2016-8569
+  * Set debian hardening compile flags.
+  * Force timezone to GMT.
+
+ -- Russell Sim <russell.sim@gmail.com>  Sun, 23 Oct 2016 14:30:45 +1100
+
 libgit2 (0.24.1-2) unstable; urgency=medium
 
   * Team upload.
index c68a0c5f7c24736913bb6e1bd5119e757b481faa..2fe40964fb978afa2c6a04322127e3ee5deb54c9 100644 (file)
@@ -6,7 +6,7 @@ Build-Depends: debhelper (>= 9.20160114),
                python-minimal (>= 2.4.0), pkg-config,
                cmake, libz-dev, libcurl4-gnutls-dev,
                libssh2-1-dev, libhttp-parser-dev
-Standards-Version: 3.9.7
+Standards-Version: 3.9.8
 Homepage: http://libgit2.github.com/
 Vcs-Git: https://anonscm.debian.org/cgit/collab-maint/libgit2.git/
 Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/libgit2.git/
index 869b94eb871879ae4f8616429699ccc0f6d95a84..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
@@ -1 +0,0 @@
-libgit2-24: spelling-error-in-binary
index 493dab4edfeb5ae8a78d7b3ec69b011cecdce190..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
@@ -1 +0,0 @@
-libgit2-dev: static-library-has-unneeded-section
diff --git a/debian/patches/commit-always-initialize-commit-message.patch b/debian/patches/commit-always-initialize-commit-message.patch
new file mode 100644 (file)
index 0000000..301b6c1
--- /dev/null
@@ -0,0 +1,43 @@
+From a719ef5e6d4a1a8ec53469c7914032ed67922772 Mon Sep 17 00:00:00 2001
+From: Patrick Steinhardt <ps@pks.im>
+Date: Fri, 7 Oct 2016 09:31:41 +0200
+Subject: [PATCH] commit: always initialize commit message
+
+When parsing a commit, we will treat all bytes left after parsing
+the headers as the commit message. When no bytes are left, we
+leave the commit's message uninitialized. While uncommon to have
+a commit without message, this is the right behavior as Git
+unfortunately allows for empty commit messages.
+
+Given that this scenario is so uncommon, most programs acting on
+the commit message will never check if the message is actually
+set, which may lead to errors. To work around the error and not
+lay the burden of checking for empty commit messages to the
+developer, initialize the commit message with an empty string
+when no commit message is given.
+---
+ src/commit.c | 7 ++++---
+ 1 file changed, 4 insertions(+), 3 deletions(-)
+
+diff --git a/src/commit.c b/src/commit.c
+index 99a8085..76e6dcb 100644
+--- a/src/commit.c
++++ b/src/commit.c
+@@ -459,10 +459,11 @@ int git_commit__parse(void *_commit, git_odb_object *odb_obj)
+       buffer = buffer_start + header_len + 1;
+       /* extract commit message */
+-      if (buffer <= buffer_end) {
++      if (buffer <= buffer_end)
+               commit->raw_message = git__strndup(buffer, buffer_end - buffer);
+-              GITERR_CHECK_ALLOC(commit->raw_message);
+-      }
++      else
++              commit->raw_message = git__strdup("");
++      GITERR_CHECK_ALLOC(commit->raw_message);
+       return 0;
+-- 
+2.8.1
+
index cdacb994b8ddad3939d14c8bb44a4ba589955111..4836182ba99c7b83a697214624d686673db3566a 100644 (file)
@@ -1 +1,2 @@
 disable_tests.patch
+commit-always-initialize-commit-message.patch
index dc683dcc151cecaf1b0e9474610ee5fffef79b65..65daeec8f731cb16444f03c19ab2bf6264558875 100755 (executable)
@@ -10,6 +10,9 @@
 
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 TEST_TMPDIR := $(CURDIR)/tmp-test
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/buildflags.mk
 
 override_dh_auto_configure:
        dh_auto_configure --builddirectory=build-debian-release -- \
@@ -41,9 +44,9 @@ override_dh_auto_install:
 
 override_dh_auto_test:
        mkdir -p build-debian-release/tmp
-       dh_auto_test --builddirectory=build-debian-release
+       TZ=/usr/share/zoneinfo/Etc/GMT dh_auto_test --builddirectory=build-debian-release
        mkdir -p build-debian-devel/tmp
-       dh_auto_test --builddirectory=build-debian-devel
+       TZ=/usr/share/zoneinfo/Etc/GMT dh_auto_test --builddirectory=build-debian-devel
 
 override_dh_strip:
        dh_strip --dbgsym-migration='libgit2-dbg (<< 0.24.0-2~)'
index 6a578ca08697d9d82ad589b0b5ccd2ed9aca9b28..b841c348ca793719414133f6af960a85b650799d 100644 (file)
@@ -1,2 +1 @@
-libgit2: source-contains-prebuilt-windows-binary
 libgit2: debian-watch-may-check-gpg-signature