NetBSD-Bugs archive

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

port-amd64/47837: need to initilize return value (rv) argument



>Number:         47837
>Category:       port-amd64
>Synopsis:       need to initilize return value (rv) argument
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-amd64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 19 14:15:00 +0000 2013
>Originator:     Gal Sagie
>Release:        Ubuntu 12.04 LTS
>Organization:
>Environment:
Linux digipen 3.5.0-30-generic #51~precise1-Ubuntu SMP Wed May 15 08:48:19 UTC 
2013 x86_64 x86_64 x86_64 GNU/Linux
>Description:
in file /sys/rump/net/lib/libvirtif/runcomp_user.c
 in rumpcomp_virtif_create(int devnum, struct virtif_user **viup)
need to change " int rv"  => to "int rv = 0" in order to init rv at start

>How-To-Repeat:
run from examples folder => webbrowser.c (the if create function should fail 
and return 22) (EINV)
>Fix:
Initilize rv to 0



Home | Main Index | Thread Index | Old Index