04 Sep, 2013

5 commits

  • 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

5 commits


22 Aug, 2013

2 commits


21 Aug, 2013

8 commits