View | Details | Raw Unified | Return to bug 199382 | Differences between
and this patch

Collapse All | Expand All

(-)tig/Makefile (-1 / +1 lines)
Lines 2-8 Link Here
2
# $FreeBSD: head/devel/tig/Makefile 381441 2015-03-16 20:36:49Z amdmi3 $
2
# $FreeBSD: head/devel/tig/Makefile 381441 2015-03-16 20:36:49Z amdmi3 $
3
3
4
PORTNAME=	tig
4
PORTNAME=	tig
5
PORTVERSION=	2.1
5
PORTVERSION=	2.1.1
6
CATEGORIES=	devel
6
CATEGORIES=	devel
7
MASTER_SITES=	http://jonas.nitro.dk/tig/releases/
7
MASTER_SITES=	http://jonas.nitro.dk/tig/releases/
8
8
(-)tig/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (tig-2.1.tar.gz) = 306287f684f57563a53abf1cf46149e0d30c6b500fbc0c39e9bc059506373cb0
1
SHA256 (tig-2.1.1.tar.gz) = 50c5179fd564b829b6b2cec087e66f10cf8799601de19350df0772ae77e4852f
2
SIZE (tig-2.1.tar.gz) = 635114
2
SIZE (tig-2.1.1.tar.gz) = 641710
(-)tig/files/patch-config.make.in (-4 / +4 lines)
Lines 1-7 Link Here
1
--- ./config.make.in.orig	2014-05-10 09:51:50.000000000 +0800
1
--- config.make.in.orig	2015-04-09 00:19:11 UTC
2
+++ ./config.make.in	2014-05-10 09:53:07.000000000 +0800
2
+++ config.make.in
3
@@ -12,7 +12,7 @@
3
@@ -12,7 +12,7 @@ CC = @CC@
4
 CFLAGS = @CFLAGS@
4
 CFLAGS = @CFLAGS@ @COVERAGE_CFLAGS@
5
 CPPFLAGS = @CPPFLAGS@ -DHAVE_CONFIG_H
5
 CPPFLAGS = @CPPFLAGS@ -DHAVE_CONFIG_H
6
 LDFLAGS = @LDFLAGS@
6
 LDFLAGS = @LDFLAGS@
7
-LDLIBS = @LIBS@ @CURSES_LIB@
7
-LDLIBS = @LIBS@ @CURSES_LIB@
(-)tig/files/patch-src_ui.c (+14 lines)
Line 0 Link Here
1
# Origin: https://github.com/jonas/tig/commit/718c6e94fcc111e5607d6ca0bf3d15271adc0d97
2
# Subject: ui: fix crash due to out-of-bounds array access
3
4
--- src/ui.c.orig	2015-04-09 00:19:11 UTC
5
+++ src/ui.c
6
@@ -293,7 +293,7 @@ open_file_finder(const char *commit)
7
 	finder.keymap = get_keymap("search", STRING_SIZE("search")),
8
 	file_finder_update(&finder);
9
 	file_finder_draw(&finder);
10
-	if (read_prompt_incremental("Find file: ", FALSE, file_finder_input_handler, &finder))
11
+	if (read_prompt_incremental("Find file: ", FALSE, file_finder_input_handler, &finder) && finder.pos.lineno < finder.lines)
12
 		file = get_path(finder.line[finder.pos.lineno]->text);
13
 
14
 	file_finder_done(&finder);

Return to bug 199382