Re: [PATCH v2 27/37] Adapt to VIR_STRDUP in src/vbox/*

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

 



On 04/29/2013 09:50 AM, Michal Privoznik wrote:
> ---
>  src/vbox/vbox_XPCOMCGlue.c |   4 +-
>  src/vbox/vbox_tmpl.c       | 190 +++++++++++++++++++++++----------------------
>  2 files changed, 98 insertions(+), 96 deletions(-)
> 

...

> diff --git a/src/vbox/vbox_tmpl.c b/src/vbox/vbox_tmpl.c
> index 43ddac8..0e80194 100644
> --- a/src/vbox/vbox_tmpl.c
> +++ b/src/vbox/vbox_tmpl.c

...  Oooh - I remember going through this one while doing Coverity work
- soooo many places where checks aren't made on memory allocations in
the UTF#_TO_UTF# macros and strdup()'s...


> @@ -2957,6 +2960,7 @@ sharedFoldersCleanup:
>                          PRUnichar *MACAddressUtf16 = NULL;
>                          char *MACAddress           = NULL;
>                          char macaddr[VIR_MAC_STRING_BUFLEN] = {0};
> +                        int strdupRet = 0;

This doesn't get tagged by the syntax-check rule in 35/37?



--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]