From 726e90737978c46071e7ad4bc9e5784f31487ce2 Mon Sep 17 00:00:00 2001 From: NicknineTheEagle Date: Sat, 23 May 2020 05:38:41 +0300 Subject: [PATCH] Ubi SB: Fixed section3 parsing in SMx format --- src/meta/ubi_sb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meta/ubi_sb.c b/src/meta/ubi_sb.c index 83bb14bd..3b0bc373 100644 --- a/src/meta/ubi_sb.c +++ b/src/meta/ubi_sb.c @@ -1885,7 +1885,7 @@ static int parse_offsets(ubi_sb_header * sb, STREAMFILE *streamFile) { uint32_t table2_num = read_32bit(offset + 0x10, streamFile); for (j = 0; j < table_num; j++) { - int index = read_32bit(table_offset + 0x08 * j + 0x00, streamFile) & 0x7FFFFFFF; + int index = read_32bit(table_offset + 0x08 * j + 0x00, streamFile) & 0x3FFFFFFF; if (index == sb->header_index) { sb->stream_offset = read_32bit(table_offset + 0x08 * j + 0x04, streamFile);