NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-powerpc/50798: src/sys/arch/powerpc/oea/ofw_consinit.c:123: botched va_* handling ?



>Number:         50798
>Category:       port-powerpc
>Synopsis:       src/sys/arch/powerpc/oea/ofw_consinit.c:123: botched va_* handling ?
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-powerpc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 12 17:05:00 +0000 2016
>Originator:     David Binderman
>Release:        cvs dated 20160212
>Organization:
>Environment:
>Description:

$ fgrep va src/sys/arch/powerpc/oea/ofw_consinit.c
#include <dev/wscons/wsksymvar.h>
#include <machine/z8530var.h>
#include <macppc/dev/adbvar.h>
#include <dev/usb/ukbdvar.h>
#include <dev/ic/pckbcvar.h>
	va_list va;
	va_start(va, blah);
	len = vsnprintf(buf, sizeof(buf), blah, va);
	 * available. Try attaching as ADB.
$ 


Suggest add missing call to va_end.


>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index