Project

General

Profile

Actions

Bug #742

closed

strcpy buffer overflow in osdworker.c

Added by nano about 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
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

Also available in: Atom PDF