[tex-k] dvi2ps segfault based on bug in libkpathsea

Peter Breitenlohner peb at mppmu.mpg.de
Tue Nov 9 17:04:27 CET 2010


On Tue, 9 Nov 2010, Norbert Preining wrote:

> In the bug report there is also a backtrace of the segfault and
> two patches by Mathias Kende, quoting his email:
>> The first patch duplicates some code in tex-file.c (approx. 15 lines),
>> but is smaller and simpler. The second creates a helper function which
>> reads properly a "va_list" list of arguments. Choose your preferred one.
>
> I attach the two patches, both apply (with some fuzzyness) to current
> sources in TeX Live.

Hi Karl, Norbert,

I'd definitely vote for the second alternative, i.e., both
kpathsea_set_suffixes and kpse_set_suffixes (with varargs) using one and the
same static helper functions (with one va_list argument).

Regards
Peter Breitenlohner <peb at mppmu.mpg.de>


More information about the tex-k mailing list