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

Re: [libvirt] [PATCH 4/4] util: avoid PATH_MAX-sized array



2011/6/22 Eric Blake <eblake redhat com>:
> See previous patch for why this is good...
>
> * src/util/pci.c (struct _pciDevice, pciGetDevice, pciFreeDevice):
> Manage path dynamically.  Report snprintf overflow.
> * src/util/hostusb.c (struct _usbDevice, usbGetDevice)
> (usbFreeDevice): Likewise.
> ---
>  src/util/hostusb.c |   32 +++++++++++++++++++++++++-------
>  src/util/pci.c     |   31 +++++++++++++++++++++++++------
>  2 files changed, 50 insertions(+), 13 deletions(-)

ACK.

-- 
Matthias Bolte
http://photron.blogspot.com


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