← Commit list

58d998d2f

Denys Vlasenko
Denys Vlasenko
2019-05-23
SUCCESS Duration: 190s

Subject

bunzip2: the correct condition is "n < groupCount", not "n <= groupCount". Closes 11896

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

archival/libarchive/decompress_bunzip2.c+1 -1
@@ -235,9 +235,9 @@ static int get_next_block(bunzip_data *bd)
/* Get next value */
int n = 0;
while (get_bits(bd, 1)) {
+ n++;
if (n >= groupCount)
return RETVAL_DATA_ERROR;
- n++;
}
/* Decode MTF to get the next selector */
tmp_byte = mtfSymbol[n];