Skip to content

Commit 2a8b8ca

Browse files
committed
Adapt create_test_zimfiles to last version of libzim.
Recent version of libzim reserves 2048 bytes for the mimetype. Our generated file trying to break out of this 2048 must be adapted. If we stay with 1024, we cannot break libzim.
1 parent 081540d commit 2a8b8ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/create_test_zimfiles

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ create_broken_zim_file invalid.nonsorted_title_index.zim \
237237
"$title1_dirent_index" \
238238
$((title_ptr_pos+4))
239239

240-
bad_mimetype_list=$(printf '%-944s' 'This is a bad mimetype value filling all the space between the header and the first cluster without any null character')
240+
bad_mimetype_list=$(printf '%-1968s' 'This is a bad mimetype value filling all the space between the header and the first cluster without any null character')
241241
create_broken_zim_file invalid.bad_mimetype_list.zim \
242242
"$bad_mimetype_list" \
243243
80

0 commit comments

Comments
 (0)