freebsd-ports/x11/tilda/files/patch-src_tilda_terminal.c
Rodrigo Osorio 4dbdc33a8d 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>
2022-10-30 22:55:14 +01:00

12 lines
328 B
C

--- 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;
}