openbsd-ports/x11/rdesktop/patches/patch-rdpsnd_libao_c
jasper 675b62b36b Update rdesktop to 1.7.0, fixes SA44200
rdesktop Disk Redirection Directory Traversal Vulnerability

from new maintainer gleydson soares,
ok ckuethe@ (previous maintainer)
2011-04-21 11:07:33 +00:00

20 lines
581 B
Plaintext

$OpenBSD: patch-rdpsnd_libao_c,v 1.2 2011/04/21 11:07:33 jasper Exp $
--- rdpsnd_libao.c.orig Mon Apr 18 08:21:57 2011
+++ rdpsnd_libao.c Tue Apr 19 12:25:08 2011
@@ -71,6 +71,7 @@ libao_open(void)
default_driver = ao_default_driver_id();
}
+ memset(&format, 0, sizeof(format));
format.bits = 16;
format.channels = 2;
format.rate = 44100;
@@ -110,6 +111,7 @@ libao_set_format(RD_WAVEFORMATEX * pwfx)
{
ao_sample_format format;
+ memset(&format, 0, sizeof(format));
format.bits = pwfx->wBitsPerSample;
format.channels = pwfx->nChannels;
format.rate = 44100;