07 Sep, 2013

9 commits


06 Sep, 2013

3 commits


04 Sep, 2013

7 commits

  • While nothing presently examines the destination size, it should at
    least be correct so that future users of sys_mapmem() will not be
    surprised. Without this, it might be possible to overflow memory.

    Signed-off-by: Kees Cook
    Acked-by: Simon Glass

    Kees Cook
     
  • This checks the size of the output buffer and fails if it was going to
    overflow the buffer during lzo decompression.

    Signed-off-by: Kees Cook
    Acked-by: Simon Glass

    Kees Cook
     
  • The output buffer size must be correctly passed to the lzma decoder or
    there is a risk of overflowing memory during decompression. Switching
    to the LZMA_FINISH_END mode means nothing is left in an unknown state
    once the buffer becomes full.

    Signed-off-by: Kees Cook
    Acked-by: Simon Glass

    Kees Cook
     
  • The output buffer size must not be reset by the gzip decoder or there
    is a risk of overflowing memory during decompression.

    Signed-off-by: Kees Cook
    Acked-by: Simon Glass

    Kees Cook
     
  • This adds the missing compression config items to the README.

    Signed-off-by: Kees Cook
    Acked-by: Simon Glass

    Kees Cook
     
  • This adds the "test_compression" command when building the sandbox. This
    tests the existing compression and decompression routines for simple
    sanity and for buffer overflow conditions.

    Signed-off-by: Kees Cook
    Acked-by: Simon Glass

    Kees Cook
     
  • Correct the following warnings found with sandbox when compression
    is enabled.

    cmd_bootm.c: In function 'bootm_load_os':
    cmd_bootm.c:443:11: warning: passing argument 4 of 'lzop_decompress' from incompatible pointer type [enabled by default]
    /usr/local/google/c/cosarm/src/third_party/u-boot/files/include/linux/lzo.h:31:5: note: expected 'size_t *' but argument is of type 'uint *'
    cmd_ximg.c: In function 'do_imgextract':
    cmd_ximg.c:225:6: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    cmd_ximg.c:225:14: warning: 'hdr' may be used uninitialized in this function [-Wuninitialized]

    Signed-off-by: Simon Glass
    Acked-by: Kees Cook

    Simon Glass
     

03 Sep, 2013

1 commit


27 Aug, 2013

19 commits


23 Aug, 2013

1 commit

  • Without this patch, when the currently chosen environment to be written
    has bad blocks, saveenv fails completely. Instead, when there is
    redundant environment fall back to the other copy. Environment reading
    needs no adjustment, as the fallback logic for incomplete writes applies
    to this case as well.

    Signed-off-by: Phil Sutter

    Phil Sutter