tig: update to 2.5.1
This commit is contained in:
parent
909cd517b1
commit
48ac73d510
2 changed files with 3 additions and 32 deletions
|
@ -1,29 +0,0 @@
|
||||||
From 6202c6032f17438a2facb23f02e330b9d0566d9d Mon Sep 17 00:00:00 2001
|
|
||||||
From: Thomas Koutcher <thomas.koutcher@online.fr>
|
|
||||||
Date: Sun, 24 Nov 2019 13:06:08 +0100
|
|
||||||
Subject: [PATCH] Fix segmentation fault
|
|
||||||
|
|
||||||
As reported by Maxim Zhukov, the commit 9ca7710 ("Fix memory leak in
|
|
||||||
main view (#931)", 01-06-2019) causes a SIGSEGV when holding the key
|
|
||||||
'Stage/Unstage current line' in stage view.
|
|
||||||
|
|
||||||
Add a check to avoid null pointer dereference.
|
|
||||||
|
|
||||||
Fixes #971
|
|
||||||
---
|
|
||||||
src/graph-v2.c | 3 ++-
|
|
||||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/src/graph-v2.c b/src/graph-v2.c
|
|
||||||
index 46504a85..69ac1587 100644
|
|
||||||
--- src/graph-v2.c
|
|
||||||
+++ src/graph-v2.c
|
|
||||||
@@ -257,6 +257,7 @@ done_graph(struct graph *graph_ref)
|
|
||||||
{
|
|
||||||
struct graph_v2 *graph = graph_ref->private;
|
|
||||||
|
|
||||||
- htab_delete(graph->colors.id_map);
|
|
||||||
+ if (graph->colors.id_map)
|
|
||||||
+ htab_delete(graph->colors.id_map);
|
|
||||||
|
|
||||||
free(graph);
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'tig'
|
# Template file for 'tig'
|
||||||
pkgname=tig
|
pkgname=tig
|
||||||
version=2.5.0
|
version=2.5.1
|
||||||
revision=2
|
revision=1
|
||||||
wrksrc="${pkgname}-${pkgname}-${version}"
|
wrksrc="${pkgname}-${pkgname}-${version}"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
make_install_args="install-doc-man"
|
make_install_args="install-doc-man"
|
||||||
|
@ -14,7 +14,7 @@ maintainer="Lugubris <lugubris@disroot.org>"
|
||||||
license="GPL-2.0-only"
|
license="GPL-2.0-only"
|
||||||
homepage="https://jonas.github.io/tig/"
|
homepage="https://jonas.github.io/tig/"
|
||||||
distfiles="https://github.com/jonas/tig/archive/tig-${version}.tar.gz"
|
distfiles="https://github.com/jonas/tig/archive/tig-${version}.tar.gz"
|
||||||
checksum=a58791274780e9106c37822b098aa52c93c53d8a66d97b3c3e6044bf9811c89a
|
checksum=ae31e8b76ca00254d5a975f14bf5f4609778d6ecffa92430502450b4fe5461b5
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
NOCONFIGURE=1 ./autogen.sh
|
NOCONFIGURE=1 ./autogen.sh
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue