x11/tilda: Fix OOB write in start_default_shell()

The fix was committed to upstream in May 9, but no release was made
for it until now.

51a980a55a

Update Makefile to make portlint happy

PR:		264270
Reported by:	<iron.udjin@gmail.com>
Tested by:	<iron.udjin@gmail.com>
This commit is contained in:
Rodrigo Osorio 2022-10-30 17:02:26 +01:00
parent e9360bde17
commit 4dbdc33a8d
2 changed files with 20 additions and 6 deletions

View File

@ -1,6 +1,7 @@
PORTNAME= tilda
PORTVERSION= 1.5.0
DISTVERSIONPREFIX= ${PORTNAME}-
PORTREVISION= 1
CATEGORIES= x11
MAINTAINER= rodrigo@FreeBSD.org
@ -10,17 +11,19 @@ WWW= https://github.com/lanoxx/tilda
LICENSE= GPLv2
BUILD_DEPENDS= vte3>=0:x11-toolkits/vte3
RUN_DEPENDS= vte3>=0:x11-toolkits/vte3
LIB_DEPENDS= libconfuse.so:devel/libconfuse
RUN_DEPENDS= vte3>=0:x11-toolkits/vte3
USES= gmake gettext gnome pkgconfig autoreconf pathfix libtool xorg
USE_GITHUB= yes
GH_ACCOUNT= lanoxx
USE_GNOME+= glib20 gtk30 gdkpixbuf2 pango
USE_XORG+= x11
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-rpath
USES= gmake gettext gnome pkgconfig autoreconf pathfix libtool xorg
USE_XORG+= x11
USE_GNOME+= glib20 gtk30 gdkpixbuf2 pango
INSTALL_TARGET= install-strip
USE_GITHUB= yes
GH_ACCOUNT= lanoxx
DOCS= AUTHORS ChangeLog HACKING.md README.md TODO.md

View File

@ -0,0 +1,11 @@
--- src/tilda_terminal.c.orig 2022-10-30 15:03:03 UTC
+++ src/tilda_terminal.c
@@ -530,7 +530,7 @@
*/
flags |= G_SPAWN_FILE_AND_ARGV_ZERO;
} else {
- argv = malloc(1 * sizeof(void *));
+ argv = malloc(2 * sizeof(void *));
argv[0] = default_command;
argv[1] = NULL;
}