public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 00/14] dm: Fix various issues reported by coverity
@ 2016-03-16 13:45 Simon Glass
  2016-03-16 13:45 ` [U-Boot] [PATCH 01/14] mkimage: Fix munmap() call when importing data Simon Glass
                   ` (13 more replies)
  0 siblings, 14 replies; 44+ messages in thread
From: Simon Glass @ 2016-03-16 13:45 UTC (permalink / raw)
  To: u-boot

A lot of issues have been found in the error handling with recent additions
to the FIT handling code in mkimage. In some cases buffers are not freed or
files are not closed. Fix these problems and a few others in existing code
that coverity noticed due to recent patches.


Simon Glass (14):
  mkimage: Fix munmap() call when importing data
  mkimage: Correct file being closed twice in fit_import_data()
  mkimage: Correct file being closed twice in fit_extract_data()
  part_iso: Drop the customer unaligned access functions
  part_efi: Drop the NULL check on dev_desc in part_print_efi()
  part_efi: Drop NULL check in part_get_info_efi()
  mkimage: Close the file when unable to get its size
  mkimage: Add a missing free() to fit_import_data()
  mkimage: Fix error path in fit_extract_data()
  mkimage: Fix missing free() in fit_extract_data()
  mkimage: Fix missing free() and close() in fit_build()
  mkimage: Ensure file is closed in fdt_property_file()
  mkimage: Don't close the file if it wasn't opened
  usb: Correct return value in usb_stor_info()

 common/usb_storage.c |  2 +-
 disk/part_efi.c      |  6 +-----
 disk/part_iso.c      | 27 ++++-----------------------
 tools/fit_image.c    | 28 ++++++++++++++++++----------
 tools/imagetool.c    |  1 +
 5 files changed, 25 insertions(+), 39 deletions(-)

-- 
2.7.0.rc3.207.g0ac5344

^ permalink raw reply	[flat|nested] 44+ messages in thread

end of thread, other threads:[~2016-03-23  2:00 UTC | newest]

Thread overview: 44+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-16 13:45 [U-Boot] [PATCH 00/14] dm: Fix various issues reported by coverity Simon Glass
2016-03-16 13:45 ` [U-Boot] [PATCH 01/14] mkimage: Fix munmap() call when importing data Simon Glass
2016-03-17  2:08   ` Tom Rini
2016-03-23  1:59   ` [U-Boot] [U-Boot, " Tom Rini
2016-03-16 13:45 ` [U-Boot] [PATCH 02/14] mkimage: Correct file being closed twice in fit_import_data() Simon Glass
2016-03-17  2:08   ` Tom Rini
2016-03-23  1:59   ` [U-Boot] [U-Boot, " Tom Rini
2016-03-16 13:45 ` [U-Boot] [PATCH 03/14] mkimage: Correct file being closed twice in fit_extract_data() Simon Glass
2016-03-17  2:08   ` Tom Rini
2016-03-23  1:59   ` [U-Boot] [U-Boot, " Tom Rini
2016-03-16 13:45 ` [U-Boot] [PATCH 04/14] part_iso: Drop the customer unaligned access functions Simon Glass
2016-03-17  2:08   ` Tom Rini
2016-03-23  1:59   ` [U-Boot] [U-Boot, " Tom Rini
2016-03-16 13:45 ` [U-Boot] [PATCH 05/14] part_efi: Drop the NULL check on dev_desc in part_print_efi() Simon Glass
2016-03-17  2:08   ` Tom Rini
2016-03-23  1:59   ` [U-Boot] [U-Boot, " Tom Rini
2016-03-16 13:45 ` [U-Boot] [PATCH 06/14] part_efi: Drop NULL check in part_get_info_efi() Simon Glass
2016-03-17  2:09   ` Tom Rini
2016-03-23  1:59   ` [U-Boot] [U-Boot, " Tom Rini
2016-03-16 13:45 ` [U-Boot] [PATCH 07/14] mkimage: Close the file when unable to get its size Simon Glass
2016-03-17  2:09   ` Tom Rini
2016-03-23  1:59   ` [U-Boot] [U-Boot, " Tom Rini
2016-03-16 13:45 ` [U-Boot] [PATCH 08/14] mkimage: Add a missing free() to fit_import_data() Simon Glass
2016-03-17  2:09   ` Tom Rini
2016-03-23  1:59   ` [U-Boot] [U-Boot, " Tom Rini
2016-03-16 13:45 ` [U-Boot] [PATCH 09/14] mkimage: Fix error path in fit_extract_data() Simon Glass
2016-03-17  2:09   ` Tom Rini
2016-03-23  1:59   ` [U-Boot] [U-Boot, " Tom Rini
2016-03-16 13:45 ` [U-Boot] [PATCH 10/14] mkimage: Fix missing free() " Simon Glass
2016-03-17  2:09   ` Tom Rini
2016-03-23  2:00   ` [U-Boot] [U-Boot, " Tom Rini
2016-03-16 13:45 ` [U-Boot] [PATCH 11/14] mkimage: Fix missing free() and close() in fit_build() Simon Glass
2016-03-17  2:09   ` Tom Rini
2016-03-23  2:00   ` [U-Boot] [U-Boot, " Tom Rini
2016-03-16 13:45 ` [U-Boot] [PATCH 12/14] mkimage: Ensure file is closed in fdt_property_file() Simon Glass
2016-03-17  2:09   ` Tom Rini
2016-03-23  2:00   ` [U-Boot] [U-Boot, " Tom Rini
2016-03-16 13:45 ` [U-Boot] [PATCH 13/14] mkimage: Don't close the file if it wasn't opened Simon Glass
2016-03-17  2:09   ` Tom Rini
2016-03-23  2:00   ` [U-Boot] [U-Boot, " Tom Rini
2016-03-16 13:45 ` [U-Boot] [PATCH 14/14] usb: Correct return value in usb_stor_info() Simon Glass
2016-03-16 15:50   ` Marek Vasut
2016-03-17  2:09   ` Tom Rini
2016-03-23  2:00   ` [U-Boot] [U-Boot, " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox