소스 검색

[Minor] Pdf: Add more sanity checks

tags/2.6
Vsevolod Stakhov 3 년 전
부모
커밋
bbff6aea59
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6
    1
      lualib/lua_content/pdf.lua

+ 6
- 1
lualib/lua_content/pdf.lua 파일 보기

@@ -460,7 +460,12 @@ local function parse_object_grammar(obj, task, pdf)

if ret then
if obj.stream then
obj.dict = obj_or_err
if type(obj_or_err) == 'table' then
obj.dict = obj_or_err
else
obj.dict = {}
end

lua_util.debugm(N, task, 'stream object %s:%s is parsed to: %s',
obj.major, obj.minor, obj_or_err)
else

Loading…
취소
저장