mirror of
https://github.com/simon987/libscan.git
synced 2025-12-14 06:59:02 +00:00
Fix for segfault in some comic files
This commit is contained in:
@@ -291,6 +291,19 @@ TEST(Comic, ComicCbr) {
|
||||
cleanup(&doc, &f);
|
||||
}
|
||||
|
||||
TEST(Comic, ComicIssue160) {
|
||||
vfile_t f;
|
||||
document_t doc;
|
||||
load_doc_file("libscan-test-files/test_files/ebook/comic-segfault-issue-160.cbr", &f, &doc);
|
||||
|
||||
int tn_size_saved = comic_ctx.tn_size;
|
||||
comic_ctx.tn_size = 0;
|
||||
parse_comic(&comic_ctx, &f, &doc);
|
||||
comic_ctx.tn_size = tn_size_saved;
|
||||
|
||||
cleanup(&doc, &f);
|
||||
}
|
||||
|
||||
TEST(Comic, ComicCbrAsIs) {
|
||||
vfile_t f;
|
||||
document_t doc;
|
||||
|
||||
Reference in New Issue
Block a user