libbacktrace: set table field for zstd RLE sequence

Patch from Ivan Molodetskikh.

	* elf.c (elf_zstd_unpack_seq_decode): Set table field for RLE
	sequence.
	* zstdtest.c (tests): Add rle-sequence-tables test.
This commit is contained in:
Ian Lance Taylor
2026-06-27 09:09:58 -07:00
parent 058d953bb7
commit 5f4a6d4941
2 changed files with 19 additions and 0 deletions
+18
View File
@@ -208,6 +208,24 @@ static const struct zstd_test tests[] =
"\x4c\x1f\xf9\xf1"),
30,
},
{
"rle-sequence-tables",
"AAAA",
0,
("\x28\xb5\x2f\xfd"
"\x20" /* Single_Segment_flag; Frame_Content_Size_flag = 0 */
"\x04" /* Frame_Content_Size */
"\x45\x00\x00" /* Last_Block, Compressed_Block, size 8 */
"\x08" /* Raw_Literals_Block, Regenerated_Size 1 */
"A"
"\x01" /* Number_of_Sequences */
"\x54" /* RLE literals length, offset, and match length tables */
"\x01" /* literal length code: 1 */
"\x00" /* offset code: repeat offset 1 */
"\x00" /* match length code: 3 */
"\x80"), /* bitstream end marker */
17,
},
};
/* Test the hand coded samples. */