aboutsummaryrefslogtreecommitdiff
path: root/tests/fs-tests/stress/stress00.sh
diff options
context:
space:
mode:
authorAdrian Hunter <ext-adrian.hunter@nokia.com>2008-11-03 10:41:58 +0200
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-11-06 10:49:24 +0200
commit37df0ddffc92804633fc926624fba310e4cc3c57 (patch)
tree96229788348201ec507997c58bb8050a9c74313d /tests/fs-tests/stress/stress00.sh
parentc9e31807be29045ff7e0137676bf93bc77ca472d (diff)
ubinize: correct subpage_size print and initialise vol_info to zero
J. Scott Merritt wrote: > Dear list, > > I believe that I have stumbled upon two problems with the latest version > of ubinize.c in mtd-utils - one serious, and one not so serious. > > - First, the easy one: At line 457, I believe that we should be printing > args.subpage_size rather than ui.min_io_size. > > - More seriously, I believe that the "flags" field in the ubigen_vol_info > structures is not being properly initialized. Line 494 allocates memory > for these structures with malloc, so they are not cleared to zero. The > read_section function updates the flag field if the AUTO-RESIZE flag is > specified, but does not otherwise initialize or clear it. > > I reckon the latter problem could be repaired either with calloc, or by > modifying read_section to more directly set/clear the flag. > > Thanks, Scott. Reported-by: J. Scott Merritt <merrij3@rpi.edu> Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'tests/fs-tests/stress/stress00.sh')
0 files changed, 0 insertions, 0 deletions