• Markus Steinborn's avatar
    Fix usage of sec_sscanf · a5405341
    Markus Steinborn authored
    This should fix http://bugs.debian.org/627471
    
    Bernhard R. Link finally found the bug (excellent job!). He
    describes the bug as follows:
    
    ps.c is using some sec_sscanf (from secscanf.c) instead of
    regular sscanf or instead of doing some proper parsing.
    
    As sec_sscanf differs from regular sscanf about it variadic
    arguments gcc cannot test if the arguments given match the
    format string, especially it is lost about sec_sscanf
    wanting a 'char *' and a 'size_t' for ever '%s' or '%256s'
    it gets. Thus when ps.c does
    
    sec_sscanf(line+lenght("%%BoundingBox:), "%256s", text);
    
    the size of text field is not given, so some random value
    is returned by the 'va_arg(ap, size_t)' in secscanf.c
    If that random value is smaller than the length of "(atend)"
    then this will be copied incompletely and thus
    not be recognized.
    a5405341
Name
Last commit
Last update
..
nls Loading commit data...
.cvsignore Loading commit data...
Aaa.c Loading commit data...
Aaa.h Loading commit data...
AaaP.h Loading commit data...
Aaa_bison.c Loading commit data...
Aaa_bison.h Loading commit data...
Aaa_bison.yacc Loading commit data...
Aaa_intern.h Loading commit data...
Aaa_lex.c Loading commit data...
Button.c Loading commit data...
Button.h Loading commit data...
ButtonP.h Loading commit data...
COPYING Loading commit data...
Clip.c Loading commit data...
Clip.h Loading commit data...
ClipP.h Loading commit data...
FileSel.c Loading commit data...
FileSel.h Loading commit data...
FileSelP.h Loading commit data...
Frame.c Loading commit data...
Frame.h Loading commit data...
FrameP.h Loading commit data...
Ghostview.c Loading commit data...
Ghostview.h Loading commit data...
GhostviewP.h Loading commit data...
MButton.c Loading commit data...
MButton.h Loading commit data...
MButtonP.h Loading commit data...
Makefile.am Loading commit data...
Scrollbar.c Loading commit data...
Scrollbar.h Loading commit data...
ScrollbarP.h Loading commit data...
Switch.c Loading commit data...
Switch.h Loading commit data...
SwitchP.h Loading commit data...
Vlist.c Loading commit data...
Vlist.h Loading commit data...
VlistP.h Loading commit data...
actions.c Loading commit data...
actions.h Loading commit data...
ad2c Loading commit data...
callbacks.c Loading commit data...
callbacks.h Loading commit data...
config.h Loading commit data...
confirm.c Loading commit data...
confirm.h Loading commit data...
descrip.mms Loading commit data...
dialog.c Loading commit data...
dialog.h Loading commit data...
doc_misc.c Loading commit data...
doc_misc.h Loading commit data...
error.c Loading commit data...
error.h Loading commit data...
file.c Loading commit data...
file.h Loading commit data...
gv-i18n.pl Loading commit data...
gv-update-userconfig.in Loading commit data...
gv_copyright.dat Loading commit data...
gv_current.xbm Loading commit data...
gv_doc.xbm Loading commit data...
gv_dummy.dat Loading commit data...
gv_empty.xbm Loading commit data...
gv_even.xbm Loading commit data...
gv_font_res-I18N_mb.dat Loading commit data...
gv_font_res.dat Loading commit data...
gv_icon.xbm Loading commit data...
gv_layout_res.dat Loading commit data...
gv_message.h Loading commit data...
gv_misc_res.dat Loading commit data...
gv_odd.xbm Loading commit data...
gv_selected.xbm Loading commit data...
gv_signal.c Loading commit data...
gv_signal.h Loading commit data...
gv_spartan.dat Loading commit data...
gv_unmark.xbm Loading commit data...
gv_user_res.dat Loading commit data...
gv_widgetless.dat Loading commit data...
info.c Loading commit data...
info.h Loading commit data...
magmenu.c Loading commit data...
magmenu.h Loading commit data...
main.c Loading commit data...
main_globals.h Loading commit data...
main_resources.h Loading commit data...
media.c Loading commit data...
media.h Loading commit data...
message.h Loading commit data...
misc.c Loading commit data...
misc.h Loading commit data...
misc_private.c Loading commit data...
misc_private.h Loading commit data...
miscmenu.c Loading commit data...
miscmenu.h Loading commit data...
note.c Loading commit data...
note.h Loading commit data...
options.c Loading commit data...
options.h Loading commit data...
options_fs.c Loading commit data...
options_fs.h Loading commit data...
options_gs.c Loading commit data...
options_gs.h Loading commit data...
options_gv.c Loading commit data...
options_gv.h Loading commit data...
options_setup.c Loading commit data...
options_setup.h Loading commit data...
paths.h Loading commit data...
popup.c Loading commit data...
popup.h Loading commit data...
process.c Loading commit data...
process.h Loading commit data...
ps.c Loading commit data...
ps.h Loading commit data...
resource.c Loading commit data...
resource.h Loading commit data...
save.c Loading commit data...
save.h Loading commit data...
scale.c Loading commit data...
scale.h Loading commit data...
secscanf.c Loading commit data...
secscanf.h Loading commit data...
setenv.c Loading commit data...
setenv.h Loading commit data...
types.h Loading commit data...
version.c Loading commit data...
version.h Loading commit data...
versionp.h Loading commit data...
widgets_misc.c Loading commit data...
widgets_misc.h Loading commit data...
zoom.c Loading commit data...
zoom.h Loading commit data...