Skip to content
Snippets Groups Projects
  1. Jan 20, 2017
  2. Jan 14, 2017
  3. Jan 02, 2017
  4. Dec 27, 2016
  5. Dec 26, 2016
  6. Dec 19, 2016
  7. Dec 16, 2016
  8. Dec 09, 2016
  9. Dec 08, 2016
    • Michal Simek's avatar
      tools: mkimage: Use fstat instead of stat to avoid malicious hacks · 37a2cf6f
      Michal Simek authored
      
      The patch is fixing:
      "tools: mkimage: Check if file is regular file"
      (sha1: 56c7e801)
      which contains two issues reported by Coverity
      Unchecked return value from stat and incorrect calling sequence where
      attack can happen between calling stat and fopen.
      Using pair in opposite order (fopen and fstat) is fixing this issue
      because fstat is using the same file descriptor (FILE *).
      
      Also fixing issue with:
      "tools: mkimage: Add support for initialization table for Zynq and
      ZynqMP" (sha1: 3b646080)
      where file wasn't checked that it is regular file.
      
      Reported-by: Coverity (CID: 154711, 154712)
      Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
      Reviewed-by: default avatarTom Rini <trini@konsulko.com>
      Series-to: trini
      Series-cc: u-boot
      37a2cf6f
  10. Dec 03, 2016
  11. Dec 02, 2016
  12. Dec 01, 2016
  13. Nov 29, 2016
  14. Nov 28, 2016
    • Max Krummenacher's avatar
      tools/env: fix environment alignment tests for block devices · 333ee16d
      Max Krummenacher authored
      
      commit 183923d3 enforces that the
      environment must start at an erase block boundary.
      
      For block devices the sample fw_env.config does not mandate a erase block size
      for block devices. A missing setting defaults to the full env size.
      
      Depending on the environment location the alignment check now errors out for
      perfectly legal settings.
      
      Fix this by defaulting to the standard blocksize of 0x200 for environments
      stored in a block device.
      That keeps the fw_env.config files for block devices working even with that
      new check.
      
      Signed-off-by: default avatarMax Krummenacher <max.krummenacher@toradex.com>
      333ee16d
    • Andre Przywara's avatar
      tools/Makefile: suppress "which swig" error output · d0fc6dc5
      Andre Przywara authored
      
      The Makefile in tools/ tries to find the "swig" utility by calling "which".
      If nothing is found in the path, some versions of which will print an error
      message:
      $ make clean
      which: no swig in (/usr/local/bin:/usr/bin:/bin)
      
      This does not apply to all version of "which", though:
      $ echo $0
      bash
      $ type which
      which is aliased to `type -path'
      $ which foo				<== this version is OK
      $ /usr/bin/which foo			<== this one is chatty
      /usr/bin/which: no foo in (/usr/local/bin:/usr/bin:/bin)
      $ sh					<== make uses /bin/sh
      sh-4.3$ which foo			<== no alias here
      which: no foo in (/usr/local/bin:/usr/bin:/bin)
      
      This error message is rather pointless in our case, since we just have
      this very check to care for this. So add stderr redirection to suppress
      the message.
      
      Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      d0fc6dc5
  15. Nov 24, 2016
  16. Nov 21, 2016
  17. Nov 15, 2016
  18. Nov 13, 2016
  19. Nov 06, 2016
Loading