diff options
author | Stefan Brüns <stefan.bruens@rwth-aachen.de> | 2016-09-06 04:36:43 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-09-23 09:02:36 -0400 |
commit | b96c3c7292214fb81b1b355bf5a6d53cf9996d1e (patch) | |
tree | c9d7fc6bb70acb33207b3bd5d8929c4ebe9fb689 /tools/fit_common.c | |
parent | a0d767e2c1e40e781fdaa592f06f92614b4e5cdf (diff) | |
download | u-boot-imx-b96c3c7292214fb81b1b355bf5a6d53cf9996d1e.zip u-boot-imx-b96c3c7292214fb81b1b355bf5a6d53cf9996d1e.tar.gz u-boot-imx-b96c3c7292214fb81b1b355bf5a6d53cf9996d1e.tar.bz2 |
ext4: Do not crash when trying to grow a directory using extents
The following command crashes u-boot:
./sandbox/u-boot -c 'i=0; host bind 0 ./sandbox/test/fs/3GB.ext4.img ;
while test $i -lt 200 ; do echo $i; setexpr i $i + 1;
ext4write host 0 0 /foobar${i} 0; done'
Previously, the code updated the direct_block even for extents, and
fortunately crashed before pushing garbage to the disk.
Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
Diffstat (limited to 'tools/fit_common.c')
0 files changed, 0 insertions, 0 deletions