aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md20
-rw-r--r--ubi-utils/ubinize.c4
2 files changed, 22 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index dfad584..57afc62 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,26 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
+## [Unreleased]
+### Added
+ - fsck.ubifs: Add fsck utility for ubifs
+ - ubifs-utils: Support Address-Sanitizier debug
+ - nand-utils: nanddump: Add support for testing continuous reads
+ - mtd-tests: nandbiterrs: Add support for testing continuous reads
+ - mtd-tests: flash_speed: Benchmark continuous reads
+
+### Fixed
+ - Various integer handling errors (potential overflows, divide by zero)
+ - mkfs.jffs2: fix segfault when parsing dev table
+ - nand-utils: nanddump: Explicitely use the page size when relevant
+ - misc-utils: add missing error handling for 'bam' allocation in ftl_check.c
+
+### Changed
+ - mkfs.ubifs: re-sync with the kernel code
+ - mkfs.ubifs: move most of the code into a libubifs library
+ - Import a more recent version of libiniparser
+ - mtd-tests: flash_speed: cleanup/refactor
+
## [2.2.1] - 2024-09-25
### Fixed
- fectest: Fix time formatting with _TIME_BITS=64 on 32-bit system
diff --git a/ubi-utils/ubinize.c b/ubi-utils/ubinize.c
index ac8c1e5..9c950b1 100644
--- a/ubi-utils/ubinize.c
+++ b/ubi-utils/ubinize.c
@@ -375,8 +375,8 @@ static int read_section(const struct ubigen_info *ui, const char *sname,
vi->alignment = iniparser_getint(args.dict, buf, -1);
if (vi->alignment == -1)
vi->alignment = 1;
- else if (vi->id < 0)
- return errmsg("negative volume alignment %d in section \"%s\"",
+ else if (vi->alignment <= 0)
+ return errmsg("not positive volume alignment %d in section \"%s\"",
vi->alignment, sname);
verbose(args.verbose, "volume alignment: %d", vi->alignment);