• Hugo Grostabussiat's avatar
    Immediately fail image verify if sizes don't match · f49ae656
    Hugo Grostabussiat authored
    When verifying image integrity, first check the image file size against
    the one from the manifest. If they are different, fail immediately,
    without computing the SHA-256 hash of the image since we know it will be
    wrong.
    
    Unfortunately, there is no speed gain to expect from this optimization
    in the common case, since the uncompressed size of the image rarely
    change between builds. However, in cases where there are remains of a
    partially downloaded image, a new download will be attempted almost
    immediately.
    f49ae656
Name
Last commit
Last update
..
build_uuu.sh Loading commit data...
create_initramfs.sh Loading commit data...
create_tarball.sh Loading commit data...
extract_kernel.sh Loading commit data...
fetch_latest.sh Loading commit data...
get_image.sh Loading commit data...
librem5-devkit-flash-image Loading commit data...
root.sh Loading commit data...