NetBSD-Bugs archive

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

misc/50797: src/sys/dev/ppbus/ppbus_msq.c:263: botched va_* handling ?



>Number:         50797
>Category:       misc
>Synopsis:       src/sys/dev/ppbus/ppbus_msq.c:263: botched va_* handling ?
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 12 17:00:01 +0000 2016
>Originator:     David Binderman
>Release:        cvs dated 20160212
>Organization:
>Environment:
>Description:

$ fgrep p_list src/sys/dev/ppbus/ppbus_msq.c
	va_list p_list;
	va_start(p_list, nbparam);
		param = va_arg(p_list, int);
			msq[ins].arg[arg].i = va_arg(p_list, int);
			msq[ins].arg[arg].i = (int)va_arg(p_list, char);
			msq[ins].arg[arg].i = (int)va_arg(p_list, int);
			msq[ins].arg[arg].p = va_arg(p_list, void *);
			msq[ins].arg[arg].f = va_arg(p_list, void *);
$ 

Suggest add missing call to va_end.


>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index