slackware-current/source/a/gpm/gpm-1.20.1-weak-wgetch.patch
Patrick J Volkerding 6b5ab0b4ab Thu Mar 28 21:40:08 UTC 2024
a/btrfs-progs-6.8-x86_64-1.txz:  Upgraded.
a/gpm-1.20.7-x86_64-10.txz:  Rebuilt.
  Clean up the compile fix patch omitting the Emacs Lisp file.
  Clean up and apply the weak-wgetch patch.
  Build using the option --without-curses.
  Thanks to qunying.
a/util-linux-2.40-x86_64-1.txz:  Upgraded.
  This release fixes a vulnerability where the wall command did not filter
  escape sequences from command line arguments, allowing unprivileged users
  to put arbitrary text on other users terminals.
  For more information, see:
    https://www.cve.org/CVERecord?id=CVE-2024-28085
  (* Security fix *)
d/rust-1.77.1-x86_64-1.txz:  Upgraded.
l/fluidsynth-2.3.5-x86_64-1.txz:  Upgraded.
l/protobuf-26.1-x86_64-1.txz:  Upgraded.
l/python-build-1.2.1-x86_64-1.txz:  Upgraded.
n/samba-4.20.0-x86_64-1.txz:  Upgraded.
x/mesa-24.0.4-x86_64-1.txz:  Upgraded.
xap/seamonkey-2.53.18.2-x86_64-1.txz:  Upgraded.
  This update contains security fixes and improvements.
  For more information, see:
    https://www.seamonkey-project.org/releases/seamonkey2.53.18.2
  (* Security fix *)
2024-03-28 23:48:35 +01:00

16 lines
513 B
Diff

--- ./src/lib/libcurses.c.orig 2012-10-26 16:21:38.000000000 -0500
+++ ./src/lib/libcurses.c 2024-03-27 14:48:08.842064533 -0500
@@ -41,7 +41,12 @@
#endif /* HAVE_NCURSES_CURSES_H */
#endif /* HAVE_NCURSES_H */
-#define GET(win) ((win) ? wgetch(win) : getch())
+/* If win != NULL, it must have been created by ncurses anyway.
+ Avoid circular library dependencies. */
+#pragma weak wgetch
+#pragma weak stdscr
+
+#define GET(win) ((win && wgetch) ? wgetch(win) : getch())
int Gpm_Wgetch(WINDOW *win)
{