okular/core/synctex
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
..
patches Prevent Okular from crashing when synctex logs an error 2017-11-30 14:57:05 +01:00
synctex_parser.c Change whitespace in synctex patches 2017-11-30 12:45:58 +01:00
synctex_parser.h Update to synctex 1.19 2017-09-12 21:56:49 +02:00
synctex_parser_advanced.h Update to synctex 1.19 2017-09-12 21:56:49 +02:00
synctex_parser_local.h Update to synctex 1.19 2017-09-12 21:56:49 +02:00
synctex_parser_readme.md Update to synctex 1.19 2017-09-12 21:56:49 +02:00
synctex_parser_utils.c Prevent Okular from crashing when synctex logs an error 2017-11-30 14:57:05 +01:00
synctex_parser_utils.h Update to synctex 1.19 2017-09-12 21:56:49 +02:00
synctex_parser_version.txt Update to synctex 1.19 2017-09-12 21:56:49 +02:00