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/ncurses-6.2+20201114/menu/m_scale.c
Examining data/ncurses-6.2+20201114/menu/m_new.c
Examining data/ncurses-6.2+20201114/menu/m_cursor.c
Examining data/ncurses-6.2+20201114/menu/m_items.c
Examining data/ncurses-6.2+20201114/menu/m_spacing.c
Examining data/ncurses-6.2+20201114/menu/m_sub.c
Examining data/ncurses-6.2+20201114/menu/m_item_top.c
Examining data/ncurses-6.2+20201114/menu/m_item_val.c
Examining data/ncurses-6.2+20201114/menu/m_attribs.c
Examining data/ncurses-6.2+20201114/menu/m_win.c
Examining data/ncurses-6.2+20201114/menu/m_global.c
Examining data/ncurses-6.2+20201114/menu/m_pad.c
Examining data/ncurses-6.2+20201114/menu/m_item_nam.c
Examining data/ncurses-6.2+20201114/menu/m_item_new.c
Examining data/ncurses-6.2+20201114/menu/m_driver.c
Examining data/ncurses-6.2+20201114/menu/m_pattern.c
Examining data/ncurses-6.2+20201114/menu/m_post.c
Examining data/ncurses-6.2+20201114/menu/eti.h
Examining data/ncurses-6.2+20201114/menu/m_opts.c
Examining data/ncurses-6.2+20201114/menu/menu.h
Examining data/ncurses-6.2+20201114/menu/m_item_opt.c
Examining data/ncurses-6.2+20201114/menu/m_format.c
Examining data/ncurses-6.2+20201114/menu/m_userptr.c
Examining data/ncurses-6.2+20201114/menu/menu.priv.h
Examining data/ncurses-6.2+20201114/menu/m_req_name.c
Examining data/ncurses-6.2+20201114/menu/m_item_vis.c
Examining data/ncurses-6.2+20201114/menu/m_hook.c
Examining data/ncurses-6.2+20201114/menu/mf_common.h
Examining data/ncurses-6.2+20201114/menu/m_item_cur.c
Examining data/ncurses-6.2+20201114/menu/m_trace.c
Examining data/ncurses-6.2+20201114/menu/m_item_use.c
Examining data/ncurses-6.2+20201114/ncurses/new_pair.h
Examining data/ncurses-6.2+20201114/ncurses/base/lib_box.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_clreol.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_newterm.c
Examining data/ncurses-6.2+20201114/ncurses/base/resizeterm.c
Examining data/ncurses-6.2+20201114/ncurses/base/vsscanf.c
Examining data/ncurses-6.2+20201114/ncurses/base/legacy_coding.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_slklab.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_pad.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_scroll.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_touch.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_getch.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_slkclear.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_flash.c
Examining data/ncurses-6.2+20201114/ncurses/base/use_window.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_wattroff.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_slkset.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_ungetch.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_chgat.c
Examining data/ncurses-6.2+20201114/ncurses/base/keyok.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_redrawln.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_vline.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_delwin.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_screen.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_insdel.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_freeall.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_winch.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_set_term.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_newwin.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_slkatron.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_addch.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_refresh.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_colorset.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_initscr.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_nl.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_mvwin.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_addstr.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_slktouch.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_isendwin.c
Examining data/ncurses-6.2+20201114/ncurses/base/sigaction.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_delch.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_slkcolor.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_scrreg.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_wattron.c
Examining data/ncurses-6.2+20201114/ncurses/base/key_defined.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_echo.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_leaveok.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_hline.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_clearok.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_slkattr.c
Examining data/ncurses-6.2+20201114/ncurses/base/new_pair.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_printw.c
Examining data/ncurses-6.2+20201114/ncurses/base/nc_panel.c
Examining data/ncurses-6.2+20201114/ncurses/base/keybound.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_slkrefr.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_slkinit.c
Examining data/ncurses-6.2+20201114/ncurses/base/wresize.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_overlay.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_bkgd.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_scrollok.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_dft_fgbg.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_restart.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_color.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_immedok.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_slkatrset.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_insnstr.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_move.c
Examining data/ncurses-6.2+20201114/ncurses/base/define_key.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_instr.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_erase.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_insch.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_beep.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_clear.c
Examining data/ncurses-6.2+20201114/ncurses/base/tries.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_window.c
Examining data/ncurses-6.2+20201114/ncurses/base/safe_sprintf.c
Examining data/ncurses-6.2+20201114/ncurses/base/version.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_driver.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_clrbot.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_slkatr_set.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_mouse.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_slkatrof.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_slk.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_inchstr.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_getstr.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_endwin.c
Examining data/ncurses-6.2+20201114/ncurses/base/lib_scanw.c
Examining data/ncurses-6.2+20201114/ncurses/curses.priv.h
Examining data/ncurses-6.2+20201114/ncurses/fifo_defs.h
Examining data/ncurses-6.2+20201114/ncurses/tinfo/captoinfo.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/home_terminfo.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/lib_cur_term.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/make_keys.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/lib_tparm.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/lib_termname.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/strings.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/lib_acs.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/lib_raw.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/use_screen.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/lib_data.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/lib_tgoto.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/trim_sgr0.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/lib_has_cap.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/read_termcap.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/lib_napms.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/lib_tputs.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/lib_win32util.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/comp_hash.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/parse_entry.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/entries.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/comp_scan.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/obsolete.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/lib_print.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/lib_setup.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/hashed_db.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/db_iterator.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/comp_error.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/name_match.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/alloc_entry.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/lib_ttyflags.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/init_keytry.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/access.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/add_tries.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/lib_ti.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/comp_parse.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/tinfo_driver.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/alloc_ttype.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/comp_expand.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/lib_longname.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/lib_win32con.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/lib_options.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/getenv_num.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/lib_termcap.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/doalloc.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/free_ttype.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/make_hash.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/write_entry.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/read_entry.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/lib_baudrate.c
Examining data/ncurses-6.2+20201114/ncurses/tinfo/lib_kernel.c
Examining data/ncurses-6.2+20201114/ncurses/report_hashing.c
Examining data/ncurses-6.2+20201114/ncurses/win32con/win32_driver.c
Examining data/ncurses-6.2+20201114/ncurses/win32con/gettimeofday.c
Examining data/ncurses-6.2+20201114/ncurses/win32con/win_driver.c
Examining data/ncurses-6.2+20201114/ncurses/win32con/wcwidth.c
Examining data/ncurses-6.2+20201114/ncurses/wcwidth.h
Examining data/ncurses-6.2+20201114/ncurses/tty/hashmap.c
Examining data/ncurses-6.2+20201114/ncurses/tty/lib_vidattr.c
Examining data/ncurses-6.2+20201114/ncurses/tty/hardscroll.c
Examining data/ncurses-6.2+20201114/ncurses/tty/lib_twait.c
Examining data/ncurses-6.2+20201114/ncurses/tty/lib_tstp.c
Examining data/ncurses-6.2+20201114/ncurses/tty/lib_mvcur.c
Examining data/ncurses-6.2+20201114/ncurses/tty/tty_update.c
Examining data/ncurses-6.2+20201114/ncurses/trace/visbuf.c
Examining data/ncurses-6.2+20201114/ncurses/trace/varargs.c
Examining data/ncurses-6.2+20201114/ncurses/trace/lib_tracemse.c
Examining data/ncurses-6.2+20201114/ncurses/trace/lib_tracebits.c
Examining data/ncurses-6.2+20201114/ncurses/trace/lib_traceatr.c
Examining data/ncurses-6.2+20201114/ncurses/trace/trace_xnames.c
Examining data/ncurses-6.2+20201114/ncurses/trace/trace_buf.c
Examining data/ncurses-6.2+20201114/ncurses/trace/trace_tries.c
Examining data/ncurses-6.2+20201114/ncurses/trace/lib_tracedmp.c
Examining data/ncurses-6.2+20201114/ncurses/trace/lib_tracechr.c
Examining data/ncurses-6.2+20201114/ncurses/trace/lib_trace.c
Examining data/ncurses-6.2+20201114/ncurses/report_offsets.c
Examining data/ncurses-6.2+20201114/ncurses/widechar/lib_vid_attr.c
Examining data/ncurses-6.2+20201114/ncurses/widechar/lib_slk_wset.c
Examining data/ncurses-6.2+20201114/ncurses/widechar/lib_add_wch.c
Examining data/ncurses-6.2+20201114/ncurses/widechar/lib_hline_set.c
Examining data/ncurses-6.2+20201114/ncurses/widechar/lib_pecho_wchar.c
Examining data/ncurses-6.2+20201114/ncurses/widechar/lib_in_wch.c
Examining data/ncurses-6.2+20201114/ncurses/widechar/lib_wunctrl.c
Examining data/ncurses-6.2+20201114/ncurses/widechar/lib_key_name.c
Examining data/ncurses-6.2+20201114/ncurses/widechar/lib_ins_wch.c
Examining data/ncurses-6.2+20201114/ncurses/widechar/lib_inwstr.c
Examining data/ncurses-6.2+20201114/ncurses/widechar/lib_get_wstr.c
Examining data/ncurses-6.2+20201114/ncurses/widechar/lib_box_set.c
Examining data/ncurses-6.2+20201114/ncurses/widechar/widechars.c
Examining data/ncurses-6.2+20201114/ncurses/widechar/lib_unget_wch.c
Examining data/ncurses-6.2+20201114/ncurses/widechar/lib_wacs.c
Examining data/ncurses-6.2+20201114/ncurses/widechar/lib_erasewchar.c
Examining data/ncurses-6.2+20201114/ncurses/widechar/lib_cchar.c
Examining data/ncurses-6.2+20201114/ncurses/widechar/lib_in_wchnstr.c
Examining data/ncurses-6.2+20201114/ncurses/widechar/charable.c
Examining data/ncurses-6.2+20201114/ncurses/widechar/lib_get_wch.c
Examining data/ncurses-6.2+20201114/ncurses/widechar/lib_vline_set.c
Examining data/ncurses-6.2+20201114/ncurses/build.priv.h
Examining data/ncurses-6.2+20201114/ncurses/SigAction.h
Examining data/ncurses-6.2+20201114/panel/p_bottom.c
Examining data/ncurses-6.2+20201114/panel/panel.priv.h
Examining data/ncurses-6.2+20201114/panel/p_win.c
Examining data/ncurses-6.2+20201114/panel/p_top.c
Examining data/ncurses-6.2+20201114/panel/p_below.c
Examining data/ncurses-6.2+20201114/panel/p_update.c
Examining data/ncurses-6.2+20201114/panel/p_replace.c
Examining data/ncurses-6.2+20201114/panel/panel.c
Examining data/ncurses-6.2+20201114/panel/p_new.c
Examining data/ncurses-6.2+20201114/panel/p_delete.c
Examining data/ncurses-6.2+20201114/panel/p_above.c
Examining data/ncurses-6.2+20201114/panel/p_move.c
Examining data/ncurses-6.2+20201114/panel/p_show.c
Examining data/ncurses-6.2+20201114/panel/panel.h
Examining data/ncurses-6.2+20201114/panel/p_hidden.c
Examining data/ncurses-6.2+20201114/panel/p_hide.c
Examining data/ncurses-6.2+20201114/panel/p_user.c
Examining data/ncurses-6.2+20201114/include/hashed_db.h
Examining data/ncurses-6.2+20201114/include/nc_panel.h
Examining data/ncurses-6.2+20201114/include/win32_curses.h
Examining data/ncurses-6.2+20201114/include/ncurses_mingw.h
Examining data/ncurses-6.2+20201114/include/nc_mingw.h
Examining data/ncurses-6.2+20201114/include/tic.h
Examining data/ncurses-6.2+20201114/include/nc_string.h
Examining data/ncurses-6.2+20201114/include/nc_tparm.h
Examining data/ncurses-6.2+20201114/include/term_entry.h
Examining data/ncurses-6.2+20201114/include/capdefaults.c
Examining data/ncurses-6.2+20201114/include/nc_alloc.h
Examining data/ncurses-6.2+20201114/include/nc_win32.h
Examining data/ncurses-6.2+20201114/include/nc_termios.h
Examining data/ncurses-6.2+20201114/progs/progs.priv.h
Examining data/ncurses-6.2+20201114/progs/dump_entry.c
Examining data/ncurses-6.2+20201114/progs/tput.c
Examining data/ncurses-6.2+20201114/progs/toe.c
Examining data/ncurses-6.2+20201114/progs/clear_cmd.h
Examining data/ncurses-6.2+20201114/progs/transform.c
Examining data/ncurses-6.2+20201114/progs/tty_settings.h
Examining data/ncurses-6.2+20201114/progs/tic.c
Examining data/ncurses-6.2+20201114/progs/clear.c
Examining data/ncurses-6.2+20201114/progs/reset_cmd.c
Examining data/ncurses-6.2+20201114/progs/tty_settings.c
Examining data/ncurses-6.2+20201114/progs/tset.c
Examining data/ncurses-6.2+20201114/progs/infocmp.c
Examining data/ncurses-6.2+20201114/progs/tabs.c
Examining data/ncurses-6.2+20201114/progs/reset_cmd.h
Examining data/ncurses-6.2+20201114/progs/tparm_type.c
Examining data/ncurses-6.2+20201114/progs/dump_entry.h
Examining data/ncurses-6.2+20201114/progs/tparm_type.h
Examining data/ncurses-6.2+20201114/progs/clear_cmd.c
Examining data/ncurses-6.2+20201114/Ada95/gen/gen.c
Examining data/ncurses-6.2+20201114/Ada95/src/ncurses_compat.c
Examining data/ncurses-6.2+20201114/Ada95/src/c_threaded_variables.h
Examining data/ncurses-6.2+20201114/Ada95/src/c_varargs_to_ada.c
Examining data/ncurses-6.2+20201114/Ada95/src/c_varargs_to_ada.h
Examining data/ncurses-6.2+20201114/Ada95/src/c_threaded_variables.c
Examining data/ncurses-6.2+20201114/c++/cursesp.h
Examining data/ncurses-6.2+20201114/c++/cursesm.h
Examining data/ncurses-6.2+20201114/c++/cursesw.h
Examining data/ncurses-6.2+20201114/c++/demo.cc
Examining data/ncurses-6.2+20201114/c++/cursslk.cc
Examining data/ncurses-6.2+20201114/c++/cursesmain.cc
Examining data/ncurses-6.2+20201114/c++/internal.h
Examining data/ncurses-6.2+20201114/c++/cursesw.cc
Examining data/ncurses-6.2+20201114/c++/cursslk.h
Examining data/ncurses-6.2+20201114/c++/cursesf.h
Examining data/ncurses-6.2+20201114/c++/cursesm.cc
Examining data/ncurses-6.2+20201114/c++/cursesp.cc
Examining data/ncurses-6.2+20201114/c++/cursesapp.h
Examining data/ncurses-6.2+20201114/c++/cursesapp.cc
Examining data/ncurses-6.2+20201114/c++/cursesf.cc
Examining data/ncurses-6.2+20201114/c++/cursespad.cc
Examining data/ncurses-6.2+20201114/form/fld_just.c
Examining data/ncurses-6.2+20201114/form/fld_max.c
Examining data/ncurses-6.2+20201114/form/fld_opts.c
Examining data/ncurses-6.2+20201114/form/frm_def.c
Examining data/ncurses-6.2+20201114/form/fld_attr.c
Examining data/ncurses-6.2+20201114/form/form.priv.h
Examining data/ncurses-6.2+20201114/form/frm_cursor.c
Examining data/ncurses-6.2+20201114/form/frm_user.c
Examining data/ncurses-6.2+20201114/form/fty_ipv4.c
Examining data/ncurses-6.2+20201114/form/fty_enum.c
Examining data/ncurses-6.2+20201114/form/fld_stat.c
Examining data/ncurses-6.2+20201114/form/fld_page.c
Examining data/ncurses-6.2+20201114/form/fld_pad.c
Examining data/ncurses-6.2+20201114/form/fld_dup.c
Examining data/ncurses-6.2+20201114/form/frm_req_name.c
Examining data/ncurses-6.2+20201114/form/frm_page.c
Examining data/ncurses-6.2+20201114/form/frm_scale.c
Examining data/ncurses-6.2+20201114/form/fld_type.c
Examining data/ncurses-6.2+20201114/form/frm_sub.c
Examining data/ncurses-6.2+20201114/form/fty_regex.c
Examining data/ncurses-6.2+20201114/form/f_trace.c
Examining data/ncurses-6.2+20201114/form/fty_alpha.c
Examining data/ncurses-6.2+20201114/form/form.h
Examining data/ncurses-6.2+20201114/form/fld_ftchoice.c
Examining data/ncurses-6.2+20201114/form/fld_arg.c
Examining data/ncurses-6.2+20201114/form/fld_user.c
Examining data/ncurses-6.2+20201114/form/fld_info.c
Examining data/ncurses-6.2+20201114/form/frm_hook.c
Examining data/ncurses-6.2+20201114/form/frm_opts.c
Examining data/ncurses-6.2+20201114/form/fty_alnum.c
Examining data/ncurses-6.2+20201114/form/fty_int.c
Examining data/ncurses-6.2+20201114/form/frm_driver.c
Examining data/ncurses-6.2+20201114/form/fld_link.c
Examining data/ncurses-6.2+20201114/form/frm_post.c
Examining data/ncurses-6.2+20201114/form/fld_move.c
Examining data/ncurses-6.2+20201114/form/fld_current.c
Examining data/ncurses-6.2+20201114/form/fld_ftlink.c
Examining data/ncurses-6.2+20201114/form/frm_win.c
Examining data/ncurses-6.2+20201114/form/fld_newftyp.c
Examining data/ncurses-6.2+20201114/form/fty_generic.c
Examining data/ncurses-6.2+20201114/form/frm_data.c
Examining data/ncurses-6.2+20201114/form/fty_num.c
Examining data/ncurses-6.2+20201114/form/fld_def.c
Examining data/ncurses-6.2+20201114/test/filter.c
Examining data/ncurses-6.2+20201114/test/test_addwstr.c
Examining data/ncurses-6.2+20201114/test/demo_defkey.c
Examining data/ncurses-6.2+20201114/test/rain.c
Examining data/ncurses-6.2+20201114/test/background.c
Examining data/ncurses-6.2+20201114/test/insdelln.c
Examining data/ncurses-6.2+20201114/test/linedata.h
Examining data/ncurses-6.2+20201114/test/movewindow.c
Examining data/ncurses-6.2+20201114/test/inserts.c
Examining data/ncurses-6.2+20201114/test/demo_termcap.c
Examining data/ncurses-6.2+20201114/test/dump_window.c
Examining data/ncurses-6.2+20201114/test/popup_msg.c
Examining data/ncurses-6.2+20201114/test/key_names.c
Examining data/ncurses-6.2+20201114/test/echochar.c
Examining data/ncurses-6.2+20201114/test/test_vid_puts.c
Examining data/ncurses-6.2+20201114/test/tclock.c
Examining data/ncurses-6.2+20201114/test/test_inwstr.c
Examining data/ncurses-6.2+20201114/test/test_addchstr.c
Examining data/ncurses-6.2+20201114/test/view.c
Examining data/ncurses-6.2+20201114/test/list_keys.c
Examining data/ncurses-6.2+20201114/test/newdemo.c
Examining data/ncurses-6.2+20201114/test/extended_color.c
Examining data/ncurses-6.2+20201114/test/demo_terminfo.c
Examining data/ncurses-6.2+20201114/test/chgat.c
Examining data/ncurses-6.2+20201114/test/widechars.h
Examining data/ncurses-6.2+20201114/test/color_name.h
Examining data/ncurses-6.2+20201114/test/lrtest.c
Examining data/ncurses-6.2+20201114/test/firstlast.c
Examining data/ncurses-6.2+20201114/test/test_get_wstr.c
Examining data/ncurses-6.2+20201114/test/dup_field.c
Examining data/ncurses-6.2+20201114/test/picsmap.h
Examining data/ncurses-6.2+20201114/test/keynames.c
Examining data/ncurses-6.2+20201114/test/test.priv.h
Examining data/ncurses-6.2+20201114/test/parse_rgb.h
Examining data/ncurses-6.2+20201114/test/sp_tinfo.c
Examining data/ncurses-6.2+20201114/test/test_addstr.c
Examining data/ncurses-6.2+20201114/test/dots.c
Examining data/ncurses-6.2+20201114/test/ditto.c
Examining data/ncurses-6.2+20201114/test/color_content.c
Examining data/ncurses-6.2+20201114/test/test_setupterm.c
Examining data/ncurses-6.2+20201114/test/railroad.c
Examining data/ncurses-6.2+20201114/test/cardfile.c
Examining data/ncurses-6.2+20201114/test/xmas.c
Examining data/ncurses-6.2+20201114/test/test_opaque.c
Examining data/ncurses-6.2+20201114/test/inchs.c
Examining data/ncurses-6.2+20201114/test/worm.c
Examining data/ncurses-6.2+20201114/test/redraw.c
Examining data/ncurses-6.2+20201114/test/test_getstr.c
Examining data/ncurses-6.2+20201114/test/dots_curses.c
Examining data/ncurses-6.2+20201114/test/dots_mvcur.c
Examining data/ncurses-6.2+20201114/test/test_add_wchstr.c
Examining data/ncurses-6.2+20201114/test/knight.c
Examining data/ncurses-6.2+20201114/test/demo_menus.c
Examining data/ncurses-6.2+20201114/test/savescreen.c
Examining data/ncurses-6.2+20201114/test/testscanw.c
Examining data/ncurses-6.2+20201114/test/pair_content.c
Examining data/ncurses-6.2+20201114/test/demo_new_pair.c
Examining data/ncurses-6.2+20201114/test/test_vidputs.c
Examining data/ncurses-6.2+20201114/test/color_set.c
Examining data/ncurses-6.2+20201114/test/demo_tabs.c
Examining data/ncurses-6.2+20201114/test/dump_window.h
Examining data/ncurses-6.2+20201114/test/test_termattrs.c
Examining data/ncurses-6.2+20201114/test/demo_forms.c
Examining data/ncurses-6.2+20201114/test/clip_printw.c
Examining data/ncurses-6.2+20201114/test/edit_field.c
Examining data/ncurses-6.2+20201114/test/padview.c
Examining data/ncurses-6.2+20201114/test/foldkeys.c
Examining data/ncurses-6.2+20201114/test/popup_msg.h
Examining data/ncurses-6.2+20201114/test/demo_keyok.c
Examining data/ncurses-6.2+20201114/test/testaddch.c
Examining data/ncurses-6.2+20201114/test/ncurses.c
Examining data/ncurses-6.2+20201114/test/bs.c
Examining data/ncurses-6.2+20201114/test/test_sgr.c
Examining data/ncurses-6.2+20201114/test/firework.c
Examining data/ncurses-6.2+20201114/test/test_arrays.c
Examining data/ncurses-6.2+20201114/test/inch_wide.c
Examining data/ncurses-6.2+20201114/test/gdc.c
Examining data/ncurses-6.2+20201114/test/dots_termcap.c
Examining data/ncurses-6.2+20201114/test/move_field.c
Examining data/ncurses-6.2+20201114/test/form_driver_w.c
Examining data/ncurses-6.2+20201114/test/hashtest.c
Examining data/ncurses-6.2+20201114/test/edit_field.h
Examining data/ncurses-6.2+20201114/test/ins_wide.c
Examining data/ncurses-6.2+20201114/test/demo_altkeys.c
Examining data/ncurses-6.2+20201114/test/test_instr.c
Examining data/ncurses-6.2+20201114/test/hanoi.c
Examining data/ncurses-6.2+20201114/test/testcurs.c
Examining data/ncurses-6.2+20201114/test/demo_panels.c
Examining data/ncurses-6.2+20201114/test/dots_xcurses.c
Examining data/ncurses-6.2+20201114/test/blue.c
Examining data/ncurses-6.2+20201114/test/test_tparm.c
Examining data/ncurses-6.2+20201114/test/picsmap.c

FINAL RESULTS:

data/ncurses-6.2+20201114/c++/cursesf.h:804: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).
    (::strcpy)(regex, source);
data/ncurses-6.2+20201114/c++/cursesw.h:995:29:  [4] (buffer) scanf:
  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.
    __attribute__ ((format (scanf, 2, 3)));
data/ncurses-6.2+20201114/c++/cursesw.h:1007:29:  [4] (buffer) scanf:
  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.
    __attribute__ ((format (scanf, 4, 5)));
data/ncurses-6.2+20201114/c++/cursesw.h:1052:33:  [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.
#if (__GNUG__ >= 2) && !defined(printf)
data/ncurses-6.2+20201114/c++/cursesw.h:1053:29:  [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.
    __attribute__ ((format (printf, 2, 3)));
data/ncurses-6.2+20201114/c++/cursesw.h:1060:33:  [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.
#if (__GNUG__ >= 2) && !defined(printf)
data/ncurses-6.2+20201114/c++/cursesw.h:1061:29:  [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.
    __attribute__ ((format (printf, 4, 5)));
data/ncurses-6.2+20201114/include/nc_mingw.h:77:9:  [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.
#define getlogin() "username"
data/ncurses-6.2+20201114/include/nc_string.h:66:40:  [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).
#define _nc_STRCAT(d,s,n)	NCURSES_VOID strcat((d),(s))
data/ncurses-6.2+20201114/include/nc_string.h:74:40:  [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 _nc_STRCPY(d,s,n)	NCURSES_VOID strcpy((d),(s))
data/ncurses-6.2+20201114/include/nc_string.h:79:46:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define _nc_SPRINTF             NCURSES_VOID snprintf
data/ncurses-6.2+20201114/include/nc_string.h:82:46:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#define _nc_SPRINTF             NCURSES_VOID sprintf
data/ncurses-6.2+20201114/include/win32_curses.h:62:9:  [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.
#undef  getlogin
data/ncurses-6.2+20201114/include/win32_curses.h:63:9:  [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.
#define getlogin() getenv("USERNAME")
data/ncurses-6.2+20201114/ncurses/base/lib_scanw.c:53:14:  [4] (buffer) vsscanf:
  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.
	if ((code = vsscanf(buf, fmt, argp)) == EOF) {
data/ncurses-6.2+20201114/ncurses/base/lib_scanw.c:68:14:  [4] (buffer) vsscanf:
  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.
	if ((code = vsscanf(buf, fmt, argp)) == EOF) {
data/ncurses-6.2+20201114/ncurses/base/safe_sprintf.c:244:3:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
		vsprintf(my_buffer, fmt, ap);
data/ncurses-6.2+20201114/ncurses/base/safe_sprintf.c:263:6:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	    vsnprintf(my_buffer, my_length, fmt, ap);	/* SUSv2, 1997 */
data/ncurses-6.2+20201114/ncurses/base/safe_sprintf.c:265:6:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
	    vsprintf(my_buffer, fmt, ap);	/* ISO/ANSI C, 1989 */
data/ncurses-6.2+20201114/ncurses/base/vsscanf.c:165:1:  [4] (buffer) vsscanf:
  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.
vsscanf(const char *str, const char *format, va_list ap)
data/ncurses-6.2+20201114/ncurses/base/vsscanf.c:179:13:  [4] (buffer) vfscanf:
  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.
    return (vfscanf(&strbuf, format, ap));
data/ncurses-6.2+20201114/ncurses/base/vsscanf.c:337:7:  [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.
		if (sscanf(str + consumed, my_fmt, pointer, &eaten) > 0)
data/ncurses-6.2+20201114/ncurses/curses.priv.h:2215:10:  [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.
					    fprintf(stderr, fmt, p);\
data/ncurses-6.2+20201114/ncurses/curses.priv.h:2226:10:  [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.
					    fprintf(stderr, msg);\
data/ncurses-6.2+20201114/ncurses/curses.priv.h:2415:12:  [4] (buffer) vsscanf:
  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.
extern int vsscanf(const char *str, const char *format, va_list __arg);
data/ncurses-6.2+20201114/ncurses/tinfo/access.c:45:27:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
# define ACCESS(FN, MODE) access((FN), (MODE)&(R_OK|W_OK))
data/ncurses-6.2+20201114/ncurses/tinfo/access.c:47:17:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
# define ACCESS access
data/ncurses-6.2+20201114/ncurses/tinfo/captoinfo.c:543:9:  [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.
    if (sscanf(str, fmt, &ch1, &ch2) == 2
data/ncurses-6.2+20201114/ncurses/tinfo/comp_error.c:118: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, fmt, argp);
data/ncurses-6.2+20201114/ncurses/tinfo/comp_error.c:130: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, fmt, argp);
data/ncurses-6.2+20201114/ncurses/tinfo/comp_error.c:143: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, fmt, argp);
data/ncurses-6.2+20201114/ncurses/trace/lib_trace.c:227:2:  [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(fp, fmt, ap);
data/ncurses-6.2+20201114/ncurses/tty/hardscroll.c:160:18:  [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 _tracef	printf
data/ncurses-6.2+20201114/ncurses/tty/hashmap.c:81:18:  [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 _tracef	printf
data/ncurses-6.2+20201114/ncurses/tty/lib_mvcur.c:1215:26:  [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 PUTF(s,t) (void) printf(s,t)
data/ncurses-6.2+20201114/ncurses/tty/lib_mvcur.c:1258: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.
	} else if (sscanf(buf, "l %s", tname) == 1) {
data/ncurses-6.2+20201114/ncurses/tty/lib_mvcur.c:1260: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.
	} else if (sscanf(buf, "d %s", capname) == 1) {
data/ncurses-6.2+20201114/progs/dump_entry.c:46:23:  [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 PRINTF (void) printf
data/ncurses-6.2+20201114/progs/reset_cmd.c:496:16:  [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.
	    IGNORE_RC(system(init_prog));
data/ncurses-6.2+20201114/progs/tic.c:594:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	    || access(result, R_OK | W_OK) != 0) {
data/ncurses-6.2+20201114/progs/tic.c:601:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	    || access(result, R_OK | W_OK | X_OK) != 0) {
data/ncurses-6.2+20201114/progs/tic.c:617:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		&& access(result, R_OK | W_OK | X_OK) == 0) {
data/ncurses-6.2+20201114/progs/tic.c:908:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if (access(termcap, F_OK) == 0) {
data/ncurses-6.2+20201114/progs/tput.c:72: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, fmt, argp);
data/ncurses-6.2+20201114/progs/tset.c:141:12:  [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.
    (void) vfprintf(stderr, fmt, ap);
data/ncurses-6.2+20201114/progs/tset.c:716:12:  [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.
    (void) printf(p, ttype);
data/ncurses-6.2+20201114/test/bs.c:231:20:  [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.
    if ((tmpname = getlogin()) != 0 &&
data/ncurses-6.2+20201114/test/demo_termcap.c:185:5:  [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(FNAME(str), name);
data/ncurses-6.2+20201114/test/demo_termcap.c:244:5:  [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(FNAME(num), name);
data/ncurses-6.2+20201114/test/demo_termcap.c:282:6:  [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(FNAME(flg), cap);
data/ncurses-6.2+20201114/test/demo_terminfo.c:183:6:  [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(FNAME(str), show ? show : cap);
data/ncurses-6.2+20201114/test/demo_terminfo.c:236:6:  [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(FNAME(num), show ? show : cap);
data/ncurses-6.2+20201114/test/demo_terminfo.c:243:6:  [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(FNAME(flg), show ? show : cap);
data/ncurses-6.2+20201114/test/ditto.c:176:2:  [4] (shell) execlp:
  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.
	execlp(xterm_prog, xterm_prog, s_option, "-title", path, (char *) 0);
data/ncurses-6.2+20201114/test/filter.c:409:12:  [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.
	IGNORE_RC(system(buffer));
data/ncurses-6.2+20201114/test/list_keys.c:404:3:  [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(t_opt ? "," : " ");
data/ncurses-6.2+20201114/test/movewindow.c:108:2:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
	vsprintf(buffer, fmt, argp);
data/ncurses-6.2+20201114/test/ncurses.c:494:5:  [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("cmd.exe");
data/ncurses-6.2+20201114/test/ncurses.c:496:15:  [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.
    IGNORE_RC(system("sh"));
data/ncurses-6.2+20201114/test/picsmap.c:151:2:  [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(logfp, fmt, ap);
data/ncurses-6.2+20201114/test/picsmap.c:164:2:  [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(logfp, fmt, ap);
data/ncurses-6.2+20201114/test/picsmap.c:212:2:  [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(logfp, fmt, ap);
data/ncurses-6.2+20201114/test/picsmap.c:219:2:  [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, fmt, ap);
data/ncurses-6.2+20201114/test/picsmap.c:532: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, fmt, ap);
data/ncurses-6.2+20201114/test/picsmap.c:538:2:  [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(logfp, fmt, ap);
data/ncurses-6.2+20201114/test/picsmap.c:1018:10:  [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 (sscanf(s, "#define %s %d%c", buf, &num, &ch) >= 2) {
data/ncurses-6.2+20201114/test/picsmap.c:1295:15:  [4] (shell) popen:
  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.
    if ((pp = popen(cmd, "r")) != 0) {
data/ncurses-6.2+20201114/test/picsmap.c:1322:15:  [4] (shell) popen:
  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.
    if ((pp = popen(cmd, "r")) != 0) {
data/ncurses-6.2+20201114/test/redraw.c:138:16:  [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.
	    IGNORE_RC(system("date"));
data/ncurses-6.2+20201114/test/test.priv.h:445:8:  [4] (shell) popen:
  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.
#undef popen
data/ncurses-6.2+20201114/test/test.priv.h:446:9:  [4] (shell) popen:
  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.
#define popen(s,n) _popen(s,n)
data/ncurses-6.2+20201114/test/test.priv.h:728:40:  [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).
#define _nc_STRCAT(d,s,n)	NCURSES_VOID strcat((d),(s))
data/ncurses-6.2+20201114/test/test.priv.h:736:40:  [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 _nc_STRCPY(d,s,n)	NCURSES_VOID strcpy((d),(s))
data/ncurses-6.2+20201114/test/test.priv.h:741:46:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define _nc_SPRINTF             NCURSES_VOID snprintf
data/ncurses-6.2+20201114/test/test.priv.h:744:46:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#define _nc_SPRINTF             NCURSES_VOID sprintf
data/ncurses-6.2+20201114/test/test.priv.h:959:9:  [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.
#define getlogin() "username"
data/ncurses-6.2+20201114/include/win32_curses.h:63: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.
#define getlogin() getenv("USERNAME")
data/ncurses-6.2+20201114/ncurses/base/lib_initscr.c:69:8:  [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.
	env = getenv("TERM");
data/ncurses-6.2+20201114/ncurses/base/lib_mouse.c:460: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.
	const char *list = getenv("NCURSES_GPM_TERMS");
data/ncurses-6.2+20201114/ncurses/base/lib_mouse.c:461: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.
	const char *env = getenv("TERM");
data/ncurses-6.2+20201114/ncurses/base/lib_mouse.c:636:19:  [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 *s = getenv("MOUSE_BUTTONS_123");
data/ncurses-6.2+20201114/ncurses/base/lib_set_term.c:470: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 ((env = getenv("NCURSES_ASSUMED_COLORS")) != 0) {
data/ncurses-6.2+20201114/ncurses/base/lib_set_term.c:492:9:  [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 (getenv("COLORFGBG") != 0) {
data/ncurses-6.2+20201114/ncurses/base/lib_set_term.c:493:18:  [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 *p = getenv("COLORFGBG");
data/ncurses-6.2+20201114/ncurses/base/lib_set_term.c:546:6:  [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 (getenv("NCURSES_NO_MAGIC_COOKIE") != 0) {
data/ncurses-6.2+20201114/ncurses/curses.priv.h:2074:25:  [3] (buffer) getwd:
  This does not protect against buffer overflows by itself, so use with
  caution (CWE-120, CWE-20). Use getcwd instead.
#define getcwd(buf,len) getwd(buf)
data/ncurses-6.2+20201114/ncurses/tinfo/captoinfo.c:1012: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, "c")) != EOF)
data/ncurses-6.2+20201114/ncurses/tinfo/db_iterator.c:130: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.
	if ((value = getenv(name)) != 0) {
data/ncurses-6.2+20201114/ncurses/tinfo/db_iterator.c:220: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.
		if ((envp = getenv("TERMINFO")) != 0)
data/ncurses-6.2+20201114/ncurses/tinfo/getenv_num.c:46:17:  [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 *src = getenv(name);
data/ncurses-6.2+20201114/ncurses/tinfo/home_terminfo.c:57:18:  [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 ((home = getenv("HOME")) != 0) {
data/ncurses-6.2+20201114/ncurses/tinfo/lib_baudrate.c:282:5:  [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.
	&& getenv("BAUDRATE") != 0) {
data/ncurses-6.2+20201114/ncurses/tinfo/lib_setup.c:533: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 ((tmp = getenv("CC")) != 0 && strlen(tmp) == 1) {
data/ncurses-6.2+20201114/ncurses/tinfo/lib_setup.c:560:17:  [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 (((env = getenv("LANG")) != 0 && *env != '\0')
data/ncurses-6.2+20201114/ncurses/tinfo/lib_setup.c:561: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.
	|| ((env = getenv("LC_CTYPE")) != 0 && *env != '\0')
data/ncurses-6.2+20201114/ncurses/tinfo/lib_setup.c:562: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.
	|| ((env = getenv("LC_ALL")) != 0 && *env != '\0')) {
data/ncurses-6.2+20201114/ncurses/tinfo/lib_setup.c:611:9:  [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 (getenv(env_name) != 0) {
data/ncurses-6.2+20201114/ncurses/tinfo/lib_setup.c:615: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.
    } else if ((env = getenv("TERM")) != 0) {
data/ncurses-6.2+20201114/ncurses/tinfo/lib_setup.c:619:17:  [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.
		   && ((env = getenv("TERMCAP")) != 0
data/ncurses-6.2+20201114/ncurses/tinfo/lib_setup.c:665:10:  [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.
	tname = getenv("TERM");
data/ncurses-6.2+20201114/ncurses/tinfo/lib_tputs.c:66:24:  [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.
    bool no_padding = (getenv("NCURSES_NO_PADDING") != 0);
data/ncurses-6.2+20201114/ncurses/tinfo/lib_win32con.c:1203: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.
                if (getenv("NCGDB") || getenv("NCURSES_CONSOLE2")) {
data/ncurses-6.2+20201114/ncurses/tinfo/lib_win32con.c:1203:40:  [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 (getenv("NCGDB") || getenv("NCURSES_CONSOLE2")) {
data/ncurses-6.2+20201114/ncurses/tinfo/read_termcap.c:75:43:  [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 (!use_terminfo_vars() || (result = getenv("TERMPATH")) == 0)
data/ncurses-6.2+20201114/ncurses/tinfo/read_termcap.c:801:31:  [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.
    cp = use_terminfo_vars()? getenv("TERMCAP") : NULL;
data/ncurses-6.2+20201114/ncurses/tinfo/read_termcap.c:821:18:  [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 ((home = getenv("HOME")) != 0 && *home != '\0'
data/ncurses-6.2+20201114/ncurses/tinfo/read_termcap.c:985:37:  [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 (use_terminfo_vars() && (p = getenv("TERMCAP")) != 0
data/ncurses-6.2+20201114/ncurses/tinfo/read_termcap.c:1044:38:  [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 (use_terminfo_vars() && (tc = getenv("TERMCAP")) != 0) {
data/ncurses-6.2+20201114/ncurses/tinfo/read_termcap.c:1069:34:  [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 (use_terminfo_vars() && (h = getenv("HOME")) != NULL && *h != '\0'
data/ncurses-6.2+20201114/ncurses/tinfo/tinfo_driver.c:1175:6:  [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 (getenv("NCURSES_NO_MAGIC_COOKIE") != 0) {
data/ncurses-6.2+20201114/ncurses/tinfo/write_entry.c:223:8:  [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.
	dir = getenv("TERMINFO");
data/ncurses-6.2+20201114/ncurses/tty/lib_mvcur.c:348:9:  [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 (getenv("NCURSES_NO_HARD_TABS") == 0
data/ncurses-6.2+20201114/ncurses/tty/lib_mvcur.c:1193: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.
    _nc_STRCPY(tname, getenv("TERM"), sizeof(tname));
data/ncurses-6.2+20201114/ncurses/tty/lib_mvcur.c:1326:6:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	    srand((unsigned) (getpid() + time((time_t *) 0)));
data/ncurses-6.2+20201114/ncurses/win32con/win_driver.c:2224:6:  [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 (getenv("NCGDB") || getenv("NCURSES_CONSOLE2")) {
data/ncurses-6.2+20201114/ncurses/win32con/win_driver.c:2224:25:  [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 (getenv("NCGDB") || getenv("NCURSES_CONSOLE2")) {
data/ncurses-6.2+20201114/progs/clear.c:78:12:  [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.
    term = getenv("TERM");
data/ncurses-6.2+20201114/progs/clear.c:80: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, "T:Vx")) != -1) {
data/ncurses-6.2+20201114/progs/infocmp.c:1479: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.
    if ((terminal = getenv("TERM")) == 0) {
data/ncurses-6.2+20201114/progs/infocmp.c:1559: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,
data/ncurses-6.2+20201114/progs/tabs.c:393:22:  [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 ((term_name = getenv("TERM")) == 0)
data/ncurses-6.2+20201114/progs/tic.c:402:9:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
    if (tmpnam(filename) != 0)
data/ncurses-6.2+20201114/progs/tic.c:641:38:  [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.
    bool specific = (outdir != 0) || getenv("TERMINFO") != 0;
data/ncurses-6.2+20201114/progs/tic.c:734:24:  [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 ((this_opt = getopt(argc, argv,
data/ncurses-6.2+20201114/progs/tic.c:906: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.
	    if ((termcap = getenv("TERMCAP")) != 0
data/ncurses-6.2+20201114/progs/tic.c:907:31:  [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.
		&& (namelst = make_namelist(getenv("TERM"))) != 0) {
data/ncurses-6.2+20201114/progs/toe.c:581:24:  [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 ((this_opt = getopt(argc, argv, "0123456789ahsu:vU:V")) != -1) {
data/ncurses-6.2+20201114/progs/tput.c:311:12:  [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.
    term = getenv("TERM");
data/ncurses-6.2+20201114/progs/tput.c:313: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, "ST:Vx")) != -1) {
data/ncurses-6.2+20201114/progs/tset.c:561:18:  [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 ((ttype = getenv("TERM")) != 0)
data/ncurses-6.2+20201114/progs/tset.c:613: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.
    if ((p = getenv("TERMCAP")) != 0 && !_nc_is_abs_path(p)) {
data/ncurses-6.2+20201114/progs/tset.c:710: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 ((var = getenv("SHELL")) != 0
data/ncurses-6.2+20201114/progs/tset.c:779:18:  [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(argc, argv, "a:cd:e:Ii:k:m:p:qQrSsVw")) != -1) {
data/ncurses-6.2+20201114/test/background.c:169: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 ((n = getopt(argc, argv, "ab:df:l:")) != -1) {
data/ncurses-6.2+20201114/test/blue.c:485:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand((unsigned) atoi(argv[1]));
data/ncurses-6.2+20201114/test/blue.c:487:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand((unsigned) time((time_t *) 0));
data/ncurses-6.2+20201114/test/bs.c:227:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand((unsigned) (time(0L) + getpid()));	/* Kick the random number generator */
data/ncurses-6.2+20201114/test/cardfile.c:577: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 ((n = getopt(argc, argv, "c")) != -1) {
data/ncurses-6.2+20201114/test/color_content.c:255: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 ((i = getopt(argc, argv, "f:il:npr:sx")) != -1) {
data/ncurses-6.2+20201114/test/demo_forms.c:584:18:  [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(argc, argv, "dj:m:o:t:")) != -1) {
data/ncurses-6.2+20201114/test/demo_menus.c:1008: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, "fht:")) != -1) {
data/ncurses-6.2+20201114/test/demo_new_pair.c:205:18:  [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(argc, argv, "ipsw")) != -1) {
data/ncurses-6.2+20201114/test/demo_panels.c:775: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, "i:o:mwx")) != -1) {
data/ncurses-6.2+20201114/test/demo_tabs.c:67: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 ((n = getopt(argc, argv, "l:t:")) != -1) {
data/ncurses-6.2+20201114/test/demo_termcap.c:786: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 ((n = getopt(argc, argv, "abd:e:i:nqr:svxy")) != -1) {
data/ncurses-6.2+20201114/test/demo_termcap.c:856:25:  [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.
	    } else if ((name = getenv("TERM")) != 0) {
data/ncurses-6.2+20201114/test/demo_termcap.c:883:25:  [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.
	    } else if ((name = getenv("TERM")) != 0) {
data/ncurses-6.2+20201114/test/demo_terminfo.c:812: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 ((n = getopt(argc, argv, "abd:e:fi:nqr:sxy")) != -1) {
data/ncurses-6.2+20201114/test/demo_terminfo.c:880:25:  [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.
	    } else if ((name = getenv("TERM")) != 0) {
data/ncurses-6.2+20201114/test/demo_terminfo.c:907:25:  [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.
	    } else if ((name = getenv("TERM")) != 0) {
data/ncurses-6.2+20201114/test/ditto.c:163: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.
    if ((xterm_prog = getenv("XTERM_PROG")) == 0)
data/ncurses-6.2+20201114/test/dots.c:153:18:  [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(argc, argv, "T:efm:r:s:")) != -1) {
data/ncurses-6.2+20201114/test/dots.c:187:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand((unsigned) time(0));
data/ncurses-6.2+20201114/test/dots_curses.c:132:18:  [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(argc, argv, "T:dem:r:s:")) != -1) {
data/ncurses-6.2+20201114/test/dots_curses.c:165:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand((unsigned) time(0));
data/ncurses-6.2+20201114/test/dots_mvcur.c:156:18:  [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(argc, argv, "T:efm:r:s:")) != -1) {
data/ncurses-6.2+20201114/test/dots_mvcur.c:196:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand((unsigned) time(0));
data/ncurses-6.2+20201114/test/dots_termcap.c:172:25:  [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 *value = env ? getenv(env) : 0;
data/ncurses-6.2+20201114/test/dots_termcap.c:223:18:  [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(argc, argv, "T:em:r:s:")) != -1) {
data/ncurses-6.2+20201114/test/dots_termcap.c:249:17:  [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 ((name = getenv("TERM")) == 0) {
data/ncurses-6.2+20201114/test/dots_termcap.c:254:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand((unsigned) time(0));
data/ncurses-6.2+20201114/test/dots_xcurses.c:158:18:  [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(argc, argv, "T:dem:r:s:x")) != -1) {
data/ncurses-6.2+20201114/test/dots_xcurses.c:196:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand((unsigned) time(0));
data/ncurses-6.2+20201114/test/echochar.c:94:18:  [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(argc, argv, "r")) != -1) {
data/ncurses-6.2+20201114/test/echochar.c:116:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand((unsigned) time(0));
data/ncurses-6.2+20201114/test/extended_color.c:165: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 ((i = getopt(argc, argv, "s")) != -1) {
data/ncurses-6.2+20201114/test/filter.c:343:18:  [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(argc, argv, "adcip")) != -1) {
data/ncurses-6.2+20201114/test/firework.c:173:18:  [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(argc, argv, "d")) != -1) {
data/ncurses-6.2+20201114/test/firework.c:203:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(seed);
data/ncurses-6.2+20201114/test/firework.c:228:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(seed);
data/ncurses-6.2+20201114/test/gdc.c:231: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 ((k = getopt(argc, argv, "dnst:")) != -1) {
data/ncurses-6.2+20201114/test/gdc.c:261:19:  [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 *name = getenv("TERM");
data/ncurses-6.2+20201114/test/hanoi.c:266:18:  [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(argc, argv, "dn:X")) != -1) {
data/ncurses-6.2+20201114/test/hashtest.c:187: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, "cf:h:l:norsx")) != -1) {
data/ncurses-6.2+20201114/test/ins_wide.c:483:18:  [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(argc, argv, "f:mn:w")) != -1) {
data/ncurses-6.2+20201114/test/inserts.c:412:18:  [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(argc, argv, "f:mn:w")) != -1) {
data/ncurses-6.2+20201114/test/key_names.c:54: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 ((n = getopt(argc, argv, "ms")) != -1) {
data/ncurses-6.2+20201114/test/key_names.c:74:10:  [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.
	newterm(getenv("TERM"), stderr, stdin);
data/ncurses-6.2+20201114/test/keynames.c:51: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 ((n = getopt(argc, argv, "ms")) != -1) {
data/ncurses-6.2+20201114/test/keynames.c:71:10:  [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.
	newterm(getenv("TERM"), stderr, stdin);
data/ncurses-6.2+20201114/test/knight.c:116:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand((unsigned) getpid());
data/ncurses-6.2+20201114/test/knight.c:927:18:  [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(argc, argv, "dn:")) != -1) {
data/ncurses-6.2+20201114/test/list_keys.c:449: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 ((n = getopt(argc, argv, "fmtx")) != -1) {
data/ncurses-6.2+20201114/test/ncurses.c:481:41:  [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.
    printw("\nThis %s terminal %s\n\n", getenv("TERM"), what);
data/ncurses-6.2+20201114/test/ncurses.c:1255:18:  [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.
	tgetent(buffer, getenv("TERM"));
data/ncurses-6.2+20201114/test/ncurses.c:3819:18:  [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 *term = getenv("TERM");
data/ncurses-6.2+20201114/test/ncurses.c:7908: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, "a:dEe:fhmp:s:Tt:x")) != -1) {
data/ncurses-6.2+20201114/test/padview.c:305: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 ((i = getopt(argc, argv, "cinstT:")) != -1) {
data/ncurses-6.2+20201114/test/pair_content.c:241: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 ((i = getopt(argc, argv, "f:il:npr:sx")) != -1) {
data/ncurses-6.2+20201114/test/picsmap.c:688: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.
		init_palette(getenv("TERM"));
data/ncurses-6.2+20201114/test/picsmap.c:1679: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 ((n = getopt(argc, argv, "a:dLl:p:qr:s:x:")) != -1) {
data/ncurses-6.2+20201114/test/railroad.c:188: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.
    NCURSES_CONST char *name = getenv("TERM");
data/ncurses-6.2+20201114/test/rain.c:344:18:  [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(argc, argv, "d")) != -1) {
data/ncurses-6.2+20201114/test/redraw.c:213:18:  [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(argc, argv, "en")) != -1) {
data/ncurses-6.2+20201114/test/savescreen.c:300:18:  [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(argc, argv, "f:ikr")) != -1) {
data/ncurses-6.2+20201114/test/sp_tinfo.c:314: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 ((n = getopt(argc, argv, "nt")) != -1) {
data/ncurses-6.2+20201114/test/tclock.c:154:18:  [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(argc, argv, "d")) != -1) {
data/ncurses-6.2+20201114/test/test_add_wchstr.c:570:18:  [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(argc, argv, "f:mn:pw")) != -1) {
data/ncurses-6.2+20201114/test/test_addchstr.c:489:18:  [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(argc, argv, "f:mn:pw")) != -1) {
data/ncurses-6.2+20201114/test/test_addstr.c:403:18:  [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(argc, argv, "f:mn:w")) != -1) {
data/ncurses-6.2+20201114/test/test_addwstr.c:495:18:  [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(argc, argv, "f:mn:w")) != -1) {
data/ncurses-6.2+20201114/test/test_arrays.c:167: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 ((n = getopt(argc, argv, "CTcfnt")) != -1) {
data/ncurses-6.2+20201114/test/test_setupterm.c:53:9:  [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.
	name = getenv("TERM");
data/ncurses-6.2+20201114/test/test_setupterm.c:139: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 ((n = getopt(argc, argv, "afnr")) != -1) {
data/ncurses-6.2+20201114/test/test_sgr.c:335: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 ((n = getopt(argc, argv, "d:e:nq")) != -1) {
data/ncurses-6.2+20201114/test/test_sgr.c:361:24:  [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.
    } else if ((name = getenv("TERM")) != 0) {
data/ncurses-6.2+20201114/test/test_termattrs.c:152:18:  [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(argc, argv, "ensw")) != -1) {
data/ncurses-6.2+20201114/test/test_tparm.c:172:22:  [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 *old_term = getenv("TERM");
data/ncurses-6.2+20201114/test/test_tparm.c:190: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 ((n = getopt(argc, argv, "T:ar:v")) != -1) {
data/ncurses-6.2+20201114/test/test_vid_puts.c:122:18:  [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(argc, argv, "enp")) != -1) {
data/ncurses-6.2+20201114/test/test_vidputs.c:122:18:  [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(argc, argv, "enp")) != -1) {
data/ncurses-6.2+20201114/test/testcurs.c:368:24:  [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.
    tgetent(tc_buffer, getenv("TERM"));
data/ncurses-6.2+20201114/test/view.c:434: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 ((i = getopt(argc, argv, "cinstT:")) != -1) {
data/ncurses-6.2+20201114/test/worm.c:482:18:  [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(argc, argv, "dfl:n:tT:N")) != -1) {
data/ncurses-6.2+20201114/test/xmas.c:682:18:  [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(argc, argv, "dq")) != -1) {
data/ncurses-6.2+20201114/Ada95/gen/gen.c:204:12:  [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).
      fp = fopen(argv[2], "wb");
data/ncurses-6.2+20201114/c++/demo.cc:321:7:  [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[8];
data/ncurses-6.2+20201114/c++/demo.cc:541: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[8];
data/ncurses-6.2+20201114/form/fld_dup.c:88:8:  [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(New_Field->buf, field->buf, len);
data/ncurses-6.2+20201114/form/frm_driver.c:4076:7:  [2] (buffer) wchar_t:
  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.
      wchar_t given[2];
data/ncurses-6.2+20201114/form/frm_req_name.c:45: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.
static const char request_names[MAX_FORM_COMMAND - MIN_FORM_COMMAND + 1][13] =
data/ncurses-6.2+20201114/form/frm_req_name.c:153: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[16];			/* longest name is 10 chars */
data/ncurses-6.2+20201114/form/frm_req_name.c:161:7:  [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(buf, str, i);
data/ncurses-6.2+20201114/form/fty_int.c:173: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[100];
data/ncurses-6.2+20201114/form/fty_int.c:229:10:  [2] (integer) atol:
  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).
	  val = atol(s);
data/ncurses-6.2+20201114/form/fty_num.c:192: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[64];
data/ncurses-6.2+20201114/include/capdefaults.c:52:47:  [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).
    	(short) (strp = strchr(str, '*'), strp ? atoi(strp+1) : 0)
data/ncurses-6.2+20201114/menu/m_req_name.c:45: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.
static const char request_names[MAX_MENU_COMMAND - MIN_MENU_COMMAND + 1][14] =
data/ncurses-6.2+20201114/menu/m_req_name.c:106: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[16];
data/ncurses-6.2+20201114/menu/m_req_name.c:114:7:  [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(buf, str, i);
data/ncurses-6.2+20201114/ncurses/base/lib_color.c:539: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(next, sp->_color_pairs, (size_t) sp->_pair_alloc * sizeof(*next));
data/ncurses-6.2+20201114/ncurses/base/lib_getch.c:486: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 buf[MAXCOLUMNS], *bufp;
data/ncurses-6.2+20201114/ncurses/base/lib_initscr.c:85: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).
	    FILE *fp = fopen("/dev/tty", "w");
data/ncurses-6.2+20201114/ncurses/base/lib_mouse.c:236: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[6];
data/ncurses-6.2+20201114/ncurses/base/lib_mouse.c:261: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 err[80];
data/ncurses-6.2+20201114/ncurses/base/lib_mouse.c:678:18:  [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).
	sp->_mouse_fd = open(the_device, O_RDWR);
data/ncurses-6.2+20201114/ncurses/base/lib_mouse.c:792:6:  [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 kbuf[3];
data/ncurses-6.2+20201114/ncurses/base/lib_mouse.c:1063: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 kbuf[MAX_KBUF + 1];
data/ncurses-6.2+20201114/ncurses/base/lib_mouse.c:1114: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 kbuf[80];
data/ncurses-6.2+20201114/ncurses/base/lib_mouse.c:1200: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 kbuf[80];		/* bigger than any possible mouse response */
data/ncurses-6.2+20201114/ncurses/base/lib_scanw.c:49: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[BUFSIZ];
data/ncurses-6.2+20201114/ncurses/base/lib_scanw.c:64: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[BUFSIZ];
data/ncurses-6.2+20201114/ncurses/base/lib_screen.c:86: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.
    const char name[11];
data/ncurses-6.2+20201114/ncurses/base/lib_screen.c:91: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.
    const char name[17];
data/ncurses-6.2+20201114/ncurses/base/lib_screen.c:346:5:  [2] (buffer) wchar_t:
  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.
    wchar_t chars[CCHARW_MAX];
data/ncurses-6.2+20201114/ncurses/base/lib_screen.c:420:23:  [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 *) data = atoi(value);
data/ncurses-6.2+20201114/ncurses/base/lib_screen.c:423:33:  [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).
		    *(short *) data = (short) atoi(value);
data/ncurses-6.2+20201114/ncurses/base/lib_screen.c:426:51:  [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).
		    *(NCURSES_SIZE_T *) data = (NCURSES_SIZE_T) atoi(value);
data/ncurses-6.2+20201114/ncurses/base/lib_screen.c:804: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 buffer[1024];
data/ncurses-6.2+20201114/ncurses/base/lib_screen.c:952:11:  [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).
	&& (fp = fopen(file, BIN_R)) != 0) {
data/ncurses-6.2+20201114/ncurses/base/lib_screen.c:983:11:  [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).
	|| (fp = fopen(file, BIN_W)) == 0) {
data/ncurses-6.2+20201114/ncurses/base/lib_screen.c:1010: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).
	    && (fp = fopen(file, BIN_R)) != 0) {
data/ncurses-6.2+20201114/ncurses/base/lib_scroll.c:89: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(win->_line[line].text,
data/ncurses-6.2+20201114/ncurses/base/lib_scroll.c:107: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(win->_line[line].text,
data/ncurses-6.2+20201114/ncurses/base/lib_slkset.c:136:5:  [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(slk->ent[i].form_text + offset,
data/ncurses-6.2+20201114/ncurses/base/lib_window.c:246: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(nwin->_line[i].text, win->_line[i].text, linesize);
data/ncurses-6.2+20201114/ncurses/base/new_pair.c:103: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 bigbuf[256 * 20];
data/ncurses-6.2+20201114/ncurses/base/safe_sprintf.c:61: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 fmt_arg[BUFSIZ];
data/ncurses-6.2+20201114/ncurses/curses.priv.h:225:24:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define memmove(d,s,n) bcopy(s,d,n)
data/ncurses-6.2+20201114/ncurses/curses.priv.h:1021: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		key_name[MB_LEN_MAX + 1];
data/ncurses-6.2+20201114/ncurses/curses.priv.h:1026: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		trace_fname[PATH_MAX];
data/ncurses-6.2+20201114/ncurses/curses.priv.h:1037: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		tracechr_buf[40];
data/ncurses-6.2+20201114/ncurses/curses.priv.h:1045: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		traceatr_color_buf[2][80];
data/ncurses-6.2+20201114/ncurses/curses.priv.h:1356: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		_emxmouse_buttons[4];
data/ncurses-6.2+20201114/ncurses/curses.priv.h:1390: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		_ttytype[NAMESIZE];
data/ncurses-6.2+20201114/ncurses/curses.priv.h:1419: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		tracechr_buf[40];
data/ncurses-6.2+20201114/ncurses/curses.priv.h:1420: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		tracemse_buf[TRACEMSE_MAX];
data/ncurses-6.2+20201114/ncurses/curses.priv.h:1436: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 addch_work[(MB_LEN_MAX * 9) + 1];
data/ncurses-6.2+20201114/ncurses/curses.priv.h:1596: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.
#define PUTC_DATA	char PUTC_buf[MB_LEN_MAX]; int PUTC_i, PUTC_n; \
data/ncurses-6.2+20201114/ncurses/curses.priv.h:1836:26:  [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.
#define TR_FUNC_BFR(max)	char tr_func_data[max][TR_FUNC_LEN]
data/ncurses-6.2+20201114/ncurses/tinfo/access.c:125:6:  [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 head[PATH_MAX];
data/ncurses-6.2+20201114/ncurses/tinfo/alloc_entry.c:179: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(tp->str_table, stringbuf, next_free);
data/ncurses-6.2+20201114/ncurses/tinfo/alloc_ttype.c:503: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(from->ext_Names, ext_Names, sizeof(char *) * (size_t) nb);
data/ncurses-6.2+20201114/ncurses/tinfo/alloc_ttype.c:537:5:  [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(dst->Booleans,
data/ncurses-6.2+20201114/ncurses/tinfo/alloc_ttype.c:540:5:  [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(dst->Strings,
data/ncurses-6.2+20201114/ncurses/tinfo/alloc_ttype.c:573: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(dst->Numbers,
data/ncurses-6.2+20201114/ncurses/tinfo/alloc_ttype.c:582:5:  [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(dst->Numbers,
data/ncurses-6.2+20201114/ncurses/tinfo/alloc_ttype.c:594: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(dst->ext_Names, src->ext_Names, i * sizeof(char *));
data/ncurses-6.2+20201114/ncurses/tinfo/captoinfo.c:152: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 temp[2];
data/ncurses-6.2+20201114/ncurses/tinfo/captoinfo.c:550:6:  [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 buffer[80];
data/ncurses-6.2+20201114/ncurses/tinfo/captoinfo.c:569: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 temp[80];
data/ncurses-6.2+20201114/ncurses/tinfo/captoinfo.c:627: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 octal[4];
data/ncurses-6.2+20201114/ncurses/tinfo/captoinfo.c:1021: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 buf[BUFSIZ];
data/ncurses-6.2+20201114/ncurses/tinfo/comp_parse.c:109: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 nc1[NAMEBUFFER_SIZE];
data/ncurses-6.2+20201114/ncurses/tinfo/comp_parse.c:110: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 nc2[NAMEBUFFER_SIZE];
data/ncurses-6.2+20201114/ncurses/tinfo/comp_parse.c:463: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 filename[PATH_MAX];
data/ncurses-6.2+20201114/ncurses/tinfo/comp_scan.c:358: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 numbuf[80];
data/ncurses-6.2+20201114/ncurses/tinfo/db_iterator.c:85: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 temp[PATH_MAX];
data/ncurses-6.2+20201114/ncurses/tinfo/db_iterator.c:290: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.
	const char *values[dbdLAST];
data/ncurses-6.2+20201114/ncurses/tinfo/getenv_num.c:63: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 buffer[128];
data/ncurses-6.2+20201114/ncurses/tinfo/hashed_db.c:131:22:  [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 ((code = result->open(result,
data/ncurses-6.2+20201114/ncurses/tinfo/hashed_db.c:142:22:  [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 ((code = result->open(result,
data/ncurses-6.2+20201114/ncurses/tinfo/lib_acs.c:226: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 show[ACS_LEN * 2 + 1];
data/ncurses-6.2+20201114/ncurses/tinfo/lib_print.c:81:5:  [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(mybuf + onsize, data, (size_t) len);
data/ncurses-6.2+20201114/ncurses/tinfo/lib_setup.c:495: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 filename[PATH_MAX];
data/ncurses-6.2+20201114/ncurses/tinfo/lib_tparm.c:134: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 *p_is_s[NUM_PARM];
data/ncurses-6.2+20201114/ncurses/tinfo/lib_tparm.c:408:25:  [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.
_nc_tparm_analyze(const char *string, char *p_is_s[NUM_PARM], int *popcount)
data/ncurses-6.2+20201114/ncurses/tinfo/lib_tparm.c:408:39:  [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.
_nc_tparm_analyze(const char *string, char *p_is_s[NUM_PARM], int *popcount)
data/ncurses-6.2+20201114/ncurses/tinfo/lib_tparm.c:735:16:  [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 target[10];
data/ncurses-6.2+20201114/ncurses/tinfo/lib_tputs.c:277: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 addrbuf[32];
data/ncurses-6.2+20201114/ncurses/tinfo/lib_win32util.c:77:7:  [2] (buffer) TCHAR:
  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.
		    TCHAR buf[MAX_PATH];
data/ncurses-6.2+20201114/ncurses/tinfo/make_hash.c:225: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 result[80];
data/ncurses-6.2+20201114/ncurses/tinfo/make_hash.c:261: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 buffer[BUFSIZ];
data/ncurses-6.2+20201114/ncurses/tinfo/make_hash.c:271: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).
	|| (column = atoi(argv[1])) <= 0
data/ncurses-6.2+20201114/ncurses/tinfo/make_hash.c:274: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).
	|| (bigstring = atoi(argv[3])) < 0
data/ncurses-6.2+20201114/ncurses/tinfo/make_keys.c:89: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 buffer[BUFSIZ];
data/ncurses-6.2+20201114/ncurses/tinfo/make_keys.c:90: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 from[256];
data/ncurses-6.2+20201114/ncurses/tinfo/make_keys.c:91: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 to[256];
data/ncurses-6.2+20201114/ncurses/tinfo/make_keys.c:154: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).
	    FILE *fp = fopen(argv[n], "r");
data/ncurses-6.2+20201114/ncurses/tinfo/parse_entry.c:665: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 temp[3];
data/ncurses-6.2+20201114/ncurses/tinfo/parse_entry.c:688: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.
    const char from[3];
data/ncurses-6.2+20201114/ncurses/tinfo/parse_entry.c:689: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.
    const char to[6];
data/ncurses-6.2+20201114/ncurses/tinfo/parse_entry.c:737: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_LINE * 2 + 2];
data/ncurses-6.2+20201114/ncurses/tinfo/parse_entry.c:887: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 buf2[MAX_TERMINFO_LENGTH];
data/ncurses-6.2+20201114/ncurses/tinfo/parse_entry.c:1000: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 buf2[MAX_TERMCAP_LENGTH];
data/ncurses-6.2+20201114/ncurses/tinfo/parse_entry.c:1040: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 buf2[MAX_TERMCAP_LENGTH];
data/ncurses-6.2+20201114/ncurses/tinfo/read_entry.c:181: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(dst, src + *offset, (size_t) want);
data/ncurses-6.2+20201114/ncurses/tinfo/read_entry.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_ENTRY_SIZE + 2];
data/ncurses-6.2+20201114/ncurses/tinfo/read_entry.c:556:11:  [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).
	|| (fp = fopen(filename, BIN_R)) == 0) {
data/ncurses-6.2+20201114/ncurses/tinfo/read_entry.c:561: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 buffer[MAX_ENTRY_SIZE + 1];
data/ncurses-6.2+20201114/ncurses/tinfo/read_entry.c:746: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 buffer[MAX_ENTRY_SIZE + 1];
data/ncurses-6.2+20201114/ncurses/tinfo/read_termcap.c:327:19:  [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).
		       || (fd = open(db_array[current], O_RDONLY, 0)) < 0) {
data/ncurses-6.2+20201114/ncurses/tinfo/read_termcap.c:342: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[2048];
data/ncurses-6.2+20201114/ncurses/tinfo/read_termcap.c:793: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 pathbuf[PBUFSIZ];	/* holds raw path of filenames */
data/ncurses-6.2+20201114/ncurses/tinfo/read_termcap.c:794: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.
    CGETENT_CONST char *pathvec[PVECSIZ];	/* point to names in pathbuf */
data/ncurses-6.2+20201114/ncurses/tinfo/read_termcap.c:819:6:  [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 temp[PBUFSIZ];
data/ncurses-6.2+20201114/ncurses/tinfo/read_termcap.c:873: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 *list[1023];
data/ncurses-6.2+20201114/ncurses/tinfo/read_termcap.c:912: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 temp[PATH_MAX];
data/ncurses-6.2+20201114/ncurses/tinfo/read_termcap.c:965: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 cwd_buf[PATH_MAX];
data/ncurses-6.2+20201114/ncurses/tinfo/read_termcap.c:968: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 *p, tc[TBUFSIZ];
data/ncurses-6.2+20201114/ncurses/tinfo/read_termcap.c:1032: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 *tc, *termpaths[MAXPATHS];
data/ncurses-6.2+20201114/ncurses/tinfo/read_termcap.c:1038: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 pathbuf[PATH_MAX];
data/ncurses-6.2+20201114/ncurses/tinfo/read_termcap.c:1056: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 envhome[PATH_MAX], *h;
data/ncurses-6.2+20201114/ncurses/tinfo/read_termcap.c:1127:12:  [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).
		&& (fp = fopen(termpaths[i], "r")) != (FILE *) 0) {
data/ncurses-6.2+20201114/ncurses/tinfo/tinfo_driver.c:1134: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 show[ACS_LEN * 2 + 1];
data/ncurses-6.2+20201114/ncurses/tinfo/write_entry.c:66: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 buffer[MAX_ENTRY_SIZE];
data/ncurses-6.2+20201114/ncurses/tinfo/write_entry.c:74:9:  [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(filename, BIN_W)
data/ncurses-6.2+20201114/ncurses/tinfo/write_entry.c:118: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 dir[sizeof(LEAF_FMT)];
data/ncurses-6.2+20201114/ncurses/tinfo/write_entry.c:179: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 fullpath[PATH_MAX];
data/ncurses-6.2+20201114/ncurses/tinfo/write_entry.c:216: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 actual[PATH_MAX];
data/ncurses-6.2+20201114/ncurses/tinfo/write_entry.c:279: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 buffer[MAX_ENTRY_SIZE + 1];
data/ncurses-6.2+20201114/ncurses/tinfo/write_entry.c:286: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 filename[PATH_MAX];
data/ncurses-6.2+20201114/ncurses/tinfo/write_entry.c:287: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 linkname[PATH_MAX];
data/ncurses-6.2+20201114/ncurses/tinfo/write_entry.c:289: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 symlinkname[PATH_MAX];
data/ncurses-6.2+20201114/ncurses/tinfo/write_entry.c:304: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_list[MAX_TERMINFO_LENGTH];
data/ncurses-6.2+20201114/ncurses/tinfo/write_entry.c:548: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(dst + *offset, src, want);
data/ncurses-6.2+20201114/ncurses/tinfo/write_entry.c:709: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 buf[MAX_ENTRY_SIZE];
data/ncurses-6.2+20201114/ncurses/trace/lib_trace.c:122:14:  [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).
		|| (MyFD = open(MyPath, O_CREAT | O_EXCL | O_RDWR, 0600)) < 0
data/ncurses-6.2+20201114/ncurses/trace/lib_trace.c:337: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 bytes[sizeof(int)];
data/ncurses-6.2+20201114/ncurses/trace/lib_traceatr.c:92: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.
	const char name[14];
data/ncurses-6.2+20201114/ncurses/trace/lib_traceatr.c:145:7:  [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 temp[80];
data/ncurses-6.2+20201114/ncurses/trace/lib_traceatr.c:209: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.
	const char name[13];
data/ncurses-6.2+20201114/ncurses/trace/lib_traceatr.c:366: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 temp[80];
data/ncurses-6.2+20201114/ncurses/trace/lib_traceatr.c:394: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 temp[80];
data/ncurses-6.2+20201114/ncurses/trace/lib_tracebits.c:83: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.
    const char name[BITNAMELEN];
data/ncurses-6.2+20201114/ncurses/trace/lib_tracebits.c:190: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.
		const char name[5];
data/ncurses-6.2+20201114/ncurses/trace/varargs.c:64: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 buffer[BUFSIZ];
data/ncurses-6.2+20201114/ncurses/trace/visbuf.c:127: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 *mybuf[NUM_VISBUFS];
data/ncurses-6.2+20201114/ncurses/trace/visbuf.c:208: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 *mybuf[NUM_VISBUFS];
data/ncurses-6.2+20201114/ncurses/trace/visbuf.c:218:6:  [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 temp[CCHARW_MAX + 80];
data/ncurses-6.2+20201114/ncurses/trace/visbuf.c:328: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 temp[80];
data/ncurses-6.2+20201114/ncurses/trace/visbuf.c:355:7:  [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 temp[80];
data/ncurses-6.2+20201114/ncurses/tty/hardscroll.c:336: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[BUFSIZ], *st;
data/ncurses-6.2+20201114/ncurses/tty/hardscroll.c:359: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).
	    oldnums[n++] = atoi(st);
data/ncurses-6.2+20201114/ncurses/tty/hashmap.c:494: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[BUFSIZ], *st;
data/ncurses-6.2+20201114/ncurses/tty/hashmap.c:531: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).
		oldnums[n++] = atoi(st);
data/ncurses-6.2+20201114/ncurses/tty/lib_mvcur.c:608: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[OPT_SIZE];
data/ncurses-6.2+20201114/ncurses/tty/lib_mvcur.c:781: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 buffer[OPT_SIZE];
data/ncurses-6.2+20201114/ncurses/tty/lib_mvcur.c:1171: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 tname[PATH_MAX];
data/ncurses-6.2+20201114/ncurses/tty/lib_mvcur.c:1207: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 buf[BUFSIZ], capname[BUFSIZ];
data/ncurses-6.2+20201114/ncurses/tty/tty_update.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 buf[20];
data/ncurses-6.2+20201114/ncurses/tty/tty_update.c:1487: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(oldLine + firstChar,
data/ncurses-6.2+20201114/ncurses/tty/tty_update.c:1618: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(oldLine + firstChar,
data/ncurses-6.2+20201114/ncurses/widechar/charable.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 temp[MB_LEN_MAX];
data/ncurses-6.2+20201114/ncurses/widechar/charable.c:74: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 temp[2];
data/ncurses-6.2+20201114/ncurses/widechar/lib_cchar.c:90: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(&wcval->chars, wch, len * sizeof(wchar_t));
data/ncurses-6.2+20201114/ncurses/widechar/lib_get_wch.c:70:6:  [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 buffer[(MB_LEN_MAX * 9) + 1];	/* allow some redundant shifts */
data/ncurses-6.2+20201114/ncurses/widechar/lib_get_wstr.c:49:5:  [2] (buffer) wchar_t:
  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.
    wchar_t wch[2];
data/ncurses-6.2+20201114/ncurses/widechar/lib_unget_wch.c:55:2:  [2] (buffer) wchar_t:
  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.
	wchar_t temp[2];
data/ncurses-6.2+20201114/ncurses/widechar/lib_wunctrl.c:44:12:  [2] (buffer) wchar_t:
  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 wchar_t str[CCHARW_MAX + 1], *wsp;
data/ncurses-6.2+20201114/ncurses/widechar/widechars.c:56:14:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	    count = MultiByteToWideChar(CP_UTF8,
data/ncurses-6.2+20201114/ncurses/widechar/widechars.c:70:6:  [2] (buffer) wchar_t:
  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.
	    wchar_t actual[2];
data/ncurses-6.2+20201114/ncurses/widechar/widechars.c:72:14:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	    count = MultiByteToWideChar(CP_UTF8,
data/ncurses-6.2+20201114/ncurses/win32con/win32_driver.c:114: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 output[max_cells];
data/ncurses-6.2+20201114/ncurses/win32con/win32_driver.c:419:6:  [2] (buffer) wchar_t:
  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.
	    wchar_t blank[2] =
data/ncurses-6.2+20201114/ncurses/win32con/win32_driver.c:435: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(empty,
data/ncurses-6.2+20201114/ncurses/win32con/win32_driver.c:458:7:  [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(&CurScreen(sp)->_line[y].text[x0],
data/ncurses-6.2+20201114/ncurses/win32con/win32_driver.c:479:7:  [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(&CurScreen(sp)->_line[y].text[x0],
data/ncurses-6.2+20201114/ncurses/win32con/win32_driver.c:618: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(that_screen,
data/ncurses-6.2+20201114/ncurses/win32con/win_driver.c:204: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 output[max_cells];
data/ncurses-6.2+20201114/ncurses/win32con/win_driver.c:512:6:  [2] (buffer) wchar_t:
  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.
	    wchar_t blank[2] =
data/ncurses-6.2+20201114/ncurses/win32con/win_driver.c:528: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(empty,
data/ncurses-6.2+20201114/ncurses/win32con/win_driver.c:550:7:  [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(&CurScreen(sp)->_line[y].text[x0],
data/ncurses-6.2+20201114/ncurses/win32con/win_driver.c:571:7:  [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(&CurScreen(sp)->_line[y].text[x0],
data/ncurses-6.2+20201114/ncurses/win32con/win_driver.c:702: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(that_screen,
data/ncurses-6.2+20201114/ncurses/win32con/win_driver.c:1892:7:  [2] (buffer) TCHAR:
  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.
		    TCHAR buf[MAX_PATH];
data/ncurses-6.2+20201114/panel/panel.c:62: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 temp[32];
data/ncurses-6.2+20201114/panel/panel.c:95: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 s80[80];
data/ncurses-6.2+20201114/panel/panel.c:145: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 s80[80];
data/ncurses-6.2+20201114/progs/dump_entry.c:590: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 *p, align[9];
data/ncurses-6.2+20201114/progs/dump_entry.c:913: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 buffer[MAX_TERMINFO_LENGTH + EXTRA_CAP];
data/ncurses-6.2+20201114/progs/dump_entry.c:1210:6:  [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 *tp, *sp, boxchars[11];
data/ncurses-6.2+20201114/progs/dump_entry.c:1350: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[10];
data/ncurses-6.2+20201114/progs/dump_entry.c:1376: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[10];
data/ncurses-6.2+20201114/progs/dump_entry.c:1485: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 bigbuf[65536];
data/ncurses-6.2+20201114/progs/dump_entry.c:1492:6:  [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 numbuf[80];
data/ncurses-6.2+20201114/progs/dump_entry.c:1647: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 buffer[MAX_TERMINFO_LENGTH];
data/ncurses-6.2+20201114/progs/dump_entry.c:1765: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 mapped[256];
data/ncurses-6.2+20201114/progs/infocmp.c:52: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.
typedef char path[PATH_MAX];
data/ncurses-6.2+20201114/progs/infocmp.c:450: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 buf1[MAX_STRING];
data/ncurses-6.2+20201114/progs/infocmp.c:451: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 buf2[MAX_STRING];
data/ncurses-6.2+20201114/progs/infocmp.c:663: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.
    const char from[4];
data/ncurses-6.2+20201114/progs/infocmp.c:664: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.
    const char to[12];
data/ncurses-6.2+20201114/progs/infocmp.c:816: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 buf2[MAX_TERMINFO_LENGTH];
data/ncurses-6.2+20201114/progs/infocmp.c:831: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 buf3[MAX_TERMINFO_LENGTH];
data/ncurses-6.2+20201114/progs/infocmp.c:1130: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 name1[NAMESIZE], name2[NAMESIZE];
data/ncurses-6.2+20201114/progs/infocmp.c:1151: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 name1[NAMESIZE], name2[NAMESIZE];
data/ncurses-6.2+20201114/progs/infocmp.c:1152: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 *names[3];
data/ncurses-6.2+20201114/progs/infocmp.c:1308: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 buf[MAX_STRING], *sp, *tp;
data/ncurses-6.2+20201114/progs/infocmp.c:1364: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 buf[BUFSIZ];
data/ncurses-6.2+20201114/progs/infocmp.c:1556:5:  [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(myargv, argv, (sizeof(char *) * (size_t) argc));
data/ncurses-6.2+20201114/progs/reset_cmd.c:101: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[BUFSIZ];
data/ncurses-6.2+20201114/progs/reset_cmd.c:105:12:  [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 ((fp = fopen(file, "r")) == 0)
data/ncurses-6.2+20201114/progs/tabs.c:155: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 buffer[20];
data/ncurses-6.2+20201114/progs/tic.c:207: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 result[MAX_ENTRY_SIZE];
data/ncurses-6.2+20201114/progs/tic.c:396:11:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	int fd = mkstemp(filename);
data/ncurses-6.2+20201114/progs/tic.c:403:11:  [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).
	result = fopen(filename, "w");
data/ncurses-6.2+20201114/progs/tic.c:411: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 my_altfile[PATH_MAX];
data/ncurses-6.2+20201114/progs/tic.c:445:11:  [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).
	result = fopen(alt_file, "r+");
data/ncurses-6.2+20201114/progs/tic.c:469: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).
	fp = fopen(filename, "r");
data/ncurses-6.2+20201114/progs/tic.c:496: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 buffer[BUFSIZ];
data/ncurses-6.2+20201114/progs/tic.c:683: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 my_tmpname[PATH_MAX];
data/ncurses-6.2+20201114/progs/tic.c:684: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 my_altfile[PATH_MAX];
data/ncurses-6.2+20201114/progs/tic.c:1150: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 mapped[256];
data/ncurses-6.2+20201114/progs/tic.c:1151: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 missing[256];
data/ncurses-6.2+20201114/progs/tic.c:1329: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.
check_ansi_cursor(char *list[4])
data/ncurses-6.2+20201114/progs/tic.c:1408: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 *list[4];
data/ncurses-6.2+20201114/progs/tic.c:1526: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 show[80];
data/ncurses-6.2+20201114/progs/tic.c:1533: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 final[MAX_KP + 1];
data/ncurses-6.2+20201114/progs/tic.c:1777: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.
	const char name[9];
data/ncurses-6.2+20201114/progs/tic.c:1988: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 *p_is_s[NUM_PARM];
data/ncurses-6.2+20201114/progs/tic.c:2178: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 *strings[1 + NUM_PARM];
data/ncurses-6.2+20201114/progs/tic.c:2179: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 *p_is_s[NUM_PARM];
data/ncurses-6.2+20201114/progs/tic.c:2181: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 blob[NUM_PARM * 10];
data/ncurses-6.2+20201114/progs/tic.c:2600: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 my_name[MAX_NAME_SIZE];
data/ncurses-6.2+20201114/progs/toe.c:362:5:  [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(result, src->d_name, len);
data/ncurses-6.2+20201114/progs/toe.c:467:6:  [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 filename[PATH_MAX];
data/ncurses-6.2+20201114/progs/toe.c:506: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.
	    CGETENT_CONST char *db_array[2];
data/ncurses-6.2+20201114/progs/toe.c:529:6:  [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 buffer[2048];
data/ncurses-6.2+20201114/progs/toe.c:535: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).
	    if ((fp = fopen(eargv[i], "r")) != 0) {
data/ncurses-6.2+20201114/progs/tparm_type.c:54: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.
	const char name[12];
data/ncurses-6.2+20201114/progs/tput.c:226:6:  [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 *strings[1 + NUM_PARM];
data/ncurses-6.2+20201114/progs/tput.c:227:6:  [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 *p_is_s[NUM_PARM];
data/ncurses-6.2+20201114/progs/tput.c:301: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[BUFSIZ];
data/ncurses-6.2+20201114/progs/tput.c:370: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 *argvec[16];	/* command, 9 parms, null, & slop */
data/ncurses-6.2+20201114/progs/tset.c:150: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 temp[BUFSIZ];
data/ncurses-6.2+20201114/progs/tset.c:169: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 answer[256];
data/ncurses-6.2+20201114/progs/tset.c:230: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.
    const char string[8];
data/ncurses-6.2+20201114/progs/tset.c:577:12:  [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 ((fp = fopen("/etc/ttytype", "r")) != 0
data/ncurses-6.2+20201114/progs/tset.c:578: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).
	    || (fp = fopen("/etc/ttys", "r")) != 0) {
data/ncurses-6.2+20201114/progs/tset.c:579:6:  [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 buffer[BUFSIZ];
data/ncurses-6.2+20201114/progs/tty_settings.c:78: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).
	!get_tty_settings(open("/dev/tty", O_RDWR), tty_settings)) {
data/ncurses-6.2+20201114/test/blue.c:220:6:  [2] (buffer) wchar_t:
  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.
	    wchar_t values[2];
data/ncurses-6.2+20201114/test/blue.c:322:6:  [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 live[NSUITS + 1], *lp = live;
data/ncurses-6.2+20201114/test/blue.c:341: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[BUFSIZ];
data/ncurses-6.2+20201114/test/blue.c:485:19:  [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).
	srand((unsigned) atoi(argv[1]));
data/ncurses-6.2+20201114/test/bs.c:174: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 hits[2][BWIDTH][BDEPTH];
data/ncurses-6.2+20201114/test/bs.c:175: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 board[2][BWIDTH][BDEPTH];
data/ncurses-6.2+20201114/test/bs.c:438: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, docked[SHIPTYPES + 2], *cp = docked;
data/ncurses-6.2+20201114/test/cardfile.c:180: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 ((fp = fopen(fname, "r")) != 0) {
data/ncurses-6.2+20201114/test/cardfile.c:182: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 buffer[BUFSIZ];
data/ncurses-6.2+20201114/test/cardfile.c:208: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 ((fp = fopen(fname, "w")) != 0) {
data/ncurses-6.2+20201114/test/clip_printw.c:320: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 fmt[80];
data/ncurses-6.2+20201114/test/color_content.c:258:19:  [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).
	    if ((f_opt = atoi(optarg)) <= 0)
data/ncurses-6.2+20201114/test/color_content.c:265:19:  [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).
	    if ((l_opt = atoi(optarg)) <= 0)
data/ncurses-6.2+20201114/test/color_content.c:275:19:  [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).
	    if ((r_opt = atoi(optarg)) <= 0)
data/ncurses-6.2+20201114/test/color_name.h:89: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 temp[20];
data/ncurses-6.2+20201114/test/demo_altkeys.c:52: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 ((fp = fopen(MY_LOGFILE, "a")) != 0) {
data/ncurses-6.2+20201114/test/demo_altkeys.c:53: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 temp[256];
data/ncurses-6.2+20201114/test/demo_altkeys.c:100: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 temp[10];
data/ncurses-6.2+20201114/test/demo_defkey.c:50: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 ((fp = fopen(MY_LOGFILE, "a")) != 0) {
data/ncurses-6.2+20201114/test/demo_defkey.c:51: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 temp[256];
data/ncurses-6.2+20201114/test/demo_defkey.c:77: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 temp[10];
data/ncurses-6.2+20201114/test/demo_defkey.c:110: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 temp[80];
data/ncurses-6.2+20201114/test/demo_defkey.c:134: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 temp[80];
data/ncurses-6.2+20201114/test/demo_defkey.c:197:6:  [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 temp[BUFSIZ];
data/ncurses-6.2+20201114/test/demo_defkey.c:220: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 *fkeys[12];
data/ncurses-6.2+20201114/test/demo_defkey.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 name[10];
data/ncurses-6.2+20201114/test/demo_forms.c:103: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, "r");
data/ncurses-6.2+20201114/test/demo_forms.c:106: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 buffer[BUFSIZ];
data/ncurses-6.2+20201114/test/demo_forms.c:429: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 label[80];
data/ncurses-6.2+20201114/test/demo_forms.c:590:16:  [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).
	    j_value = atoi(optarg);
data/ncurses-6.2+20201114/test/demo_forms.c:596:16:  [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).
	    m_value = atoi(optarg);
data/ncurses-6.2+20201114/test/demo_forms.c:599:16:  [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).
	    o_value = atoi(optarg);
data/ncurses-6.2+20201114/test/demo_menus.c:113: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 empty[1];
data/ncurses-6.2+20201114/test/demo_menus.c:440:14:  [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, "r");
data/ncurses-6.2+20201114/test/demo_new_pair.c:198:5:  [2] (buffer) wchar_t:
  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.
    wchar_t wch[2];
data/ncurses-6.2+20201114/test/demo_new_pair.c:227:22:  [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).
    } else if ((ch = open("/dev/tty", O_WRONLY)) >= 0) {
data/ncurses-6.2+20201114/test/demo_panels.c:273: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 also[80];
data/ncurses-6.2+20201114/test/demo_panels.c:305: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 also[80];
data/ncurses-6.2+20201114/test/demo_panels.c:330: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 also[80];
data/ncurses-6.2+20201114/test/demo_panels.c:410:5:  [2] (buffer) wchar_t:
  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.
    wchar_t source[2];
data/ncurses-6.2+20201114/test/demo_panels.c:437:23:  [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.
    int num = ((const char *) panel_userptr(pan))[1];
data/ncurses-6.2+20201114/test/demo_panels.c:721: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 buffer[BUFSIZ];
data/ncurses-6.2+20201114/test/demo_panels.c:778: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).
	    log_in = fopen(optarg, "r");
data/ncurses-6.2+20201114/test/demo_panels.c:781: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).
	    log_out = fopen(optarg, "w");
data/ncurses-6.2+20201114/test/demo_tabs.c:70:19:  [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).
	    line_limit = atoi(optarg);
data/ncurses-6.2+20201114/test/demo_tabs.c:73: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).
	    curses_stops = atoi(optarg);
data/ncurses-6.2+20201114/test/demo_termcap.c:258: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 area[1024], *ap = area;
data/ncurses-6.2+20201114/test/demo_termcap.c:294: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 buffer[1024];
data/ncurses-6.2+20201114/test/demo_termcap.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 cap[3];
data/ncurses-6.2+20201114/test/demo_termcap.c:332: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 buffer[1024];
data/ncurses-6.2+20201114/test/demo_termcap.c:407: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 empty[1];
data/ncurses-6.2+20201114/test/demo_termcap.c:440: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 ((fp = fopen(input_name, "r")) == 0)
data/ncurses-6.2+20201114/test/demo_termcap.c:810:19:  [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).
	    if ((r_opt = atoi(optarg)) <= 0)
data/ncurses-6.2+20201114/test/demo_terminfo.c:267: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 cap[MAX_FORCE + 1];
data/ncurses-6.2+20201114/test/demo_terminfo.c:386:6:  [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 temp[80];
data/ncurses-6.2+20201114/test/demo_terminfo.c:433: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 empty[1];
data/ncurses-6.2+20201114/test/demo_terminfo.c:466: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 ((fp = fopen(input_name, "r")) == 0)
data/ncurses-6.2+20201114/test/demo_terminfo.c:839:19:  [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).
	    if ((r_opt = atoi(optarg)) <= 0)
data/ncurses-6.2+20201114/test/ditto.c:159: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 slave_name[1024];
data/ncurses-6.2+20201114/test/ditto.c:160: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_option[sizeof(slave_name) + 80];
data/ncurses-6.2+20201114/test/ditto.c:191: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).
    fp = fopen(path, "r+");
data/ncurses-6.2+20201114/test/dots.c:170: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).
	    m_option = atoi(optarg);
data/ncurses-6.2+20201114/test/dots.c:173: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).
	    r_option = atoi(optarg);
data/ncurses-6.2+20201114/test/dots.c:176: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).
	    s_option = atoi(optarg);
data/ncurses-6.2+20201114/test/dots_curses.c:151: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).
	    m_option = atoi(optarg);
data/ncurses-6.2+20201114/test/dots_curses.c:154: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).
	    r_option = atoi(optarg);
data/ncurses-6.2+20201114/test/dots_curses.c:157: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).
	    s_option = atoi(optarg);
data/ncurses-6.2+20201114/test/dots_mvcur.c:173: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).
	    m_option = atoi(optarg);
data/ncurses-6.2+20201114/test/dots_mvcur.c:176: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).
	    r_option = atoi(optarg);
data/ncurses-6.2+20201114/test/dots_mvcur.c:179: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).
	    s_option = atoi(optarg);
data/ncurses-6.2+20201114/test/dots_termcap.c:217: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 buffer[1024];
data/ncurses-6.2+20201114/test/dots_termcap.c:218: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 area[1024];
data/ncurses-6.2+20201114/test/dots_termcap.c:235: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).
	    m_option = atoi(optarg);
data/ncurses-6.2+20201114/test/dots_termcap.c:238: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).
	    r_option = atoi(optarg);
data/ncurses-6.2+20201114/test/dots_termcap.c:241: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).
	    s_option = atoi(optarg);
data/ncurses-6.2+20201114/test/dots_termcap.c:265:51:  [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.
	    *(my_caps[t].value) = tgetstr((NCURSES_CONST char *)
data/ncurses-6.2+20201114/test/dots_xcurses.c:146:5:  [2] (buffer) wchar_t:
  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.
    wchar_t wch[2];
data/ncurses-6.2+20201114/test/dots_xcurses.c:177: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).
	    m_option = atoi(optarg);
data/ncurses-6.2+20201114/test/dots_xcurses.c:180: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).
	    r_option = atoi(optarg);
data/ncurses-6.2+20201114/test/dots_xcurses.c:183: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).
	    s_option = atoi(optarg);
data/ncurses-6.2+20201114/test/dump_window.c:40: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 ((dumpfp = fopen(fn, "a")) != 0)
data/ncurses-6.2+20201114/test/edit_field.c:250: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 empty[1];
data/ncurses-6.2+20201114/test/extended_color.c:216: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 temp[80];
data/ncurses-6.2+20201114/test/filter.c:69:6:  [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 buffer[80];
data/ncurses-6.2+20201114/test/filter.c:329: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 buffer[80];
data/ncurses-6.2+20201114/test/foldkeys.c:58: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 ((fp = fopen(MY_LOGFILE, "a")) != 0) {
data/ncurses-6.2+20201114/test/foldkeys.c:59: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 temp[256];
data/ncurses-6.2+20201114/test/foldkeys.c:147: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 final[2];
data/ncurses-6.2+20201114/test/gdc.c:239:12:  [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).
	    ifp = fopen("/dev/null", "r");
data/ncurses-6.2+20201114/test/gdc.c:253:10:  [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).
	count = atoi(argv[optind++]);
data/ncurses-6.2+20201114/test/gdc.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 buf[40];
data/ncurses-6.2+20201114/test/hanoi.c:132: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 TileBuf[BUFSIZ];
data/ncurses-6.2+20201114/test/hanoi.c:274: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).
	    NTiles = atoi(optarg);
data/ncurses-6.2+20201114/test/hanoi.c:294: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).
	NTiles = atoi(argv[optind]);
data/ncurses-6.2+20201114/test/hashtest.c:193:19:  [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).
	    foot_lines = atoi(optarg);
data/ncurses-6.2+20201114/test/hashtest.c:196:19:  [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).
	    head_lines = atoi(optarg);
data/ncurses-6.2+20201114/test/hashtest.c:199:19:  [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).
	    test_loops = atoi(optarg);
data/ncurses-6.2+20201114/test/inch_wide.c:113: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 ((fp = fopen(argv[level], "r")) != 0) {
data/ncurses-6.2+20201114/test/inchs.c:123: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 ((fp = fopen(argv[level], "r")) != 0) {
data/ncurses-6.2+20201114/test/ins_wide.c:148:5:  [2] (buffer) wchar_t:
  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.
    wchar_t tmp_wchar[2];
data/ncurses-6.2+20201114/test/ins_wide.c:227:5:  [2] (buffer) wchar_t:
  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.
    wchar_t buffer[BUFSIZ];
data/ncurses-6.2+20201114/test/ins_wide.c:237: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 cmd[80];
data/ncurses-6.2+20201114/test/ins_wide.c:492:14:  [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_opt = atoi(optarg);
data/ncurses-6.2+20201114/test/inserts.c:149: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 buffer[BUFSIZ];
data/ncurses-6.2+20201114/test/inserts.c:162: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 cmd[80];
data/ncurses-6.2+20201114/test/inserts.c:421:14:  [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_opt = atoi(optarg);
data/ncurses-6.2+20201114/test/knight.c:935: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).
	    ch = atoi(optarg);
data/ncurses-6.2+20201114/test/linedata.h:58: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 ((linedata = fopen(name, "r")) == 0) {
data/ncurses-6.2+20201114/test/list_keys.c:99:6:  [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 buffer[10];
data/ncurses-6.2+20201114/test/list_keys.c:213: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 result[100];
data/ncurses-6.2+20201114/test/list_keys.c:214: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 buffer[sizeof(result) - 10];
data/ncurses-6.2+20201114/test/list_keys.c:479:31:  [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.
	    setupterm((NCURSES_CONST char *) argv[n], 1, &status);
data/ncurses-6.2+20201114/test/move_field.c:283:5:  [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(target, source, length * sizeof(FIELD *));
data/ncurses-6.2+20201114/test/movewindow.c:107: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 buffer[1024];
data/ncurses-6.2+20201114/test/ncurses.c:327:5:  [2] (buffer) wchar_t:
  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.
    wchar_t source[2];
data/ncurses-6.2+20201114/test/ncurses.c:511: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[80 + (5 * 10) + (32 * 15)];
data/ncurses-6.2+20201114/test/ncurses.c:821: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[BUFSIZ];
data/ncurses-6.2+20201114/test/ncurses.c:958: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[BUFSIZ];
data/ncurses-6.2+20201114/test/ncurses.c:974:10:  [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).
	delay = atoi(buf) * 100;
data/ncurses-6.2+20201114/test/ncurses.c:1076:5:  [2] (buffer) wchar_t:
  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.
    wchar_t wchar_buf[BUFSIZ];
data/ncurses-6.2+20201114/test/ncurses.c:1251: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 buffer[4096];
data/ncurses-6.2+20201114/test/ncurses.c:1252: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 parsed[4096];
data/ncurses-6.2+20201114/test/ncurses.c:1289: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 attr_test_string[MAX_ATTRSTRING + 1];
data/ncurses-6.2+20201114/test/ncurses.c:1754:8:  [2] (buffer) wchar_t:
  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 wchar_t wide_attr_test_string[MAX_ATTRSTRING + 1];
data/ncurses-6.2+20201114/test/ncurses.c:1836:5:  [2] (buffer) wchar_t:
  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.
    wchar_t blank[2];
data/ncurses-6.2+20201114/test/ncurses.c:1855:2:  [2] (buffer) wchar_t:
  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.
	wchar_t wch[CCHARW_MAX];
data/ncurses-6.2+20201114/test/ncurses.c:1895:6:  [2] (buffer) wchar_t:
  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.
	    wchar_t fill[2];
data/ncurses-6.2+20201114/test/ncurses.c:2140: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 temp[80];
data/ncurses-6.2+20201114/test/ncurses.c:2848: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 result[BUFSIZ];
data/ncurses-6.2+20201114/test/ncurses.c:2879:13:  [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(palette_file, "r");
data/ncurses-6.2+20201114/test/ncurses.c:2881:6:  [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 buffer[BUFSIZ];
data/ncurses-6.2+20201114/test/ncurses.c:2958:6:  [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 numeric[80];
data/ncurses-6.2+20201114/test/ncurses.c:3315: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[9];
data/ncurses-6.2+20201114/test/ncurses.c:3441:5:  [2] (buffer) wchar_t:
  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.
    wchar_t buf[SLKLEN + 1];
data/ncurses-6.2+20201114/test/ncurses.c:3645: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 tmp[80];
data/ncurses-6.2+20201114/test/ncurses.c:3967:5:  [2] (buffer) wchar_t:
  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.
    wchar_t codes[10];
data/ncurses-6.2+20201114/test/ncurses.c:4010:2:  [2] (buffer) wchar_t:
  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.
	wchar_t codes[10];
data/ncurses-6.2+20201114/test/ncurses.c:4011: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 tmp[80];
data/ncurses-6.2+20201114/test/ncurses.c:4295: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 temp[80];
data/ncurses-6.2+20201114/test/ncurses.c:4376: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 at_page[20];
data/ncurses-6.2+20201114/test/ncurses.c:4664: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[BUFSIZ];
data/ncurses-6.2+20201114/test/ncurses.c:4817:5:  [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(&ul, tmp, sizeof(pair));
data/ncurses-6.2+20201114/test/ncurses.c:4826:5:  [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(&lr, tmp, sizeof(pair));
data/ncurses-6.2+20201114/test/ncurses.c:4972:23:  [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).
	    } else if ((fp = fopen(DUMPFILE, "w")) == (FILE *) 0) {
data/ncurses-6.2+20201114/test/ncurses.c:4987: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).
	    if ((fp = fopen(DUMPFILE, "r")) == (FILE *) 0) {
data/ncurses-6.2+20201114/test/ncurses.c:5052: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(&lr, tmp, sizeof(pair));
data/ncurses-6.2+20201114/test/ncurses.c:7040: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 msg[80];
data/ncurses-6.2+20201114/test/ncurses.c:7936:19:  [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).
	    my_e_param = atoi(optarg);
data/ncurses-6.2+20201114/test/ncurses.c:7963:23:  [2] (integer) atol:
  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).
	    nap_msec = (int) atol(optarg);
data/ncurses-6.2+20201114/test/newdemo.c:15: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.
static CONST_MENUS char *AusMap[16] =
data/ncurses-6.2+20201114/test/newdemo.c:226: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 buffer[SIZEOF(messages) * 80];
data/ncurses-6.2+20201114/test/padview.c:80: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 temp[BUFSIZ];
data/ncurses-6.2+20201114/test/padview.c:138: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 ((fp = fopen(filename, "r")) == 0) {
data/ncurses-6.2+20201114/test/padview.c:206:2:  [2] (buffer) wchar_t:
  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.
	wchar_t wch[2];
data/ncurses-6.2+20201114/test/pair_content.c:244:19:  [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).
	    if ((f_opt = atoi(optarg)) <= 0)
data/ncurses-6.2+20201114/test/pair_content.c:251:19:  [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).
	    if ((l_opt = atoi(optarg)) <= 0)
data/ncurses-6.2+20201114/test/pair_content.c:261:19:  [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).
	    if ((r_opt = atoi(optarg)) <= 0)
data/ncurses-6.2+20201114/test/picsmap.c:441: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).
	    FILE *fp = fopen(filename, "r");
data/ncurses-6.2+20201114/test/picsmap.c:886: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(arg1, s, (size_t) cpp);
data/ncurses-6.2+20201114/test/picsmap.c:915: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[BUFSIZ];
data/ncurses-6.2+20201114/test/picsmap.c:993: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[BUFSIZ];
data/ncurses-6.2+20201114/test/picsmap.c:1125: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[BUFSIZ];
data/ncurses-6.2+20201114/test/picsmap.c:1126: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 arg1[BUFSIZ];
data/ncurses-6.2+20201114/test/picsmap.c:1127: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 arg2[BUFSIZ];
data/ncurses-6.2+20201114/test/picsmap.c:1128: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 arg3[BUFSIZ];
data/ncurses-6.2+20201114/test/picsmap.c:1278: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 buffer[BUFSIZ];
data/ncurses-6.2+20201114/test/picsmap.c:1279: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 dummy[BUFSIZ];
data/ncurses-6.2+20201114/test/picsmap.c:1539:3:  [2] (buffer) wchar_t:
  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.
		wchar_t wch[2];
data/ncurses-6.2+20201114/test/picsmap.c:1586: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 buffer[256];
data/ncurses-6.2+20201114/test/picsmap.c:1698: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 ((logfp = fopen(optarg, "a")) == 0)
data/ncurses-6.2+20201114/test/picsmap.c:1711: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).
	    slow_time = atoi(optarg);
data/ncurses-6.2+20201114/test/railroad.c:189: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 buffer[1024];
data/ncurses-6.2+20201114/test/railroad.c:190: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 area[1024], *ap = area;
data/ncurses-6.2+20201114/test/savescreen.c:62:5:  [2] (buffer) wchar_t:
  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.
    wchar_t my_wchar[CCHARW_MAX];
data/ncurses-6.2+20201114/test/savescreen.c:293:18:  [2] (buffer) wchar_t:
  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 const wchar_t mywc[2] =
data/ncurses-6.2+20201114/test/savescreen.c:481:13:  [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(fill_by, "r");
data/ncurses-6.2+20201114/test/sp_tinfo.c:166: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 tcapjunk[1024];
data/ncurses-6.2+20201114/test/sp_tinfo.c:179: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 temp[2];
data/ncurses-6.2+20201114/test/tclock.c:143: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 szChar[10];
data/ncurses-6.2+20201114/test/test.priv.h:814:6:  [2] (buffer) wchar_t:
  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.
	    wchar_t test_wch[CCHARW_MAX + 2]; \
data/ncurses-6.2+20201114/test/test_add_wchstr.c:94:2:  [2] (buffer) wchar_t:
  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.
	wchar_t have[2]; \
data/ncurses-6.2+20201114/test/test_add_wchstr.c:232:5:  [2] (buffer) wchar_t:
  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.
    wchar_t tmp_wchar[2];
data/ncurses-6.2+20201114/test/test_add_wchstr.c:311:5:  [2] (buffer) wchar_t:
  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.
    wchar_t buffer[BUFSIZ];
data/ncurses-6.2+20201114/test/test_add_wchstr.c:324: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 cmd[80];
data/ncurses-6.2+20201114/test/test_add_wchstr.c:579:14:  [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_opt = atoi(optarg);
data/ncurses-6.2+20201114/test/test_addchstr.c:220: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 buffer[BUFSIZ];
data/ncurses-6.2+20201114/test/test_addchstr.c:233: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 cmd[80];
data/ncurses-6.2+20201114/test/test_addchstr.c:498:14:  [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_opt = atoi(optarg);
data/ncurses-6.2+20201114/test/test_addstr.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 buffer[BUFSIZ];
data/ncurses-6.2+20201114/test/test_addstr.c:155: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 cmd[80];
data/ncurses-6.2+20201114/test/test_addstr.c:412:14:  [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_opt = atoi(optarg);
data/ncurses-6.2+20201114/test/test_addwstr.c:156:5:  [2] (buffer) wchar_t:
  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.
    wchar_t tmp_wchar[2];
data/ncurses-6.2+20201114/test/test_addwstr.c:235:5:  [2] (buffer) wchar_t:
  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.
    wchar_t buffer[BUFSIZ];
data/ncurses-6.2+20201114/test/test_addwstr.c:248: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 cmd[80];
data/ncurses-6.2+20201114/test/test_addwstr.c:504:14:  [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_opt = atoi(optarg);
data/ncurses-6.2+20201114/test/test_get_wstr.c:203: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 ((fp = fopen(argv[level], "r")) != 0) {
data/ncurses-6.2+20201114/test/test_getstr.c:181: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 buffer[MAX_COLS];
data/ncurses-6.2+20201114/test/test_getstr.c:211: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 ((fp = fopen(argv[level], "r")) != 0) {
data/ncurses-6.2+20201114/test/test_instr.c:82: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 buffer[MAX_COLS];
data/ncurses-6.2+20201114/test/test_instr.c:113: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 ((fp = fopen(argv[level], "r")) != 0) {
data/ncurses-6.2+20201114/test/test_inwstr.c:83:5:  [2] (buffer) wchar_t:
  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.
    wchar_t buffer[MAX_COLS];
data/ncurses-6.2+20201114/test/test_inwstr.c:113: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 ((fp = fopen(argv[level], "r")) != 0) {
data/ncurses-6.2+20201114/test/test_opaque.c:287: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 ((fp = fopen(argv[level], "r")) != 0) {
data/ncurses-6.2+20201114/test/test_sgr.c:217: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 *values[MAXSGR + MAXPAR];
data/ncurses-6.2+20201114/test/test_tparm.c:199:14:  [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).
	    r_opt = atoi(optarg);
data/ncurses-6.2+20201114/test/test_tparm.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.
	static char dummy[1];
data/ncurses-6.2+20201114/test/test_tparm.c:253:6:  [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 buffer[BUFSIZ];
data/ncurses-6.2+20201114/test/testcurs.c:164: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 buffer[80];
data/ncurses-6.2+20201114/test/testcurs.c:359: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 Buffer[80];
data/ncurses-6.2+20201114/test/testcurs.c:365: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 tc_buffer[4096];
data/ncurses-6.2+20201114/test/testcurs.c:366: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 tc_parsed[4096];
data/ncurses-6.2+20201114/test/testscanw.c:55: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).
	    move(atoi(argv[1]), 0);
data/ncurses-6.2+20201114/test/view.c:138: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 temp[BUFSIZ];
data/ncurses-6.2+20201114/test/view.c:251: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 ((fp = fopen(filename, "r")) == 0) {
data/ncurses-6.2+20201114/test/view.c:323:2:  [2] (buffer) wchar_t:
  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.
	wchar_t wch[2];
data/ncurses-6.2+20201114/test/worm.c:493:20:  [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).
	    if ((length = atoi(optarg)) < 2 || length > MAX_LENGTH) {
data/ncurses-6.2+20201114/test/worm.c:499:20:  [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).
	    if ((number = atoi(optarg)) < 1 || number > MAX_WORMS) {
data/ncurses-6.2+20201114/Ada95/gen/gen.c:215: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).
  if ((strlen(argv[0]) + strlen(__FILE__)) > 25)
data/ncurses-6.2+20201114/Ada95/gen/gen.c:215:26:  [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(argv[0]) + strlen(__FILE__)) > 25)
data/ncurses-6.2+20201114/c++/cursesf.h:803: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).
    regex = new char[1 + ::strlen(source)];
data/ncurses-6.2+20201114/c++/cursesp.cc:128:25:  [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 x = (maxx() - ::strlen(labelText)) / 2;
data/ncurses-6.2+20201114/c++/cursslk.cc:45: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).
  size_t need = 1 + ::strlen(text);
data/ncurses-6.2+20201114/c++/demo.cc:209: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).
    : NCursesFormField(1, static_cast<int>(::strlen(title)), row, col) {
data/ncurses-6.2+20201114/c++/demo.cc:552: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).
  const int len = ::strlen(titleText);
data/ncurses-6.2+20201114/form/frm_driver.c:4770: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).
      int vlen = (int)strlen(value);
data/ncurses-6.2+20201114/form/frm_driver.c:4936:18:  [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 given = strlen(source);
data/ncurses-6.2+20201114/form/frm_req_name.c:157: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).
  if (str != 0 && (i = strlen(str)) != 0)
data/ncurses-6.2+20201114/include/nc_string.h:67:43:  [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.
#define _nc_STRNCAT(d,s,m,n)	NCURSES_VOID strncat((d),(s),(n))
data/ncurses-6.2+20201114/include/nc_string.h:75:41:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
#define _nc_STRNCPY(d,s,n)	NCURSES_VOID strncpy((d),(s),(n))
data/ncurses-6.2+20201114/menu/m_item_new.c:131:40:  [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).
	  item->name.length = (unsigned short)strlen(name);
data/ncurses-6.2+20201114/menu/m_item_new.c:137: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).
	      item->description.length = (unsigned short)strlen(description);
data/ncurses-6.2+20201114/menu/m_item_new.c:204: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).
    l = (short)strlen(mark);
data/ncurses-6.2+20201114/menu/m_item_new.c:232:50:  [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).
	      menu->marklen = (short)((old_mark != 0) ? strlen(old_mark) : 0);
data/ncurses-6.2+20201114/menu/m_req_name.c:110: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).
  if (str != 0 && (i = strlen(str)) != 0)
data/ncurses-6.2+20201114/ncurses/base/lib_addstr.c:63: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).
	    n = (int) strlen(astr);
data/ncurses-6.2+20201114/ncurses/base/lib_addstr.c:235:16:  [1] (buffer) wcslen:
  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).
	    n = (int) wcslen(str);
data/ncurses-6.2+20201114/ncurses/base/lib_getch.c:349:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = (int) read(sp->_ifd, &c2, (size_t) 1);
data/ncurses-6.2+20201114/ncurses/base/lib_getch.c:499: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).
	for (bufp = buf + strlen(buf); bufp > buf; bufp--)
data/ncurses-6.2+20201114/ncurses/base/lib_insch.c:128: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(s) > 1) {
data/ncurses-6.2+20201114/ncurses/base/lib_insnstr.c:65:41:  [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 nn = (n > 0) ? (size_t) n : strlen(s);
data/ncurses-6.2+20201114/ncurses/base/lib_mouse.c:310: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).
	DosWrite(2, err, strlen(err), &rc);
data/ncurses-6.2+20201114/ncurses/base/lib_mouse.c:639: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).
		if (s && strlen(s) >= 3) {
data/ncurses-6.2+20201114/ncurses/base/lib_mouse.c:794:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    int i, res = read(M_FD(sp), &kbuf, 3);	/* Eat the prefix */
data/ncurses-6.2+20201114/ncurses/base/lib_mouse.c:1077:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	res = (int) read(
data/ncurses-6.2+20201114/ncurses/base/lib_mouse.c:1132:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	res = (int) read(
data/ncurses-6.2+20201114/ncurses/base/lib_mouse.c:1217:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	res = (int) read(
data/ncurses-6.2+20201114/ncurses/base/lib_screen.c:194:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    ch = fgetc(fp);
data/ncurses-6.2+20201114/ncurses/base/lib_screen.c:250: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).
		    if ((size_t) (next - source) == strlen(scr_attrs[n].name)) {
data/ncurses-6.2+20201114/ncurses/base/lib_screen.c:492:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int ch = fgetc(fp);
data/ncurses-6.2+20201114/ncurses/base/lib_screen.c:687: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).
		target += strlen(target);
data/ncurses-6.2+20201114/ncurses/base/lib_screen.c:694: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).
	    target += strlen(target);
data/ncurses-6.2+20201114/ncurses/base/lib_screen.c:721:15:  [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).
    target += strlen(target);
data/ncurses-6.2+20201114/ncurses/base/lib_screen.c:758: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).
	target += strlen(target);
data/ncurses-6.2+20201114/ncurses/base/lib_screen.c:771:15:  [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).
    target += strlen(target);
data/ncurses-6.2+20201114/ncurses/base/lib_slkset.c:87: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).
	need = mbrtowc(0, p, strlen(p), &state);
data/ncurses-6.2+20201114/ncurses/base/new_pair.c:111: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).
	    p += strlen(p);
data/ncurses-6.2+20201114/ncurses/base/new_pair.c:122: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).
       strlen(bigbuf), bigbuf));
data/ncurses-6.2+20201114/ncurses/base/safe_sprintf.c:65:15:  [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).
    fmt_len = strlen(fmt) + 1;
data/ncurses-6.2+20201114/ncurses/base/safe_sprintf.c:116:18:  [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).
		    fmt_len += strlen(fmt_arg);
data/ncurses-6.2+20201114/ncurses/base/safe_sprintf.c:123: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).
		    f = strlen(format);
data/ncurses-6.2+20201114/ncurses/base/safe_sprintf.c:161: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).
			    prec = (int) strlen(pval);
data/ncurses-6.2+20201114/ncurses/base/safe_sprintf.c:202: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).
	    len += (int) strlen(buffer);
data/ncurses-6.2+20201114/ncurses/base/vsscanf.c:175: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).
    strbuf._cnt = strlen(str);
data/ncurses-6.2+20201114/ncurses/base/vsscanf.c:212: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 len_fmt = strlen(format) + 32;
data/ncurses-6.2+20201114/ncurses/tinfo/access.c:124: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).
	    && strlen(path) < PATH_MAX) {
data/ncurses-6.2+20201114/ncurses/tinfo/alloc_entry.c:104: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).
    len = strlen(string) + 1;
data/ncurses-6.2+20201114/ncurses/tinfo/alloc_entry.c:201:17:  [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(tp->ext_Names[i]) + 1;
data/ncurses-6.2+20201114/ncurses/tinfo/alloc_entry.c:210:17:  [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).
		    offset += strlen(tp->ext_Names[i]) + 1;
data/ncurses-6.2+20201114/ncurses/tinfo/captoinfo.c:138:26:  [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 need = have + strlen(s) + 2;
data/ncurses-6.2+20201114/ncurses/tinfo/captoinfo.c:146: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).
    return d + strlen(d);
data/ncurses-6.2+20201114/ncurses/tinfo/captoinfo.c:553: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).
	    tst = strlen(buffer) - 1;
data/ncurses-6.2+20201114/ncurses/tinfo/captoinfo.c:640: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).
    padding = str + strlen(str) - 1;
data/ncurses-6.2+20201114/ncurses/tinfo/captoinfo.c:984: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).
	((int) strlen(my_string) - (4 * myfix)) < MIN_TC_FIXUPS) {
data/ncurses-6.2+20201114/ncurses/tinfo/captoinfo.c:1026: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).
	buf[strlen(buf) - 1] = '\0';
data/ncurses-6.2+20201114/ncurses/tinfo/comp_expand.c:68: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).
    size_t need = (2 + strlen(str)) * 4;
data/ncurses-6.2+20201114/ncurses/tinfo/comp_expand.c:108: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).
		    bufp += (int) strlen(buffer + bufp);
data/ncurses-6.2+20201114/ncurses/tinfo/comp_parse.c:81:15:  [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 len = strlen(src);
data/ncurses-6.2+20201114/ncurses/tinfo/comp_scan.c:134:18:  [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 len = strlen(bufptr);
data/ncurses-6.2+20201114/ncurses/tinfo/comp_scan.c:227: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).
		    used = strlen(bufptr);
data/ncurses-6.2+20201114/ncurses/tinfo/comp_scan.c:243:18:  [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 ((len = strlen(bufptr)) > 1) {
data/ncurses-6.2+20201114/ncurses/tinfo/comp_scan.c:596:26:  [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).
		after_list = tok_buf + strlen(tok_buf);
data/ncurses-6.2+20201114/ncurses/tinfo/db_iterator.c:64:25:  [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).
	char *last = my_blob + strlen(my_blob);
data/ncurses-6.2+20201114/ncurses/tinfo/db_iterator.c:84: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).
    else if (strlen(name) < PATH_MAX - sizeof(DBM_SUFFIX)) {
data/ncurses-6.2+20201114/ncurses/tinfo/db_iterator.c:341:22:  [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).
	    blobsize += 2 + strlen(values[j]);
data/ncurses-6.2+20201114/ncurses/tinfo/home_terminfo.c:58:18:  [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 want = (strlen(home) + sizeof(PRIVATE_INFO));
data/ncurses-6.2+20201114/ncurses/tinfo/lib_acs.c:204:18:  [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 length = strlen(acs_chars);
data/ncurses-6.2+20201114/ncurses/tinfo/lib_longname.c:59: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).
	for (ptr = SP_PARM->_ttytype + strlen(SP_PARM->_ttytype);
data/ncurses-6.2+20201114/ncurses/tinfo/lib_longname.c:96:26:  [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 (ptr = ttytype + strlen(ttytype);
data/ncurses-6.2+20201114/ncurses/tinfo/lib_print.c:64: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).
	onsize = strlen(switchon);
data/ncurses-6.2+20201114/ncurses/tinfo/lib_print.c:68: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).
	onsize = strlen(prtr_on);
data/ncurses-6.2+20201114/ncurses/tinfo/lib_print.c:69: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).
	offsize = strlen(prtr_off);
data/ncurses-6.2+20201114/ncurses/tinfo/lib_setup.c:533: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).
    if ((tmp = getenv("CC")) != 0 && strlen(tmp) == 1) {
data/ncurses-6.2+20201114/ncurses/tinfo/lib_setup.c:683: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(myname) > MAX_NAME_SIZE) {
data/ncurses-6.2+20201114/ncurses/tinfo/lib_termcap.c:382: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).
		    *area += strlen(*area) + 1;
data/ncurses-6.2+20201114/ncurses/tinfo/lib_tgoto.c:83: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).
	need += strlen(BC);
data/ncurses-6.2+20201114/ncurses/tinfo/lib_tgoto.c:172: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).
		used += strlen(result + used);
data/ncurses-6.2+20201114/ncurses/tinfo/lib_tgoto.c:187: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).
	    used += strlen(BC);
data/ncurses-6.2+20201114/ncurses/tinfo/lib_tparm.c:214: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).
    size_t s_len = (size_t) len + strlen(s) + strlen(fmt);
data/ncurses-6.2+20201114/ncurses/tinfo/lib_tparm.c:214: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).
    size_t s_len = (size_t) len + strlen(s) + strlen(fmt);
data/ncurses-6.2+20201114/ncurses/tinfo/lib_tparm.c:220:22:  [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).
    TPS(out_used) += strlen(TPS(out_buff) + TPS(out_used));
data/ncurses-6.2+20201114/ncurses/tinfo/lib_tparm.c:226:40:  [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 s_len = (size_t) len + 30 + strlen(fmt);
data/ncurses-6.2+20201114/ncurses/tinfo/lib_tparm.c:232:22:  [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).
    TPS(out_used) += strlen(TPS(out_buff) + TPS(out_used));
data/ncurses-6.2+20201114/ncurses/tinfo/lib_tparm.c:421:17:  [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 ((len2 = strlen(cp)) + 2 > TPS(fmt_size)) {
data/ncurses-6.2+20201114/ncurses/tinfo/lib_tparm.c:702: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 len2 = strlen(cp);
data/ncurses-6.2+20201114/ncurses/tinfo/lib_tparm.c:747:15:  [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).
		npush((int) strlen(spop()));
data/ncurses-6.2+20201114/ncurses/tinfo/make_hash.c:80: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 need = strlen(s) + 1;
data/ncurses-6.2+20201114/ncurses/tinfo/make_hash.c:230: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).
	    size_t want = 5 + strlen(typenames[n]);
data/ncurses-6.2+20201114/ncurses/tinfo/make_hash.c:337: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).
		    name_table[nn].ute_argc = (unsigned) strlen(list[3]);
data/ncurses-6.2+20201114/ncurses/tinfo/make_hash.c:364:18:  [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).
	    nxt = (int) strlen(name_table[n].ute_name) + 5;
data/ncurses-6.2+20201114/ncurses/tinfo/make_hash.c:390: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).
	    len += (int) strlen(name_table[n].ute_name) + 1;
data/ncurses-6.2+20201114/ncurses/tinfo/make_keys.c:103:12:  [1] (buffer) sscanf:
  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.
	scanned = sscanf(buffer, "%255s %255s", to, from);
data/ncurses-6.2+20201114/ncurses/tinfo/make_keys.c:108: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).
	    if (strlen(from) > maxlen)
data/ncurses-6.2+20201114/ncurses/tinfo/make_keys.c:109: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).
		maxlen = (unsigned) strlen(from);
data/ncurses-6.2+20201114/ncurses/tinfo/obsolete.c:69: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).
	size_t need = strlen(s);
data/ncurses-6.2+20201114/ncurses/tinfo/parse_entry.c:664:27:  [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 (src != 0 && off < strlen(src)) {
data/ncurses-6.2+20201114/ncurses/tinfo/parse_entry.c:676:30:  [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 (VALID_STRING(src) && strlen(src) == 1) {
data/ncurses-6.2+20201114/ncurses/tinfo/parse_entry.c:903: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).
		if (len == strlen(ko_xlate[n].from)
data/ncurses-6.2+20201114/ncurses/tinfo/read_entry.c:480:22:  [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).
		    base += (int) (strlen(ptr->Strings[i + STRCOUNT]) + 1);
data/ncurses-6.2+20201114/ncurses/tinfo/read_entry.c:589: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 size = strlen(path);
data/ncurses-6.2+20201114/ncurses/tinfo/read_entry.c:620: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).
	unsigned need = (unsigned) (LEAF_LEN + 3 + strlen(path) + strlen(name));
data/ncurses-6.2+20201114/ncurses/tinfo/read_entry.c:620:60:  [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).
	unsigned need = (unsigned) (LEAF_LEN + 3 + strlen(path) + strlen(name));
data/ncurses-6.2+20201114/ncurses/tinfo/read_entry.c:772: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).
	key.size = strlen(save);
data/ncurses-6.2+20201114/ncurses/tinfo/read_entry.c:851: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(name) == 0
data/ncurses-6.2+20201114/ncurses/tinfo/read_termcap.c:159:17:  [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).
    topreclen = strlen(ent);
data/ncurses-6.2+20201114/ncurses/tinfo/read_termcap.c:368:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			    n = (int) read(fd, buf, sizeof(buf));
data/ncurses-6.2+20201114/ncurses/tinfo/read_termcap.c:823: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(home) < sizeof(temp) - 10) {	/* setup path */
data/ncurses-6.2+20201114/ncurses/tinfo/read_termcap.c:977: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(tn) == 0
data/ncurses-6.2+20201114/ncurses/tinfo/read_termcap.c:1070: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).
	    && (strlen(h) + sizeof(PRIVATE_CAP)) < PATH_MAX) {
data/ncurses-6.2+20201114/ncurses/tinfo/strings.c:51: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 len1 = strlen(haystack);
data/ncurses-6.2+20201114/ncurses/tinfo/strings.c:52: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 len2 = strlen(needle);
data/ncurses-6.2+20201114/ncurses/tinfo/strings.c:111:15:  [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 len = strlen(src);
data/ncurses-6.2+20201114/ncurses/tinfo/strings.c:132:15:  [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 len = strlen(src);
data/ncurses-6.2+20201114/ncurses/tinfo/tinfo_driver.c:1112:18:  [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 length = strlen(acs_chars);
data/ncurses-6.2+20201114/ncurses/tinfo/tinfo_driver.c:1294:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    n = (int) read(sp->_ifd, &c2, (size_t) 1);
data/ncurses-6.2+20201114/ncurses/tinfo/trim_sgr0.c:110: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 len_s = strlen(s);
data/ncurses-6.2+20201114/ncurses/tinfo/trim_sgr0.c:111: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 len_a = strlen(attr);
data/ncurses-6.2+20201114/ncurses/tinfo/trim_sgr0.c:119:27:  [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).
		_nc_STRCPY(s + n, attr, strlen(s) + 1);
data/ncurses-6.2+20201114/ncurses/tinfo/trim_sgr0.c:149: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).
	len_a = strlen(a);
data/ncurses-6.2+20201114/ncurses/tinfo/trim_sgr0.c:150: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).
	len_b = strlen(b);
data/ncurses-6.2+20201114/ncurses/tinfo/trim_sgr0.c:269: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).
		j = strlen(off);
data/ncurses-6.2+20201114/ncurses/tinfo/trim_sgr0.c:270: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).
		k = strlen(exit_alt_charset_mode);
data/ncurses-6.2+20201114/ncurses/tinfo/trim_sgr0.c:288: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).
		    && off[strlen(off) - 1] == 'm') {
data/ncurses-6.2+20201114/ncurses/tinfo/trim_sgr0.c:307: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).
		j = strlen(off);
data/ncurses-6.2+20201114/ncurses/tinfo/write_entry.c:143: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(src) + 1 <= limit) {
data/ncurses-6.2+20201114/ncurses/tinfo/write_entry.c:148: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(top) + strlen(src) + 2 <= limit) {
data/ncurses-6.2+20201114/ncurses/tinfo/write_entry.c:148: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).
	if (strlen(top) + strlen(src) + 2 <= limit) {
data/ncurses-6.2+20201114/ncurses/tinfo/write_entry.c:156: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).
	size_t have = strlen(dst);
data/ncurses-6.2+20201114/ncurses/tinfo/write_entry.c:157: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).
	size_t need = strlen(suffix);
data/ncurses-6.2+20201114/ncurses/tinfo/write_entry.c:308: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).
    size_t name_size = strlen(term_names);
data/ncurses-6.2+20201114/ncurses/tinfo/write_entry.c:367:17:  [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).
	    key.size = strlen(name_list);
data/ncurses-6.2+20201114/ncurses/tinfo/write_entry.c:388: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).
		key.size = strlen(ptr);
data/ncurses-6.2+20201114/ncurses/tinfo/write_entry.c:401: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(first_name) >= limit2) {
data/ncurses-6.2+20201114/ncurses/tinfo/write_entry.c:459: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(ptr) > sizeof(linkname) - (2 + LEAF_LEN)) {
data/ncurses-6.2+20201114/ncurses/tinfo/write_entry.c:564:53:  [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 WRITE_STRING(str) (Write(str, sizeof(char), strlen(str) + 1) == strlen(str) + 1)
data/ncurses-6.2+20201114/ncurses/tinfo/write_entry.c:564:73:  [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 WRITE_STRING(str) (Write(str, sizeof(char), strlen(str) + 1) == strlen(str) + 1)
data/ncurses-6.2+20201114/ncurses/tinfo/write_entry.c:579: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).
	    nextfree += (int) strlen(Strings[i]) + 1;
data/ncurses-6.2+20201114/ncurses/tinfo/write_entry.c:735:15:  [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).
    namelen = strlen(namelist) + 1;
data/ncurses-6.2+20201114/ncurses/trace/lib_trace.c:115: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).
		assert(strlen(MyPath) <= size);
data/ncurses-6.2+20201114/ncurses/trace/lib_trace.c:186: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(fmt) >= sizeof(Called) - 1) {
data/ncurses-6.2+20201114/ncurses/trace/lib_tracebits.c:101: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).
    if (buf[strlen(buf) - 2] == ',')
data/ncurses-6.2+20201114/ncurses/trace/lib_tracebits.c:102: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).
	buf[strlen(buf) - 2] = '\0';
data/ncurses-6.2+20201114/ncurses/trace/lib_tracedmp.c:125: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).
		_tracef("%*s[%2d]%*s='%s'", (int) strlen(name),
data/ncurses-6.2+20201114/ncurses/trace/lib_tracedmp.c:153:40:  [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).
	    _tracef("%*s[%2d]%*s='%s'", (int) strlen(name),
data/ncurses-6.2+20201114/ncurses/trace/lib_tracedmp.c:173: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).
		_tracef("%*s%d[%2d]%*s='%s'", (int) strlen(name) -
data/ncurses-6.2+20201114/ncurses/trace/lib_tracemse.c:53: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).
	size_t n = strlen(my_buffer); \
data/ncurses-6.2+20201114/ncurses/trace/lib_tracemse.c:111: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).
    if (my_buffer[strlen(my_buffer) - 1] == ' ')
data/ncurses-6.2+20201114/ncurses/trace/lib_tracemse.c:112: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).
	my_buffer[strlen(my_buffer) - 2] = '\0';
data/ncurses-6.2+20201114/ncurses/trace/trace_buf.c:109: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).
	size_t have = strlen(buffer);
data/ncurses-6.2+20201114/ncurses/trace/trace_buf.c:110: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).
	size_t need = strlen(value) + have;
data/ncurses-6.2+20201114/ncurses/trace/varargs.c:172: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).
			MyLength += strlen(param) + 2;
data/ncurses-6.2+20201114/ncurses/trace/varargs.c:175: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).
			    _nc_SPRINTF(MyBuffer + strlen(MyBuffer),
data/ncurses-6.2+20201114/ncurses/trace/varargs.c:176: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).
					_nc_SLIMIT(MyLength - strlen(MyBuffer))
data/ncurses-6.2+20201114/ncurses/trace/visbuf.c:101: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).
	tp += strlen(tp);
data/ncurses-6.2+20201114/ncurses/trace/visbuf.c:120: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).
	len = (int) strlen(buf);
data/ncurses-6.2+20201114/ncurses/trace/visbuf.c:201:14:  [1] (buffer) wcslen:
  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).
	len = (int) wcslen(buf);
data/ncurses-6.2+20201114/ncurses/trace/visbuf.c:223: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).
		j = (int) strlen(temp);
data/ncurses-6.2+20201114/ncurses/tty/hardscroll.c:313: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).
	    _nc_SPRINTF(buf + strlen(buf),
data/ncurses-6.2+20201114/ncurses/tty/hardscroll.c:314:22:  [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).
			_nc_SLIMIT(want - strlen(buf))
data/ncurses-6.2+20201114/ncurses/tty/lib_mvcur.c:520: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).
    size_t need = (size_t) repeat * strlen(src);
data/ncurses-6.2+20201114/ncurses/tty/lib_mvcur.c:1146: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).
	xmits += strlen(string);
data/ncurses-6.2+20201114/ncurses/tty/tty_update.c:155:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int got = read(0, s, ask);
data/ncurses-6.2+20201114/ncurses/widechar/charable.c:57: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(temp) == 1)
data/ncurses-6.2+20201114/ncurses/widechar/lib_cchar.c:65:24:  [1] (buffer) wcslen:
  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).
	|| ((len = (unsigned) wcslen(wch)) > 1 && _nc_wacs_width(wch[0]) < 0)
data/ncurses-6.2+20201114/ncurses/widechar/lib_ins_wch.c:114:16:  [1] (buffer) wcslen:
  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).
	    n = (int) wcslen(wstr);
data/ncurses-6.2+20201114/ncurses/win32con/win32_driver.c:548: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).
	size_t n = strlen(tname + 1);
data/ncurses-6.2+20201114/ncurses/win32con/win_driver.c:636: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).
	size_t n = strlen(tname + 1);
data/ncurses-6.2+20201114/progs/dump_entry.c:141: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).
	strncpy_DYN(dst, src, strlen(src));
data/ncurses-6.2+20201114/progs/dump_entry.c:525: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 need = strlen(src);
data/ncurses-6.2+20201114/progs/dump_entry.c:526: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 size = strlen(fill);
data/ncurses-6.2+20201114/progs/dump_entry.c:573:22:  [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 gaps = (int) strlen(separator);
data/ncurses-6.2+20201114/progs/dump_entry.c:593: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).
	int last = (int) strlen(fill);
data/ncurses-6.2+20201114/progs/dump_entry.c:656:18:  [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).
	column += (int) strlen(src);
data/ncurses-6.2+20201114/progs/dump_entry.c:663:22:  [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 need = (int) strlen(src);
data/ncurses-6.2+20201114/progs/dump_entry.c:670:22:  [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 nlen = (int) strlen(name);
data/ncurses-6.2+20201114/progs/dump_entry.c:671:22:  [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 elen = (int) strlen(eqls);
data/ncurses-6.2+20201114/progs/dump_entry.c:672:22:  [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 vlen = (int) strlen(value);
data/ncurses-6.2+20201114/progs/dump_entry.c:700: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).
    const char *const t = src + strlen(src);
data/ncurses-6.2+20201114/progs/dump_entry.c:710: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).
#define termcap_length(src) strlen(src)
data/ncurses-6.2+20201114/progs/dump_entry.c:730: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 need = strlen(leading);
data/ncurses-6.2+20201114/progs/dump_entry.c:753: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).
    int len = (int) strlen(src);
data/ncurses-6.2+20201114/progs/dump_entry.c:959: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).
	assert(strlen(name) < sizeof(buffer) - EXTRA_CAP);
data/ncurses-6.2+20201114/progs/dump_entry.c:983: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).
	assert(strlen(name) < sizeof(buffer) - EXTRA_CAP);
data/ncurses-6.2+20201114/progs/dump_entry.c:999: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).
		nn = strlen(buffer);
data/ncurses-6.2+20201114/progs/dump_entry.c:1015: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).
		  + strlen(tterm->term_names) + 1);
data/ncurses-6.2+20201114/progs/dump_entry.c:1036: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).
	assert(strlen(name) < sizeof(buffer) - EXTRA_CAP);
data/ncurses-6.2+20201114/progs/dump_entry.c:1050: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).
	if (outform == F_TERMCAP && (strlen(name) > 2))
data/ncurses-6.2+20201114/progs/dump_entry.c:1130:25:  [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 need = 3 + (int) strlen(name);
data/ncurses-6.2+20201114/progs/dump_entry.c:1154:18:  [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).
			need -= (int) strlen(name);
data/ncurses-6.2+20201114/progs/dump_entry.c:1163: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).
		len += (int) strlen(capability) + 1;
data/ncurses-6.2+20201114/progs/dump_entry.c:1178: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).
		len += (int) strlen(capability) + 1;
data/ncurses-6.2+20201114/progs/dump_entry.c:1230: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 have = strlen(buffer);
data/ncurses-6.2+20201114/progs/dump_entry.c:1231: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 next = strlen(tmp);
data/ncurses-6.2+20201114/progs/dump_entry.c:1357: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).
	    target -= (int) (strlen(cap) + 5);
data/ncurses-6.2+20201114/progs/dump_entry.c:1383: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).
	    target -= (int) (strlen(cap) + 5);
data/ncurses-6.2+20201114/progs/dump_entry.c:1575: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).
		    if (strlen(name) <= 2) {
data/ncurses-6.2+20201114/progs/infocmp.c:791:17:  [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 tlen = strlen(ap->from);
data/ncurses-6.2+20201114/progs/infocmp.c:806: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).
	dst[strlen(dst) - 1] = '\0';
data/ncurses-6.2+20201114/progs/infocmp.c:844: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).
		len = strlen(cp);
data/ncurses-6.2+20201114/progs/infocmp.c:875: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).
		len = strlen(ap->from);
data/ncurses-6.2+20201114/progs/infocmp.c:962: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).
		len = strlen(buf2);
data/ncurses-6.2+20201114/progs/infocmp.c:973: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).
	    len = strlen(buf2);
data/ncurses-6.2+20201114/progs/infocmp.c:978: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).
		len = strlen(buf2);
data/ncurses-6.2+20201114/progs/infocmp.c:1267: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).
	need = (strlen(entries->tterm.term_names)
data/ncurses-6.2+20201114/progs/infocmp.c:1268: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(type)
data/ncurses-6.2+20201114/progs/infocmp.c:1269: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(fmt));
data/ncurses-6.2+20201114/progs/progs.priv.h:69:25:  [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 NAMLEN(dirent) strlen((dirent)->d_name)
data/ncurses-6.2+20201114/progs/reset_cmd.c:346: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_backspace) == 1) {
data/ncurses-6.2+20201114/progs/tabs.c:90: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).
    int *result = typeCalloc(int, strlen(tab_list) + (unsigned) max_cols);
data/ncurses-6.2+20201114/progs/tabs.c:244:15:  [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 len = strlen(source);
data/ncurses-6.2+20201114/progs/tabs.c:268: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 need = 1 + strlen(copied);
data/ncurses-6.2+20201114/progs/tabs.c:275: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).
	need += strlen(comma);
data/ncurses-6.2+20201114/progs/tabs.c:277: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).
	    need += strlen(*append);
data/ncurses-6.2+20201114/progs/tabs.c:465: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).
		    option += ((int) strlen(option)) - 1;
data/ncurses-6.2+20201114/progs/tic.c:242: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).
	    if (strlen(result) < strlen(s))
data/ncurses-6.2+20201114/progs/tic.c:242:27:  [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(result) < strlen(s))
data/ncurses-6.2+20201114/progs/tic.c:243:25:  [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).
		_nc_STRCPY(s, result, strlen(s) + 1);
data/ncurses-6.2+20201114/progs/tic.c:379: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).
	    len = strlen(dst);
data/ncurses-6.2+20201114/progs/tic.c:395:22:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	int oldmask = (int) umask(077);
data/ncurses-6.2+20201114/progs/tic.c:399:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask((mode_t) oldmask);
data/ncurses-6.2+20201114/progs/tic.c:426:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    ch = fgetc(source);
data/ncurses-6.2+20201114/progs/tic.c:577: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 need = strlen(nominal) + sizeof(suffix);
data/ncurses-6.2+20201114/progs/tic.c:1029:17:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			    int ch = fgetc(tmp_fp);
data/ncurses-6.2+20201114/progs/tic.c:1056:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while ((c = fgetc(tmp_fp)) != EOF) {
data/ncurses-6.2+20201114/progs/tic.c:1175: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).
	assert(strlen(missing) <= strlen(boxes));
data/ncurses-6.2+20201114/progs/tic.c:1175: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).
	assert(strlen(missing) <= strlen(boxes));
data/ncurses-6.2+20201114/progs/tic.c:1299: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(string) == 1) {
data/ncurses-6.2+20201114/progs/tic.c:1365:18:  [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 (skip[j] || strlen(list[j]) == 1)
data/ncurses-6.2+20201114/progs/tic.c:1372: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(list[j]) < suffix) {
data/ncurses-6.2+20201114/progs/tic.c:1505: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).
	if (PRESENT(cursor_up) && strlen(cursor_up) > 1)
data/ncurses-6.2+20201114/progs/tic.c:1507: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).
	if (PRESENT(cursor_right) && strlen(cursor_right) > 1)
data/ncurses-6.2+20201114/progs/tic.c:1548: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).
	assert(strlen(final) <= MAX_KP);
data/ncurses-6.2+20201114/progs/tic.c:1583: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).
		assert(strlen(show) < (MAX_KP * 4));
data/ncurses-6.2+20201114/progs/tic.c:2194: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).
	next += strlen(next) + 1;
data/ncurses-6.2+20201114/progs/tic.c:2755: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 size = strlen(test);
data/ncurses-6.2+20201114/progs/toe.c:237: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 size = strlen(src);
data/ncurses-6.2+20201114/progs/toe.c:407:30:  [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).
		cwd_len = NAMLEN(subdir) + strlen(eargv[i]) + 3;
data/ncurses-6.2+20201114/progs/transform.c:73: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 len_a = strlen(a);
data/ncurses-6.2+20201114/progs/transform.c:74: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 len_b = strlen(b);
data/ncurses-6.2+20201114/progs/tset.c:151:18:  [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 len = strlen(_nc_progname) + 2;
data/ncurses-6.2+20201114/progs/tset.c:159:57:  [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).
    _nc_STRNCAT(temp, msg, sizeof(temp), sizeof(temp) - strlen(temp) - 2);
data/ncurses-6.2+20201114/progs/tset.c:711: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).
	&& ((len = (int) strlen(leaf = _nc_basename(var))) >= 3)
data/ncurses-6.2+20201114/test/blue.c:333: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).
	    if (strlen(live) == 1) {
data/ncurses-6.2+20201114/test/blue.c:350: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).
		    move(PROMPTROW, (int) strlen(buf));
data/ncurses-6.2+20201114/test/bs.c:1152: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).
    j = 18 + (int) strlen(your_name);
data/ncurses-6.2+20201114/test/cardfile.c:91: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).
    size_t n = strlen(buffer);
data/ncurses-6.2+20201114/test/cardfile.c:132:18:  [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 ((total = strlen(content)) != 0) {
data/ncurses-6.2+20201114/test/cardfile.c:135: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).
	if (card->content != 0 && (offset = strlen(card->content)) != 0) {
data/ncurses-6.2+20201114/test/demo_altkeys.c:107: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 need = strlen(value) + 2;
data/ncurses-6.2+20201114/test/demo_defkey.c:115:15:  [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).
		    need += strlen(temp);
data/ncurses-6.2+20201114/test/demo_forms.c:65: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 have = strlen(value);
data/ncurses-6.2+20201114/test/demo_forms.c:74: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).
    int result = (int) strlen(value);
data/ncurses-6.2+20201114/test/demo_forms.c:117: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 need = strlen(buffer) + 2 + strlen(prior);
data/ncurses-6.2+20201114/test/demo_forms.c:117: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).
		    size_t need = strlen(buffer) + 2 + strlen(prior);
data/ncurses-6.2+20201114/test/demo_forms.c:153: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).
    FIELD *f = new_field(1, (int) strlen(label), frow, fcol, 0, 0);
data/ncurses-6.2+20201114/test/demo_menus.c:561: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).
	    need += strlen(t_tbl[n].name) + 2;
data/ncurses-6.2+20201114/test/demo_menus.c:577: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).
    if (buf[strlen(buf) - 2] == ',')
data/ncurses-6.2+20201114/test/demo_menus.c:578: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).
	buf[strlen(buf) - 2] = '\0';
data/ncurses-6.2+20201114/test/demo_panels.c:649: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).
	    length = (int) strlen(buffer);
data/ncurses-6.2+20201114/test/demo_panels.c:730: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).
	int limit = (int) strlen(buffer);
data/ncurses-6.2+20201114/test/demo_termcap.c:110: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 need = strlen(e_opt) + 2 + (size_t) (p - q);
data/ncurses-6.2+20201114/test/demo_termcap.c:324: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(cap) == 2)
data/ncurses-6.2+20201114/test/demo_termcap.c:707: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 chunk = strlen(list[count]) + 1;
data/ncurses-6.2+20201114/test/demo_terminfo.c:101: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 need = strlen(e_opt) + 2 + (size_t) (p - q);
data/ncurses-6.2+20201114/test/demo_terminfo.c:737: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 chunk = strlen(list[count]) + 1;
data/ncurses-6.2+20201114/test/ditto.c:167: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(slave_name) > sizeof(slave_name) - 1)
data/ncurses-6.2+20201114/test/dots.c:156:17:  [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).
	    need = 6 + strlen(optarg);
data/ncurses-6.2+20201114/test/dots_curses.c:135:17:  [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).
	    need = 6 + strlen(optarg);
data/ncurses-6.2+20201114/test/dots_mvcur.c:159:17:  [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).
	    need = 6 + strlen(optarg);
data/ncurses-6.2+20201114/test/dots_termcap.c:226:17:  [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).
	    need = 6 + strlen(optarg);
data/ncurses-6.2+20201114/test/dots_xcurses.c:161:17:  [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).
	    need = 6 + strlen(optarg);
data/ncurses-6.2+20201114/test/dup_field.c:97: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).
	need = 5 + strlen(code) + strlen(name);
data/ncurses-6.2+20201114/test/dup_field.c:97: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).
	need = 5 + strlen(code) + strlen(name);
data/ncurses-6.2+20201114/test/dup_field.c:120: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).
    FIELD *f = new_field(1, (int) strlen(label), frow, fcol, 0, 0);
data/ncurses-6.2+20201114/test/edit_field.c:194: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).
	need = 5 + strlen(code) + strlen(name);
data/ncurses-6.2+20201114/test/edit_field.c:194: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).
	need = 5 + strlen(code) + strlen(name);
data/ncurses-6.2+20201114/test/edit_field.c:269:32:  [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).
    set_buffer_length(f, (int) strlen(value));
data/ncurses-6.2+20201114/test/filter.c:90: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).
	    margin = (int) strlen(buffer) - skip;
data/ncurses-6.2+20201114/test/foldkeys.c:157:17:  [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).
	    && (need = strlen(info[j].value)) != 0
data/ncurses-6.2+20201114/test/inch_wide.c:114:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((j = fgetc(fp)) != EOF) {
data/ncurses-6.2+20201114/test/inchs.c:124:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((j = fgetc(fp)) != EOF) {
data/ncurses-6.2+20201114/test/linedata.h:68:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	result = fgetc(linedata);
data/ncurses-6.2+20201114/test/list_keys.c:150: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).
	    width += (int) strlen(buffer);
data/ncurses-6.2+20201114/test/list_keys.c:229: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(name) > (sizeof(result) - 3)) {
data/ncurses-6.2+20201114/test/list_keys.c:336: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).
    widths0 = (int) strlen(name);
data/ncurses-6.2+20201114/test/list_keys.c:338:18:  [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).
	widths1 = (int) strlen(modifier);
data/ncurses-6.2+20201114/test/list_keys.c:342: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).
	check = (int) strlen(termname());
data/ncurses-6.2+20201114/test/list_keys.c:349: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).
	    check = (int) strlen(label);
data/ncurses-6.2+20201114/test/list_keys.c:358: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).
		    check = (int) strlen(modified_key(Name(j)));
data/ncurses-6.2+20201114/test/move_field.c:106: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).
	need = 5 + strlen(code) + strlen(name);
data/ncurses-6.2+20201114/test/move_field.c:106: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).
	need = 5 + strlen(code) + strlen(name);
data/ncurses-6.2+20201114/test/move_field.c:124: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).
    FIELD *f = new_field(1, (int) strlen(label), frow, fcol, 0, 0);
data/ncurses-6.2+20201114/test/movewindow.c:670:22:  [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 need = (21 + strlen(help[n].msg));
data/ncurses-6.2+20201114/test/ncurses.c:237:15:  [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).
    x = (int) strlen(buffer);
data/ncurses-6.2+20201114/test/ncurses.c:240: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).
	if (x > (int) strlen(buffer))
data/ncurses-6.2+20201114/test/ncurses.c:241: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).
	    x = (int) strlen(buffer);
data/ncurses-6.2+20201114/test/ncurses.c:278: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).
	    } else if ((int) strlen(buffer) < limit) {
data/ncurses-6.2+20201114/test/ncurses.c:280:18:  [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 (j = (int) strlen(buffer) + 1; j > x; --j) {
data/ncurses-6.2+20201114/test/ncurses.c:373:15:  [1] (buffer) wcslen:
  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).
    x = (int) wcslen(buffer);
data/ncurses-6.2+20201114/test/ncurses.c:375:16:  [1] (buffer) wcslen:
  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 (x > (int) wcslen(buffer))
data/ncurses-6.2+20201114/test/ncurses.c:376:16:  [1] (buffer) wcslen:
  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).
	    x = (int) wcslen(buffer);
data/ncurses-6.2+20201114/test/ncurses.c:450:23:  [1] (buffer) wcslen:
  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).
	    } else if ((int) wcslen(buffer) < limit) {
data/ncurses-6.2+20201114/test/ncurses.c:452:18:  [1] (buffer) wcslen:
  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 (j = (int) wcslen(buffer) + 1; j > x; --j) {
data/ncurses-6.2+20201114/test/ncurses.c:575: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).
    if (buf[strlen(buf) - 1] == ' ')
data/ncurses-6.2+20201114/test/ncurses.c:576: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).
	buf[strlen(buf) - 2] = '\0';
data/ncurses-6.2+20201114/test/ncurses.c:863: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) strlen(buf), buf,
data/ncurses-6.2+20201114/test/ncurses.c:1129:14:  [1] (buffer) wcslen:
  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) wcslen(wchar_buf), temp);
data/ncurses-6.2+20201114/test/ncurses.c:1133:14:  [1] (buffer) wcslen:
  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) wcslen(wchar_buf));
data/ncurses-6.2+20201114/test/ncurses.c:2148: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).
	    if ((int) strlen(temp) >= width) {
data/ncurses-6.2+20201114/test/ncurses.c:2859:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    got = (int) read(0, result, sizeof(result) - 1);
data/ncurses-6.2+20201114/test/ncurses.c:3509:17:  [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 used = strlen(temp);
data/ncurses-6.2+20201114/test/ncurses.c:4421: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).
		size_t len = strlen(at_page);
data/ncurses-6.2+20201114/test/ncurses.c:4431: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).
		size_t len = strlen(at_page);
data/ncurses-6.2+20201114/test/ncurses.c:4689:32:  [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).
	addstr((COLS < (x + 3 + (int) strlen(buf))) ? "\n" : (n ? ", " : ""));
data/ncurses-6.2+20201114/test/ncurses.c:6228: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).
	    need += strlen(t_tbl[n].name) + 2;
data/ncurses-6.2+20201114/test/ncurses.c:6244: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).
    if (buf[strlen(buf) - 2] == ',')
data/ncurses-6.2+20201114/test/ncurses.c:6245: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).
	buf[strlen(buf) - 2] = '\0';
data/ncurses-6.2+20201114/test/ncurses.c:6375: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).
    FIELD *f = new_field(1, (int) strlen(label), frow, fcol, 0, 0);
data/ncurses-6.2+20201114/test/ncurses.c:6435:26:  [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 have = (source ? strlen(source) : 0) + 1;
data/ncurses-6.2+20201114/test/ncurses.c:7816:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    if (read(fileno(stdin), &ch, (size_t) 1) <= 0) {
data/ncurses-6.2+20201114/test/newdemo.c:306: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).
	    while ((int) strlen(buffer) < w) {
data/ncurses-6.2+20201114/test/padview.c:91:22:  [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).
		"view %.*s", (int) strlen(tag), tag);
data/ncurses-6.2+20201114/test/padview.c:92:15:  [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 = (int) strlen(temp);
data/ncurses-6.2+20201114/test/padview.c:98: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).
    if ((i = (int) strlen(temp)) != 0) {
data/ncurses-6.2+20201114/test/padview.c:183: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).
    width = (int) strlen(my_vec[0]);
data/ncurses-6.2+20201114/test/padview.c:205: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).
	char *last = my_vec[k] + (int) strlen(my_vec[k]);
data/ncurses-6.2+20201114/test/picsmap.c:558: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 last = strlen(filename);
data/ncurses-6.2+20201114/test/picsmap.c:559: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 need = (strlen(data_dir) + 20 + last);
data/ncurses-6.2+20201114/test/picsmap.c:576: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).
	    s += strlen(s);
data/ncurses-6.2+20201114/test/picsmap.c:607: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).
	    s += strlen(s);
data/ncurses-6.2+20201114/test/picsmap.c:610: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).
		int len = (int) strlen(filename);
data/ncurses-6.2+20201114/test/picsmap.c:795: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).
    int limit = (int) strlen(source);
data/ncurses-6.2+20201114/test/picsmap.c:883: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).
	size_t have = strlen(source);
data/ncurses-6.2+20201114/test/picsmap.c:929: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(t = data[n]) >= sizeof(buf) - 1)
data/ncurses-6.2+20201114/test/picsmap.c:942: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).
	t = s + strlen(s);
data/ncurses-6.2+20201114/test/picsmap.c:1012: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(s = data[n]) >= sizeof(buf) - 1)
data/ncurses-6.2+20201114/test/picsmap.c:1137: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(s = data[n]) >= sizeof(buf) - 1)
data/ncurses-6.2+20201114/test/picsmap.c:1187:17:  [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).
		switch ((int) strlen(rgb)) {
data/ncurses-6.2+20201114/test/picsmap.c:1275: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 need = strlen(filename) + 256;
data/ncurses-6.2+20201114/test/picsmap.c:1297:17:  [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 n = strlen(filename);
data/ncurses-6.2+20201114/test/picsmap.c:1299: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).
	    if (strlen(buffer) > n &&
data/ncurses-6.2+20201114/test/picsmap.c:1329: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).
	    if (strlen(buffer) > 160) {		/* 80 columns would be enough */
data/ncurses-6.2+20201114/test/picsmap.c:1624: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).
			s += strlen(s);
data/ncurses-6.2+20201114/test/picsmap.c:1635: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).
		s += strlen(s);
data/ncurses-6.2+20201114/test/popup_msg.c:82: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).
	int check = (int) strlen(msg[n]);
data/ncurses-6.2+20201114/test/savescreen.c:138: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).
    for (n = (int) strlen(mytime) - 1; n >= 0; --n) {
data/ncurses-6.2+20201114/test/savescreen.c:485:19:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    while ((ch = fgetc(fp)) != EOF) {
data/ncurses-6.2+20201114/test/tclock.c:255:32:  [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).
	MvPrintw(2, 0, "%.*s", (int) (strlen(text) - 1), text);
data/ncurses-6.2+20201114/test/test.priv.h:729:43:  [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.
#define _nc_STRNCAT(d,s,m,n)	NCURSES_VOID strncat((d),(s),(n))
data/ncurses-6.2+20201114/test/test.priv.h:737:41:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
#define _nc_STRNCPY(d,s,n)	NCURSES_VOID strncpy((d),(s),(n))
data/ncurses-6.2+20201114/test/test_add_wchstr.c:111: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).
	     && strlen(temp) > 1) { \
data/ncurses-6.2+20201114/test/test_add_wchstr.c:130:21:  [1] (buffer) wcslen:
  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 result = wcslen(source);
data/ncurses-6.2+20201114/test/test_add_wchstr.c:139: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).
		adjust += (strlen(s) - 1);
data/ncurses-6.2+20201114/test/test_add_wchstr.c:150: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).
    TempBuffer(strlen(source), UChar(*source++));
data/ncurses-6.2+20201114/test/test_addchstr.c:77: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 result = strlen(source);
data/ncurses-6.2+20201114/test/test_addchstr.c:86: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).
		adjust += (strlen(s) - 1);
data/ncurses-6.2+20201114/test/test_get_wstr.c:204:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((ch = fgetc(fp)) != EOF) {
data/ncurses-6.2+20201114/test/test_getstr.c:212:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((ch = fgetc(fp)) != EOF) {
data/ncurses-6.2+20201114/test/test_instr.c:114:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((ch = fgetc(fp)) != EOF) {
data/ncurses-6.2+20201114/test/test_inwstr.c:114:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((ch = fgetc(fp)) != EOF) {
data/ncurses-6.2+20201114/test/test_opaque.c:288:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((ch = fgetc(fp)) != EOF) {
data/ncurses-6.2+20201114/test/test_sgr.c:66: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 need = strlen(e_opt) + 2 + (size_t) (p - q);
data/ncurses-6.2+20201114/test/test_tparm.c:127:26:  [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).
		   result != 0 ? (int) strlen(result) : -1,
data/ncurses-6.2+20201114/test/test_tparm.c:259: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).
		t = s + strlen(s);
data/ncurses-6.2+20201114/test/view.c:147:22:  [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).
		"view %.*s", (int) strlen(tag), tag);
data/ncurses-6.2+20201114/test/view.c:148:15:  [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 = (int) strlen(temp);
data/ncurses-6.2+20201114/test/view.c:156: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).
    if ((i = (int) strlen(temp)) != 0) {
data/ncurses-6.2+20201114/test/view.c:295: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).
    width = (int) strlen(my_vec[0]);
data/ncurses-6.2+20201114/test/view.c:322: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).
	char *last = my_vec[k] + (int) strlen(my_vec[k]);

ANALYSIS SUMMARY:

Hits = 1050
Lines analyzed = 140212 in approximately 3.87 seconds (36276 lines/second)
Physical Source Lines of Code (SLOC) = 96980
Hits@level = [0] 666 [1] 371 [2] 464 [3] 139 [4]  76 [5]   0
Hits@level+ = [0+] 1716 [1+] 1050 [2+] 679 [3+] 215 [4+]  76 [5+]   0
Hits/KSLOC@level+ = [0+] 17.6944 [1+] 10.827 [2+] 7.00144 [3+] 2.21695 [4+] 0.783667 [5+]   0
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.