Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler.
Number of rules (primarily dangerous function names) in C/C++ ruleset: 223
Examining data/xgks-2.6.1+dfsg.2/src/bugs/sample.c
Examining data/xgks-2.6.1+dfsg.2/src/bugs/offsetof.c
Examining data/xgks-2.6.1+dfsg.2/src/bugs/gscr.c
Examining data/xgks-2.6.1+dfsg.2/src/bugs/gscrf.c
Examining data/xgks-2.6.1+dfsg.2/src/bugs/samploc.c
Examining data/xgks-2.6.1+dfsg.2/src/bugs/request.c
Examining data/xgks-2.6.1+dfsg.2/src/bugs/pick.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/defcolors.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/xhib/xhibvers.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/demo.h
Examining data/xgks-2.6.1+dfsg.2/src/progs/Logo/ethernet.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/Logo/printer.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/Logo/s9000.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/Logo/Logovers.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/Logo/ramtek.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/Logo/demo.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/example/hello.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/hanoi.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/hello.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/include/tables.h
Examining data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/include/cgm.h
Examining data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/include/defns.h
Examining data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/include/annexe.h
Examining data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/AEutils.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/cgmdump.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/annexe_8.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/CGMutils.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/tables.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/annexe_7.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/annexe_10.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/writeops.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/main.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/annexe_5.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/translate.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/cgm.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/defaults.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/mi.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/screen_items.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/trans.h
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/GKS_LINT.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/write_output.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/adjust_grid_func.h
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/functbl.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/trans_subs.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/add_objects_subs.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/trans.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/menu.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/edit_picture_func.h
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/prompt.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/add_objects.h
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/input.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/changes.h
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/read_input.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/read_menu.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/edit_picture.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/init_tbls.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/clr_selector_draw.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/objects_func.h
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/error.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/color.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/draw.h
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/object_tbl.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/defs.h
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/objects_detect.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/palette.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/popup.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/color.h
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/popup.h
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/add_objects.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/photo_func.h
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/object_tbl.h
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/clr_selector_draw.h
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/func.h
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/main_menu.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/objects_free.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/objects_rotate.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/draw_menu.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/object_list.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/ws.h
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/picture.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/dummies.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/photodummy.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/attributes.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/draw.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/main.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/undo.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/photo.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/functbl.h
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/attributes.h
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/conversions.h
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/objects.h
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/clr_selector_exec.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/object_list.h
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/grid.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/key.h
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/clr_selector.h
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/add_objects_func.h
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/clr_selector_func.h
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/draw_palette.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/sledvers.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/object_defs.h
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/screen_items.h
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/io.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/conversions.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/objects_copy.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/menu.h
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/clr_selector_key.h
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/palette.h
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/objects_draw.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/io.h
Examining data/xgks-2.6.1+dfsg.2/src/progs/pmark.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/stratego/red.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/stratego/pictures.h
Examining data/xgks-2.6.1+dfsg.2/src/progs/stratego/blue.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/stratego/strategovers.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/stratego/stratego.h
Examining data/xgks-2.6.1+dfsg.2/src/progs/font.c
Examining data/xgks-2.6.1+dfsg.2/src/progs/pline.c
Examining data/xgks-2.6.1+dfsg.2/src/fontdb/fontdbvers.c
Examining data/xgks-2.6.1+dfsg.2/src/fontdb/rshowfont.c
Examining data/xgks-2.6.1+dfsg.2/src/fontdb/a.c
Examining data/xgks-2.6.1+dfsg.2/src/fontdb/mkfont.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/udfifo.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/uddummy.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/uderrmsg.h
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/uthread.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/ulog.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/alloca.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/strstr.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/memmove.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/udalloc.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/udalloc.h
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/tsearch.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/config.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/udqueue_err.h
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/histogram.h
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/strbuf.h
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/histogram.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/search-node.h
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/difftime.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/udfifo_err.h
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/sigfillset.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/udfifo.h
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/uderrmsg.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/sigismember.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/strbuf.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/udqueue.h
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/sigdelset.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/sigemptyset.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/nanosleep.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/strvec.h
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/udfifo_err.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/linklist.h
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/setenv.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/inetutil.h
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/strvec.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/sigdummy.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/ulog.h
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/tdelete.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/sigsuspend.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/sigaddset.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/linklist.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/tfind.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/strerror.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/getuduser.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/pathname.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/usleep.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/sigpending.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/pathname.h
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/twalk.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/udqueue_err.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/inetutil.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/udqueue.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/sigaction.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/date.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/sigprocmask.c
Examining data/xgks-2.6.1+dfsg.2/src/port/misc/atexit.c
Examining data/xgks-2.6.1+dfsg.2/src/port/fortc/fortc.h
Examining data/xgks-2.6.1+dfsg.2/src/lib/iso-c/gks.h
Examining data/xgks-2.6.1+dfsg.2/src/lib/iso-c/xgks.h
Examining data/xgks-2.6.1+dfsg.2/src/lib/iso-c/open_gks.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/iso-c/open_ws.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/iso-c/attribute.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/iso-c/control.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/iso-c/output.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/stroke.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/fillarea.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/deferral_ws.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/externinit.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/polymarkers.h
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/input.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/gks_errors.h
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/text.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/xgks.h
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/gdp.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/polymarkers.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/primitive.h
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/inqpolylines.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/escape.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/open_gks.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgm_implem.h
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgmo.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgmi.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgm.h
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgm.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/input.h
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/inqtext.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/valuator.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/event.h
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/open_ws.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/string.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/ggdp.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/fillarea.h
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/gks_error.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/gerrorhand.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/aspect_flags.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/mkerrmsg.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/cellarray.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/inquiries.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/inqWDT.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/message.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/text.h
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/colours.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.h
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm_implem.h
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/choice.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/font.h
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/polylines.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/polylines.h
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/locator.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/event.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/inqfillareas.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/prmgr.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/inqpixel.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/gks_implem.h
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/x/xfillarea.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/x/xpline.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/x/xcellarray.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/x/xport.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/x/xpmarker.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/x/xinqpixel.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/x/xSet.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/x/xupdate.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/x/xcolours.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/x/xevent.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/x/xtext.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/update.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/gkserrmsg.h
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/act_ws.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/gkslist.h
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/pick.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/transforms.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/inqpmarker.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/umalloc.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/inqtransform.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/segments.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/wdt.h
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/gif/gd.h
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/gif/gdadds.h
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/gif/gif.h
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/gif/mtables.h
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/ps/headerv4.0.h
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/ps/ps.h
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/wslist.h
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/gif.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/ps.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/gdadds.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/gks_defines.h
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/metafile.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/c/metafile.h
Examining data/xgks-2.6.1+dfsg.2/src/lib/fortran/f_errno.h
Examining data/xgks-2.6.1+dfsg.2/src/lib/fortran/fortxgks.h
Examining data/xgks-2.6.1+dfsg.2/src/lib/fortran/ps2aixdefs.h
Examining data/xgks-2.6.1+dfsg.2/src/lib/fortran/fortmac.h
Examining data/xgks-2.6.1+dfsg.2/src/lib/fortran/pdrutils.h
Examining data/xgks-2.6.1+dfsg.2/src/lib/fortran/fexterninit.c
Examining data/xgks-2.6.1+dfsg.2/src/lib/fortran/fxgksvers.c

FINAL RESULTS:

data/xgks-2.6.1+dfsg.2/src/lib/c/gif.c:482:9:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
	(void) strncat(buffer, username, sizeof(buffer) - 1);
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:921:9:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
	(void) strncat(buffer, username, sizeof(buffer) - 1);
data/xgks-2.6.1+dfsg.2/src/lib/c/mkerrmsg.c:69:12:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
    while (gets(line) != NULL) {
data/xgks-2.6.1+dfsg.2/src/lib/c/ps.c:267:9:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
	(void) strncat(buffer, username, sizeof(buffer) - 1);
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/main_menu.c:57:14:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
extern char *gets();
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/main_menu.c:217:2:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
	gets(ln);
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/main_menu.c:258:9:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
	(void) gets(ln);
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/main_menu.c:317:9:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
	(void) gets(ln);
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgm.c:863:23:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
    char		*username	= getlogin();
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgmo.c:653:23:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
    char		*username	= getlogin();
data/xgks-2.6.1+dfsg.2/src/lib/c/escape.c:326:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	(void)strcpy(progname, name);
data/xgks-2.6.1+dfsg.2/src/lib/c/gif.c:155:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, format, ap);
data/xgks-2.6.1+dfsg.2/src/lib/c/gif.c:168:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, format, ap);
data/xgks-2.6.1+dfsg.2/src/lib/c/gif.c:181:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, format, ap);
data/xgks-2.6.1+dfsg.2/src/lib/c/gif.c:475:23:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
    char		*username	= getlogin();
data/xgks-2.6.1+dfsg.2/src/lib/c/gks_defines.h:73:53:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
#define STRCPY(d,s)	GKS_STMT(if ((s) != NULL) (void)strcpy((d),(s));)
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:374:9:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
	(void) fscanf(fp, FLOAT_FMT_SCAN, scratch);
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:383:9:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
	(void) fscanf(fp, INT_FMT_SCAN, scratch);
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:914:23:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
    char		*username	= getlogin();
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:967:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(fmt, "%s%s", ITEM_TYPE_FMT, ITEM_LENGTH_FMT);
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:972:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf(fp, fmt, type, length);
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1256:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(fmt, "%s%s%s\n", ITEM_TYPE_FMT, ITEM_LENGTH_FMT,
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1262:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf(fp,
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1283:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(fmt, "%s%s\n", ITEM_TYPE_FMT, ITEM_LENGTH_FMT);
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1288:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf(fp, fmt, 2, GMrecSize(2));
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1306:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(fmt, "%s%s%s\n", ITEM_TYPE_FMT, ITEM_LENGTH_FMT,
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1312:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf(fp,
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1350:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(fmt, "%s%s%s%s\n",
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1359:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf(fp, fmt, 4, GMrecSize(4), defer, regen);
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1377:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(fmt, "%s%s%s%%s\n",
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1385:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf(fp,
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1416:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(fmt, "%s%s%s",
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1424:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf(fp,
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1431:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(fmt, "%s%s", FLOAT_FMT, FLOAT_FMT);
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1438:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    (void) fprintf(fp, fmt, pos->x, pos->y);
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1462:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(fmt, "%s%s%s%s%s%%s\n",
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1472:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf(fp,
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1501:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(fmt, "%s%s%s%s%s%s%s%s%s%s",
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1516:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf(fp,
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1531:14:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		    (void) fprintf(fp, INT_FMT, colour[i * row + j]);
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1551:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(fmt, "%s%s%s\n",
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1559:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf(fp, fmt, code, GMrecSize(code), size);
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1576:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(fmt, "%s%s\n",
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1583:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf(fp, fmt, 82, GMrecSize(82));
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1602:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(fmt, "%s%s%s\n",
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1610:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf(fp, fmt, code, GMrecSize(code), attr);
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1636:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(fmt, "%s%s%s%s\n",
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1645:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf(fp, fmt, 30, GMrecSize(30), txfp->font, prec);
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1671:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(fmt, "%s%s%s%s%s%s\n",
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1682:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf(fp,
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1717:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(fmt, "%s%s%s\n",
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1725:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf(fp, fmt, 35, GMrecSize(35), txpath);
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1766:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(fmt, "%s%s%s%s\n",
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1784:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    (void) fprintf(fp, fmt, 36, GMrecSize(36), 0, 0);
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1786:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf(fp, fmt, 36, GMrecSize(36), hor, ver);
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1814:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(fmt, "%s%s%s\n",
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1822:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf(fp, fmt, 38, GMrecSize(38), intstyle);
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1839:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(fmt, "%s%s%s%s%s%s\n",
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1850:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf(fp, fmt, 41, GMrecSize(41),
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1871:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(fmt, "%s%s%s%s\n",
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1880:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf(fp, fmt, 42, GMrecSize(42),
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1899:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(fmt, "%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s\n",
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1919:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf(fp,
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1955:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(fmt, "%s%s%s%s%s%s\n",
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1966:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf(fp,
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:2000:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(fmt, "%s%s%s%s%s%s%s%s\n",
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:2013:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf(fp, fmt, 53, GMrecSize(53), idx,
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:2044:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(fmt, "%s%s%s%s%s%s\n",
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:2055:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf(fp,
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:2084:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(fmt, "%s%s%s%s%s",
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:2094:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf(fp,
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:2103:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    (void) fprintf(fp, INT_FMT, rep->array[i]);
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:2124:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(fmt, "%s%s%s%s%s%s\n",
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:2135:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf(fp,
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:2160:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(fmt, "%s%s%s%s%s%s\n",
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:2171:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf(fp,
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:2197:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(fmt, "%s%s%s%s%s%s\n",
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:2208:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf(fp,
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:2233:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(fmt, "%s%s%s%s\n",
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:2242:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf(fp,
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:2266:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(fmt, "%s%s%s%s%s%s%s%s%s\n",
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:2279:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf(fp,
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:2307:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(fmt, "%s%s%s%s\n",
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:2316:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf(fp,
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:2340:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(fmt, "%s%s%s%s\n",
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:2349:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf(fp,
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:2373:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(fmt, "%s%s%s%s\n",
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:2382:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf(fp,
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:2406:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(fmt, "%s%s%s%s\n",
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:2415:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf(fp,
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:2439:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(fmt, "%s%s%s%s\n",
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:2448:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) fprintf(fp,
data/xgks-2.6.1+dfsg.2/src/lib/c/mkerrmsg.c:79:13:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	    (void) sscanf(line, "%s %s %d", dstr, estr, &num);
data/xgks-2.6.1+dfsg.2/src/lib/c/ps.c:160:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, format, ap);
data/xgks-2.6.1+dfsg.2/src/lib/c/ps.c:173:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, format, ap);
data/xgks-2.6.1+dfsg.2/src/lib/c/ps.c:186:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, format, ap);
data/xgks-2.6.1+dfsg.2/src/lib/c/ps.c:260:23:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
    char		*username	= getlogin();
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:235:12:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    (void) strcat(strcat(strcpy(name_key, prog), "."), name);
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:235:26:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    (void) strcat(strcat(strcpy(name_key, prog), "."), name);
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:236:12:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    (void) strcat(strcpy(class_key, "Xgks."), class);
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:477:36:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    if (XrmGetResource(rDB, strcat(strcpy(buf, name), ".geometry"),
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:557:29:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    if (XrmGetResource(rDB, strcat(strcpy(buf, name), specName),
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:557:36:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    if (XrmGetResource(rDB, strcat(strcpy(buf, name), specName),
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:628:36:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    if (XrmGetResource(rDB, strcat(strcpy(buf, name), ".icon.geometry"),
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:698:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    (void) strcpy(path, dir);
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:700:12:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    (void) strcat(path, class);
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:798:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	(void) strcpy(dest, ptr);
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:808:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    (void) strcpy(dest, pw->pw_dir);
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xtext.c:644:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void) sprintf(fontpath, "%s/%d", xgks_state.fontdbdir, f);
data/xgks-2.6.1+dfsg.2/src/lib/fortran/fortxgks.h:41:42:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#   define debug(f) (fileno(stdout)>0 ? (printf f,fflush(stdout)) : 0)
data/xgks-2.6.1+dfsg.2/src/port/misc/config.c:299:24:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define Vprintf if (V) printf
data/xgks-2.6.1+dfsg.2/src/port/misc/config.c:605:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(description, extra);
data/xgks-2.6.1+dfsg.2/src/port/misc/config.c:712:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(buf, f1, precision, val);
data/xgks-2.6.1+dfsg.2/src/port/misc/config.c:1647:3:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
		sscanf(rep, f2, &new1);
data/xgks-2.6.1+dfsg.2/src/port/misc/inetutil.c:113:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(buf,
data/xgks-2.6.1+dfsg.2/src/port/misc/setenv.c:53:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    (void) strcpy(string, name);
data/xgks-2.6.1+dfsg.2/src/port/misc/setenv.c:72:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    (void) strcpy(string+namelen+1, value);
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:162:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(savetz, tz);
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:175:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(savetz, tz);
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:178:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(savetz, tz);
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:203:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(tbuf, days_a[timeptr->tm_wday]);
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:210:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(tbuf, days_l[timeptr->tm_wday]);
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:220:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(tbuf, months_a[timeptr->tm_mon]);
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:227:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(tbuf, months_l[timeptr->tm_mon]);
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:231:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(tbuf, "%s %s %2d %02d:%02d:%02d %d",
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:277:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(tbuf, ampm[0]);
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:279:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(tbuf, ampm[1]);
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:301:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(tbuf, "%s %s %2d %d",
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:328:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(tbuf, tzname[i]);
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:397:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(s, tbuf);
data/xgks-2.6.1+dfsg.2/src/port/misc/uderrmsg.c:183:16:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    if ((nc = vfprintf(stderr, fmt, alist)) >= 0) {
data/xgks-2.6.1+dfsg.2/src/port/misc/uderrmsg.c:319:16:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    if ((nc = vfprintf(stderr, fmt, alist)) >= 0) {
data/xgks-2.6.1+dfsg.2/src/port/misc/ulog.c:318:10:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		(void) strcpy(cp, logIdent);
data/xgks-2.6.1+dfsg.2/src/port/misc/ulog.c:338:8:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
	(void)vsprintf(cp, fmt, args) ;
data/xgks-2.6.1+dfsg.2/src/port/misc/ulog.c:493:1:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
syslog(int pri, const char *fmt, ...)
data/xgks-2.6.1+dfsg.2/src/port/misc/ulog.c:498:1:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
syslog(pri, fmt, va_alist)
data/xgks-2.6.1+dfsg.2/src/port/misc/ulog.c:589:10:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
		(void) vsprintf(buf, fmt, args) ;
data/xgks-2.6.1+dfsg.2/src/port/misc/ulog.c:737:10:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
		(void) vsprintf(&buf[1], fmt, args) ;
data/xgks-2.6.1+dfsg.2/src/port/misc/ulog.c:806:10:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
		(void) vsprintf(buf, fmt, args) ;
data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/defaults.c:268:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(*str_ptr, param_str);
data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/main.c:201:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(str, GKSM_string);
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/main_menu.c:221:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(command,ln);
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/main_menu.c:222:3:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		system(command);
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/main_menu.c:274:10:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		(void) strcpy(last_file_accessed,ln);
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/main_menu.c:333:10:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		(void) strcpy(last_file_accessed,ln);
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/menu.c:105:10:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		(void) strcpy(area,menu_tbl[i].area);
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/object_list.c:100:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	(void) strcpy(single_ob->key,key);
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/prompt.c:218:10:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		(void) strcpy(prompt_str,prompt_messages[msgno1]);
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/prompt.c:220:10:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		(void) strcat(prompt_str,prompt_messages[msgno2]);
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/prompt.c:227:10:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		(void) strcpy(prompt_str,prompt_messages[msgno2]);
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/prompt.c:234:10:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		(void) strcpy(prompt_str,prompt_messages[msgno1]);
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/read_menu.c:231:11:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			(void) strcpy(menu_item_ptr->key,temp);
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/screen_items.c:531:10:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		(void) strcpy(active_clr_area,clr_area);
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/trans.c:192:11:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			(void) strcpy(trans_tbl[transno],area);
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/trans.c:262:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	(void) strcpy(area,trans_tbl[transno]);
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/undo.c:100:10:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		(void) strcpy(last_action_area,area);
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/undo.c:128:10:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		(void) strcpy(last_action_menu_item,key);
data/xgks-2.6.1+dfsg.2/src/progs/stratego/red.c:57:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy( remote_dis, argv[1] );
data/xgks-2.6.1+dfsg.2/src/progs/stratego/red.c:59:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy( remote_dis, getenv( "DISPLAY" ) );
data/xgks-2.6.1+dfsg.2/src/progs/stratego/red.c:155:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy( aparms[3], remote_dis );	/* remote display name */
data/xgks-2.6.1+dfsg.2/src/lib/c/colours.c:308:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char           *getenv();
data/xgks-2.6.1+dfsg.2/src/lib/c/colours.c:326:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	server = getenv("DISPLAY");
data/xgks-2.6.1+dfsg.2/src/lib/c/colours.c:435:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char           *getenv();
data/xgks-2.6.1+dfsg.2/src/lib/c/colours.c:442:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	server = getenv("DISPLAY");
data/xgks-2.6.1+dfsg.2/src/lib/c/gif.c:141:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  char *cp = getenv("XGKS_LOG");
data/xgks-2.6.1+dfsg.2/src/lib/c/open_ws.c:206:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char           *getenv();
data/xgks-2.6.1+dfsg.2/src/lib/c/open_ws.c:217:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	connection = getenv("DISPLAY");
data/xgks-2.6.1+dfsg.2/src/lib/c/ps.c:146:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  char *cp = getenv("XGKS_LOG");
data/xgks-2.6.1+dfsg.2/src/lib/c/text.c:108:28:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    xgks_state.fontdbdir = getenv("XGKSFontDir");
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:358:29:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((ClassHints.res_name = getenv("RESOURCE_NAME")) == NULL)
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:729:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char	   *appresdir = getenv("XAPPLRESDIR");
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:768:32:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char           *user_server = getenv("XENVIRONMENT");
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:797:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((ptr = getenv("HOME")) != NULL) {
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:801:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((ptr = getenv("USER")) != NULL) {
data/xgks-2.6.1+dfsg.2/src/lib/iso-c/open_ws.c:44:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char           *getenv();
data/xgks-2.6.1+dfsg.2/src/lib/iso-c/open_ws.c:55:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	connection = getenv("DISPLAY");
data/xgks-2.6.1+dfsg.2/src/port/misc/date.c:14:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt();
data/xgks-2.6.1+dfsg.2/src/port/misc/date.c:29:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt(argc, argv, "u")) != -1)
data/xgks-2.6.1+dfsg.2/src/port/misc/getuduser.c:21:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((logname = getenv("UDLOGNAME")) != NULL)
data/xgks-2.6.1+dfsg.2/src/port/misc/getuduser.c:43:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char	*prefix	= getenv("UDPREFIX");
data/xgks-2.6.1+dfsg.2/src/port/misc/getuduser.c:46:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	prefix	= getenv("UDHOME");
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:40:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
extern char *getenv();
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:47:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
extern char *getenv(const char *v);
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:155:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	tz = getenv("TZ");
data/xgks-2.6.1+dfsg.2/src/port/misc/ulog.c:909:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(ac, av, "l:")) != EOF)
data/xgks-2.6.1+dfsg.2/src/progs/font.c:127:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt(argc, argv, "d:o:")) != -1) {
data/xgks-2.6.1+dfsg.2/src/progs/hanoi.c:144:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt(argc, argv, "d:n:o:")) != -1) {
data/xgks-2.6.1+dfsg.2/src/progs/mi.c:76:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt(argc, argv, "d:o:")) != -1) {
data/xgks-2.6.1+dfsg.2/src/progs/stratego/red.c:59:27:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      strcpy( remote_dis, getenv( "DISPLAY" ) );
data/xgks-2.6.1+dfsg.2/src/bugs/pick.c:11:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	c[80];
data/xgks-2.6.1+dfsg.2/src/bugs/pick.c:35:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    (void) sprintf(c, "%d", id);
data/xgks-2.6.1+dfsg.2/src/fontdb/mkfont.c:59:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            fn[30];
data/xgks-2.6.1+dfsg.2/src/fontdb/mkfont.c:191:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fd = open(Font.fn, O_CREAT | O_RDWR, 0644)) < 0) {
data/xgks-2.6.1+dfsg.2/src/fontdb/mkfont.c:216:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fd = open(Fn, O_RDONLY, 0644)) < 0) {
data/xgks-2.6.1+dfsg.2/src/fontdb/mkfont.c:333:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            s[80], *sp;
data/xgks-2.6.1+dfsg.2/src/fontdb/mkfont.c:339:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fontfile = fopen(argv[1], "r")) == NULL) {
data/xgks-2.6.1+dfsg.2/src/fontdb/rshowfont.c:65:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fd = open(Fn, O_RDONLY, 0644)) < 0) {
data/xgks-2.6.1+dfsg.2/src/fontdb/rshowfont.c:175:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    DisplayFont(fp, atoi(argv[2]));
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgm.c:343:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char	mo_buf[077776];	/* Parameter buffer */
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgm.c:385:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    unsigned char	bytes[2];
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgm.c:413:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    unsigned char	bytes[2];
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgm.c:480:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	bytes[2]; \
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgm.c:539:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	bytes[2]; \
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgm.c:624:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	bytes[2]; \
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgm.c:736:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	rep[3]; \
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgm.c:864:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char		timebuf[24];
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgm.c:865:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char		buffer[128];
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgm.c:917:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void) sprintf(timebuf, " UTC%c%02d%02d", 
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgm.c:1001:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	identifier[16];			/* Should be large enough */
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgm.c:1003:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void) sprintf(identifier, "XGKS %d", ++cgmo[ii]->picture_number);
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgm.c:2083:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char	bytes[2];
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgm.c:2159:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char	bytes[2];
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgm.c:2174:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char 	bytes[2];
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgm.c:2210:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	rep[3];
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgm.c:2348:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char	bytes[2];
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgm.c:2986:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char	bytes[2];
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgmi.c:67:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char	bytes[2];
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgmi.c:143:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char	bytes[2];
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgmi.c:158:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char 	bytes[2];
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgmi.c:200:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	rep[3];
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgmi.c:338:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char	bytes[2];
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgmi.c:976:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char	bytes[2];
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgmi.c:1107:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((mi->fp = fopen(conn, "r")) == NULL) {
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgmo.c:150:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char		cgm_buf[077776];
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgmo.c:196:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    unsigned char	bytes[2];
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgmo.c:219:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    unsigned char	bytes[2];
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgmo.c:286:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	bytes[2]; \
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgmo.c:343:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	bytes[2]; \
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgmo.c:436:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	bytes[2]; \
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgmo.c:543:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	modc_rep[3]; \
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgmo.c:654:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char		timebuf[24];
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgmo.c:655:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char		buffer[128];
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgmo.c:707:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void) sprintf(timebuf, " UTC%c%02d%02d", 
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgmo.c:809:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	identifier[16];			/* Should be large enough */
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgmo.c:813:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void) sprintf(identifier, "XGKS %d", ++cgmo[ii]->picture_number);
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgmo.c:1172:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((cgmo->fp = fopen(ws->conn, "w")) == NULL) {
data/xgks-2.6.1+dfsg.2/src/lib/c/font.h:62:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	fname[30];		/* font name */
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:99:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if (im->open[i]) {
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:118:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if (im->open[i]) {
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:135:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if (im->open[i]) {
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:150:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	im->open[ct] = 0;
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:157:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	im->open[color] = 1;
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:1464:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char accum[ 256 ];
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:1558:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
       unsigned char   ColorMap[3][MAXCOLORMAPSIZE];
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:1573:57:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static int ReadColorMap (FILE *fd, int number, unsigned char (*buffer)[256]);
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:1578:79:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static void ReadImage (gdImagePtr im, FILE *fd, int len, int height, unsigned char (*cmap)[256], int interlace, int ignore);
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:1591:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
       unsigned char   buf[16];
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:1593:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
       unsigned char   ColorMap[3][MAXCOLORMAPSIZE];
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:1594:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
       unsigned char   localColorMap[3][MAXCOLORMAPSIZE];
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:1599:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
       char            version[4];
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:1646:40:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                               if (im->open[i]) {
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:1703:45:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
ReadColorMap(FILE *fd, int number, unsigned char (*buffer)[256])
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:1706:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
       unsigned char   rgb[3];
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:1725:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
       static unsigned char     buf[256];
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:1769:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
       static unsigned char    buf[280];
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:1872:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                       unsigned char   buf[260];
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:1921:66:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
ReadImage(gdImagePtr im, FILE *fd, int len, int height, unsigned char (*cmap)[256], int interlace, int ignore)
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:1932:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
               im->open[i] = 1;
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:1957:24:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
               if (im->open[v]) {
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:1958:28:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                       im->open[v] = 0;
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:2281:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char s[161];
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:2298:6:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	w = atoi(sp + 1);
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:2318:6:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	h = atoi(sp + 1);
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:2333:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char h[3];
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:2536:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(im->style, style, sizeof(int) * noOfPixels);
data/xgks-2.6.1+dfsg.2/src/lib/c/gif.c:120:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char *LineStyles[5] = {
data/xgks-2.6.1+dfsg.2/src/lib/c/gif.c:143:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    LogFlag = atoi(cp);
data/xgks-2.6.1+dfsg.2/src/lib/c/gif.c:351:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(newmeta->style, old->style, sizeof(int)*MaxLineStyleLength);
data/xgks-2.6.1+dfsg.2/src/lib/c/gif.c:601:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *fp = fopen(filename, "w");
data/xgks-2.6.1+dfsg.2/src/lib/c/gif.c:627:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *fp = fopen(filename, "w");
data/xgks-2.6.1+dfsg.2/src/lib/c/gif.c:640:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        inGif = fopen(filename,"rb");
data/xgks-2.6.1+dfsg.2/src/lib/c/gif.c:646:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        ouGif = fopen(filename,"w");
data/xgks-2.6.1+dfsg.2/src/lib/c/gif.c:683:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *fp = fopen(filename, "w");
data/xgks-2.6.1+dfsg.2/src/lib/c/gif.c:695:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        inGif = fopen(filename,"rb");
data/xgks-2.6.1+dfsg.2/src/lib/c/gif.c:701:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        ouGif = fopen(filename,"w");
data/xgks-2.6.1+dfsg.2/src/lib/c/gif.c:856:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(tpts, npts, sizeof(gdPoint)*total);
data/xgks-2.6.1+dfsg.2/src/lib/c/gif/gd.h:34:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int open[gdMaxColors];
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:299:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	msg->string = &(((char *) record)[sizeof(XGKSMMESG)]);
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:362:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	text->string = &(((char *) record)[sizeof(XGKSMTEXT)]);
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1056:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((gksm->fp = fopen(conn, "r")) != NULL) {
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:1176:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	Gfile		*fp	= fopen(ws->conn, "w");
data/xgks-2.6.1+dfsg.2/src/lib/c/mkerrmsg.c:55:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            line[1024], dstr[30], estr[30];
data/xgks-2.6.1+dfsg.2/src/lib/c/ps.c:148:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    LogFlag = atoi(cp);
data/xgks-2.6.1+dfsg.2/src/lib/c/ps.c:311:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((cgmo->fp = fopen(ws->conn, "w")) == NULL) {
data/xgks-2.6.1+dfsg.2/src/lib/c/string.c:511:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            keybuf[2];
data/xgks-2.6.1+dfsg.2/src/lib/c/wslist.h:75:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            dashl[17];		/* dash list */
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xcolours.c:205:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xcolours.c:209:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:230:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            name_key[1024];
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:231:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            class_key[1024];
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:232:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char           *str_type[20];
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:236:19:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    (void) strcat(strcpy(class_key, "Xgks."), class);
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:459:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            buf[1024];
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:460:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char           *str_type[20];
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:477:29:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    if (XrmGetResource(rDB, strcat(strcpy(buf, name), ".geometry"),
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:551:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            buf[1024];
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:552:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char           *str_type[20];
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:582:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            buf[1024];
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:583:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char           *str_type[20];
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:614:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            buf[1024];
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:615:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char           *str_type[20];
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:628:29:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    if (XrmGetResource(rDB, strcat(strcpy(buf, name), ".icon.geometry"),
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:696:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	path[1024];
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:718:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            pathname[1024];
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:755:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	    (void) strcat(pathname, "/.Xdefaults");
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:774:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	    (void) strcat(user_server, "/.Xdefaults-");
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xtext.c:631:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            fontpath[1000];
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xtext.c:645:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fd = open(fontpath, O_RDONLY, 0644)) < 0) {
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xtext.c:657:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    if (read(fd, (char *) FontTable[f].f_font, (unsigned) size) != size) {
data/xgks-2.6.1+dfsg.2/src/lib/c/xgks.h:1218:21:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    Gint            open;		/* number of open workstations */
data/xgks-2.6.1+dfsg.2/src/lib/iso-c/control.c:22:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				: fopen(err_file, "w");
data/xgks-2.6.1+dfsg.2/src/lib/iso-c/open_gks.c:21:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				: fopen(err_file, "w");
data/xgks-2.6.1+dfsg.2/src/lib/iso-c/xgks.h:1156:21:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    Gint            open;		/* number of open workstations */
data/xgks-2.6.1+dfsg.2/src/port/misc/alloca.c:146:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char align[ALIGN_SIZE];	/* To force sizeof(header).  */
data/xgks-2.6.1+dfsg.2/src/port/misc/config.c:371:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char co[4], oc[4]; /* Comment starter and ender symbols */
data/xgks-2.6.1+dfsg.2/src/port/misc/config.c:702:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[1024];
data/xgks-2.6.1+dfsg.2/src/port/misc/inetutil.c:38:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char hostname[MAXHOSTNAMELEN+1] ;
data/xgks-2.6.1+dfsg.2/src/port/misc/inetutil.c:112:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[64] ;
data/xgks-2.6.1+dfsg.2/src/port/misc/inetutil.c:129:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hostname[MAXHOSTNAMELEN] ;
data/xgks-2.6.1+dfsg.2/src/port/misc/linklist.c:34:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            data[1];
data/xgks-2.6.1+dfsg.2/src/port/misc/linklist.c:85:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    (void) memcpy((voidp)memb->data, data, size);
data/xgks-2.6.1+dfsg.2/src/port/misc/pathname.c:32:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char	buf[PATH_MAX+1];
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:59:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char *tzname[2];
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:115:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tbuf[100];
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:243:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(tbuf, "%02d", i);
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:248:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(tbuf, "%02d", i);
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:257:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(tbuf, "%02d", i);
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:261:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(tbuf, "%03d", timeptr->tm_yday + 1);
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:266:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(tbuf, "%02d", i + 1);
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:271:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(tbuf, "%02d", i);
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:284:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(tbuf, "%02d", i);
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:288:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(tbuf, "%d", weeknumber(timeptr, 0));
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:293:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(tbuf, "%d", i);
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:297:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(tbuf, "%d", weeknumber(timeptr, 1));
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:309:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(tbuf, "%02d:%02d:%02d",
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:317:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(tbuf, "%d", i);
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:321:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(tbuf, "%d", 1900 + timeptr->tm_year);
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:347:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(tbuf, "%2d", range(1, timeptr->tm_mday, 31));
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:366:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(tbuf, "%2d-%3.3s-%4d",
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:379:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(tbuf, "%02d", (timeptr->tm_year + 1900) / 100);
data/xgks-2.6.1+dfsg.2/src/port/misc/uderrmsg.c:59:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char	buf[32];
data/xgks-2.6.1+dfsg.2/src/port/misc/uderrmsg.c:63:8:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	(void)strcpy(buf, "<time unavailable>");
data/xgks-2.6.1+dfsg.2/src/port/misc/uderrmsg.c:142:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	msgbuf[256];
data/xgks-2.6.1+dfsg.2/src/port/misc/uderrmsg.c:257:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	buf[MAX_CANON];
data/xgks-2.6.1+dfsg.2/src/port/misc/udfifo.c:114:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	(void) memcpy((voidp)fifo->tail, new, fifo->eltsize);
data/xgks-2.6.1+dfsg.2/src/port/misc/udfifo.c:146:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    (void) memcpy(old, (voidp)fifo->head, fifo->eltsize);
data/xgks-2.6.1+dfsg.2/src/port/misc/udfifo_err.c:105:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    (void) memcpy((voidp)fifo->tail, new, fifo->eltsize);
data/xgks-2.6.1+dfsg.2/src/port/misc/udfifo_err.c:136:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		(void) memcpy(old, (voidp)fifo->head, fifo->eltsize);
data/xgks-2.6.1+dfsg.2/src/port/misc/ulog.c:160:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			logFd = open(logfilename, (O_WRONLY|O_CREAT|O_APPEND), 0664) ;
data/xgks-2.6.1+dfsg.2/src/port/misc/ulog.c:188:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				logFd = open(LOGNAME, O_WRONLY) ;	/* System V */
data/xgks-2.6.1+dfsg.2/src/port/misc/ulog.c:245:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tbuf[2048] ;
data/xgks-2.6.1+dfsg.2/src/port/misc/ulog.c:289:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		(void) sprintf(tbuf, "<%d>", pri) ;
data/xgks-2.6.1+dfsg.2/src/port/misc/ulog.c:325:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		(void) sprintf(cp, "[%d]", getpid());
data/xgks-2.6.1+dfsg.2/src/port/misc/ulog.c:421:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fd = open(CONSOLE, O_WRONLY, 0)) < 0)
data/xgks-2.6.1+dfsg.2/src/port/misc/ulog.c:586:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[1024] ;
data/xgks-2.6.1+dfsg.2/src/port/misc/ulog.c:591:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(cp, ": %s") ;
data/xgks-2.6.1+dfsg.2/src/port/misc/ulog.c:729:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[1024] ;
data/xgks-2.6.1+dfsg.2/src/port/misc/ulog.c:803:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[1024] ;
data/xgks-2.6.1+dfsg.2/src/port/misc/ulog.c:808:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(cp, ": %s") ;
data/xgks-2.6.1+dfsg.2/src/port/misc/ulog.c:862:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cp[32] ;
data/xgks-2.6.1+dfsg.2/src/port/misc/ulog.c:936:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int fd = open("/dev/kmem", O_RDWR, 0664) ;
data/xgks-2.6.1+dfsg.2/src/progs/Logo/ethernet.c:68:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char c[2], words[25];
data/xgks-2.6.1+dfsg.2/src/progs/Logo/ethernet.c:82:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(words,"PROFESSIONAL WORKSTATION");
data/xgks-2.6.1+dfsg.2/src/progs/Logo/ethernet.c:98:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(words,"RESEARCH GROUP");
data/xgks-2.6.1+dfsg.2/src/progs/defcolors.c:71:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    (void) sprintf(num, "%d", color);
data/xgks-2.6.1+dfsg.2/src/progs/font.c:62:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            s[100];
data/xgks-2.6.1+dfsg.2/src/progs/font.c:87:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    (void) sprintf(s, "GKS VECTOR FONT NUMBER %d", font);
data/xgks-2.6.1+dfsg.2/src/progs/font.c:237:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            s[100];
data/xgks-2.6.1+dfsg.2/src/progs/font.c:278:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void) sprintf(s,
data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/AEutils.c:75:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	*int_var_ptr = atoi(num);
data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/CGMutils.c:111:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char    str[20];
data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/CGMutils.c:218:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char    str[20];
data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/CGMutils.c:410:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char    str[20];
data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/defaults.c:37:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char   *DftTable[NUM_DEFAULTS] = {
data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/defaults.c:84:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	       *fopen();
data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/defaults.c:91:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char    dft_str[20],
data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/defaults.c:95:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((dfile = fopen(df_name, "r")) == NULL)
data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/defaults.c:253:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char    param_str[40];
data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/defaults.c:286:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char    string[40];
data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/main.c:27:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char	GKSM_string[5];			/* GKSM in the Annex E definition */
data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/main.c:28:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char	author_string[41];		/* N	 */
data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/main.c:29:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char	date_string[9];			/* D	 */
data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/main.c:60:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE	*fopen();
data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/main.c:75:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				if ((MF_infile = fopen((in_name = *argv), "r"))
data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/main.c:86:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				if ((MF_outfile=fopen((out_name = *argv),"w"))
data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/main.c:172:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	str[5];
data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/main.c:173:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	dummy[23];
data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/tables.c:32:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char   *CtOpTable[96] = {
data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/tables.c:215:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char   *SepStrings[5] = {
data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/translate.c:23:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char GKSM_string[5];
data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/translate.c:67:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char    str[5];
data/xgks-2.6.1+dfsg.2/src/progs/hanoi.c:150:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    n		= atoi(optarg);
data/xgks-2.6.1+dfsg.2/src/progs/pline.c:156:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            s[20];
data/xgks-2.6.1+dfsg.2/src/progs/pline.c:200:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void) sprintf(s, "width %5.2f", (float) (2.0 * i));
data/xgks-2.6.1+dfsg.2/src/progs/pmark.c:219:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void) sprintf(s, "scale %5.2f", (float) (2.0 * i));
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/clr_selector_draw.c:138:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char *lines[2] =	
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/clr_selector_draw.c:211:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char *lines[2] =
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/clr_selector_draw.c:285:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char *lines[1] =
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/clr_selector_draw.c:406:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char *lines[4] =
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/init_tbls.c:1047:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = fopen(filename,"r");
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/init_tbls.c:1122:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = fopen(filename,"r");
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/io.c:66:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ln[80];			/* next input ln */
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/io.c:98:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ln[80];			/* next input ln */
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/io.c:123:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ln[80];			/* next input ln */
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/io.c:148:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ln[80];			/* next input ln */
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/io.c:174:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ln[80];			/* next input ln */
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/io.c:206:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ln[80];			/* next input ln */
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/io.c:238:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ln[80];			/* next input ln */
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/io.c:270:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ln[80];			/* next input ln */
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/io.c:302:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ln[80];			/* next input ln */
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/io.c:342:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ln[80];			/* next input ln */
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/main_menu.c:220:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(command,"mv uigks.pic ");
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/main_menu.c:242:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ln[80];
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/main_menu.c:301:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ln[80];
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/objects_draw.c:291:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[2];
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/palette.c:190:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = fopen(filename,"r");
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/popup.c:603:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(string,"%d",digit);
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/popup.c:644:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(string,"%d",digit);
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/prompt.c:219:10:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		(void) strcat(prompt_str,": ");
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/read_input.c:78:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = fopen(filename,"r");
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/read_menu.c:53:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = fopen(filename,"r");
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/trans.c:236:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		free((char *) trans_tbl[transno]);
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/write_output.c:69:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = fopen(filename,"w+");
data/xgks-2.6.1+dfsg.2/src/progs/stratego/blue.c:129:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   pdes[READ] = atoi(argv[1]);  /* read */
data/xgks-2.6.1+dfsg.2/src/progs/stratego/blue.c:130:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   pdes[WRITE] = atoi(argv[2]);  /* write */
data/xgks-2.6.1+dfsg.2/src/progs/stratego/blue.c:232:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char string[255];
data/xgks-2.6.1+dfsg.2/src/progs/stratego/blue.c:250:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
   strcpy( string, "current piece" );
data/xgks-2.6.1+dfsg.2/src/progs/stratego/blue.c:260:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
   strcpy( string, "FINISHED" );
data/xgks-2.6.1+dfsg.2/src/progs/stratego/blue.c:337:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char ch[2];
data/xgks-2.6.1+dfsg.2/src/progs/stratego/blue.c:467:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char ch[2];
data/xgks-2.6.1+dfsg.2/src/progs/stratego/red.c:36:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char remote_dis[80];
data/xgks-2.6.1+dfsg.2/src/progs/stratego/red.c:140:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char progname[80],
data/xgks-2.6.1+dfsg.2/src/progs/stratego/red.c:142:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char *vparms[5];
data/xgks-2.6.1+dfsg.2/src/progs/stratego/red.c:145:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
   strcpy( progname, "blue" );
data/xgks-2.6.1+dfsg.2/src/progs/stratego/red.c:152:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
   strcpy( aparms[0], "blue" );		/* program name */
data/xgks-2.6.1+dfsg.2/src/progs/stratego/red.c:153:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf( aparms[1], "%d", pRtB[READ] );	/* number of read-descriptor */
data/xgks-2.6.1+dfsg.2/src/progs/stratego/red.c:154:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf( aparms[2], "%d", pBtR[WRITE] );	/* number of write-descriptor */
data/xgks-2.6.1+dfsg.2/src/progs/stratego/red.c:157:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   vparms[0] = (char *)aparms[0];
data/xgks-2.6.1+dfsg.2/src/progs/stratego/red.c:158:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   vparms[1] = (char *)aparms[1];
data/xgks-2.6.1+dfsg.2/src/progs/stratego/red.c:159:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   vparms[2] = (char *)aparms[2];
data/xgks-2.6.1+dfsg.2/src/progs/stratego/red.c:160:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   vparms[3] = (char *)aparms[3];
data/xgks-2.6.1+dfsg.2/src/progs/stratego/red.c:280:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char string[100];
data/xgks-2.6.1+dfsg.2/src/progs/stratego/red.c:298:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
   strcpy(string,"current piece");
data/xgks-2.6.1+dfsg.2/src/progs/stratego/red.c:308:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
   strcpy(string,"FINISHED");
data/xgks-2.6.1+dfsg.2/src/progs/stratego/red.c:387:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char ch[2];
data/xgks-2.6.1+dfsg.2/src/progs/stratego/red.c:558:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char ch[2];
data/xgks-2.6.1+dfsg.2/src/progs/stratego/red.c:1015:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char name[2];
data/xgks-2.6.1+dfsg.2/src/progs/stratego/red.c:1038:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char name[2];
data/xgks-2.6.1+dfsg.2/src/bugs/gscrf.c:46:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int	len	= strlen(mo_path);
data/xgks-2.6.1+dfsg.2/src/bugs/request.c:50:9:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (getchar() == EOF)
data/xgks-2.6.1+dfsg.2/src/fontdb/mkfont.c:220:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(fd, (char *) &size, sizeof(int)) != sizeof(int)) {
data/xgks-2.6.1+dfsg.2/src/fontdb/mkfont.c:228:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(fd, (char *) *Fpp, size) != size) {
data/xgks-2.6.1+dfsg.2/src/fontdb/mkfont.c:288:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(s) == 1)
data/xgks-2.6.1+dfsg.2/src/fontdb/mkfont.c:343:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    (void) strncpy(Font.fn, argv[2], 30);	/* font name */
data/xgks-2.6.1+dfsg.2/src/fontdb/mkfont.c:371:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    sp[strlen(sp) - 1] = NULL;		/* past the space & null */
data/xgks-2.6.1+dfsg.2/src/fontdb/rshowfont.c:69:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(fd, &size, sizeof(int)) != sizeof(int)) {
data/xgks-2.6.1+dfsg.2/src/fontdb/rshowfont.c:77:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(fd, *Fpp, size) != size) {
data/xgks-2.6.1+dfsg.2/src/fontdb/rshowfont.c:132:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/xgks-2.6.1+dfsg.2/src/fontdb/rshowfont.c:155:6:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    getchar();
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgm.c:591:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t	nchr	= strlen(string);
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgm.c:874:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    size_t	nchr	= strlen(string); \
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgm.c:876:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    (void) strncpy(cp, string, nchr); \
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgm.c:2285:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    mi_string(mi, msg->string, &msg->strlen);
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgm.c:2667:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    mi_string(mi, data->text.string, &data->text.strlen);
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgmi.c:275:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    mi_string(mi, msg->string, &msg->strlen);
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgmi.c:657:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    mi_string(mi, data->text.string, &data->text.strlen);
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgmo.c:403:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t	nchr	= strlen(string);
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgmo.c:664:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    size_t	nchr	= strlen(string); \
data/xgks-2.6.1+dfsg.2/src/lib/c/cgm/cgmo.c:666:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    (void) strncpy(cp, string, nchr); \
data/xgks-2.6.1+dfsg.2/src/lib/c/choice.c:785:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	((str) != NULL) ? strlen(str) : 0); \
data/xgks-2.6.1+dfsg.2/src/lib/c/escape.c:325:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((progname = (char*)malloc((size_t) (strlen(name)+1))) != NULL)
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:522:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	l = strlen(s);
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:533:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	l = strlen(s);
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:1610:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
       strncpy(version, (char *)buf + 3, 3);
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:2165:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	r = getc(in);
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:2170:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	r = getc(in);	
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:2187:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	r = getc(in);
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:2231:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ch = getc(in);
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:2337:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ch = getc(fd);
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:2346:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ch = getc(fd);
data/xgks-2.6.1+dfsg.2/src/lib/c/gd.c:2351:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ch = getc(fd);
data/xgks-2.6.1+dfsg.2/src/lib/c/gif.c:399:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen(cp);
data/xgks-2.6.1+dfsg.2/src/lib/c/gif.c:404:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen(LineStyles[attr]);
data/xgks-2.6.1+dfsg.2/src/lib/c/gif.c:485:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int	nchr	= strlen(buffer);
data/xgks-2.6.1+dfsg.2/src/lib/c/gif.c:489:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    (void) strncpy(buffer + nchr, name.nodename, 
data/xgks-2.6.1+dfsg.2/src/lib/c/gks_defines.h:62:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define STRLEN(a)       (((a) == NULL) ? 0 : strlen(a))
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:184:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((i = getc(fp)) == EOF)
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:304:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	readcnt = READINT(fp, msg->strlen);
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:318:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for (i = 1; i < msg->strlen; i++) {
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:385:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	readcnt = sscanf(scratch, "%d", &(text->strlen));
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:399:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for (i = 1; i < text->strlen; i++) {
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:924:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int	nchr	= strlen(buffer);
data/xgks-2.6.1+dfsg.2/src/lib/c/gksm/gksm.c:928:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    (void) strncpy(buffer + nchr, name.nodename, 
data/xgks-2.6.1+dfsg.2/src/lib/c/metafile.h:124:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    Gint            strlen;
data/xgks-2.6.1+dfsg.2/src/lib/c/metafile.h:147:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    Gint            strlen;
data/xgks-2.6.1+dfsg.2/src/lib/c/ps.c:270:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int	nchr	= strlen(buffer);
data/xgks-2.6.1+dfsg.2/src/lib/c/ps.c:274:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    (void) strncpy(buffer + nchr, name.nodename, 
data/xgks-2.6.1+dfsg.2/src/lib/c/ps.c:471:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	length = strlen(string);
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:235:19:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    (void) strcat(strcat(strcpy(name_key, prog), "."), name);
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:241:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(name_key, value.addr, (int) value.size);
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:484:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(buf, value.addr, (int) value.size);
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:564:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(buf, value.addr, (int) value.size);
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:635:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(buf, value.addr, (int) value.size);
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xopws.c:699:12:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    (void) strcat(path, "/");
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xtext.c:649:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(fd, (char *) &size, sizeof(int)) != sizeof(int)) {
data/xgks-2.6.1+dfsg.2/src/lib/c/x/xtext.c:657:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(fd, (char *) FontTable[f].f_font, (unsigned) size) != size) {
data/xgks-2.6.1+dfsg.2/src/port/misc/date.c:46:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size = strlen(howto) * 10;
data/xgks-2.6.1+dfsg.2/src/port/misc/inetutil.c:181:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(addr.sa_data, name, sizeof(addr.sa_data)) ;
data/xgks-2.6.1+dfsg.2/src/port/misc/pathname.c:68:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    (void) strncpy(buf, start, MIN(nchr, sizeof(buf)-1));
data/xgks-2.6.1+dfsg.2/src/port/misc/pathname.c:104:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    (void) strncpy(buf, pathname, nchr);
data/xgks-2.6.1+dfsg.2/src/port/misc/pathname.c:140:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    nchr	= MIN(strlen(start), sizeof(buf)-1);
data/xgks-2.6.1+dfsg.2/src/port/misc/pathname.c:141:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    (void) strncpy(buf, start, nchr);
data/xgks-2.6.1+dfsg.2/src/port/misc/setenv.c:32:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t		namelen		= strlen(name);
data/xgks-2.6.1+dfsg.2/src/port/misc/setenv.c:37:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	string	= (char*)malloc(namelen + 1 + strlen(value) + 1);
data/xgks-2.6.1+dfsg.2/src/port/misc/setenv.c:54:13:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	    (void) strcpy(string+namelen, "=");
data/xgks-2.6.1+dfsg.2/src/port/misc/strbuf.c:138:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void)strncpy(sb->buf, string, len);
data/xgks-2.6.1+dfsg.2/src/port/misc/strbuf.c:154:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return sbncpy(sb, string, strlen(string));
data/xgks-2.6.1+dfsg.2/src/port/misc/strbuf.c:170:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    nchr	= strlen(sb->buf);
data/xgks-2.6.1+dfsg.2/src/port/misc/strbuf.c:175:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    (void)strncpy(sb->buf+nchr, string, len);
data/xgks-2.6.1+dfsg.2/src/port/misc/strbuf.c:192:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return sbncat(sb, string, strlen(string));
data/xgks-2.6.1+dfsg.2/src/port/misc/strbuf.c:219:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return strlen(sb->buf);
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:146:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strchr(format, '%') == NULL && strlen(format) + 1 >= maxsize)
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:156:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	tzlen = strlen(tz);
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:170:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		i = strlen(tz) + 1;
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:201:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
				strcpy(tbuf, "?");
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:208:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
				strcpy(tbuf, "?");
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:218:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
				strcpy(tbuf, "?");
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:225:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
				strcpy(tbuf, "?");
data/xgks-2.6.1+dfsg.2/src/port/misc/strftime.c:394:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		i = strlen(tbuf);
data/xgks-2.6.1+dfsg.2/src/port/misc/udalloc.c:85:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    (void)strncpy(to, from, len);
data/xgks-2.6.1+dfsg.2/src/port/misc/udalloc.c:101:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return udstrndup(from, strlen(from));
data/xgks-2.6.1+dfsg.2/src/port/misc/uderrmsg.c:260:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(buf, name, sizeof(buf));
data/xgks-2.6.1+dfsg.2/src/port/misc/uderrmsg.c:262:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
	(void) strncat(buf, "(): ", sizeof(buf) - strlen(buf) - 1);
data/xgks-2.6.1+dfsg.2/src/port/misc/uderrmsg.c:262:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	(void) strncat(buf, "(): ", sizeof(buf) - strlen(buf) - 1);
data/xgks-2.6.1+dfsg.2/src/port/misc/uderrmsg.c:265:12:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    (void) strncat(buf, fmt, sizeof(buf) - strlen(buf) - 1);
data/xgks-2.6.1+dfsg.2/src/port/misc/uderrmsg.c:265:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    (void) strncat(buf, fmt, sizeof(buf) - strlen(buf) - 1);
data/xgks-2.6.1+dfsg.2/src/port/misc/ulog.c:340:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cnt = strlen(tbuf) ; /* cnt for write() below */
data/xgks-2.6.1+dfsg.2/src/port/misc/ulog.c:738:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		cnt = strlen(buf) ; /* cnt for write() below */
data/xgks-2.6.1+dfsg.2/src/port/misc/usleep.c:8:1:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
usleep(usec)
data/xgks-2.6.1+dfsg.2/src/progs/Logo/ethernet.c:90:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for(i=0; i<strlen(words); i++)
data/xgks-2.6.1+dfsg.2/src/progs/Logo/ethernet.c:99:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for(i=0; i<strlen(words); i++)
data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/AEutils.c:45:29:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (i < length && (ch = getc(infile)) != EOF)
data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/cgmdump.c:70:15:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((ch = getchar()) != EOF)
data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/defaults.c:97:17:  [1] (buffer) fscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	while ((stat = fscanf(dfile, "%20s", dft_str)) != 0 && stat != EOF)
data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/defaults.c:214:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((ch = getc(infile)) != EOF && !is_letter(ch))
data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/defaults.c:218:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((ch = getc(infile)) != EOF && is_letter(ch) && i < 39)
data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/defaults.c:257:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	param_len = strlen(param_str) + 1;
data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/defaults.c:293:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((ch = getc(infile)) != EOF && ch != '"' && ch != '\'' && ch != '\n')
data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/defaults.c:299:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((ch = getc(infile)) != EOF && ch != delim && ch != '\n' && i < 39)
data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/defaults.c:303:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ch = getc(infile);
data/xgks-2.6.1+dfsg.2/src/progs/gksm2cgm/src/defaults.c:374:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((ch = getc(infile)) != '\n' && ch != EOF)
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/add_objects.c:1038:14:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ch = (char) getchar();
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/add_objects.c:1045:17:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				ch = (char) getchar();
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/add_objects.c:1053:17:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				ch = (char) getchar();
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/add_objects.c:1064:16:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ch = (char) getchar();
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/add_objects.c:1088:15:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ch = (char) getchar();
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/defs.h:31:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define eq(a,b)		((strlen(a) == strlen(b)) && 		\
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/defs.h:31:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define eq(a,b)		((strlen(a) == strlen(b)) && 		\
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/defs.h:33:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			 min2(strlen(a),strlen(b))) == 0))
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/defs.h:33:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			 min2(strlen(a),strlen(b))) == 0))
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/io.c:74:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	str = (char *) calloc((unsigned) strlen(ln),sizeof(char));
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/io.c:75:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(str,ln,strlen(ln) - 1);
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/io.c:75:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	(void) strncpy(str,ln,strlen(ln) - 1);
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/io.c:76:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	str[strlen(ln) - 1] = (char) NULL;
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/io.c:77:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(str) == 0)
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/io.c:310:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	str = (char *) calloc((unsigned) strlen(ln),sizeof(char));
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/io.c:311:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(str,ln,strlen(ln) - 1);
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/io.c:311:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	(void) strncpy(str,ln,strlen(ln) - 1);
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/io.c:312:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	str[strlen(ln) - 1] = (char) NULL;
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/io.c:313:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(str) == 0)
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/io.c:348:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((strlen(ln) - 1) <= 0)
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/main_menu.c:273:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			(strlen(ln) + 1), sizeof(char));
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/main_menu.c:332:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			(strlen(ln) + 1), sizeof(char));
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/menu.c:104:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strlen(menu_tbl[i].area), sizeof(char));
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/object_list.c:98:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	single_ob->key = (char *) calloc((unsigned) (strlen(key) + 1),
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/object_tbl.h:42:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int (*read)();			/* routine to read in object
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/photo.c:198:9:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	(void) getchar();
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/prompt.c:214:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		length = strlen(prompt_messages[msgno1])
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/prompt.c:215:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			+ strlen(prompt_messages[msgno2]) + 3;
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/prompt.c:224:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		length = strlen(prompt_messages[msgno2]) + 1;
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/prompt.c:231:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		length = strlen(prompt_messages[msgno1]) + 1;
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/read_input.c:324:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	(*(object_func_tbl[i].read))(fd,object,error);
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/read_menu.c:230:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				(strlen(temp) + 1), sizeof(char));
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/screen_items.c:530:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			(strlen(clr_area) + 1), sizeof(char));
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/trans.c:191:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				(strlen(area) + 1), sizeof(char));
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/trans.c:261:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		(strlen(trans_tbl[transno]) + 1), sizeof(char));
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/undo.c:99:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			(strlen(area) + 1), sizeof(char));
data/xgks-2.6.1+dfsg.2/src/progs/sledsrc/undo.c:127:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			(strlen(key) + 1), sizeof(char));
data/xgks-2.6.1+dfsg.2/src/progs/stratego/blue.c:792:9:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c=getchar();
data/xgks-2.6.1+dfsg.2/src/progs/stratego/blue.c:992:4:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   read(pdes[READ],&data_packet,sizeof(data_packet));
data/xgks-2.6.1+dfsg.2/src/progs/stratego/blue.c:1027:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         read(pdes[READ],&rank,sizeof(rank));
data/xgks-2.6.1+dfsg.2/src/progs/stratego/red.c:880:9:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c=getchar();
data/xgks-2.6.1+dfsg.2/src/progs/stratego/red.c:1124:4:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   read(pBtR[READ],&data_packet,sizeof(data_packet));
data/xgks-2.6.1+dfsg.2/src/progs/stratego/red.c:1174:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         read(pBtR[READ],&rank,sizeof(rank));

ANALYSIS SUMMARY:

Hits = 594
Lines analyzed = 93638 in approximately 2.27 seconds (41256 lines/second)
Physical Source Lines of Code (SLOC) = 58451
Hits@level = [0] 641 [1] 146 [2] 259 [3]  29 [4] 152 [5]   8
Hits@level+ = [0+] 1235 [1+] 594 [2+] 448 [3+] 189 [4+] 160 [5+]   8
Hits/KSLOC@level+ = [0+] 21.1288 [1+] 10.1624 [2+] 7.66454 [3+] 3.23348 [4+] 2.73734 [5+] 0.136867
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.