Closed mtwebster closed 1 year ago
Add a null check as well.
Fixes segfault due to xml_parse_children_of_node() getting passed a NULL pointer (nav).
example file: https://github.com/IDPF/epub3-samples/releases/download/20170606/cc-shared-culture.epub
ref: https://help.apple.com/itc/booksassetguide/en.lproj/itc0f175a5b9.html#apdd3c4c6d1c0904 https://idpf.org/epub/301/spec/epub-contentdocs-20140626.html#sec-xhtml-nav
https://github.com/linuxmint/xreader/commit/7689e36ee9941cce8e8ac75306bccdd91af58485
Add a null check as well.
Fixes segfault due to xml_parse_children_of_node() getting passed a NULL pointer (nav).
example file: https://github.com/IDPF/epub3-samples/releases/download/20170606/cc-shared-culture.epub
ref: https://help.apple.com/itc/booksassetguide/en.lproj/itc0f175a5b9.html#apdd3c4c6d1c0904 https://idpf.org/epub/301/spec/epub-contentdocs-20140626.html#sec-xhtml-nav
https://github.com/linuxmint/xreader/commit/7689e36ee9941cce8e8ac75306bccdd91af58485