blob: 667fa5feaa8818be2ed78cd1d3e8ebca543d661c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<<<<<<<<<<<<<<<<<< vdr-ffnetdev-0.1.0-buffer-overflow.diff >>>>>>>>>>>>>
fix buffer overflow
https://bugs.gentoo.org/show_bug.cgi?id=350999
Signed-off-by: Joerg Bornkessel <hd_brummy@gentoo.org>
Signed-off-by: Christian Ruppert <idl0r@gentoo.org>
diff -Naur vdr-ffnetdev-0.1.0.orig/osdworker.c vdr-ffnetdev-0.1.0/osdworker.c
--- vdr-ffnetdev-0.1.0.orig/osdworker.c 2011-01-16 22:58:55.000000000 +0100
+++ vdr-ffnetdev-0.1.0/osdworker.c 2011-01-16 23:00:15.000000000 +0100
@@ -721,9 +721,9 @@
break;
}
- CARD8 name[7];
- strcpy((char*)&name, "VDR-OSD");
- if (!m_OSDClient->SafeWrite(&name, 7))
+// CARD8 name[7];
+// strcpy((char*)&name, "VDR-OSD");
+ if (!m_OSDClient->SafeWrite("VDR-OSD", 7))
{
state = NO_CLIENT;
break;
<<<<<<<<<<<<<<<<<< vdr-ffnetdev-0.1.0-buffer-overflow.diff >>>>>>>>>>>>>
|