Actions
Bug #742
closedstrcpy buffer overflow in osdworker.c
Start date:
05/28/2010
Due date:
% Done:
0%
Estimated time:
Description
IMPORTED FROM BERLIOS: ======================
The buffer overflow causes my vdr to restart.
This patch should do the trick:
--- ffnetdev-9999/osdworker.c.old 2010-05-28 17:16:25.548584765 0200
++ ffnetdev-9999/osdworker.c 2010-05-28 17:16:43.734584467 +0200@ -763,7 +763,7
@
}
CARD8 name7;
- strcpy((char*)&name, "VDR-OSD");
+ strncpy((char*)&name, "VDR-OSD", 7);
if (!m_OSDClient->SafeWrite(&name, 7))
{
state = NO_CLIENT;
Actions