diff --git a/srcpkgs/rofi/patches/buffer-overflow.patch b/srcpkgs/rofi/patches/buffer-overflow.patch new file mode 100644 index 00000000000..40a9188dcee --- /dev/null +++ b/srcpkgs/rofi/patches/buffer-overflow.patch @@ -0,0 +1,19 @@ +commit 246da62b9076417e0628e30099b709aa1b5cd247 +Author: Urs Schulz +Date: Thu Jan 16 11:05:41 2025 +0100 + + Fix buffer overflow in rofi -e after reading from stdin + +diff --git a/source/rofi.c b/source/rofi.c +index a88cb973..58cd6873 100644 +--- a/source/rofi.c ++++ b/source/rofi.c +@@ -823,6 +823,8 @@ static gboolean startup(G_GNUC_UNUSED gpointer data) { + msg = realloc(msg, length * sizeof(char)); + } + ++ msg[index] = 0; ++ + if (!rofi_view_error_dialog(msg, markup)) { + g_main_loop_quit(main_loop); + } diff --git a/srcpkgs/rofi/template b/srcpkgs/rofi/template index 1723ff4c45b..f9653ca61a0 100644 --- a/srcpkgs/rofi/template +++ b/srcpkgs/rofi/template @@ -3,7 +3,7 @@ # xlocate 'usr/lib/rofi/.*.so' to find them pkgname=rofi version=1.7.7 -revision=1 +revision=2 build_style=gnu-configure hostmakedepends="autoconf automake flex glib-devel pkg-config which" makedepends="libXinerama-devel librsvg-devel