1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2025-04-14 17:43:01 -04:00

Fix buffer overflow in rofi -e after reading from stdin

This commit is contained in:
Urs Schulz 2025-01-16 11:05:41 +01:00
parent 329a5dd6a5
commit 246da62b90

View file

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