Date:2016-08-23 04:20:58 (7 years 7 months ago)
Author:Werner Almesberger
Commit:44e17ff5ab5a83dae6aadad26838ccc48e626265
Message:eeshow/gfx/pdftoc.c (line): don't be fooled by "/Type /Pages"

We really ought to test properly for end-of-word, not rely on prefixes.
Files: eeshow/gfx/pdftoc.c (1 diff)

Change Details

eeshow/gfx/pdftoc.c
153153            ctx->state = idle;
154154            break;
155155        }
156        if (strbegins(s, "<< /Type /Page")) {
156        if (strbegins(s, "<< /Type /Page") &&
157            !strbegins(s, "<< /Type /Pages")) {
157158            ctx->curr_obj->is_page = 1;
158159            break;
159160        }

Archive Download the corresponding diff file

Branches:
master



interactive