lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Mon, 6 Aug 2007 22:12:20 +0200
From:	Mariusz Kozlowski <m.kozlowski@...land.pl>
To:	Mauro Carvalho Chehab <mchehab@...radead.org>
Cc:	v4l-dvb-maintainer@...uxtv.org, linux-kernel@...r.kernel.org
Subject: [PATCH] drivers/media/video/videodev.c: memset fix

Hello,

	Looks like memset() is zeroing wrong nr of bytes.

Signed-off-by: Mariusz Kozlowski <m.kozlowski@...land.pl>

 drivers/media/video/videodev.c | 46097 -> 46100 (+3 bytes)
 drivers/media/video/videodev.o | 165109 -> 165209 (+100 bytes)

 drivers/media/video/videodev.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-2.6.23-rc1-mm2-a/drivers/media/video/videodev.c	2007-08-01 08:43:47.000000000 +0200
+++ linux-2.6.23-rc1-mm2-b/drivers/media/video/videodev.c	2007-08-06 20:37:46.000000000 +0200
@@ -448,7 +448,7 @@ static int __video_do_ioctl(struct inode
 	if (cmd == VIDIOCGMBUF) {
 		struct video_mbuf *p=arg;

-		memset(p,0,sizeof(p));
+		memset(p, 0, sizeof(*p));

 		if (!vfd->vidiocgmbuf)
 			return ret;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ