ports/emulators/qemu-devel/files/patch-qemu-char.c
Muhammad Moinur Rahman ee0adc18e9 emulators/qemu-devel: Update version 2.4.0=>2.5.0
- 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
2016-01-01 17:54:08 +00:00

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: