mirror of
https://github.com/simon987/libscan.git
synced 2025-04-06 04:42:59 +00:00
This commit is contained in:
parent
5c559eb291
commit
c4f9ee90f9
@ -186,7 +186,7 @@ void parse_ooxml(scan_ooxml_ctx_t *ctx, vfile_t *f, document_t *doc) {
|
|||||||
if (S_ISREG(archive_entry_stat(entry)->st_mode)) {
|
if (S_ISREG(archive_entry_stat(entry)->st_mode)) {
|
||||||
const char *path = archive_entry_pathname(entry);
|
const char *path = archive_entry_pathname(entry);
|
||||||
|
|
||||||
if (!buffer_full && should_read_part(path)) {
|
if (!buffer_full && should_read_part(path) && ctx->content_size > 0) {
|
||||||
ret = read_part(ctx, a, &tex, doc);
|
ret = read_part(ctx, a, &tex, doc);
|
||||||
if (ret == READ_PART_ERR) {
|
if (ret == READ_PART_ERR) {
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user