Find a file
Henrik Fehlauer dccd83783d Prevent Okular from crashing when synctex logs an error
bd20e48c3c updated Okular's copy of the synctex code to 1.19.
Unfortunately since this version the upstream code logs errors like
`"! SyncTeX Error : Ignored record...` when accessing selected synctex
files created with older versions of synctex.

The upstream `_synctex_log` contains `va_list arg` as a parameter, but
fails to initialize and tear down this properly via `va_start` and
`va_end`. In general this seems to work for the single argument case.
However, once we apply our hardening patch to get rid of the
`gnu_printf format attribute` warning and thus introduce a variadic
argument, things go wrong.

To fix this, we add the missing code. The remaining changes are just
refreshing the patches.

BUG: 383915

Test Plan:
Opening `empty.pdf` with `empty.synctex.gz` from
https://bugs.kde.org/attachment.cgi?id=109116 located
in the same folder does not lead to Okular segfaulting anymore.
2017-11-30 14:57:05 +01:00
autotests The work in this branch was sponsored by LiMux 2017-11-16 09:58:31 +01:00
cmake/modules CHM Generator Lib Update 2017-09-11 21:25:55 +02:00
conf HiDPI Support for Okular 2017-10-14 14:47:20 +02:00
core Prevent Okular from crashing when synctex logs an error 2017-11-30 14:57:05 +01:00
doc Merge branch 'dont-use-docdata-for-annots-and-forms' into Applications/17.12 2017-11-16 15:00:23 +01:00
generators SVN_SILENT made messages (.desktop file) - always resolve ours 2017-11-28 06:52:56 +01:00
interfaces Fix build with MinGW on Windows. 2016-03-16 10:57:34 +01:00
mobile clang-tidy: modernize-use-nullptr run 2017-09-06 00:19:48 +02:00
shell GIT_SILENT made messages (after extraction) 2017-11-28 05:48:07 +01:00
ui Fix highlight/annotation clipping with Qt scaling 2017-11-23 23:29:47 +00:00
.arcconfig Add the base .arcconfig file 2017-08-30 01:28:40 +02:00
.gitignore Add .gitignore 2014-09-17 23:55:42 +02:00
.krazy synctex is "external code", make krazy stay away from it 2010-02-08 23:15:24 +00:00
aboutdata.h Extending my (C) 2017-09-11 16:30:56 +02:00
AUTHORS oKular goes poppler 2006-03-19 18:03:43 +00:00
CMakeLists.txt GIT_SILENT Upgrade KDE Applications version to 17.11.80. 2017-11-13 01:07:57 +01:00
config-okular.h.cmake Add a "share" menu to Okular 2017-10-18 16:55:21 +02:00
COPYING - MERGE KPDF 3.5 CHANGES 2005-11-04 11:59:51 +00:00
COPYING.DOC Add copies of the GFDL-1.2 and LGPL-2 2011-07-07 18:22:06 +02:00
COPYING.LIB Add copies of the GFDL-1.2 and LGPL-2 2011-07-07 18:22:06 +02:00
extensions.cpp Fix build without implicit cast to/from ascii 2016-07-11 22:11:43 +02:00
extensions.h Add override 2017-03-02 20:38:50 +01:00
kdocumentviewer.h Merge remote-tracking branch 'origin/master' into frameworks 2015-08-03 09:44:50 +02:00
Mainpage.dox Merge remote-tracking branch 'origin/master' into frameworks 2016-10-29 11:13:24 +02:00
Messages.sh Make the drawing tools be actions instead of tool buttons 2015-08-22 22:17:40 +02:00
metainfo.yaml dox: the 'interfaces' subdir contains public API as well 2016-12-04 19:04:53 +01:00
okular.categories add markdown support 2017-08-25 01:05:23 +02:00
okular.upd Separate settings in core and non core 2012-10-16 00:28:29 +02:00
Okular5Config.cmake.in add missing include for find_dependency https://build.neon.kde.org/job/xenial_unstable_applications_okular_lintcmake/59/console 2017-10-27 14:53:23 +01:00
okular_part.desktop SVN_SILENT made messages (.desktop file) 2014-12-26 04:18:45 +00:00
OkularConfigureChecks.cmake SVN_SILENT simplify 2007-11-25 14:10:18 +00:00
part-viewermode.rc Add "Trim To Selection" feature 2015-08-27 22:09:02 +02:00
part.cpp Give warnings when the file is modified externally 2017-11-20 14:53:17 +01:00
part.h Give warnings when the file is modified externally 2017-11-20 14:53:17 +01:00
part.rc We need to increase the part.rc version number 2017-11-13 14:49:08 +01:00
README.internals.png Optimize PNG files again. 2008-01-02 00:10:07 +00:00
TODO Fix some typos found by Krazy2 2013-06-24 13:46:16 +03:00