View | Details | Raw Unified | Return to bug 211850 | 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 412346 2016-04-01 14:00:51Z mat $
2
# $FreeBSD: head/devel/tig/Makefile 412346 2016-04-01 14:00:51Z mat $
3
3
4
PORTNAME=	tig
4
PORTNAME=	tig
5
PORTVERSION=	2.1.1
5
PORTVERSION=	2.2
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 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (tig-2.1.1.tar.gz) = 50c5179fd564b829b6b2cec087e66f10cf8799601de19350df0772ae77e4852f
1
TIMESTAMP = 1470883142
2
SIZE (tig-2.1.1.tar.gz) = 641710
2
SHA256 (tig-2.2.tar.gz) = 8f5213d3abb45ca9a79810b8d2a2a12d941112bc4682bcfa91f34db74942754c
3
SIZE (tig-2.2.tar.gz) = 1030062
(-)tig/files/patch-src_ui.c (-14 lines)
Lines 1-14 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 211850