1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

devel/tig: update to 2.1.1

- Add upstream patch to "fix crash due to out-of-bounds array access" [1]
- Pet portlint since r383894 by formatting patches with makepatch target

Changes:	http://jonas.nitro.dk/tig/NEWS.html#_tig_2_1_1
PR:		199382
Submitted by:	lightside <lightside@gmx.com>
Approved by:	maintainer timeout (3 weeks)
Obtained from:  https://github.com/jonas/tig/commit/718c6e9 [1]
This commit is contained in:
Jan Beich 2015-05-04 11:17:03 +00:00
parent 4f960ddb6b
commit 4858b57f38
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=385393
4 changed files with 21 additions and 7 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= tig
PORTVERSION= 2.1
PORTVERSION= 2.1.1
CATEGORIES= devel
MASTER_SITES= http://jonas.nitro.dk/tig/releases/

View File

@ -1,2 +1,2 @@
SHA256 (tig-2.1.tar.gz) = 306287f684f57563a53abf1cf46149e0d30c6b500fbc0c39e9bc059506373cb0
SIZE (tig-2.1.tar.gz) = 635114
SHA256 (tig-2.1.1.tar.gz) = 50c5179fd564b829b6b2cec087e66f10cf8799601de19350df0772ae77e4852f
SIZE (tig-2.1.1.tar.gz) = 641710

View File

@ -1,7 +1,7 @@
--- ./config.make.in.orig 2014-05-10 09:51:50.000000000 +0800
+++ ./config.make.in 2014-05-10 09:53:07.000000000 +0800
@@ -12,7 +12,7 @@
CFLAGS = @CFLAGS@
--- config.make.in.orig 2015-04-09 00:19:11 UTC
+++ config.make.in
@@ -12,7 +12,7 @@ CC = @CC@
CFLAGS = @CFLAGS@ @COVERAGE_CFLAGS@
CPPFLAGS = @CPPFLAGS@ -DHAVE_CONFIG_H
LDFLAGS = @LDFLAGS@
-LDLIBS = @LIBS@ @CURSES_LIB@

View File

@ -0,0 +1,14 @@
# Origin: https://github.com/jonas/tig/commit/718c6e94fcc111e5607d6ca0bf3d15271adc0d97
# Subject: ui: fix crash due to out-of-bounds array access
--- src/ui.c.orig 2015-04-09 00:19:11 UTC
+++ src/ui.c
@@ -293,7 +293,7 @@ open_file_finder(const char *commit)
finder.keymap = get_keymap("search", STRING_SIZE("search")),
file_finder_update(&finder);
file_finder_draw(&finder);
- if (read_prompt_incremental("Find file: ", FALSE, file_finder_input_handler, &finder))
+ if (read_prompt_incremental("Find file: ", FALSE, file_finder_input_handler, &finder) && finder.pos.lineno < finder.lines)
file = get_path(finder.line[finder.pos.lineno]->text);
file_finder_done(&finder);