Re: [libvirt] [PATCH] uml: sanity check external data before using it

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

 



According to Jim Meyering on 3/3/2010 9:41 AM:
> Eric Blake wrote:
>>          if (nbytes < sizeof res) {
>> -            virReportSystemError(errno,
>> +            virReportSystemError(0,
>>                                   _("incomplete reply %s"),
>>                                   cmd);
>>              goto error;
>>          }
>> +        if (sizeof res < res.length) {
>> +            virReportSystemError(0,
>> +                                 _("invalid length in reply %s"),
> 
> Hmm... while you're there, you might want to save 4 lines by joining
> those unnecessarily-continued ones:
> 
>            virReportSystemError(0, _("invalid length in reply %s"), cmd);

Sure.  Respin coming up (this time, in a new thread, to make it easier to
spot).

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
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]