mirror of
https://git.freebsd.org/ports.git
synced 2025-06-18 19:20:36 -04:00
- Remove nox@ from MASTER_SITES (R.I.P. nox) - Take MAINTAINERSHIP - Add LICENSE (GPLv2) - Convert to OPTIONSNG - Fix patch files to be 'make makepatch' compatible - Fix Multiple Security Vulnerabilities [1] PR: 203112 [1] Submitted by: venture37@geeklan.co.uk [1] Security: CVE-2015-5165 [1] CVE-2015-5745 [1] CVE-2015-5154 [1] CVE-2015-5225 [1] Differential Revision: https://reviews.freebsd.org/D3691
19 lines
639 B
C
19 lines
639 B
C
--- qemu-char.c.orig 2015-12-16 00:54:18 UTC
|
|
+++ qemu-char.c
|
|
@@ -1507,10 +1507,14 @@ static void tty_serial_init(int fd, int
|
|
cfsetospeed(&tty, spd);
|
|
|
|
tty.c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP
|
|
- |INLCR|IGNCR|ICRNL|IXON);
|
|
- tty.c_oflag |= OPOST;
|
|
+ |INLCR|IGNCR|ICRNL|IXON|IMAXBEL);
|
|
+ tty.c_oflag &= ~OPOST; /* Don't do any output processing! */
|
|
tty.c_lflag &= ~(ECHO|ECHONL|ICANON|IEXTEN|ISIG);
|
|
tty.c_cflag &= ~(CSIZE|PARENB|PARODD|CRTSCTS|CSTOPB);
|
|
+#ifdef __FreeBSD__
|
|
+ cfmakeraw(&tty);
|
|
+#endif
|
|
+
|
|
switch(data_bits) {
|
|
default:
|
|
case 8:
|