NetBSD Problem Report #44335
From www@NetBSD.org Fri Jan 7 10:33:05 2011
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 5CCF263B89F
for <gnats-bugs@gnats.NetBSD.org>; Fri, 7 Jan 2011 10:33:05 +0000 (UTC)
Message-Id: <20110107103304.BFCDB63B89A@www.NetBSD.org>
Date: Fri, 7 Jan 2011 10:33:04 +0000 (UTC)
From: henning.petersen@t-online.de
Reply-To: henning.petersen@t-online.de
To: gnats-bugs@NetBSD.org
Subject: cmdbuf too short in m41st84.c.
X-Send-Pr-Version: www-1.0
>Number: 44335
>Category: kern
>Synopsis: cmdbuf too short in m41st84.c.
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jan 07 10:35:00 +0000 2011
>Closed-Date: Wed Jun 01 21:45:56 +0000 2016
>Last-Modified: Wed Jun 01 21:45:56 +0000 2016
>Originator: Henning Petersen
>Release: NetBSD-current
>Organization:
>Environment:
>Description:
cmdbuf too short in m41st84.c .
>How-To-Repeat:
>Fix:
diff -u -r1.16 m41st84.c
--- sys/dev/i2c/m41st84.c 10 Oct 2010 05:17:44 -0000 1.16
+++ sys/dev/i2c/m41st84.c 7 Jan 2011 08:12:28 -0000
@@ -272,7 +272,7 @@
static int
strtc_clock_read(struct strtc_softc *sc, struct clock_ymdhms *dt)
{
- u_int8_t bcd[M41ST84_REG_DATE_BYTES], cmdbuf[1];
+ u_int8_t bcd[M41ST84_REG_DATE_BYTES], cmdbuf[2];
int i;
if (iic_acquire_bus(sc->sc_tag, I2C_F_POLL)) {
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: pgoyette@NetBSD.org
State-Changed-When: Wed, 01 Jun 2016 21:45:56 +0000
State-Changed-Why:
Requested change has already been committed.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.