Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37567813
en ru br
ALT Linux repos
S:6.20.00-alt4
5.0: 6.16.00-alt1
4.1: 6.16.00-alt0.M41.1
4.0: 6.14.00-alt2
3.0: 6.14.00-alt1

Group :: Shells
RPM: tcsh

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: tcsh-6.20.00-owl-no-TIOCSTI.diff
Download


diff -burN tcsh-6.20.00.orig/ed.chared.c tcsh-6.20.00/ed.chared.c
--- tcsh-6.20.00.orig/ed.chared.c	2015-08-19 17:29:55.000000000 +0300
+++ tcsh-6.20.00/ed.chared.c	2017-07-20 15:59:24.567159098 +0300
@@ -3387,7 +3387,7 @@
 CCRETVAL
 e_stuff_char(Char c)
 {
-#ifdef TIOCSTI
+#if 0 /* avoid CVE-2017-5226 issues */
      int was_raw = Tty_raw_mode;
      char buf[MB_LEN_MAX];
      size_t i, len;
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin