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/weechat-3.0/src/core/hook/wee-hook-command-run.c
Examining data/weechat-3.0/src/core/hook/wee-hook-command-run.h
Examining data/weechat-3.0/src/core/hook/wee-hook-command.c
Examining data/weechat-3.0/src/core/hook/wee-hook-command.h
Examining data/weechat-3.0/src/core/hook/wee-hook-completion.c
Examining data/weechat-3.0/src/core/hook/wee-hook-completion.h
Examining data/weechat-3.0/src/core/hook/wee-hook-config.c
Examining data/weechat-3.0/src/core/hook/wee-hook-config.h
Examining data/weechat-3.0/src/core/hook/wee-hook-connect.c
Examining data/weechat-3.0/src/core/hook/wee-hook-connect.h
Examining data/weechat-3.0/src/core/hook/wee-hook-fd.c
Examining data/weechat-3.0/src/core/hook/wee-hook-fd.h
Examining data/weechat-3.0/src/core/hook/wee-hook-focus.c
Examining data/weechat-3.0/src/core/hook/wee-hook-focus.h
Examining data/weechat-3.0/src/core/hook/wee-hook-hdata.c
Examining data/weechat-3.0/src/core/hook/wee-hook-hdata.h
Examining data/weechat-3.0/src/core/hook/wee-hook-hsignal.c
Examining data/weechat-3.0/src/core/hook/wee-hook-hsignal.h
Examining data/weechat-3.0/src/core/hook/wee-hook-info-hashtable.c
Examining data/weechat-3.0/src/core/hook/wee-hook-info-hashtable.h
Examining data/weechat-3.0/src/core/hook/wee-hook-info.c
Examining data/weechat-3.0/src/core/hook/wee-hook-info.h
Examining data/weechat-3.0/src/core/hook/wee-hook-infolist.c
Examining data/weechat-3.0/src/core/hook/wee-hook-infolist.h
Examining data/weechat-3.0/src/core/hook/wee-hook-line.c
Examining data/weechat-3.0/src/core/hook/wee-hook-line.h
Examining data/weechat-3.0/src/core/hook/wee-hook-modifier.c
Examining data/weechat-3.0/src/core/hook/wee-hook-modifier.h
Examining data/weechat-3.0/src/core/hook/wee-hook-print.c
Examining data/weechat-3.0/src/core/hook/wee-hook-print.h
Examining data/weechat-3.0/src/core/hook/wee-hook-process.c
Examining data/weechat-3.0/src/core/hook/wee-hook-process.h
Examining data/weechat-3.0/src/core/hook/wee-hook-signal.c
Examining data/weechat-3.0/src/core/hook/wee-hook-signal.h
Examining data/weechat-3.0/src/core/hook/wee-hook-timer.c
Examining data/weechat-3.0/src/core/hook/wee-hook-timer.h
Examining data/weechat-3.0/src/core/wee-arraylist.c
Examining data/weechat-3.0/src/core/wee-arraylist.h
Examining data/weechat-3.0/src/core/wee-backtrace.c
Examining data/weechat-3.0/src/core/wee-backtrace.h
Examining data/weechat-3.0/src/core/wee-calc.c
Examining data/weechat-3.0/src/core/wee-calc.h
Examining data/weechat-3.0/src/core/wee-command.c
Examining data/weechat-3.0/src/core/wee-command.h
Examining data/weechat-3.0/src/core/wee-completion.c
Examining data/weechat-3.0/src/core/wee-completion.h
Examining data/weechat-3.0/src/core/wee-config-file.c
Examining data/weechat-3.0/src/core/wee-config-file.h
Examining data/weechat-3.0/src/core/wee-config.c
Examining data/weechat-3.0/src/core/wee-config.h
Examining data/weechat-3.0/src/core/wee-crypto.c
Examining data/weechat-3.0/src/core/wee-crypto.h
Examining data/weechat-3.0/src/core/wee-debug.c
Examining data/weechat-3.0/src/core/wee-debug.h
Examining data/weechat-3.0/src/core/wee-eval.c
Examining data/weechat-3.0/src/core/wee-eval.h
Examining data/weechat-3.0/src/core/wee-hashtable.c
Examining data/weechat-3.0/src/core/wee-hashtable.h
Examining data/weechat-3.0/src/core/wee-hdata.c
Examining data/weechat-3.0/src/core/wee-hdata.h
Examining data/weechat-3.0/src/core/wee-hook.c
Examining data/weechat-3.0/src/core/wee-hook.h
Examining data/weechat-3.0/src/core/wee-infolist.c
Examining data/weechat-3.0/src/core/wee-infolist.h
Examining data/weechat-3.0/src/core/wee-input.c
Examining data/weechat-3.0/src/core/wee-input.h
Examining data/weechat-3.0/src/core/wee-list.c
Examining data/weechat-3.0/src/core/wee-list.h
Examining data/weechat-3.0/src/core/wee-log.c
Examining data/weechat-3.0/src/core/wee-log.h
Examining data/weechat-3.0/src/core/wee-network.c
Examining data/weechat-3.0/src/core/wee-network.h
Examining data/weechat-3.0/src/core/wee-proxy.c
Examining data/weechat-3.0/src/core/wee-proxy.h
Examining data/weechat-3.0/src/core/wee-secure-buffer.c
Examining data/weechat-3.0/src/core/wee-secure-buffer.h
Examining data/weechat-3.0/src/core/wee-secure-config.c
Examining data/weechat-3.0/src/core/wee-secure-config.h
Examining data/weechat-3.0/src/core/wee-secure.c
Examining data/weechat-3.0/src/core/wee-secure.h
Examining data/weechat-3.0/src/core/wee-string.c
Examining data/weechat-3.0/src/core/wee-string.h
Examining data/weechat-3.0/src/core/wee-upgrade-file.c
Examining data/weechat-3.0/src/core/wee-upgrade-file.h
Examining data/weechat-3.0/src/core/wee-upgrade.c
Examining data/weechat-3.0/src/core/wee-upgrade.h
Examining data/weechat-3.0/src/core/wee-url.c
Examining data/weechat-3.0/src/core/wee-url.h
Examining data/weechat-3.0/src/core/wee-utf8.c
Examining data/weechat-3.0/src/core/wee-utf8.h
Examining data/weechat-3.0/src/core/wee-util.c
Examining data/weechat-3.0/src/core/wee-util.h
Examining data/weechat-3.0/src/core/wee-version.c
Examining data/weechat-3.0/src/core/wee-version.h
Examining data/weechat-3.0/src/core/weechat.c
Examining data/weechat-3.0/src/core/weechat.h
Examining data/weechat-3.0/src/gui/curses/gui-curses-bar-window.c
Examining data/weechat-3.0/src/gui/curses/gui-curses-chat.c
Examining data/weechat-3.0/src/gui/curses/gui-curses-color.c
Examining data/weechat-3.0/src/gui/curses/gui-curses-key.c
Examining data/weechat-3.0/src/gui/curses/gui-curses-main.c
Examining data/weechat-3.0/src/gui/curses/gui-curses-mouse.c
Examining data/weechat-3.0/src/gui/curses/gui-curses-term.c
Examining data/weechat-3.0/src/gui/curses/gui-curses-window.c
Examining data/weechat-3.0/src/gui/curses/gui-curses.h
Examining data/weechat-3.0/src/gui/curses/headless/main.c
Examining data/weechat-3.0/src/gui/curses/headless/ncurses-fake.c
Examining data/weechat-3.0/src/gui/curses/headless/ncurses-fake.h
Examining data/weechat-3.0/src/gui/curses/normal/main.c
Examining data/weechat-3.0/src/gui/gui-bar-item.c
Examining data/weechat-3.0/src/gui/gui-bar-item.h
Examining data/weechat-3.0/src/gui/gui-bar-window.c
Examining data/weechat-3.0/src/gui/gui-bar-window.h
Examining data/weechat-3.0/src/gui/gui-bar.c
Examining data/weechat-3.0/src/gui/gui-bar.h
Examining data/weechat-3.0/src/gui/gui-buffer.c
Examining data/weechat-3.0/src/gui/gui-buffer.h
Examining data/weechat-3.0/src/gui/gui-chat.c
Examining data/weechat-3.0/src/gui/gui-chat.h
Examining data/weechat-3.0/src/gui/gui-color.c
Examining data/weechat-3.0/src/gui/gui-color.h
Examining data/weechat-3.0/src/gui/gui-completion.c
Examining data/weechat-3.0/src/gui/gui-completion.h
Examining data/weechat-3.0/src/gui/gui-cursor.c
Examining data/weechat-3.0/src/gui/gui-cursor.h
Examining data/weechat-3.0/src/gui/gui-filter.c
Examining data/weechat-3.0/src/gui/gui-filter.h
Examining data/weechat-3.0/src/gui/gui-focus.c
Examining data/weechat-3.0/src/gui/gui-focus.h
Examining data/weechat-3.0/src/gui/gui-history.c
Examining data/weechat-3.0/src/gui/gui-history.h
Examining data/weechat-3.0/src/gui/gui-hotlist.c
Examining data/weechat-3.0/src/gui/gui-hotlist.h
Examining data/weechat-3.0/src/gui/gui-input.c
Examining data/weechat-3.0/src/gui/gui-input.h
Examining data/weechat-3.0/src/gui/gui-key.c
Examining data/weechat-3.0/src/gui/gui-key.h
Examining data/weechat-3.0/src/gui/gui-layout.c
Examining data/weechat-3.0/src/gui/gui-layout.h
Examining data/weechat-3.0/src/gui/gui-line.c
Examining data/weechat-3.0/src/gui/gui-line.h
Examining data/weechat-3.0/src/gui/gui-main.h
Examining data/weechat-3.0/src/gui/gui-mouse.c
Examining data/weechat-3.0/src/gui/gui-mouse.h
Examining data/weechat-3.0/src/gui/gui-nick.c
Examining data/weechat-3.0/src/gui/gui-nick.h
Examining data/weechat-3.0/src/gui/gui-nicklist.c
Examining data/weechat-3.0/src/gui/gui-nicklist.h
Examining data/weechat-3.0/src/gui/gui-window.c
Examining data/weechat-3.0/src/gui/gui-window.h
Examining data/weechat-3.0/src/plugins/alias/alias-command.c
Examining data/weechat-3.0/src/plugins/alias/alias-command.h
Examining data/weechat-3.0/src/plugins/alias/alias-completion.c
Examining data/weechat-3.0/src/plugins/alias/alias-completion.h
Examining data/weechat-3.0/src/plugins/alias/alias-config.c
Examining data/weechat-3.0/src/plugins/alias/alias-config.h
Examining data/weechat-3.0/src/plugins/alias/alias-info.c
Examining data/weechat-3.0/src/plugins/alias/alias-info.h
Examining data/weechat-3.0/src/plugins/alias/alias.c
Examining data/weechat-3.0/src/plugins/alias/alias.h
Examining data/weechat-3.0/src/plugins/buflist/buflist-bar-item.c
Examining data/weechat-3.0/src/plugins/buflist/buflist-bar-item.h
Examining data/weechat-3.0/src/plugins/buflist/buflist-command.c
Examining data/weechat-3.0/src/plugins/buflist/buflist-command.h
Examining data/weechat-3.0/src/plugins/buflist/buflist-config.c
Examining data/weechat-3.0/src/plugins/buflist/buflist-config.h
Examining data/weechat-3.0/src/plugins/buflist/buflist-info.c
Examining data/weechat-3.0/src/plugins/buflist/buflist-info.h
Examining data/weechat-3.0/src/plugins/buflist/buflist-mouse.c
Examining data/weechat-3.0/src/plugins/buflist/buflist-mouse.h
Examining data/weechat-3.0/src/plugins/buflist/buflist.c
Examining data/weechat-3.0/src/plugins/buflist/buflist.h
Examining data/weechat-3.0/src/plugins/charset/charset.c
Examining data/weechat-3.0/src/plugins/exec/exec-buffer.c
Examining data/weechat-3.0/src/plugins/exec/exec-buffer.h
Examining data/weechat-3.0/src/plugins/exec/exec-command.c
Examining data/weechat-3.0/src/plugins/exec/exec-command.h
Examining data/weechat-3.0/src/plugins/exec/exec-completion.c
Examining data/weechat-3.0/src/plugins/exec/exec-completion.h
Examining data/weechat-3.0/src/plugins/exec/exec-config.c
Examining data/weechat-3.0/src/plugins/exec/exec-config.h
Examining data/weechat-3.0/src/plugins/exec/exec.c
Examining data/weechat-3.0/src/plugins/exec/exec.h
Examining data/weechat-3.0/src/plugins/fifo/fifo-command.c
Examining data/weechat-3.0/src/plugins/fifo/fifo-command.h
Examining data/weechat-3.0/src/plugins/fifo/fifo-config.c
Examining data/weechat-3.0/src/plugins/fifo/fifo-config.h
Examining data/weechat-3.0/src/plugins/fifo/fifo-info.c
Examining data/weechat-3.0/src/plugins/fifo/fifo-info.h
Examining data/weechat-3.0/src/plugins/fifo/fifo.c
Examining data/weechat-3.0/src/plugins/fifo/fifo.h
Examining data/weechat-3.0/src/plugins/fset/fset-bar-item.c
Examining data/weechat-3.0/src/plugins/fset/fset-bar-item.h
Examining data/weechat-3.0/src/plugins/fset/fset-buffer.c
Examining data/weechat-3.0/src/plugins/fset/fset-buffer.h
Examining data/weechat-3.0/src/plugins/fset/fset-command.c
Examining data/weechat-3.0/src/plugins/fset/fset-command.h
Examining data/weechat-3.0/src/plugins/fset/fset-completion.c
Examining data/weechat-3.0/src/plugins/fset/fset-completion.h
Examining data/weechat-3.0/src/plugins/fset/fset-config.c
Examining data/weechat-3.0/src/plugins/fset/fset-config.h
Examining data/weechat-3.0/src/plugins/fset/fset-info.c
Examining data/weechat-3.0/src/plugins/fset/fset-info.h
Examining data/weechat-3.0/src/plugins/fset/fset-mouse.c
Examining data/weechat-3.0/src/plugins/fset/fset-mouse.h
Examining data/weechat-3.0/src/plugins/fset/fset-option.c
Examining data/weechat-3.0/src/plugins/fset/fset-option.h
Examining data/weechat-3.0/src/plugins/fset/fset.c
Examining data/weechat-3.0/src/plugins/fset/fset.h
Examining data/weechat-3.0/src/plugins/guile/weechat-guile-api.c
Examining data/weechat-3.0/src/plugins/guile/weechat-guile-api.h
Examining data/weechat-3.0/src/plugins/guile/weechat-guile.c
Examining data/weechat-3.0/src/plugins/guile/weechat-guile.h
Examining data/weechat-3.0/src/plugins/irc/irc-bar-item.c
Examining data/weechat-3.0/src/plugins/irc/irc-bar-item.h
Examining data/weechat-3.0/src/plugins/irc/irc-buffer.c
Examining data/weechat-3.0/src/plugins/irc/irc-buffer.h
Examining data/weechat-3.0/src/plugins/irc/irc-channel.c
Examining data/weechat-3.0/src/plugins/irc/irc-channel.h
Examining data/weechat-3.0/src/plugins/irc/irc-color.c
Examining data/weechat-3.0/src/plugins/irc/irc-color.h
Examining data/weechat-3.0/src/plugins/irc/irc-command.c
Examining data/weechat-3.0/src/plugins/irc/irc-command.h
Examining data/weechat-3.0/src/plugins/irc/irc-completion.c
Examining data/weechat-3.0/src/plugins/irc/irc-completion.h
Examining data/weechat-3.0/src/plugins/irc/irc-config.c
Examining data/weechat-3.0/src/plugins/irc/irc-config.h
Examining data/weechat-3.0/src/plugins/irc/irc-ctcp.c
Examining data/weechat-3.0/src/plugins/irc/irc-ctcp.h
Examining data/weechat-3.0/src/plugins/irc/irc-debug.c
Examining data/weechat-3.0/src/plugins/irc/irc-debug.h
Examining data/weechat-3.0/src/plugins/irc/irc-ignore.c
Examining data/weechat-3.0/src/plugins/irc/irc-ignore.h
Examining data/weechat-3.0/src/plugins/irc/irc-info.c
Examining data/weechat-3.0/src/plugins/irc/irc-info.h
Examining data/weechat-3.0/src/plugins/irc/irc-input.c
Examining data/weechat-3.0/src/plugins/irc/irc-input.h
Examining data/weechat-3.0/src/plugins/irc/irc-message.c
Examining data/weechat-3.0/src/plugins/irc/irc-message.h
Examining data/weechat-3.0/src/plugins/irc/irc-mode.c
Examining data/weechat-3.0/src/plugins/irc/irc-mode.h
Examining data/weechat-3.0/src/plugins/irc/irc-modelist.c
Examining data/weechat-3.0/src/plugins/irc/irc-modelist.h
Examining data/weechat-3.0/src/plugins/irc/irc-msgbuffer.c
Examining data/weechat-3.0/src/plugins/irc/irc-msgbuffer.h
Examining data/weechat-3.0/src/plugins/irc/irc-nick.c
Examining data/weechat-3.0/src/plugins/irc/irc-nick.h
Examining data/weechat-3.0/src/plugins/irc/irc-notify.c
Examining data/weechat-3.0/src/plugins/irc/irc-notify.h
Examining data/weechat-3.0/src/plugins/irc/irc-protocol.c
Examining data/weechat-3.0/src/plugins/irc/irc-protocol.h
Examining data/weechat-3.0/src/plugins/irc/irc-raw.c
Examining data/weechat-3.0/src/plugins/irc/irc-raw.h
Examining data/weechat-3.0/src/plugins/irc/irc-redirect.c
Examining data/weechat-3.0/src/plugins/irc/irc-redirect.h
Examining data/weechat-3.0/src/plugins/irc/irc-sasl.c
Examining data/weechat-3.0/src/plugins/irc/irc-sasl.h
Examining data/weechat-3.0/src/plugins/irc/irc-server.c
Examining data/weechat-3.0/src/plugins/irc/irc-server.h
Examining data/weechat-3.0/src/plugins/irc/irc-upgrade.c
Examining data/weechat-3.0/src/plugins/irc/irc-upgrade.h
Examining data/weechat-3.0/src/plugins/irc/irc.c
Examining data/weechat-3.0/src/plugins/irc/irc.h
Examining data/weechat-3.0/src/plugins/javascript/weechat-js-api.cpp
Examining data/weechat-3.0/src/plugins/javascript/weechat-js-api.h
Examining data/weechat-3.0/src/plugins/javascript/weechat-js-v8.cpp
Examining data/weechat-3.0/src/plugins/javascript/weechat-js-v8.h
Examining data/weechat-3.0/src/plugins/javascript/weechat-js.cpp
Examining data/weechat-3.0/src/plugins/javascript/weechat-js.h
Examining data/weechat-3.0/src/plugins/logger/logger-backlog.c
Examining data/weechat-3.0/src/plugins/logger/logger-backlog.h
Examining data/weechat-3.0/src/plugins/logger/logger-buffer.c
Examining data/weechat-3.0/src/plugins/logger/logger-buffer.h
Examining data/weechat-3.0/src/plugins/logger/logger-command.c
Examining data/weechat-3.0/src/plugins/logger/logger-command.h
Examining data/weechat-3.0/src/plugins/logger/logger-config.c
Examining data/weechat-3.0/src/plugins/logger/logger-config.h
Examining data/weechat-3.0/src/plugins/logger/logger-info.c
Examining data/weechat-3.0/src/plugins/logger/logger-info.h
Examining data/weechat-3.0/src/plugins/logger/logger-tail.c
Examining data/weechat-3.0/src/plugins/logger/logger-tail.h
Examining data/weechat-3.0/src/plugins/logger/logger.c
Examining data/weechat-3.0/src/plugins/logger/logger.h
Examining data/weechat-3.0/src/plugins/lua/weechat-lua-api.c
Examining data/weechat-3.0/src/plugins/lua/weechat-lua-api.h
Examining data/weechat-3.0/src/plugins/lua/weechat-lua.c
Examining data/weechat-3.0/src/plugins/lua/weechat-lua.h
Examining data/weechat-3.0/src/plugins/perl/weechat-perl-api.c
Examining data/weechat-3.0/src/plugins/perl/weechat-perl-api.h
Examining data/weechat-3.0/src/plugins/perl/weechat-perl.c
Examining data/weechat-3.0/src/plugins/perl/weechat-perl.h
Examining data/weechat-3.0/src/plugins/php/weechat-php-api.c
Examining data/weechat-3.0/src/plugins/php/weechat-php-api.h
Examining data/weechat-3.0/src/plugins/php/weechat-php.c
Examining data/weechat-3.0/src/plugins/php/weechat-php.h
Examining data/weechat-3.0/src/plugins/plugin-api-info.c
Examining data/weechat-3.0/src/plugins/plugin-api-info.h
Examining data/weechat-3.0/src/plugins/plugin-api.c
Examining data/weechat-3.0/src/plugins/plugin-api.h
Examining data/weechat-3.0/src/plugins/plugin-config.c
Examining data/weechat-3.0/src/plugins/plugin-config.h
Examining data/weechat-3.0/src/plugins/plugin-script-api.c
Examining data/weechat-3.0/src/plugins/plugin-script-api.h
Examining data/weechat-3.0/src/plugins/plugin-script-config.c
Examining data/weechat-3.0/src/plugins/plugin-script-config.h
Examining data/weechat-3.0/src/plugins/plugin-script.c
Examining data/weechat-3.0/src/plugins/plugin-script.h
Examining data/weechat-3.0/src/plugins/plugin.c
Examining data/weechat-3.0/src/plugins/plugin.h
Examining data/weechat-3.0/src/plugins/python/weechat-python-api.c
Examining data/weechat-3.0/src/plugins/python/weechat-python-api.h
Examining data/weechat-3.0/src/plugins/python/weechat-python.c
Examining data/weechat-3.0/src/plugins/python/weechat-python.h
Examining data/weechat-3.0/src/plugins/relay/irc/relay-irc.c
Examining data/weechat-3.0/src/plugins/relay/irc/relay-irc.h
Examining data/weechat-3.0/src/plugins/relay/relay-auth.c
Examining data/weechat-3.0/src/plugins/relay/relay-auth.h
Examining data/weechat-3.0/src/plugins/relay/relay-buffer.c
Examining data/weechat-3.0/src/plugins/relay/relay-buffer.h
Examining data/weechat-3.0/src/plugins/relay/relay-client.c
Examining data/weechat-3.0/src/plugins/relay/relay-client.h
Examining data/weechat-3.0/src/plugins/relay/relay-command.c
Examining data/weechat-3.0/src/plugins/relay/relay-command.h
Examining data/weechat-3.0/src/plugins/relay/relay-completion.c
Examining data/weechat-3.0/src/plugins/relay/relay-completion.h
Examining data/weechat-3.0/src/plugins/relay/relay-config.c
Examining data/weechat-3.0/src/plugins/relay/relay-config.h
Examining data/weechat-3.0/src/plugins/relay/relay-info.c
Examining data/weechat-3.0/src/plugins/relay/relay-info.h
Examining data/weechat-3.0/src/plugins/relay/relay-network.c
Examining data/weechat-3.0/src/plugins/relay/relay-network.h
Examining data/weechat-3.0/src/plugins/relay/relay-raw.c
Examining data/weechat-3.0/src/plugins/relay/relay-raw.h
Examining data/weechat-3.0/src/plugins/relay/relay-server.c
Examining data/weechat-3.0/src/plugins/relay/relay-server.h
Examining data/weechat-3.0/src/plugins/relay/relay-upgrade.c
Examining data/weechat-3.0/src/plugins/relay/relay-upgrade.h
Examining data/weechat-3.0/src/plugins/relay/relay-websocket.c
Examining data/weechat-3.0/src/plugins/relay/relay-websocket.h
Examining data/weechat-3.0/src/plugins/relay/relay.c
Examining data/weechat-3.0/src/plugins/relay/relay.h
Examining data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-msg.c
Examining data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-msg.h
Examining data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-nicklist.c
Examining data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-nicklist.h
Examining data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-protocol.c
Examining data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-protocol.h
Examining data/weechat-3.0/src/plugins/relay/weechat/relay-weechat.c
Examining data/weechat-3.0/src/plugins/relay/weechat/relay-weechat.h
Examining data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.c
Examining data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.h
Examining data/weechat-3.0/src/plugins/ruby/weechat-ruby.c
Examining data/weechat-3.0/src/plugins/ruby/weechat-ruby.h
Examining data/weechat-3.0/src/plugins/script/script-action.c
Examining data/weechat-3.0/src/plugins/script/script-action.h
Examining data/weechat-3.0/src/plugins/script/script-buffer.c
Examining data/weechat-3.0/src/plugins/script/script-buffer.h
Examining data/weechat-3.0/src/plugins/script/script-command.c
Examining data/weechat-3.0/src/plugins/script/script-command.h
Examining data/weechat-3.0/src/plugins/script/script-completion.c
Examining data/weechat-3.0/src/plugins/script/script-completion.h
Examining data/weechat-3.0/src/plugins/script/script-config.c
Examining data/weechat-3.0/src/plugins/script/script-config.h
Examining data/weechat-3.0/src/plugins/script/script-info.c
Examining data/weechat-3.0/src/plugins/script/script-info.h
Examining data/weechat-3.0/src/plugins/script/script-mouse.c
Examining data/weechat-3.0/src/plugins/script/script-mouse.h
Examining data/weechat-3.0/src/plugins/script/script-repo.c
Examining data/weechat-3.0/src/plugins/script/script-repo.h
Examining data/weechat-3.0/src/plugins/script/script.c
Examining data/weechat-3.0/src/plugins/script/script.h
Examining data/weechat-3.0/src/plugins/spell/spell-bar-item.c
Examining data/weechat-3.0/src/plugins/spell/spell-bar-item.h
Examining data/weechat-3.0/src/plugins/spell/spell-command.c
Examining data/weechat-3.0/src/plugins/spell/spell-command.h
Examining data/weechat-3.0/src/plugins/spell/spell-completion.c
Examining data/weechat-3.0/src/plugins/spell/spell-completion.h
Examining data/weechat-3.0/src/plugins/spell/spell-config.c
Examining data/weechat-3.0/src/plugins/spell/spell-config.h
Examining data/weechat-3.0/src/plugins/spell/spell-info.c
Examining data/weechat-3.0/src/plugins/spell/spell-info.h
Examining data/weechat-3.0/src/plugins/spell/spell-speller.c
Examining data/weechat-3.0/src/plugins/spell/spell-speller.h
Examining data/weechat-3.0/src/plugins/spell/spell.c
Examining data/weechat-3.0/src/plugins/spell/spell.h
Examining data/weechat-3.0/src/plugins/tcl/weechat-tcl-api.c
Examining data/weechat-3.0/src/plugins/tcl/weechat-tcl-api.h
Examining data/weechat-3.0/src/plugins/tcl/weechat-tcl.c
Examining data/weechat-3.0/src/plugins/tcl/weechat-tcl.h
Examining data/weechat-3.0/src/plugins/trigger/trigger-buffer.c
Examining data/weechat-3.0/src/plugins/trigger/trigger-buffer.h
Examining data/weechat-3.0/src/plugins/trigger/trigger-callback.c
Examining data/weechat-3.0/src/plugins/trigger/trigger-callback.h
Examining data/weechat-3.0/src/plugins/trigger/trigger-command.c
Examining data/weechat-3.0/src/plugins/trigger/trigger-command.h
Examining data/weechat-3.0/src/plugins/trigger/trigger-completion.c
Examining data/weechat-3.0/src/plugins/trigger/trigger-completion.h
Examining data/weechat-3.0/src/plugins/trigger/trigger-config.c
Examining data/weechat-3.0/src/plugins/trigger/trigger-config.h
Examining data/weechat-3.0/src/plugins/trigger/trigger.c
Examining data/weechat-3.0/src/plugins/trigger/trigger.h
Examining data/weechat-3.0/src/plugins/weechat-plugin.h
Examining data/weechat-3.0/src/plugins/xfer/xfer-buffer.c
Examining data/weechat-3.0/src/plugins/xfer/xfer-buffer.h
Examining data/weechat-3.0/src/plugins/xfer/xfer-chat.c
Examining data/weechat-3.0/src/plugins/xfer/xfer-chat.h
Examining data/weechat-3.0/src/plugins/xfer/xfer-command.c
Examining data/weechat-3.0/src/plugins/xfer/xfer-command.h
Examining data/weechat-3.0/src/plugins/xfer/xfer-completion.c
Examining data/weechat-3.0/src/plugins/xfer/xfer-completion.h
Examining data/weechat-3.0/src/plugins/xfer/xfer-config.c
Examining data/weechat-3.0/src/plugins/xfer/xfer-config.h
Examining data/weechat-3.0/src/plugins/xfer/xfer-dcc.c
Examining data/weechat-3.0/src/plugins/xfer/xfer-dcc.h
Examining data/weechat-3.0/src/plugins/xfer/xfer-file.c
Examining data/weechat-3.0/src/plugins/xfer/xfer-file.h
Examining data/weechat-3.0/src/plugins/xfer/xfer-info.c
Examining data/weechat-3.0/src/plugins/xfer/xfer-info.h
Examining data/weechat-3.0/src/plugins/xfer/xfer-network.c
Examining data/weechat-3.0/src/plugins/xfer/xfer-network.h
Examining data/weechat-3.0/src/plugins/xfer/xfer-upgrade.c
Examining data/weechat-3.0/src/plugins/xfer/xfer-upgrade.h
Examining data/weechat-3.0/src/plugins/xfer/xfer.c
Examining data/weechat-3.0/src/plugins/xfer/xfer.h
Examining data/weechat-3.0/tests/scripts/test-scripts.cpp
Examining data/weechat-3.0/tests/tests.cpp
Examining data/weechat-3.0/tests/tests.h
Examining data/weechat-3.0/tests/unit/core/test-core-arraylist.cpp
Examining data/weechat-3.0/tests/unit/core/test-core-calc.cpp
Examining data/weechat-3.0/tests/unit/core/test-core-crypto.cpp
Examining data/weechat-3.0/tests/unit/core/test-core-eval.cpp
Examining data/weechat-3.0/tests/unit/core/test-core-hashtable.cpp
Examining data/weechat-3.0/tests/unit/core/test-core-hdata.cpp
Examining data/weechat-3.0/tests/unit/core/test-core-hook.cpp
Examining data/weechat-3.0/tests/unit/core/test-core-infolist.cpp
Examining data/weechat-3.0/tests/unit/core/test-core-list.cpp
Examining data/weechat-3.0/tests/unit/core/test-core-secure.cpp
Examining data/weechat-3.0/tests/unit/core/test-core-string.cpp
Examining data/weechat-3.0/tests/unit/core/test-core-url.cpp
Examining data/weechat-3.0/tests/unit/core/test-core-utf8.cpp
Examining data/weechat-3.0/tests/unit/core/test-core-util.cpp
Examining data/weechat-3.0/tests/unit/gui/test-gui-color.cpp
Examining data/weechat-3.0/tests/unit/gui/test-gui-line.cpp
Examining data/weechat-3.0/tests/unit/gui/test-gui-nick.cpp
Examining data/weechat-3.0/tests/unit/plugins/irc/test-irc-channel.cpp
Examining data/weechat-3.0/tests/unit/plugins/irc/test-irc-color.cpp
Examining data/weechat-3.0/tests/unit/plugins/irc/test-irc-config.cpp
Examining data/weechat-3.0/tests/unit/plugins/irc/test-irc-ignore.cpp
Examining data/weechat-3.0/tests/unit/plugins/irc/test-irc-message.cpp
Examining data/weechat-3.0/tests/unit/plugins/irc/test-irc-mode.cpp
Examining data/weechat-3.0/tests/unit/plugins/irc/test-irc-nick.cpp
Examining data/weechat-3.0/tests/unit/plugins/irc/test-irc-protocol.cpp
Examining data/weechat-3.0/tests/unit/plugins/irc/test-irc-server.cpp
Examining data/weechat-3.0/tests/unit/plugins/relay/test-relay-auth.cpp
Examining data/weechat-3.0/tests/unit/plugins/test-plugins.cpp

FINAL RESULTS:

data/weechat-3.0/src/core/wee-config-file.c:2496:5:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    chmod (filename2, 0600);
data/weechat-3.0/src/core/wee-upgrade-file.c:235:13:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
            chmod (new_upgrade_file->filename, 0600);
data/weechat-3.0/src/plugins/fset/fset-option.c:1348:5:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    chmod (filename, 0600);
data/weechat-3.0/src/plugins/relay/relay-server.c:688:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        chmod (server->path, 0700);
data/weechat-3.0/src/core/hook/wee-hook-command.c:238:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                strcat (hook_command->cplt_template_args_concat[i],
data/weechat-3.0/src/core/hook/wee-hook-process.c:342:13:  [4] (shell) execvp:
  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.
            execvp (exec_args[0], exec_args);
data/weechat-3.0/src/core/wee-backtrace.c:97:14:  [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.
    output = popen (cmd_line, "r");
data/weechat-3.0/src/core/wee-command.c:1490:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat (str_color, str_alias);
data/weechat-3.0/src/core/wee-command.c:1495:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat (str_color, str_rgb);
data/weechat-3.0/src/core/wee-command.c:2630:33:  [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.
                                snprintf (str_command, sizeof (str_command),
data/weechat-3.0/src/core/wee-command.c:2632:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                strcat (str_line, str_command);
data/weechat-3.0/src/core/wee-command.c:2872:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                strcat (string, ptr_option->string_values[i]);
data/weechat-3.0/src/core/wee-command.c:6379:5:  [4] (shell) execvp:
  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.
    execvp (exec_args[0], exec_args);
data/weechat-3.0/src/core/wee-command.c:6433:9:  [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.
        snprintf (string, sizeof (string),
data/weechat-3.0/src/core/wee-config-file.c:2573: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.
    if (access (filename, F_OK) != 0)
data/weechat-3.0/src/core/wee-eval.c:1485:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat (tmp_value2, tmp_value);
data/weechat-3.0/src/core/wee-eval.c:1487:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat (tmp_value2, pos + 1);
data/weechat-3.0/src/core/wee-eval.c:1619:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat (result2, str_replace);
data/weechat-3.0/src/core/wee-eval.c:1620:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat (result2, result + eval_regex.match[0].rm_eo);
data/weechat-3.0/src/core/wee-hashtable.c:840:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat (str, str_key);
data/weechat-3.0/src/core/wee-hashtable.c:868:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat (str, str_value);
data/weechat-3.0/src/core/wee-hashtable.c:896:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat (str, str_key);
data/weechat-3.0/src/core/wee-hashtable.c:904:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat (str, str_value);
data/weechat-3.0/src/core/wee-hashtable.h:46:9:  [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.
        snprintf (str_value, sizeof (str_value),                         \
data/weechat-3.0/src/core/wee-infolist.c:427:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat (infolist->ptr_item->fields, ptr_var->name);
data/weechat-3.0/src/core/wee-network.c:327:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (ip, ipbuffer);
data/weechat-3.0/src/core/wee-string.c:1549:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat (new_string, replace);
data/weechat-3.0/src/core/wee-string.c:1553:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat (new_string, string);
data/weechat-3.0/src/core/wee-string.c:1839:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat (result2, str_replace);
data/weechat-3.0/src/core/wee-string.c:1840:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat (result2, result + regex_match[0].rm_eo);
data/weechat-3.0/src/core/wee-string.c:2444:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat (result, split_string[i]);
data/weechat-3.0/src/core/wee-string.c:2446:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (result, separator);
data/weechat-3.0/src/core/wee-string.c:2905:5:  [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.
    snprintf (str_size, sizeof (str_size),
data/weechat-3.0/src/core/wee-string.c:3421:13:  [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.
            snprintf (str_line, length_line + 1,
data/weechat-3.0/src/core/wee-string.c:3427:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat (buf, str_line);
data/weechat-3.0/src/core/wee-string.c:3438:9:  [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.
        snprintf (str_line, length_line + 1,
data/weechat-3.0/src/core/wee-string.c:3444:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat (buf, str_line);
data/weechat-3.0/src/core/wee-string.c:3703:29:  [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 (result + index_result, value);
data/weechat-3.0/src/core/wee-string.c:3832:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (key + sizeof (string_shared_count_t), string);
data/weechat-3.0/src/core/wee-upgrade.c:538:17:  [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 (ptr_buffer->input_buffer,
data/weechat-3.0/src/core/wee-url.c:1321:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (constants, option->constants[i].name);
data/weechat-3.0/src/gui/curses/gui-curses-color.c:789:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (str_line, str_color);
data/weechat-3.0/src/gui/curses/gui-curses-color.c:902:21:  [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.
                    snprintf (str_color, sizeof (str_color),
data/weechat-3.0/src/gui/curses/gui-curses-color.c:915:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (str_line, str_color);
data/weechat-3.0/src/gui/curses/gui-curses-color.c:922:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (str_line, str_color);
data/weechat-3.0/src/gui/curses/gui-curses-color.c:972:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat (str_line, str_color);
data/weechat-3.0/src/gui/curses/gui-curses-color.c:1017:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (str_line, str_color);
data/weechat-3.0/src/gui/curses/gui-curses-key.c:398:25:  [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 (utf_partial_char, ptr_char);
data/weechat-3.0/src/gui/curses/gui-curses-key.c:411:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (key_str, key_utf);
data/weechat-3.0/src/gui/curses/gui-curses-key.c:496:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy (key_str, utf_partial_char);
data/weechat-3.0/src/gui/curses/gui-curses-mouse.c:318:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat (key, gui_mouse_wheel_codes[i][1]);
data/weechat-3.0/src/gui/curses/gui-curses-mouse.c:330:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat (key, gui_mouse_button_codes[i][1]);
data/weechat-3.0/src/gui/gui-bar-item.c:761:5:  [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.
    snprintf (str_paste, sizeof (str_paste),
data/weechat-3.0/src/gui/gui-bar-item.c:922:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat (buf, pos_cursor);
data/weechat-3.0/src/gui/gui-bar-item.c:1439:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat (str_hotlist, CONFIG_STRING(config_look_hotlist_prefix));
data/weechat-3.0/src/gui/gui-bar-item.c:1482:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (str_hotlist, GUI_COLOR_CUSTOM_BAR_DELIM);
data/weechat-3.0/src/gui/gui-bar-item.c:1483:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (str_hotlist,
data/weechat-3.0/src/gui/gui-bar-item.c:1490:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (str_hotlist,
data/weechat-3.0/src/gui/gui-bar-item.c:1494:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (str_hotlist,
data/weechat-3.0/src/gui/gui-bar-item.c:1498:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (str_hotlist,
data/weechat-3.0/src/gui/gui-bar-item.c:1502:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (str_hotlist,
data/weechat-3.0/src/gui/gui-bar-item.c:1520:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (str_hotlist, GUI_COLOR_CUSTOM_BAR_DELIM);
data/weechat-3.0/src/gui/gui-bar-item.c:1522:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (str_hotlist, GUI_COLOR_CUSTOM_BAR_FG);
data/weechat-3.0/src/gui/gui-bar-item.c:1539:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (str_hotlist, buffer_name);
data/weechat-3.0/src/gui/gui-bar-item.c:1593:25:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                        strcat (str_hotlist, GUI_COLOR_CUSTOM_BAR_DELIM);
data/weechat-3.0/src/gui/gui-bar-item.c:1594:25:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                        strcat (str_hotlist, (priority == (int)ptr_hotlist->priority) ? "(" : ",");
data/weechat-3.0/src/gui/gui-bar-item.c:1598:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                strcat (str_hotlist, gui_color_get_custom (gui_color_get_name (CONFIG_COLOR(config_color_status_count_other))));
data/weechat-3.0/src/gui/gui-bar-item.c:1601:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                strcat (str_hotlist, gui_color_get_custom (gui_color_get_name (CONFIG_COLOR(config_color_status_count_msg))));
data/weechat-3.0/src/gui/gui-bar-item.c:1604:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                strcat (str_hotlist, gui_color_get_custom (gui_color_get_name (CONFIG_COLOR(config_color_status_count_private))));
data/weechat-3.0/src/gui/gui-bar-item.c:1607:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                strcat (str_hotlist, gui_color_get_custom (gui_color_get_name (CONFIG_COLOR(config_color_status_count_highlight))));
data/weechat-3.0/src/gui/gui-bar-item.c:1619:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (str_hotlist, GUI_COLOR_CUSTOM_BAR_DELIM);
data/weechat-3.0/src/gui/gui-bar-item.c:1636:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat (str_hotlist, GUI_COLOR_CUSTOM_BAR_FG);
data/weechat-3.0/src/gui/gui-bar-item.c:1637:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat (str_hotlist, hotlist_suffix);
data/weechat-3.0/src/gui/gui-bar-item.c:1687:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat (buf, GUI_COLOR_CUSTOM_BAR_FG);
data/weechat-3.0/src/gui/gui-bar-item.c:1688:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat (buf, ptr_completion_word->word);
data/weechat-3.0/src/gui/gui-bar-item.c:1691:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (buf, GUI_COLOR_CUSTOM_BAR_DELIM);
data/weechat-3.0/src/gui/gui-bar-item.c:1695:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (buf, str_number);
data/weechat-3.0/src/gui/gui-bar-window.c:776:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                strcat (content, str_reinit_color_space);
data/weechat-3.0/src/gui/gui-bar-window.c:782:29:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                            strcat (content, str_reinit_color);
data/weechat-3.0/src/gui/gui-bar-window.c:785:29:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                            strcat (content, str_start_item);
data/weechat-3.0/src/gui/gui-bar-window.c:786:25:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                        strcat (content,
data/weechat-3.0/src/gui/gui-bar-window.c:807:29:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                            strcat (content, str_start_item);
data/weechat-3.0/src/gui/gui-bar-window.c:823:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (content, str_start_item);
data/weechat-3.0/src/gui/gui-bar-window.c:950:29:  [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 (content + index_content, linear_items[index]);
data/weechat-3.0/src/gui/gui-bar-window.c:961:29:  [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 (content + index_content,
data/weechat-3.0/src/gui/gui-buffer.c:1000:29:  [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 (result + index_result, ptr_value);
data/weechat-3.0/src/gui/gui-buffer.c:1552:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat (words, ptr_string);
data/weechat-3.0/src/gui/gui-chat.c:476:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (text_time2, GUI_COLOR(GUI_COLOR_CHAT_TIME));
data/weechat-3.0/src/gui/gui-chat.c:479:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat (text_time2, text_time_char);
data/weechat-3.0/src/gui/gui-chat.c:487:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (text_time2, GUI_COLOR(GUI_COLOR_CHAT_DELIMITERS));
data/weechat-3.0/src/gui/gui-chat.c:490:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (text_time2, text_time_char);
data/weechat-3.0/src/gui/gui-chat.c:498:25:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                        strcat (text_time2, GUI_COLOR(GUI_COLOR_CHAT_TIME));
data/weechat-3.0/src/gui/gui-chat.c:501:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (text_time2, text_time_char);
data/weechat-3.0/src/gui/gui-chat.c:507:25:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                        strcat (text_time2,
data/weechat-3.0/src/gui/gui-chat.c:511:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (text_time2, text_time_char);
data/weechat-3.0/src/gui/gui-chat.c:601:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat (string, line->data->prefix);
data/weechat-3.0/src/gui/gui-chat.c:604:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat (string, line->data->message);
data/weechat-3.0/src/gui/gui-chat.c:645:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat (buf, line->data->message);
data/weechat-3.0/src/gui/gui-chat.c:646:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat (buf, GUI_COLOR(GUI_COLOR_CHAT_DELIMITERS));
data/weechat-3.0/src/gui/gui-chat.c:648:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat (buf, GUI_COLOR(GUI_COLOR_CHAT_TAGS));
data/weechat-3.0/src/gui/gui-chat.c:651:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat (buf, line->data->tags_array[i]);
data/weechat-3.0/src/gui/gui-chat.c:655:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat (buf, GUI_COLOR(GUI_COLOR_CHAT_DELIMITERS));
data/weechat-3.0/src/gui/gui-color.c:998:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (output, gui_color_get_custom ("reset"));
data/weechat-3.0/src/gui/gui-color.c:1001:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (output, gui_color_get_custom ("bold"));
data/weechat-3.0/src/gui/gui-color.c:1006:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (output, gui_color_get_custom ("-bold"));
data/weechat-3.0/src/gui/gui-color.c:1009:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (output, gui_color_get_custom ("italic"));
data/weechat-3.0/src/gui/gui-color.c:1012:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (output, gui_color_get_custom ("underline"));
data/weechat-3.0/src/gui/gui-color.c:1015:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (output, gui_color_get_custom ("reverse"));
data/weechat-3.0/src/gui/gui-color.c:1018:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (output, gui_color_get_custom ("-italic"));
data/weechat-3.0/src/gui/gui-color.c:1021:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (output, gui_color_get_custom ("-underline"));
data/weechat-3.0/src/gui/gui-color.c:1024:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (output, gui_color_get_custom ("-reverse"));
data/weechat-3.0/src/gui/gui-color.c:1034:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (output,
data/weechat-3.0/src/gui/gui-color.c:1052:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                strcat (output, gui_color_get_custom (str_color));
data/weechat-3.0/src/gui/gui-color.c:1061:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                strcat (output, gui_color_get_custom (str_color));
data/weechat-3.0/src/gui/gui-color.c:1069:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (output, gui_color_get_custom ("default"));
data/weechat-3.0/src/gui/gui-color.c:1082:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (output, gui_color_get_custom (str_color));
data/weechat-3.0/src/gui/gui-color.c:1099:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                strcat (output, gui_color_get_custom (str_color));
data/weechat-3.0/src/gui/gui-color.c:1108:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                strcat (output, gui_color_get_custom (str_color));
data/weechat-3.0/src/gui/gui-color.c:1116:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (output, gui_color_get_custom (",default"));
data/weechat-3.0/src/gui/gui-color.c:1126:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (output,
data/weechat-3.0/src/gui/gui-color.c:1140:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (output, gui_color_get_custom (str_color));
data/weechat-3.0/src/gui/gui-color.c:1717:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (result, ptr_string);
data/weechat-3.0/src/gui/gui-color.c:1732:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (result, ptr_string);
data/weechat-3.0/src/gui/gui-color.c:1739:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (result, ptr_string);
data/weechat-3.0/src/gui/gui-color.c:1764:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat (result, color_emphasis);
data/weechat-3.0/src/gui/gui-color.c:1766:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat (result, color_emphasis);
data/weechat-3.0/src/gui/gui-filter.c:346:21:  [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.
                    snprintf (str_error, sizeof (str_error),
data/weechat-3.0/src/gui/gui-filter.c:368:21:  [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.
                    snprintf (str_error, sizeof (str_error),
data/weechat-3.0/src/gui/gui-input.c:110:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy (buffer->input_buffer, input_utf8);
data/weechat-3.0/src/gui/gui-input.c:1257:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy (window->buffer->input_buffer, (*ptr_history)->text);
data/weechat-3.0/src/gui/gui-input.c:1312:17:  [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 (window->buffer->input_buffer, (*ptr_history)->text);
data/weechat-3.0/src/gui/gui-key.c:1307:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat (gui_key_combo_buffer, key_str);
data/weechat-3.0/src/gui/gui-line.c:2125:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat (tags, line->data->tags_array[i]);
data/weechat-3.0/src/plugins/alias/alias.c:116:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy (*alias, word);
data/weechat-3.0/src/plugins/alias/alias.c:131:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat (*alias, word);
data/weechat-3.0/src/plugins/alias/alias.c:404:25:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                        strcat (alias_command, *ptr_cmd);
data/weechat-3.0/src/plugins/alias/alias.c:406:25:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                        strcat (alias_command, argv_eol[1]);
data/weechat-3.0/src/plugins/alias/alias.c:426:29:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                            strcat (alias_command, (args_replaced) ? args_replaced : *ptr_cmd);
data/weechat-3.0/src/plugins/buflist/buflist-bar-item.c:394:13:  [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.
            snprintf (str_number, sizeof (str_number),
data/weechat-3.0/src/plugins/buflist/buflist-bar-item.c:401:13:  [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.
            snprintf (str_number, sizeof (str_number),
data/weechat-3.0/src/plugins/buflist/buflist-bar-item.c:406:9:  [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.
        snprintf (str_number2, sizeof (str_number2),
data/weechat-3.0/src/plugins/exec/exec-command.c:64:13:  [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.
            snprintf (str_elapsed, sizeof (str_elapsed),
data/weechat-3.0/src/plugins/exec/exec-command.c:72:13:  [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.
            snprintf (str_elapsed, sizeof (str_elapsed),
data/weechat-3.0/src/plugins/exec/exec-command.c:80:13:  [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.
            snprintf (str_elapsed, sizeof (str_elapsed),
data/weechat-3.0/src/plugins/exec/exec-command.c:362:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (cmd_options->pipe_command,
data/weechat-3.0/src/plugins/fifo/fifo.c:268:17:  [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 (buf2, fifo_unterminated);
data/weechat-3.0/src/plugins/fifo/fifo.c:269:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (buf2, buffer);
data/weechat-3.0/src/plugins/fset/fset-bar-item.c:200:5:  [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.
    snprintf (str_help, sizeof (str_help),
data/weechat-3.0/src/plugins/irc/irc-bar-item.c:509:9:  [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.
        snprintf (buf, sizeof (buf),
data/weechat-3.0/src/plugins/irc/irc-channel.c:1306:29:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                            strcat (new_tags, tags[i]);
data/weechat-3.0/src/plugins/irc/irc-color.c:538:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (output, IRC_COLOR_RESET_STR);
data/weechat-3.0/src/plugins/irc/irc-color.c:546:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (output, IRC_COLOR_BOLD_STR);
data/weechat-3.0/src/plugins/irc/irc-color.c:555:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (output, IRC_COLOR_BOLD_STR);
data/weechat-3.0/src/plugins/irc/irc-color.c:562:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (output, IRC_COLOR_ITALIC_STR);
data/weechat-3.0/src/plugins/irc/irc-color.c:569:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (output, IRC_COLOR_UNDERLINE_STR);
data/weechat-3.0/src/plugins/irc/irc-color.c:576:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (output, IRC_COLOR_ITALIC_STR);
data/weechat-3.0/src/plugins/irc/irc-color.c:583:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (output, IRC_COLOR_UNDERLINE_STR);
data/weechat-3.0/src/plugins/irc/irc-color.c:599:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (output, str_color);
data/weechat-3.0/src/plugins/irc/irc-color.c:620:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                strcat (output, str_color);
data/weechat-3.0/src/plugins/irc/irc-color.c:637:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                strcat (output, str_color);
data/weechat-3.0/src/plugins/irc/irc-color.c:648:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (output, str_color);
data/weechat-3.0/src/plugins/irc/irc-color.c:662:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (output, str_color);
data/weechat-3.0/src/plugins/irc/irc-color.c:683:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                strcat (output, str_color);
data/weechat-3.0/src/plugins/irc/irc-color.c:700:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                strcat (output, str_color);
data/weechat-3.0/src/plugins/irc/irc-color.c:711:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (output, str_color);
data/weechat-3.0/src/plugins/irc/irc-color.c:725:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (output, str_color);
data/weechat-3.0/src/plugins/irc/irc-color.c:739:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (output, str_color);
data/weechat-3.0/src/plugins/irc/irc-command.c:193:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (modes, mode);
data/weechat-3.0/src/plugins/irc/irc-command.c:196:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (nicks, ptr_nick->name);
data/weechat-3.0/src/plugins/irc/irc-command.c:335:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat (modes, mode);
data/weechat-3.0/src/plugins/irc/irc-command.c:338:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat (masks, (mask) ? mask : argv[pos_masks]);
data/weechat-3.0/src/plugins/irc/irc-command.c:2297:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (regex2, pos);
data/weechat-3.0/src/plugins/irc/irc-command.c:2606:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (new_args,
data/weechat-3.0/src/plugins/irc/irc-command.c:2608:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (new_args, channels[i]);
data/weechat-3.0/src/plugins/irc/irc-command.c:2659:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (new_args, pos_space);
data/weechat-3.0/src/plugins/irc/irc-command.c:5581:17:  [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 (message, argv_eol[2]);
data/weechat-3.0/src/plugins/irc/irc-config.c:904:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (value,
data/weechat-3.0/src/plugins/irc/irc-message.c:441:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat (msg_result, text);
data/weechat-3.0/src/plugins/irc/irc-message.c:895:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (msg_to_send, (length == length_no_channel) ? " " : ",");
data/weechat-3.0/src/plugins/irc/irc-message.c:896:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (msg_to_send, channels[index_channel]);
data/weechat-3.0/src/plugins/irc/irc-message.c:903:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (keys_to_add, (keys_to_add[0]) ? "," : " ");
data/weechat-3.0/src/plugins/irc/irc-message.c:904:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (keys_to_add, keys[index_channel]);
data/weechat-3.0/src/plugins/irc/irc-message.c:912:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat (msg_to_send, keys_to_add);
data/weechat-3.0/src/plugins/irc/irc-message.c:928:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat (msg_to_send, keys_to_add);
data/weechat-3.0/src/plugins/irc/irc-mode.c:213:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (new_modes, str_mode);
data/weechat-3.0/src/plugins/irc/irc-mode.c:240:29:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                            strcat (new_modes, str_mode);
data/weechat-3.0/src/plugins/irc/irc-mode.c:245:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                strcat (new_args, argument);
data/weechat-3.0/src/plugins/irc/irc-mode.c:254:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (new_modes, str_mode);
data/weechat-3.0/src/plugins/irc/irc-mode.c:259:25:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                        strcat (new_args, ptr_arg);
data/weechat-3.0/src/plugins/irc/irc-mode.c:278:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (new_modes, str_mode);
data/weechat-3.0/src/plugins/irc/irc-mode.c:281:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (new_args, argument);
data/weechat-3.0/src/plugins/irc/irc-mode.c:608:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat (server->nick_modes, str_mode);
data/weechat-3.0/src/plugins/irc/irc-mode.c:616:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy (server->nick_modes, str_mode);
data/weechat-3.0/src/plugins/irc/irc-nick.c:1065:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (ident, (user[0] != '~') ? user : "*");
data/weechat-3.0/src/plugins/irc/irc-notify.c:162:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (str, ptr_notify->nick);
data/weechat-3.0/src/plugins/irc/irc-notify.c:308:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat (message, separator);
data/weechat-3.0/src/plugins/irc/irc-notify.c:309:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat (message, ptr_notify->nick);
data/weechat-3.0/src/plugins/irc/irc-protocol.c:553:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat (cap_option, ptr_cap_option);
data/weechat-3.0/src/plugins/irc/irc-protocol.c:583:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (cap_req, caps_requested[i]);
data/weechat-3.0/src/plugins/irc/irc-protocol.c:5056:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (str_nicks, IRC_COLOR_RESET);
data/weechat-3.0/src/plugins/irc/irc-protocol.c:5061:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (str_nicks,
data/weechat-3.0/src/plugins/irc/irc-protocol.c:5065:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (str_nicks, prefixes);
data/weechat-3.0/src/plugins/irc/irc-protocol.c:5070:25:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                        strcat (str_nicks, IRC_COLOR_CHAT_NICK_SELF);
data/weechat-3.0/src/plugins/irc/irc-protocol.c:5074:25:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                        strcat (str_nicks, color);
data/weechat-3.0/src/plugins/irc/irc-protocol.c:5080:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (str_nicks, IRC_COLOR_RESET);
data/weechat-3.0/src/plugins/irc/irc-protocol.c:5081:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (str_nicks, nickname);
data/weechat-3.0/src/plugins/irc/irc-protocol.c:5317:37:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                    strcat (string, IRC_COLOR_RESET);
data/weechat-3.0/src/plugins/irc/irc-protocol.c:5330:45:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                            strcat (string, weechat_color (weechat_config_string (ptr_option)));
data/weechat-3.0/src/plugins/irc/irc-protocol.c:5334:41:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                        strcat (string, weechat_color (prefix_color));
data/weechat-3.0/src/plugins/irc/irc-protocol.c:5336:37:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                    strcat (string, prefix);
data/weechat-3.0/src/plugins/irc/irc-protocol.c:5342:41:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                        strcat (string, IRC_COLOR_CHAT_NICK_SELF);
data/weechat-3.0/src/plugins/irc/irc-protocol.c:5346:41:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                        strcat (string, color);
data/weechat-3.0/src/plugins/irc/irc-protocol.c:5352:37:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                    strcat (string, IRC_COLOR_RESET);
data/weechat-3.0/src/plugins/irc/irc-protocol.c:5353:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                strcat (string, nickname);
data/weechat-3.0/src/plugins/irc/irc-protocol.c:5423:13:  [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.
            snprintf (str_nicks_count + length,
data/weechat-3.0/src/plugins/irc/irc-raw.c:253:17:  [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 (prefix_arrow, IRC_RAW_PREFIX_RECV);
data/weechat-3.0/src/plugins/irc/irc-raw.c:256:17:  [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 (prefix_arrow, IRC_RAW_PREFIX_RECV_MODIFIED);
data/weechat-3.0/src/plugins/irc/irc-raw.c:259:17:  [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 (prefix_arrow, IRC_RAW_PREFIX_RECV_REDIRECT);
data/weechat-3.0/src/plugins/irc/irc-raw.c:262:17:  [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 (prefix_arrow, IRC_RAW_PREFIX_SEND);
data/weechat-3.0/src/plugins/irc/irc-raw.c:265:17:  [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 (prefix_arrow, IRC_RAW_PREFIX_SEND_MODIFIED);
data/weechat-3.0/src/plugins/irc/irc-raw.c:269:21:  [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 (prefix_arrow, IRC_RAW_PREFIX_RECV);
data/weechat-3.0/src/plugins/irc/irc-raw.c:271:21:  [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 (prefix_arrow, IRC_RAW_PREFIX_SEND);
data/weechat-3.0/src/plugins/irc/irc-redirect.c:725:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat (redirect->output, message);
data/weechat-3.0/src/plugins/irc/irc-server.c:1085:9:  [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.
        snprintf (str_lag, sizeof (str_lag),
data/weechat-3.0/src/plugins/irc/irc-server.c:1723:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (server_autojoin, pos_channel);
data/weechat-3.0/src/plugins/irc/irc-server.c:2884:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy (message->data, server->unterminated_message);
data/weechat-3.0/src/plugins/irc/irc-server.c:2885:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat (message->data, msg);
data/weechat-3.0/src/plugins/irc/irc-server.c:2936:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat (server->unterminated_message, string);
data/weechat-3.0/src/plugins/irc/irc-server.c:4291:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat (str_sizes, str_one_size);
data/weechat-3.0/src/plugins/logger/logger-tail.c:150:25:  [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 (new_line->data, pos_eol);
data/weechat-3.0/src/plugins/logger/logger-tail.c:151:25:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                        strcat (new_line->data, part_of_line);
data/weechat-3.0/src/plugins/logger/logger-tail.c:182:21:  [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 (new_part_of_line, buf);
data/weechat-3.0/src/plugins/logger/logger-tail.c:183:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (new_part_of_line, part_of_line);
data/weechat-3.0/src/plugins/logger/logger-tail.c:190:21:  [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 (part_of_line, buf);
data/weechat-3.0/src/plugins/perl/weechat-perl.c:555:5:  [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.
    snprintf (str_warning, sizeof (str_warning),
data/weechat-3.0/src/plugins/perl/weechat-perl.c:558:5:  [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.
    snprintf (str_error, sizeof (str_error),
data/weechat-3.0/src/plugins/perl/weechat-perl.c:572:5:  [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.
    snprintf (perl_code, length, perl_weechat_code,
data/weechat-3.0/src/plugins/perl/weechat-perl.c:587:5:  [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.
    snprintf (perl_code, length, perl_weechat_code,
data/weechat-3.0/src/plugins/plugin-script-api.c:1345:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (option_fullname, script->name);
data/weechat-3.0/src/plugins/plugin-script-api.c:1347:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat (option_fullname, option);
data/weechat-3.0/src/plugins/plugin-script-api.c:1380:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (option_fullname, script->name);
data/weechat-3.0/src/plugins/plugin-script-api.c:1382:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat (option_fullname, option);
data/weechat-3.0/src/plugins/plugin-script-api.c:1411:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (option_fullname, script->name);
data/weechat-3.0/src/plugins/plugin-script-api.c:1413:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat (option_fullname, option);
data/weechat-3.0/src/plugins/plugin-script-api.c:1441:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (option_fullname, script->name);
data/weechat-3.0/src/plugins/plugin-script-api.c:1443:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat (option_fullname, option);
data/weechat-3.0/src/plugins/plugin-script-api.c:1470:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (option_fullname, script->name);
data/weechat-3.0/src/plugins/plugin-script-api.c:1472:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat (option_fullname, option);
data/weechat-3.0/src/plugins/plugin-script.c:1111:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy (*action_list, name);
data/weechat-3.0/src/plugins/plugin-script.c:1125:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat (*action_list, name);
data/weechat-3.0/src/plugins/plugin-script.c:1620:13:  [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.
            snprintf (buf, length, scripts_loaded, weechat_plugin->name);
data/weechat-3.0/src/plugins/plugin-script.c:1625:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (buf, ptr_script->name);
data/weechat-3.0/src/plugins/plugin.c:1354:17:  [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 (buf, plugins_loaded);
data/weechat-3.0/src/plugins/plugin.c:1359:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (buf, ptr_item->data);
data/weechat-3.0/src/plugins/relay/irc/relay-irc.c:551: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.
    rc = sscanf (signal, "irc_redirection_relay_%d_%s",
data/weechat-3.0/src/plugins/relay/irc/relay-irc.c:1069:25:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                        strcat (nicks, prefix);
data/weechat-3.0/src/plugins/relay/irc/relay-irc.c:1070:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (nicks, nick);
data/weechat-3.0/src/plugins/relay/irc/relay-irc.c:1255:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat (str_capab, relay_irc_server_capabilities[i]);
data/weechat-3.0/src/plugins/relay/relay-client.c:332:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat (client->partial_message, data);
data/weechat-3.0/src/plugins/relay/relay-raw.c:296:17:  [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 (prefix_arrow, RELAY_RAW_PREFIX_RECV);
data/weechat-3.0/src/plugins/relay/relay-raw.c:299:17:  [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 (prefix_arrow, RELAY_RAW_PREFIX_SEND);
data/weechat-3.0/src/plugins/relay/relay-raw.c:303:21:  [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 (prefix_arrow, RELAY_RAW_PREFIX_RECV);
data/weechat-3.0/src/plugins/relay/relay-raw.c:305:21:  [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 (prefix_arrow, RELAY_RAW_PREFIX_SEND);
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-msg.c:635:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (path_returned, hdata_head);
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-msg.c:648:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat (path_returned, hdata_name);
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-msg.c:676:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat (keys_types, list_keys[i]);
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-msg.c:682:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (keys_types, RELAY_WEECHAT_MSG_OBJ_ARRAY);
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-msg.c:688:25:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                        strcat (keys_types, RELAY_WEECHAT_MSG_OBJ_CHAR);
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-msg.c:691:25:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                        strcat (keys_types, RELAY_WEECHAT_MSG_OBJ_INT);
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-msg.c:694:25:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                        strcat (keys_types, RELAY_WEECHAT_MSG_OBJ_LONG);
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-msg.c:698:25:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                        strcat (keys_types, RELAY_WEECHAT_MSG_OBJ_STRING);
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-msg.c:701:25:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                        strcat (keys_types, RELAY_WEECHAT_MSG_OBJ_POINTER);
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-msg.c:704:25:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                        strcat (keys_types, RELAY_WEECHAT_MSG_OBJ_TIME);
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-msg.c:707:25:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                        strcat (keys_types, RELAY_WEECHAT_MSG_OBJ_HASHTABLE);
data/weechat-3.0/src/plugins/ruby/weechat-ruby.c:308:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (cline, line);
data/weechat-3.0/src/plugins/ruby/weechat-ruby.c:310:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (cline, err_msg);
data/weechat-3.0/src/plugins/ruby/weechat-ruby.c:312:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (cline, err_class);
data/weechat-3.0/src/plugins/ruby/weechat-ruby.c:323:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (cline, line);
data/weechat-3.0/src/plugins/script/script-buffer.c:316:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (str_line, str_color);
data/weechat-3.0/src/plugins/script/script-buffer.c:317:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (str_line, str_item);
data/weechat-3.0/src/plugins/script/script-buffer.c:324:17:  [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.
                snprintf (str_item, sizeof (str_item),
data/weechat-3.0/src/plugins/script/script-buffer.c:326:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (str_line, str_item);
data/weechat-3.0/src/plugins/script/script-buffer.c:351:5:  [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.
    snprintf (result, sizeof (result),
data/weechat-3.0/src/plugins/script/script-config.c:317:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (hold, items[i]);
data/weechat-3.0/src/plugins/script/script-config.c:324:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat (hold, name_with_extension);
data/weechat-3.0/src/plugins/script/script-config.c:367:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (hold, items[i]);
data/weechat-3.0/src/plugins/script/script-repo.c:251:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (str_status, weechat_color (weechat_config_string (script_config_color_status_popular)));
data/weechat-3.0/src/plugins/script/script-repo.c:252:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (str_status, (script && (script->popularity > 0)) ? "*" : str_space);
data/weechat-3.0/src/plugins/script/script-repo.c:255:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (str_status, weechat_color (weechat_config_string (script_config_color_status_installed)));
data/weechat-3.0/src/plugins/script/script-repo.c:256:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (str_status, (script && (script->status & SCRIPT_STATUS_INSTALLED)) ? "i" : str_space);
data/weechat-3.0/src/plugins/script/script-repo.c:259:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (str_status, weechat_color (weechat_config_string (script_config_color_status_autoloaded)));
data/weechat-3.0/src/plugins/script/script-repo.c:260:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (str_status, (script && (script->status & SCRIPT_STATUS_AUTOLOADED)) ? "a" : str_space);
data/weechat-3.0/src/plugins/script/script-repo.c:263:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (str_status, weechat_color (weechat_config_string (script_config_color_status_unknown)));
data/weechat-3.0/src/plugins/script/script-repo.c:264:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (str_status, (script) ? str_space : "?");
data/weechat-3.0/src/plugins/script/script-repo.c:267:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (str_status, weechat_color (weechat_config_string (script_config_color_status_held)));
data/weechat-3.0/src/plugins/script/script-repo.c:268:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (str_status, (script && (script->status & SCRIPT_STATUS_HELD)) ? "H" : str_space);
data/weechat-3.0/src/plugins/script/script-repo.c:271:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (str_status, weechat_color (weechat_config_string (script_config_color_status_running)));
data/weechat-3.0/src/plugins/script/script-repo.c:272:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (str_status, (script && (script->status & SCRIPT_STATUS_RUNNING)) ? "r" : str_space);
data/weechat-3.0/src/plugins/script/script-repo.c:275:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (str_status, weechat_color (weechat_config_string (script_config_color_status_obsolete)));
data/weechat-3.0/src/plugins/script/script-repo.c:276:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (str_status, (script && (script->status & SCRIPT_STATUS_NEW_VERSION)) ? "N" : str_space);
data/weechat-3.0/src/plugins/spell/spell.c:204:13:  [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 (aspell_filename, F_OK) == 0)
data/weechat-3.0/src/plugins/spell/spell.c:205:13:  [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 (spell_filename, F_OK) != 0))
data/weechat-3.0/src/plugins/spell/spell.c:594:29:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                            strcat (suggestions, (num_suggestions == 0) ? "/" : ",");
data/weechat-3.0/src/plugins/spell/spell.c:595:25:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                        strcat (suggestions, ptr_word);
data/weechat-3.0/src/plugins/spell/spell.c:621:25:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                        strcat (suggestions, (num_suggestions == 0) ? "/" : ",");
data/weechat-3.0/src/plugins/spell/spell.c:622:21:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                    strcat (suggestions, ptr_word);
data/weechat-3.0/src/plugins/weechat-plugin.h:202:23:  [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.
            vaa_num = vsnprintf (vbuffer, vaa_size, __format, argptr);  \
data/weechat-3.0/src/plugins/xfer/xfer-chat.c:136:17:  [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 (buf2, xfer->unterminated_message);
data/weechat-3.0/src/plugins/xfer/xfer-chat.c:137:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (buf2, buffer);
data/weechat-3.0/src/plugins/xfer/xfer-file.c:55: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.
    if (access (filename, W_OK) == 0)
data/weechat-3.0/src/plugins/xfer/xfer-file.c:125:24:  [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.
    filename_exists = (access (new_filename, F_OK) == 0);
data/weechat-3.0/src/plugins/xfer/xfer-file.c:126:29:  [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.
    temp_filename_exists = (access (new_temp_filename, F_OK) == 0);
data/weechat-3.0/src/plugins/xfer/xfer-file.c:232:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (xfer->local_filename, path);
data/weechat-3.0/src/plugins/xfer/xfer-file.c:237:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat (xfer->local_filename, dir_separator);
data/weechat-3.0/src/plugins/xfer/xfer-file.c:243:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat (xfer->local_filename, xfer->remote_nick);
data/weechat-3.0/src/plugins/xfer/xfer-file.c:246:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat (xfer->local_filename, xfer->filename);
data/weechat-3.0/src/plugins/xfer/xfer.c:1194:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy (filename2, path);
data/weechat-3.0/src/plugins/xfer/xfer.c:1196:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat (filename2, DIR_SEPARATOR);
data/weechat-3.0/src/plugins/xfer/xfer.c:1197:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat (filename2, filename);
data/weechat-3.0/src/core/wee-command.c:5937: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.
            value = getenv (argv[2]);
data/weechat-3.0/src/core/wee-completion.c:457: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.
    ptr_home = getenv ("HOME");
data/weechat-3.0/src/core/wee-completion.c:905: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.
    extra_libdir = getenv (WEECHAT_EXTRA_LIBDIR);
data/weechat-3.0/src/core/wee-completion.c:1686: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.
            value = getenv (argv[arg_index]);
data/weechat-3.0/src/core/wee-config-file.c:2390:9:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    if (realpath (filename, resolved_path))
data/weechat-3.0/src/core/wee-debug.c:576: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.
    extra_libdir = getenv (WEECHAT_EXTRA_LIBDIR);
data/weechat-3.0/src/core/wee-eval.c:1051: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.
        ptr_value = getenv (text + 4);
data/weechat-3.0/src/core/wee-network.c:779: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 ((tv_time.tv_sec * tv_time.tv_usec) ^ getpid ());
data/weechat-3.0/src/core/wee-secure.c:512: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.
        ptr_phrase = getenv (SECURE_ENV_PASSPHRASE);
data/weechat-3.0/src/core/wee-string.c:761: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.
    ptr_home = getenv ("HOME");
data/weechat-3.0/src/core/wee-util.c:521: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.
    tmpdir = getenv ("TMPDIR");
data/weechat-3.0/src/core/wee-util.c:535: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.
    tmpdir = getenv ("HOME");
data/weechat-3.0/src/core/wee-util.c:783: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.
    extra_libdir = getenv (WEECHAT_EXTRA_LIBDIR);
data/weechat-3.0/src/core/weechat.c:266:19:  [3] (buffer) getopt_long:
  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 ((opt = getopt_long (argc, argv,
data/weechat-3.0/src/core/weechat.c:388: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.
        ptr_home = getenv ("HOME");
data/weechat-3.0/src/core/weechat.c:489:28:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        ptr_weechat_home = getenv ("WEECHAT_HOME");
data/weechat-3.0/src/core/weechat.c:619: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/weechat-3.0/src/core/weechat.c:620:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    sty = getenv ("STY");
data/weechat-3.0/src/core/weechat.c:621: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.
    tmux = getenv ("TMUX");
data/weechat-3.0/src/gui/curses/gui-curses-color.c:765: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.
            getenv ("TERM"), gui_color_term_colors, gui_color_term_color_pairs,
data/weechat-3.0/src/gui/curses/gui-curses-color.c:830: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.
              getenv ("TERM"),
data/weechat-3.0/src/gui/curses/gui-curses-window.c:2513: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.
    envterm = getenv ("TERM");
data/weechat-3.0/src/gui/curses/gui-curses-window.c:2550: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.
            envshell = getenv ("SHELL");
data/weechat-3.0/src/gui/curses/gui-curses-window.c:2613: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.
    envtmux = getenv ("TMUX");
data/weechat-3.0/src/gui/curses/gui-curses-window.c:2616: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.
    envterm = getenv ("TERM");
data/weechat-3.0/src/gui/curses/gui-curses-window.c:2650: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.
                     getenv ("TERM"), gui_term_cols, gui_term_lines);
data/weechat-3.0/src/plugins/plugin-api-info.c:202:10:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    if (!realpath (weechat_home, weechat_dir_absolute_path))
data/weechat-3.0/src/plugins/plugin.c:1069: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.
        extra_libdir = getenv (WEECHAT_EXTRA_LIBDIR);
data/weechat-3.0/src/plugins/python/weechat-python.c:154: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.
    path = getenv ("PATH");
data/weechat-3.0/src/plugins/script/script-config.c:114: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.
        path = getenv ("PATH");
data/weechat-3.0/src/plugins/script/script-repo.c:207:9:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    if (realpath (filename, resolved_path))
data/weechat-3.0/tests/scripts/test-scripts.cpp:147:28:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    ptr_test_scripts_dir = getenv ("WEECHAT_TESTS_SCRIPTS_DIR");
data/weechat-3.0/tests/tests.cpp:202:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    weechat_tests_args = getenv ("WEECHAT_TESTS_ARGS");
data/weechat-3.0/tests/tests.cpp:237:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                         getenv ("WEECHAT_EXTRA_LIBDIR"));
data/weechat-3.0/tests/tests.cpp:242: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.
    tests_plugins_lib = getenv ("WEECHAT_TESTS_PLUGINS_LIB");
data/weechat-3.0/tests/unit/core/test-core-string.cpp:647: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.
    home = getenv ("HOME");
data/weechat-3.0/tests/unit/core/test-core-string.cpp:670: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.
    home = getenv ("HOME");
data/weechat-3.0/src/core/hook/wee-hook-line.c:105:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_value[128], *str_tags;
data/weechat-3.0/src/core/hook/wee-hook-process.c:197: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 **exec_args, *arg0, str_arg[64];
data/weechat-3.0/src/core/hook/wee-hook-process.c:402: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 (HOOK_PROCESS(hook_process, buffer[index_buffer]) +
data/weechat-3.0/src/core/hook/wee-hook-process.c:416: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[HOOK_PROCESS_BUFFER_SIZE / 8];
data/weechat-3.0/src/core/hook/wee-hook-process.c:624:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_error[1024];
data/weechat-3.0/src/core/hook/wee-hook-process.h:52: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[3];                   /* buffers for child stdin/out/err   */
data/weechat-3.0/src/core/hook/wee-hook-timer.c:346: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 value[64];
data/weechat-3.0/src/core/hook/wee-hook-timer.c:381: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 text_time[1024];
data/weechat-3.0/src/core/wee-backtrace.c:77: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 cmd_line[1024];
data/weechat-3.0/src/core/wee-backtrace.c:78:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[1024], *ptr_line, *pos;
data/weechat-3.0/src/core/wee-backtrace.c:79: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 function_name[1024];
data/weechat-3.0/src/core/wee-calc.c:337:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_result[64], *ptr_operator, *operator;
data/weechat-3.0/src/core/wee-command.c:105:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_size[16];
data/weechat-3.0/src/core/wee-command.c:1423:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_color[1024], str_command[1024];
data/weechat-3.0/src/core/wee-command.c:2514:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_format[64], str_command[256], str_line[2048];
data/weechat-3.0/src/core/wee-command.c:2676: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_string[1] = { '\0' }, str_format[64];
data/weechat-3.0/src/core/wee-command.c:2875:37:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                                    strcat (string, ", ");
data/weechat-3.0/src/core/wee-command.c:3084:22:  [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_user = atoi (argv[1]);
data/weechat-3.0/src/core/wee-command.c:3828: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 format[128];
data/weechat-3.0/src/core/wee-command.c:4710: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 *tags, *pos, *text, *text2, *error, empty_string[1] = { '\0' };
data/weechat-3.0/src/core/wee-command.c:6224: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 *exec_args[7] = { NULL, "-a", "--dir", NULL, "--upgrade", NULL };
data/weechat-3.0/src/core/wee-command.c:6405: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 string[512], str_first_start[128];
data/weechat-3.0/src/core/wee-command.c:6481: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 string[1024], str_first_start[128], str_last_start[128];
data/weechat-3.0/src/core/wee-completion.c:157:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_number[32];
data/weechat-3.0/src/core/wee-completion.c:283:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_number[32];
data/weechat-3.0/src/core/wee-completion.c:311:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_number[64];
data/weechat-3.0/src/core/wee-completion.c:437: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 home[3] = { '~', DIR_SEPARATOR_CHAR, '\0' };
data/weechat-3.0/src/core/wee-completion.c:438: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 *ptr_home, *pos, buf[PATH_MAX], *real_prefix, *prefix, *path_dir;
data/weechat-3.0/src/core/wee-completion.c:615:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_command[512];
data/weechat-3.0/src/core/wee-completion.c:970: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 **argv, str_command[512];
data/weechat-3.0/src/core/wee-completion.c:1284:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_command[512];
data/weechat-3.0/src/core/wee-config-file.c:53:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *config_option_type_string[CONFIG_NUM_OPTION_TYPES] =
data/weechat-3.0/src/core/wee-config-file.c:362: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 *option_full_name, str_value[256];
data/weechat-3.0/src/core/wee-config-file.c:2228: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 str_escaped[2] = "\\", str_not_escaped[1] = { '\0' };
data/weechat-3.0/src/core/wee-config-file.c:2361: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, *filename2, resolved_path[PATH_MAX];
data/weechat-3.0/src/core/wee-config-file.c:2410:25:  [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).
    config_file->file = fopen (filename2, "wb");
data/weechat-3.0/src/core/wee-config-file.c:2558: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[16384], *ptr_line, *ptr_line2, *pos, *pos2, *ptr_option_name;
data/weechat-3.0/src/core/wee-config-file.c:2581:25:  [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).
    config_file->file = fopen (filename, "r");
data/weechat-3.0/src/core/wee-config.c:317:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char config_tab_spaces[TAB_MAX_WIDTH + 1];
data/weechat-3.0/src/core/wee-config.c:1361:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_time[256];
data/weechat-3.0/src/core/wee-config.c:2107: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 option_name[1024];
data/weechat-3.0/src/core/wee-config.c:2500: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 section_name[128];
data/weechat-3.0/src/core/wee-crypto.c:145: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 (hash, ptr_hash, algo_size);
data/weechat-3.0/src/core/wee-crypto.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 hash[20];
data/weechat-3.0/src/core/wee-crypto.c:360: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 *secret, str_otp[16];
data/weechat-3.0/src/core/wee-debug.c:194: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 format[128];
data/weechat-3.0/src/core/wee-debug.c:293:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_offset[16];
data/weechat-3.0/src/core/wee-eval.c:53:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *logical_ops[EVAL_NUM_LOGICAL_OPS] =
data/weechat-3.0/src/core/wee-eval.c:56:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *comparisons[EVAL_NUM_COMPARISONS] =
data/weechat-3.0/src/core/wee-eval.c:221:17:  [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 (hidden_string + j, hide_char, length_hide_char);
data/weechat-3.0/src/core/wee-eval.c:325:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_value[64], *error;
data/weechat-3.0/src/core/wee-eval.c:554:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_value[512];
data/weechat-3.0/src/core/wee-eval.c:653: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 *value, *old_value, *var_name, str_value[128], *pos;
data/weechat-3.0/src/core/wee-eval.c:932:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_value[512], *value;
data/weechat-3.0/src/core/wee-eval.c:1615:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (result2, result, eval_regex.match[0].rm_so);
data/weechat-3.0/src/core/wee-hashtable.c:40:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *hashtable_type_string[HASHTABLE_NUM_TYPES] =
data/weechat-3.0/src/core/wee-hashtable.c:278:21:  [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 (*pointer, value, size_value);
data/weechat-3.0/src/core/wee-hashtable.c:539: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 str_value[128];
data/weechat-3.0/src/core/wee-hashtable.c:872:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        strcat (str, "(null)");
data/weechat-3.0/src/core/wee-hashtable.c:908:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        strcat (str, "(null)");
data/weechat-3.0/src/core/wee-hashtable.c:1049: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 option_name[128];
data/weechat-3.0/src/core/wee-hashtable.c:1119: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 prefix_name[128], option_value[128];
data/weechat-3.0/src/core/wee-hdata.c:45:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *hdata_type_string[9] =
data/weechat-3.0/src/core/wee-hook.c:44:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *hook_type_string[HOOK_NUM_TYPES] =
data/weechat-3.0/src/core/wee-infolist.c:256:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (new_var->value, pointer, size);
data/weechat-3.0/src/core/wee-infolist.c:412:17:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                strcat (infolist->ptr_item->fields, "i:");
data/weechat-3.0/src/core/wee-infolist.c:415:17:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                strcat (infolist->ptr_item->fields, "s:");
data/weechat-3.0/src/core/wee-infolist.c:418:17:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                strcat (infolist->ptr_item->fields, "p:");
data/weechat-3.0/src/core/wee-infolist.c:421:17:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                strcat (infolist->ptr_item->fields, "b:");
data/weechat-3.0/src/core/wee-infolist.c:424:17:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                strcat (infolist->ptr_item->fields, "t:");
data/weechat-3.0/src/core/wee-input.c:249: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 *pos, *buf, str_buffer[128], *new_data, *buffer_full_name;
data/weechat-3.0/src/core/wee-input.c:320:21:  [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, ptr_data_for_buffer, char_size);
data/weechat-3.0/src/core/wee-log.c:78:28:  [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).
        weechat_log_file = fopen (weechat_log_filename, mode);
data/weechat-3.0/src/core/wee-log.c:86:28:  [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).
        weechat_log_file = fopen (weechat_log_filename, mode);
data/weechat-3.0/src/core/wee-log.c:199: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 hexa[(16 * 3) + 1], ascii[(16 * 2) + 1];
data/weechat-3.0/src/core/wee-network.c:239: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], authbuf[128], authbuf_base64[512], *username, *password;
data/weechat-3.0/src/core/wee-network.c:299: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 ipbuffer[NI_MAXHOST];
data/weechat-3.0/src/core/wee-network.c:353: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 buffer[24];
data/weechat-3.0/src/core/wee-network.c:354: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 ip_addr[NI_MAXHOST], *username;
data/weechat-3.0/src/core/wee-network.c:405: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 buffer[288];
data/weechat-3.0/src/core/wee-network.c:457:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (buffer + 2, username, username_len);
data/weechat-3.0/src/core/wee-network.c:459:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (buffer + 3 + username_len, password, password_len);
data/weechat-3.0/src/core/wee-network.c:498: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 (addr_buffer + 5, address, addr_len); /* server address */
data/weechat-3.0/src/core/wee-network.c:662:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_port[16], ip[NI_MAXHOST];
data/weechat-3.0/src/core/wee-network.c:688: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).
        port = atoi (str_port);
data/weechat-3.0/src/core/wee-network.c:745: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 port[NI_MAXSERV + 1];
data/weechat-3.0/src/core/wee-network.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 status_str[2], *ptr_address, *status_with_string;
data/weechat-3.0/src/core/wee-network.c:747: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 remote_address[NI_MAXHOST + 1];
data/weechat-3.0/src/core/wee-network.c:748: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 status_without_string[1 + 5 + 1];
data/weechat-3.0/src/core/wee-network.c:754: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_buf[CMSG_SPACE(sizeof (sock))];
data/weechat-3.0/src/core/wee-network.c:756: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 iov_data[1] = { 0 };
data/weechat-3.0/src/core/wee-network.c:1205:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (CMSG_DATA(cmsg), &sock, sizeof (sock));
data/weechat-3.0/src/core/wee-network.c:1389: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[1], buf_size[6], *cb_error, *cb_ip_address, *error;
data/weechat-3.0/src/core/wee-network.c:1396: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_buf[CMSG_SPACE(sizeof (sock))];
data/weechat-3.0/src/core/wee-network.c:1398: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 iov_data[1];
data/weechat-3.0/src/core/wee-network.c:1634:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_error[1024];
data/weechat-3.0/src/core/wee-network.h:34:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char user[128];       /* username                                       */
data/weechat-3.0/src/core/wee-proxy.c:40:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *proxy_option_string[PROXY_NUM_OPTIONS] =
data/weechat-3.0/src/core/wee-proxy.c:42:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *proxy_option_default[PROXY_NUM_OPTIONS] =
data/weechat-3.0/src/core/wee-proxy.c:44:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *proxy_type_string[PROXY_NUM_TYPES] =
data/weechat-3.0/src/core/wee-secure-config.c:56: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 *prompt[5];
data/weechat-3.0/src/core/wee-secure-config.c:57: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 passphrase[SECURE_PASSPHRASE_MAX_LENGTH + 1];
data/weechat-3.0/src/core/wee-secure-config.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 *passphrase, *filename2, buffer[1024+1], *pos;
data/weechat-3.0/src/core/wee-secure-config.c:118: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).
    file = fopen (filename2, "r");
data/weechat-3.0/src/core/wee-secure-config.c:222: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, *decrypted, str_error[1024];
data/weechat-3.0/src/core/wee-secure.c:78: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, hash[512 / 8];
data/weechat-3.0/src/core/wee-secure.c:92: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 (buffer, salt, SECURE_SALT_SIZE);
data/weechat-3.0/src/core/wee-secure.c:93: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 (buffer + SECURE_SALT_SIZE, passphrase, strlen (passphrase));
data/weechat-3.0/src/core/wee-secure.c:103: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 (key, hash,
data/weechat-3.0/src/core/wee-secure.c:154: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 salt[SECURE_SALT_SIZE];
data/weechat-3.0/src/core/wee-secure.c:188:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (salt, SECURE_SALT_DEFAULT,
data/weechat-3.0/src/core/wee-secure.c:219: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 (hash_and_data, ptr_hash, length_hash);
data/weechat-3.0/src/core/wee-secure.c:220: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 (hash_and_data + length_hash, data, length_data);
data/weechat-3.0/src/core/wee-secure.c:246: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 (*encrypted, salt, SECURE_SALT_SIZE);
data/weechat-3.0/src/core/wee-secure.c:247: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 (*encrypted + SECURE_SALT_SIZE, hash_and_data, length_hash_data);
data/weechat-3.0/src/core/wee-secure.c:399: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 (*decrypted, decrypted_hash_data + length_hash, *length_decrypted);
data/weechat-3.0/src/core/wee-string.c:92: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, string, length);
data/weechat-3.0/src/core/wee-string.c:156:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (result, string, ptr_string - string);
data/weechat-3.0/src/core/wee-string.c:157:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (result + (ptr_string - string), cut_suffix,
data/weechat-3.0/src/core/wee-string.c:200:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (ptr_result, ptr_string, char_size);
data/weechat-3.0/src/core/wee-string.c:250:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (ptr_result, ptr_string, color_size);
data/weechat-3.0/src/core/wee-string.c:259:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (ptr_result, ptr_string, char_size);
data/weechat-3.0/src/core/wee-string.c:301:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (result + i, string, length_string);
data/weechat-3.0/src/core/wee-string.c:944: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, utf_char[16];
data/weechat-3.0/src/core/wee-string.c:1048:29:  [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 (output + pos_output, utf_char, length);
data/weechat-3.0/src/core/wee-string.c:1719:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (result + length_current, ptr_add, length_add);
data/weechat-3.0/src/core/wee-string.c:1835:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (result2, result, regex_match[0].rm_so);
data/weechat-3.0/src/core/wee-string.c:2327:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (temp + temp_len, ptr_string, ptr_next - ptr_string);
data/weechat-3.0/src/core/wee-string.c:2884: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 format_size[128], str_size[128];
data/weechat-3.0/src/core/wee-string.c:3181: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 rest[3];
data/weechat-3.0/src/core/wee-string.c:3255: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 c, in[4], out[3];
data/weechat-3.0/src/core/wee-string.c:3363: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, *str_hexa, *str_ascii, str_format_line[64], *str_line;
data/weechat-3.0/src/core/wee-upgrade-file.c:221:38:  [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).
            new_upgrade_file->file = fopen (new_upgrade_file->filename, "rb");
data/weechat-3.0/src/core/wee-upgrade-file.c:223:38:  [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).
            new_upgrade_file->file = fopen (new_upgrade_file->filename, "wb");
data/weechat-3.0/src/core/wee-upgrade.c:409: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 option_name[64], *option_key, *option_var;
data/weechat-3.0/src/core/wee-upgrade.c:733: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 option_name[64];
data/weechat-3.0/src/core/wee-upgrade.c:756:17:  [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 (&creation_time, buf, size);
data/weechat-3.0/src/core/wee-url.c:893:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char url_error[CURL_ERROR_SIZE + 1];
data/weechat-3.0/src/core/wee-url.c:1187: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 *url_file_option[2] = { "file_in", "file_out" };
data/weechat-3.0/src/core/wee-url.c:1188: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 *url_file_mode[2] = { "rb", "wb" };
data/weechat-3.0/src/core/wee-url.c:1237:38:  [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).
                url_file[i].stream = fopen (url_file[i].filename, url_file_mode[i]);
data/weechat-3.0/src/core/wee-utf8.c:493: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 *alloc_wstring, *ptr_wstring, wstring[4+2];
data/weechat-3.0/src/core/wee-utf8.c:662: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 utf_char[16];
data/weechat-3.0/src/core/wee-utf8.c:671: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 (utf_char, string, char_size);
data/weechat-3.0/src/core/wee-util.c:139:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_limit[64];
data/weechat-3.0/src/core/wee-util.c:327: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 text_time[128];
data/weechat-3.0/src/core/wee-util.c:718:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char complete_filename[PATH_MAX];
data/weechat-3.0/src/core/wee-util.c:933: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).
    f = fopen (filename, "r");
data/weechat-3.0/src/core/wee-util.c:986: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 **items, buf[64], *error;
data/weechat-3.0/src/core/wee-version.c:99: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 version[256];
data/weechat-3.0/src/gui/curses/gui-curses-bar-window.c:176: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 utf_char[16], *next_char, *output;
data/weechat-3.0/src/gui/curses/gui-curses-bar-window.c:345:17:  [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 (utf_char, string, next_char - string);
data/weechat-3.0/src/gui/curses/gui-curses-bar-window.c:420: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 str_start_input[16] = { '\0' };
data/weechat-3.0/src/gui/curses/gui-curses-bar-window.c:421: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 str_start_input_hidden[16] = { '\0' };
data/weechat-3.0/src/gui/curses/gui-curses-bar-window.c:422: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 str_cursor[16] = { '\0' };
data/weechat-3.0/src/gui/curses/gui-curses-chat.c:375: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 *next_char, *output, utf_char[16], *ptr_char;
data/weechat-3.0/src/gui/curses/gui-curses-chat.c:402:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (utf_char, string, next_char - string);
data/weechat-3.0/src/gui/curses/gui-curses-chat.c:622: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_message[1024], message[1024], *message_with_color;
data/weechat-3.0/src/gui/curses/gui-curses-chat.c:1977: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 *prefix, *message, str_time[256], *str_line;
data/weechat-3.0/src/gui/curses/gui-curses-chat.c:2130: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 format_empty[32];
data/weechat-3.0/src/gui/curses/gui-curses-color.c:518: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 color[16][64];
data/weechat-3.0/src/gui/curses/gui-curses-color.c:520:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_attr[8];
data/weechat-3.0/src/gui/curses/gui-curses-color.c:750:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_line[1024], str_color[64];
data/weechat-3.0/src/gui/curses/gui-curses-color.c:844:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_line[1024], str_color[64], str_rgb[64], **items;
data/weechat-3.0/src/gui/curses/gui-curses-color.c:1329:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_number[64];
data/weechat-3.0/src/gui/curses/gui-curses-color.c:1379:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *str_alias, *str_rgb, str_number[64];
data/weechat-3.0/src/gui/curses/gui-curses-key.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 key_str[32], command[32];
data/weechat-3.0/src/gui/curses/gui-curses-key.c:314: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 key_str[64] = { '\0' };
data/weechat-3.0/src/gui/curses/gui-curses-key.c:316: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 key_temp[2], *key_utf, *input_old, *ptr_char, *next_char, *ptr_error;
data/weechat-3.0/src/gui/curses/gui-curses-key.c:317: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 utf_partial_char[16];
data/weechat-3.0/src/gui/curses/gui-curses-key.c:523: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 buffer[4096];
data/weechat-3.0/src/gui/curses/gui-curses-main.c:165: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 title[256];
data/weechat-3.0/src/gui/curses/gui-curses-main.c:277:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_signal[32];
data/weechat-3.0/src/gui/curses/gui-curses-main.c:313:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_signal[32];
data/weechat-3.0/src/gui/curses/gui-curses-mouse.c:148: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 area[256];
data/weechat-3.0/src/gui/curses/gui-curses-mouse.c:187: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 mouse_key_input[256];
data/weechat-3.0/src/gui/curses/gui-curses-mouse.c:260: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 key[128];
data/weechat-3.0/src/gui/curses/gui-curses-mouse.c:344:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        strcat (key, "-event-");
data/weechat-3.0/src/gui/curses/gui-curses-mouse.c:346:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat (key, "drag");
data/weechat-3.0/src/gui/curses/gui-curses-mouse.c:352:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat (key, "down");
data/weechat-3.0/src/gui/curses/gui-curses-mouse.c:405:17:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                strcat (key, "-gesture-up");
data/weechat-3.0/src/gui/curses/gui-curses-mouse.c:407:21:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                    strcat (key, "-long");
data/weechat-3.0/src/gui/curses/gui-curses-mouse.c:411:17:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                strcat (key, "-gesture-down");
data/weechat-3.0/src/gui/curses/gui-curses-mouse.c:413:21:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                    strcat (key, "-long");
data/weechat-3.0/src/gui/curses/gui-curses-mouse.c:417:17:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                strcat (key, "-gesture-left");
data/weechat-3.0/src/gui/curses/gui-curses-mouse.c:419:21:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                    strcat (key, "-long");
data/weechat-3.0/src/gui/curses/gui-curses-mouse.c:423:17:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                strcat (key, "-gesture-right");
data/weechat-3.0/src/gui/curses/gui-curses-mouse.c:425:21:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                    strcat (key, "-long");
data/weechat-3.0/src/gui/curses/gui-curses-window.c:616:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_fg[6], *error;
data/weechat-3.0/src/gui/curses/gui-curses-window.c:635:17:  [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 (str_fg, ptr_string, 5);
data/weechat-3.0/src/gui/curses/gui-curses-window.c:688:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_bg[6], *error;
data/weechat-3.0/src/gui/curses/gui-curses-window.c:700:17:  [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 (str_bg, ptr_string + 1, 5);
data/weechat-3.0/src/gui/curses/gui-curses-window.c:747:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_fg[6], str_bg[6], *error;
data/weechat-3.0/src/gui/curses/gui-curses-window.c:770:17:  [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 (str_fg, ptr_string, 5);
data/weechat-3.0/src/gui/curses/gui-curses-window.c:822:21:  [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 (str_bg, ptr_string + 1, 5);
data/weechat-3.0/src/gui/curses/gui-curses-window.c:871:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_pair[6], *error;
data/weechat-3.0/src/gui/curses/gui-curses-window.c:882:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (str_pair, ptr_string, 5);
data/weechat-3.0/src/gui/curses/gui-curses-window.c:908:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_number[3], *error;
data/weechat-3.0/src/gui/curses/gui-curses-window.c:1375: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 scroll[32];
data/weechat-3.0/src/gui/curses/gui-curses-window.c:1425: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 scroll[32];
data/weechat-3.0/src/gui/curses/gui-curses-window.c:1479: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 scroll[32];
data/weechat-3.0/src/gui/curses/gui-curses-window.c:1522: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 scroll[32];
data/weechat-3.0/src/gui/curses/gui-curses-window.c:1604: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 scroll[32];
data/weechat-3.0/src/gui/curses/headless/main.c:79:10:  [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 ("/dev/null", O_RDWR);
data/weechat-3.0/src/gui/gui-bar-item.c:60:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *gui_bar_item_names[GUI_BAR_NUM_ITEMS] =
data/weechat-3.0/src/gui/gui-bar-item.c:374: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 *item_value, delimiter_color[32], bar_color[32];
data/weechat-3.0/src/gui/gui-bar-item.c:375: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, str_attr[8];
data/weechat-3.0/src/gui/gui-bar-item.c:744:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_paste[1024];
data/weechat-3.0/src/gui/gui-bar-item.c:809:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_search[1024];
data/weechat-3.0/src/gui/gui-bar-item.c:852: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 *ptr_input, *ptr_input2, str_buffer[128], str_start_input[16];
data/weechat-3.0/src/gui/gui-bar-item.c:853:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_cursor[16], *buf;
data/weechat-3.0/src/gui/gui-bar-item.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 text_time[128], text_time2[128];
data/weechat-3.0/src/gui/gui-bar-item.c:1025: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[32];
data/weechat-3.0/src/gui/gui-bar-item.c:1051: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[32];
data/weechat-3.0/src/gui/gui-bar-item.c:1106:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_number[64];
data/weechat-3.0/src/gui/gui-bar-item.c:1136:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_name[256];
data/weechat-3.0/src/gui/gui-bar-item.c:1167:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_short_name[256];
data/weechat-3.0/src/gui/gui-bar-item.c:1223:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_filter[512];
data/weechat-3.0/src/gui/gui-bar-item.c:1260:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_count[64];
data/weechat-3.0/src/gui/gui-bar-item.c:1291:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_count[64];
data/weechat-3.0/src/gui/gui-bar-item.c:1322:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_count[64];
data/weechat-3.0/src/gui/gui-bar-item.c:1354: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[512];
data/weechat-3.0/src/gui/gui-bar-item.c:1387:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_scroll[512];
data/weechat-3.0/src/gui/gui-bar-item.c:1420:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_hotlist[4096], *buffer_without_name_displayed, *buffer_name;
data/weechat-3.0/src/gui/gui-bar-item.c:1655: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, str_number[64];
data/weechat-3.0/src/gui/gui-bar-item.c:1895:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_number[64];
data/weechat-3.0/src/gui/gui-bar-item.c:1923:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_mouse[512];
data/weechat-3.0/src/gui/gui-bar-item.c:2094: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 item_time_text[128] = { '\0' };
data/weechat-3.0/src/gui/gui-bar-item.c:2095: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 new_item_time_text[128];
data/weechat-3.0/src/gui/gui-bar-item.c:2165: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[128];
data/weechat-3.0/src/gui/gui-bar-window.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 *content, *content2, str_reinit_color[32];
data/weechat-3.0/src/gui/gui-bar-window.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 str_reinit_color_space[32], str_reinit_color_space_start_line[32];
data/weechat-3.0/src/gui/gui-bar-window.c:685:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_start_item[32];
data/weechat-3.0/src/gui/gui-bar-window.c:1628: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 option_name[64];
data/weechat-3.0/src/gui/gui-bar.c:50:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *gui_bar_option_string[GUI_BAR_NUM_OPTIONS] =
data/weechat-3.0/src/gui/gui-bar.c:54:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *gui_bar_option_default[GUI_BAR_NUM_OPTIONS] =
data/weechat-3.0/src/gui/gui-bar.c:58:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *gui_bar_type_string[GUI_BAR_NUM_TYPES] =
data/weechat-3.0/src/gui/gui-bar.c:60:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *gui_bar_position_string[GUI_BAR_NUM_POSITIONS] =
data/weechat-3.0/src/gui/gui-bar.c:62:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *gui_bar_filling_string[GUI_BAR_NUM_FILLING] =
data/weechat-3.0/src/gui/gui-bar.c:310:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_modifier[256], str_window[128], *str_displayed, *result;
data/weechat-3.0/src/gui/gui-bar.c:1065: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 value[32];
data/weechat-3.0/src/gui/gui-bar.c:1317: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_items[1] = { '\0' };
data/weechat-3.0/src/gui/gui-bar.c:2320: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 option_name[64];
data/weechat-3.0/src/gui/gui-buffer.c:82:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *gui_buffer_type_string[GUI_BUFFER_NUM_TYPES] =
data/weechat-3.0/src/gui/gui-buffer.c:85:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *gui_buffer_notify_string[GUI_BUFFER_NUM_NOTIFY] =
data/weechat-3.0/src/gui/gui-buffer.c:4450: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 option_name[64];
data/weechat-3.0/src/gui/gui-buffer.c:4611: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[256];
data/weechat-3.0/src/gui/gui-chat.c:52:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *gui_chat_prefix[GUI_CHAT_NUM_PREFIXES];   /* prefixes                 */
data/weechat-3.0/src/gui/gui-chat.c:70: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 *default_prefix[GUI_CHAT_NUM_PREFIXES] =
data/weechat-3.0/src/gui/gui-chat.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 str_prefix[64];
data/weechat-3.0/src/gui/gui-chat.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 prefix[512], *pos_color;
data/weechat-3.0/src/gui/gui-chat.c:420: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 text_time[128], text_time2[(128*3)+16], text_time_char[2];
data/weechat-3.0/src/gui/gui-chat.c:647:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat (buf, " [");
data/weechat-3.0/src/gui/gui-chat.c:1140:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_time[128], *str, *error;
data/weechat-3.0/src/gui/gui-chat.h:60:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char *gui_chat_prefix[GUI_CHAT_NUM_PREFIXES];
data/weechat-3.0/src/gui/gui-color.c:105:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *gui_color_ansi[16] =
data/weechat-3.0/src/gui/gui-color.c:243: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 color[32][96];
data/weechat-3.0/src/gui/gui-color.c:245: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 color_fg[32], color_bg[32];
data/weechat-3.0/src/gui/gui-color.c:931:17:  [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 (out + out_pos, ptr_string, length);
data/weechat-3.0/src/gui/gui-color.c:952: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 *text2, **items, *output, str_color[128];
data/weechat-3.0/src/gui/gui-color.c:994: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).
        value = atoi (items[i]);
data/weechat-3.0/src/gui/gui-color.c:1040:29:  [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).
                    switch (atoi (items[i + 1]))
data/weechat-3.0/src/gui/gui-color.c:1048:48:  [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).
                                              (atoi (items[i + 2]) << 16) |
data/weechat-3.0/src/gui/gui-color.c:1049:48:  [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).
                                              (atoi (items[i + 3]) << 8) |
data/weechat-3.0/src/gui/gui-color.c:1050: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).
                                              atoi (items[i + 4]),
data/weechat-3.0/src/gui/gui-color.c:1060:50:  [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).
                                          "|%d", atoi (items[i + 2]));
data/weechat-3.0/src/gui/gui-color.c:1087:29:  [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).
                    switch (atoi (items[i + 1]))
data/weechat-3.0/src/gui/gui-color.c:1095:48:  [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).
                                              (atoi (items[i + 2]) << 16) |
data/weechat-3.0/src/gui/gui-color.c:1096:48:  [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).
                                              (atoi (items[i + 3]) << 8) |
data/weechat-3.0/src/gui/gui-color.c:1097: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).
                                              atoi (items[i + 4]),
data/weechat-3.0/src/gui/gui-color.c:1107: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).
                                          "|,%d", atoi (items[i + 2]));
data/weechat-3.0/src/gui/gui-color.c:1248: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 **out, str_concat[128], str_color[8], *error;
data/weechat-3.0/src/gui/gui-color.c:1278:33:  [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 (str_color, ptr_string, 5);
data/weechat-3.0/src/gui/gui-color.c:1301:33:  [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 (str_color, ptr_string, 2);
data/weechat-3.0/src/gui/gui-color.c:1329:33:  [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 (str_color, ptr_string, 5);
data/weechat-3.0/src/gui/gui-color.c:1347:33:  [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 (str_color, ptr_string, 2);
data/weechat-3.0/src/gui/gui-color.c:1380:33:  [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 (str_color, ptr_string, 5);
data/weechat-3.0/src/gui/gui-color.c:1403:33:  [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 (str_color, ptr_string, 2);
data/weechat-3.0/src/gui/gui-color.c:1437:37:  [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 (str_color, ptr_string, 5);
data/weechat-3.0/src/gui/gui-color.c:1456:37:  [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 (str_color, ptr_string, 2);
data/weechat-3.0/src/gui/gui-color.c:1483:29:  [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 (str_color, ptr_string, 5);
data/weechat-3.0/src/gui/gui-color.c:1523:29:  [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 (str_color, ptr_string, 2);
data/weechat-3.0/src/gui/gui-color.c:1889:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_number[64];
data/weechat-3.0/src/gui/gui-color.c:1904:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_number[64];
data/weechat-3.0/src/gui/gui-color.c:1929:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_number[64];
data/weechat-3.0/src/gui/gui-completion.c:371: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 utf_char[16];
data/weechat-3.0/src/gui/gui-completion.c:376:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (utf_char, string, char_size);
data/weechat-3.0/src/gui/gui-completion.c:398: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, *pos, utf_char[16];
data/weechat-3.0/src/gui/gui-completion.c:405:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (utf_char, string, char_size);
data/weechat-3.0/src/gui/gui-completion.c:411:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (pos, utf_char, char_size);
data/weechat-3.0/src/gui/gui-completion.c:471: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[512];
data/weechat-3.0/src/gui/gui-completion.c:1063: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 utf_char[16], *word;
data/weechat-3.0/src/gui/gui-completion.c:1098:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (utf_char, ptr_completion_word->word, char_size);
data/weechat-3.0/src/gui/gui-cursor.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 str_info[1024];
data/weechat-3.0/src/gui/gui-filter.c:292: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 *pos_tab, *regex_prefix, buf[512], str_error[512];
data/weechat-3.0/src/gui/gui-filter.c:572: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 option_name[64], *tags;
data/weechat-3.0/src/gui/gui-focus.c:120: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 hash_key[512];
data/weechat-3.0/src/gui/gui-focus.c:147:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_value[128], *str_time, *str_prefix, *str_tags, *str_message;
data/weechat-3.0/src/gui/gui-history.c:151: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 *string2, str_buffer[128];
data/weechat-3.0/src/gui/gui-hotlist.c:302: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 *value, str_value[32];
data/weechat-3.0/src/gui/gui-hotlist.c:393:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (count, ptr_hotlist->count, sizeof (ptr_hotlist->count));
data/weechat-3.0/src/gui/gui-hotlist.c:404:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&(new_hotlist->creation_time),
data/weechat-3.0/src/gui/gui-hotlist.c:438:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&(new_hotlist->creation_time), &(hotlist->creation_time),
data/weechat-3.0/src/gui/gui-hotlist.c:441:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (new_hotlist->count, hotlist->count, sizeof (hotlist->count));
data/weechat-3.0/src/gui/gui-hotlist.c:613: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 option_name[64];
data/weechat-3.0/src/gui/gui-input.c:147:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_buffer[128], *new_input;
data/weechat-3.0/src/gui/gui-input.c:277:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (ptr_start, string_utf8, size);
data/weechat-3.0/src/gui/gui-input.c:371:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (gui_input_clipboard, buffer, size);
data/weechat-3.0/src/gui/gui-input.c:1036: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 *start, *prev_char, saved_char[5];
data/weechat-3.0/src/gui/gui-input.c:1053:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (saved_char, prev_char, size_prev_char);
data/weechat-3.0/src/gui/gui-input.c:1054:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (prev_char, start, size_start_char);
data/weechat-3.0/src/gui/gui-input.c:1055:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (prev_char + size_start_char, saved_char, size_prev_char);
data/weechat-3.0/src/gui/gui-key.c:67:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *gui_key_context_string[GUI_KEY_NUM_CONTEXTS] =
data/weechat-3.0/src/gui/gui-key.c:70:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *gui_key_focus_string[GUI_KEY_NUM_FOCUS] =
data/weechat-3.0/src/gui/gui-key.c:75:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char gui_key_combo_buffer[1024];    /* buffer used for combos               */
data/weechat-3.0/src/gui/gui-key.c:290:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat (result, "\x01[[");
data/weechat-3.0/src/gui/gui-key.c:295:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat (result, "\x01[");
data/weechat-3.0/src/gui/gui-key.c:300:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat (result, "\x01");
data/weechat-3.0/src/gui/gui-key.c:346:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat (result, "meta2-");
data/weechat-3.0/src/gui/gui-key.c:351:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat (result, "meta-");
data/weechat-3.0/src/gui/gui-key.c:356:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat (result, "ctrl-");
data/weechat-3.0/src/gui/gui-key.c:361:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat (result, "space");
data/weechat-3.0/src/gui/gui-key.c:503: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 *pos_colon, *pos_area2, *areas[2];
data/weechat-3.0/src/gui/gui-key.c:1298: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 *pos, signal_name[128], **commands;
data/weechat-3.0/src/gui/gui-key.c:1904:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_list[128];
data/weechat-3.0/src/gui/gui-key.h:59:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *area_name[2];             /* name of areas (for cursor/mouse)     */
data/weechat-3.0/src/gui/gui-key.h:75:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char *gui_key_context_string[GUI_KEY_NUM_CONTEXTS];
data/weechat-3.0/src/gui/gui-line.c:2089: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 option_name[64], *tags;
data/weechat-3.0/src/gui/gui-nick.c:208: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, *pos, utf_char[16];
data/weechat-3.0/src/gui/gui-nick.c:219:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (utf_char, nickname, char_size);
data/weechat-3.0/src/gui/gui-nick.c:235:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (pos, utf_char, char_size);
data/weechat-3.0/src/gui/gui-nicklist.c:1262: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 format[128];
data/weechat-3.0/src/gui/gui-window.c:1241:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&old_line_date, date_tmp, sizeof (struct tm));
data/weechat-3.0/src/gui/gui-window.c:1264:17:  [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 (&line_date, date_tmp, sizeof (struct tm));
data/weechat-3.0/src/plugins/alias/alias-command.c:103:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    (char *)weechat_utf8_next_char (argv[2]) : argv[2];
data/weechat-3.0/src/plugins/alias/alias-command.c:179: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.
            (char *)weechat_utf8_next_char (argv[2]) : argv[2],
data/weechat-3.0/src/plugins/alias/alias-command.c:190: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.
            (char *)weechat_utf8_next_char (argv[3]) : argv[3],
data/weechat-3.0/src/plugins/alias/alias-command.c:202:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                (char *)weechat_utf8_next_char (argv[i]) : argv[i];
data/weechat-3.0/src/plugins/buflist/buflist-bar-item.c:50: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 item_name[32];
data/weechat-3.0/src/plugins/buflist/buflist-bar-item.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 ***items_name, str_option[1024];
data/weechat-3.0/src/plugins/buflist/buflist-bar-item.c:195:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_scroll[64];
data/weechat-3.0/src/plugins/buflist/buflist-bar-item.c:297:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_format_number[32], str_format_number_empty[32];
data/weechat-3.0/src/plugins/buflist/buflist-bar-item.c:298:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_nick_prefix[32], str_color_nick_prefix[32];
data/weechat-3.0/src/plugins/buflist/buflist-bar-item.c:299:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_number[32], str_number2[32], *line, **hotlist, *str_hotlist;
data/weechat-3.0/src/plugins/buflist/buflist-bar-item.c:300:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_hotlist_count[32];
data/weechat-3.0/src/plugins/buflist/buflist-bar-item.c:305: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 *hotlist_priority[4] = { "low", "message", "private",
data/weechat-3.0/src/plugins/buflist/buflist-bar-item.c:307: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 indent_empty[1] = { '\0' };
data/weechat-3.0/src/plugins/buflist/buflist-config.c:64:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char **buflist_config_sort_fields[BUFLIST_BAR_NUM_ITEMS] = { NULL, NULL, NULL };
data/weechat-3.0/src/plugins/buflist/buflist-config.c:369: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, *tmp, format[512], format_eval[512];
data/weechat-3.0/src/plugins/buflist/buflist-config.h:61:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char **buflist_config_sort_fields[BUFLIST_BAR_NUM_ITEMS];
data/weechat-3.0/src/plugins/buflist/buflist-mouse.c:42: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 *error, str_value[128], **list_keys;
data/weechat-3.0/src/plugins/buflist/buflist-mouse.c:183:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_command[128];
data/weechat-3.0/src/plugins/buflist/buflist-mouse.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 *error, str_command[1024];
data/weechat-3.0/src/plugins/buflist/buflist.c:422:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_key[256];
data/weechat-3.0/src/plugins/exec/exec-command.c:42:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_elapsed[32], str_time1[256], str_time2[256];
data/weechat-3.0/src/plugins/exec/exec-command.c:412:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_buffer[512], *shell, *default_shell = "sh";
data/weechat-3.0/src/plugins/exec/exec-completion.c:41:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_number[32];
data/weechat-3.0/src/plugins/exec/exec.c:48:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *exec_color_string[EXEC_NUM_COLORS] =
data/weechat-3.0/src/plugins/exec/exec.c:243: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_color, *line_color2, *line2, str_number[32], str_tags[1024];
data/weechat-3.0/src/plugins/exec/exec.c:399:21:  [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 (line, exec_cmd->output[out],
data/weechat-3.0/src/plugins/exec/exec.c:401:21:  [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 (line + exec_cmd->output_size[out],
data/weechat-3.0/src/plugins/exec/exec.c:431:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (exec_cmd->output[out] + exec_cmd->output_size[out],
data/weechat-3.0/src/plugins/exec/exec.c:446:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_number[32], *output;
data/weechat-3.0/src/plugins/exec/exec.h:67: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[2];                   /* stdout/stderr of command          */
data/weechat-3.0/src/plugins/fifo/fifo.c:103:24:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if ((fifo_fd = open (fifo_filename,
data/weechat-3.0/src/plugins/fifo/fifo.c:246:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[4096 + 2];
data/weechat-3.0/src/plugins/fset/fset-bar-item.c:60:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_help[8192], **default_and_values;
data/weechat-3.0/src/plugins/fset/fset-buffer.c:48:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_marked[32], str_title[8192];
data/weechat-3.0/src/plugins/fset/fset-buffer.c:165: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, str_color_line[128], **lines;
data/weechat-3.0/src/plugins/fset/fset-buffer.c:167:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_color_value[128], str_color_quotes[128], str_number[64];
data/weechat-3.0/src/plugins/fset/fset-buffer.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 str_marked[128], str_name[4096], str_type[128], *str_value;
data/weechat-3.0/src/plugins/fset/fset-buffer.c:822:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_color_line[128], str_color_value[128], str_color_quotes[128];
data/weechat-3.0/src/plugins/fset/fset-buffer.c:1099:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_command[256];
data/weechat-3.0/src/plugins/fset/fset-buffer.c:1379:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_key[64];
data/weechat-3.0/src/plugins/fset/fset-command.c:85:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_command[512], str_number[64];
data/weechat-3.0/src/plugins/fset/fset-command.c:447: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 **argv, *old_filter, *result, str_number[64];
data/weechat-3.0/src/plugins/fset/fset-mouse.c:47: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 *error, str_value[128];
data/weechat-3.0/src/plugins/fset/fset-mouse.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 str_command[1024];
data/weechat-3.0/src/plugins/fset/fset-option.c:50:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *fset_option_type_string[FSET_OPTION_NUM_TYPES] =
data/weechat-3.0/src/plugins/fset/fset-option.c:52:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *fset_option_type_string_short[FSET_OPTION_NUM_TYPES] =
data/weechat-3.0/src/plugins/fset/fset-option.c:54:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *fset_option_type_string_tiny[FSET_OPTION_NUM_TYPES] =
data/weechat-3.0/src/plugins/fset/fset-option.c:155:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_value[64];
data/weechat-3.0/src/plugins/fset/fset-option.c:427:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_value[64];
data/weechat-3.0/src/plugins/fset/fset-option.c:1122:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_value[128];
data/weechat-3.0/src/plugins/fset/fset-option.c:1186: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 *ptr_value, *str_input, str_pos[32];
data/weechat-3.0/src/plugins/fset/fset-option.c:1187: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_value[1] = { '\0' };
data/weechat-3.0/src/plugins/fset/fset-option.c:1344: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).
    file = fopen (filename, "w");
data/weechat-3.0/src/plugins/guile/weechat-guile-api.c:41: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 *guile_strings[GUILE_MAX_STRINGS];                             \
data/weechat-3.0/src/plugins/guile/weechat-guile-api.c:837: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/guile/weechat-guile-api.c:897: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/guile/weechat-guile-api.c:938: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/guile/weechat-guile-api.c:977: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/guile/weechat-guile-api.c:1018: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/guile/weechat-guile-api.c:1060: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/guile/weechat-guile-api.c:1181: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/guile/weechat-guile-api.c:1219: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/guile/weechat-guile-api.c:1247: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/guile/weechat-guile-api.c:1946: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/guile/weechat-guile-api.c:2018: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/guile/weechat-guile-api.c:2125: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/guile/weechat-guile-api.c:2184:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_remaining_calls[32], empty_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/guile/weechat-guile-api.c:2248: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/guile/weechat-guile-api.c:2312: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_arg[1] = { '\0' }, *result;
data/weechat-3.0/src/plugins/guile/weechat-guile-api.c:2430: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/guile/weechat-guile-api.c:2505: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/guile/weechat-guile-api.c:2561: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/guile/weechat-guile-api.c:2563: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 timebuffer[64];
data/weechat-3.0/src/plugins/guile/weechat-guile-api.c:2641: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/guile/weechat-guile-api.c:2643: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 str_value[64];
data/weechat-3.0/src/plugins/guile/weechat-guile-api.c:2762: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/guile/weechat-guile-api.c:2844: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/guile/weechat-guile-api.c:2905: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/guile/weechat-guile-api.c:2974: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/guile/weechat-guile-api.c:3027: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/guile/weechat-guile-api.c:3084: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/guile/weechat-guile-api.c:3143: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/guile/weechat-guile-api.c:3229: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/guile/weechat-guile-api.c:3267: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/guile/weechat-guile-api.c:3884: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_arg[1] = { '\0' }, *ret;
data/weechat-3.0/src/plugins/guile/weechat-guile-api.c:4879: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_arg[1] = { '\0' }, str_object_id[32];
data/weechat-3.0/src/plugins/guile/weechat-guile.c:369:57:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    argv2[i] = scm_from_locale_string ((char *)argv[i]);
data/weechat-3.0/src/plugins/guile/weechat-guile.c:1177: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 (data2, data + start, count);
data/weechat-3.0/src/plugins/guile/weechat-guile.c:1209: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 (data2, data, size);
data/weechat-3.0/src/plugins/guile/weechat-guile.c:1234:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_version[128];
data/weechat-3.0/src/plugins/irc/irc-bar-item.c:47: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[512];
data/weechat-3.0/src/plugins/irc/irc-bar-item.c:117: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[512], buf_name[256];
data/weechat-3.0/src/plugins/irc/irc-bar-item.c:251: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 modes[128], *modes_without_args;
data/weechat-3.0/src/plugins/irc/irc-bar-item.c:312: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[512], buf_name[256], modes[128];
data/weechat-3.0/src/plugins/irc/irc-bar-item.c:392: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[512];
data/weechat-3.0/src/plugins/irc/irc-bar-item.c:456: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[512];
data/weechat-3.0/src/plugins/irc/irc-bar-item.c:491: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[128];
data/weechat-3.0/src/plugins/irc/irc-bar-item.c:536: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, str_prefix[64];
data/weechat-3.0/src/plugins/irc/irc-bar-item.c:659:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_value[128];
data/weechat-3.0/src/plugins/irc/irc-buffer.c:93:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[128];
data/weechat-3.0/src/plugins/irc/irc-channel.c:84:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_number[32];
data/weechat-3.0/src/plugins/irc/irc-channel.c:245:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_number[32], *channel_name_lower;
data/weechat-3.0/src/plugins/irc/irc-channel.c: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 str_group[32];
data/weechat-3.0/src/plugins/irc/irc-channel.c:669: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 first_char[2];
data/weechat-3.0/src/plugins/irc/irc-channel.c:694: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 chantype[2];
data/weechat-3.0/src/plugins/irc/irc-channel.c:1351: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 join_args[256];
data/weechat-3.0/src/plugins/irc/irc-channel.c:1631: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 option_name[64];
data/weechat-3.0/src/plugins/irc/irc-color.c:34:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *irc_color_to_weechat[IRC_NUM_COLORS] =
data/weechat-3.0/src/plugins/irc/irc-color.c:64:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char irc_color_term2irc[IRC_COLOR_TERM2IRC_NUM_COLORS] =
data/weechat-3.0/src/plugins/irc/irc-color.c:99:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_fg[3], str_bg[3], str_color[128], str_key[128], str_to_add[128];
data/weechat-3.0/src/plugins/irc/irc-color.c:264:17:  [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 (str_to_add, ptr_string, length);
data/weechat-3.0/src/plugins/irc/irc-color.c:416:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_color[64], *error, *info_color;
data/weechat-3.0/src/plugins/irc/irc-color.c:455:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_color[64], *error, *info_color;
data/weechat-3.0/src/plugins/irc/irc-color.c:492: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 *text2, **items, *output, str_color[128];
data/weechat-3.0/src/plugins/irc/irc-color.c:534: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).
        value = atoi (items[i]);
data/weechat-3.0/src/plugins/irc/irc-color.c:604:30:  [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).
                    value2 = atoi (items[i + 1]);
data/weechat-3.0/src/plugins/irc/irc-color.c:611:34:  [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).
                                (atoi (items[i + 2]) << 16) |
data/weechat-3.0/src/plugins/irc/irc-color.c:612:34:  [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).
                                (atoi (items[i + 3]) << 8) |
data/weechat-3.0/src/plugins/irc/irc-color.c:613: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).
                                atoi (items[i + 4]));
data/weechat-3.0/src/plugins/irc/irc-color.c:630:65:  [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).
                            color = irc_color_convert_term2irc (atoi (items[i + 2]));
data/weechat-3.0/src/plugins/irc/irc-color.c:667:30:  [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).
                    value2 = atoi (items[i + 1]);
data/weechat-3.0/src/plugins/irc/irc-color.c:674:34:  [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).
                                (atoi (items[i + 2]) << 16) |
data/weechat-3.0/src/plugins/irc/irc-color.c:675:34:  [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).
                                (atoi (items[i + 3]) << 8) |
data/weechat-3.0/src/plugins/irc/irc-color.c:676: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).
                                atoi (items[i + 4]));
data/weechat-3.0/src/plugins/irc/irc-color.c:693:65:  [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).
                            color = irc_color_convert_term2irc (atoi (items[i + 2]));
data/weechat-3.0/src/plugins/irc/irc-color.c:861:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_color_irc[32];
data/weechat-3.0/src/plugins/irc/irc-command.c:76: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 prefix, modes[128+1], nicks[1024];
data/weechat-3.0/src/plugins/irc/irc-command.c:240: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 modes[128+1], masks[1024], *mask;
data/weechat-3.0/src/plugins/irc/irc-command.c:840: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 hash_key[32];
data/weechat-3.0/src/plugins/irc/irc-command.c:922: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 *string, buffer[4096];
data/weechat-3.0/src/plugins/irc/irc-command.c:1554: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 **targets, *ctcp_type, str_time[512];
data/weechat-3.0/src/plugins/irc/irc-command.c:1784:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_address[NI_MAXHOST], charset_modifier[256];
data/weechat-3.0/src/plugins/irc/irc-command.c:2294:21:  [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 (regex2, ptr_regex, pos - ptr_regex);
data/weechat-3.0/src/plugins/irc/irc-command.c:2999: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[512], *ptr_channel_name, *ptr_server_name, *ptr_regex;
data/weechat-3.0/src/plugins/irc/irc-command.c:3601: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 *string, hash_key[32], *str_args;
data/weechat-3.0/src/plugins/irc/irc-command.c:4698: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 *cmd_pwd_hidden, str_nick[1024];
data/weechat-3.0/src/plugins/irc/irc-command.c:5582:17:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                strcat (message, "\r\n");
data/weechat-3.0/src/plugins/irc/irc-completion.c:476: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 *pos, str_number[32];
data/weechat-3.0/src/plugins/irc/irc-completion.c:750:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_number[32];
data/weechat-3.0/src/plugins/irc/irc-completion.c:824:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_filter[1024];
data/weechat-3.0/src/plugins/irc/irc-config.c:895: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 value[2];
data/weechat-3.0/src/plugins/irc/irc-config.c:1418: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_value[1] = { '\0' };
data/weechat-3.0/src/plugins/irc/irc-ctcp.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 option_name[512];
data/weechat-3.0/src/plugins/irc/irc-ctcp.c:188:28:  [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).
                    sec1 = atol (pos_args);
data/weechat-3.0/src/plugins/irc/irc-ctcp.c:189:29:  [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).
                    usec1 = atol (pos_usec + 1);
data/weechat-3.0/src/plugins/irc/irc-ctcp.c:269: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 hash_key[32];
data/weechat-3.0/src/plugins/irc/irc-ctcp.c:345: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[4096];
data/weechat-3.0/src/plugins/irc/irc-ctcp.c:561: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 charset_modifier[256];
data/weechat-3.0/src/plugins/irc/irc-ctcp.c:673:65:  [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).
                weechat_infolist_new_var_integer (item, "port", atoi (pos_port));
data/weechat-3.0/src/plugins/irc/irc-ctcp.c:768:65:  [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).
                weechat_infolist_new_var_integer (item, "port", atoi (pos_port));
data/weechat-3.0/src/plugins/irc/irc-ctcp.c:864:65:  [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).
                weechat_infolist_new_var_integer (item, "port", atoi (pos_port));
data/weechat-3.0/src/plugins/irc/irc-ctcp.c:976:65:  [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).
                weechat_infolist_new_var_integer (item, "port", atoi (pos_port));
data/weechat-3.0/src/plugins/irc/irc-ignore.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 any[2] = "*";
data/weechat-3.0/src/plugins/irc/irc-input.c:51: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 *pos, *text2, *text_decoded, str_tags[256], *str_color;
data/weechat-3.0/src/plugins/irc/irc-input.c:153: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 hash_key[32], *str_args;
data/weechat-3.0/src/plugins/irc/irc-message.c:348: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 *arguments, *text, str_pos[32];
data/weechat-3.0/src/plugins/irc/irc-message.c:349: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_str[1] = { '\0' };
data/weechat-3.0/src/plugins/irc/irc-message.c:438:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (msg_result, message, pos_start);
data/weechat-3.0/src/plugins/irc/irc-message.c:456: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 nick[128];
data/weechat-3.0/src/plugins/irc/irc-message.c:457: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 host2[128], *pos_space, *pos;
data/weechat-3.0/src/plugins/irc/irc-message.c:505: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 address[256];
data/weechat-3.0/src/plugins/irc/irc-message.c:506: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 host2[256], *pos_space, *pos;
data/weechat-3.0/src/plugins/irc/irc-message.c:552:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char empty_string[1] = { '\0' };
data/weechat-3.0/src/plugins/irc/irc-message.c:592: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 key[32], value[32], *buf;
data/weechat-3.0/src/plugins/irc/irc-message.c:676: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 message[8192], *dup_arguments;
data/weechat-3.0/src/plugins/irc/irc-message.c:776: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 message[8192], *args;
data/weechat-3.0/src/plugins/irc/irc-message.c:835: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_to_send[16384], keys_to_add[16384];
data/weechat-3.0/src/plugins/irc/irc-message.c:960: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 *arguments2, prefix[4096], suffix[2], *pos, saved_char;
data/weechat-3.0/src/plugins/irc/irc-message.c:1025: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 *pos, suffix[4096];
data/weechat-3.0/src/plugins/irc/irc-message.c:1081: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 **argv, **argv_eol, *tags, *host, *command, *arguments, target[4096];
data/weechat-3.0/src/plugins/irc/irc-message.c:1082: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 *pos, monitor_action[3];
data/weechat-3.0/src/plugins/irc/irc-mode.c:157: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 *new_modes, *new_args, str_mode[2], *str_temp;
data/weechat-3.0/src/plugins/irc/irc-mode.c:499:42:  [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).
                        channel->limit = atoi (ptr_arg);
data/weechat-3.0/src/plugins/irc/irc-mode.c:587:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_mode[2], *nick_modes2;
data/weechat-3.0/src/plugins/irc/irc-modelist.c:453:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_type[2];
data/weechat-3.0/src/plugins/irc/irc-msgbuffer.c:47: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 option_name[512];
data/weechat-3.0/src/plugins/irc/irc-nick.c:316:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_group[2];
data/weechat-3.0/src/plugins/irc/irc-nick.c:350: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 mode[2];
data/weechat-3.0/src/plugins/irc/irc-nick.c:905: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[32];
data/weechat-3.0/src/plugins/irc/irc-nick.c:906:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_prefix[2];
data/weechat-3.0/src/plugins/irc/irc-nick.c:956: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[256];
data/weechat-3.0/src/plugins/irc/irc-nick.c:987: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 color[16][64];
data/weechat-3.0/src/plugins/irc/irc-nick.c:1048: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 *pos_hostname, user[128], ident[128], *res, *temp;
data/weechat-3.0/src/plugins/irc/irc-notify.c:164:21:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                    strcat (str, " away");
data/weechat-3.0/src/plugins/irc/irc-notify.c:326: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 *message, hash_key[32];
data/weechat-3.0/src/plugins/irc/irc-notify.c:627: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 string[1024];
data/weechat-3.0/src/plugins/irc/irc-notify.c:650: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 signal[128], *data;
data/weechat-3.0/src/plugins/irc/irc-notify.c:1017: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 *message, hash_key[32];
data/weechat-3.0/src/plugins/irc/irc-protocol.c:119: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 string[1024];
data/weechat-3.0/src/plugins/irc/irc-protocol.c:121:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_log_level[32];
data/weechat-3.0/src/plugins/irc/irc-protocol.c:170: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 string[1024];
data/weechat-3.0/src/plugins/irc/irc-protocol.c:335: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 *pos_account, str_account[512];
data/weechat-3.0/src/plugins/irc/irc-protocol.c:558:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat (cap_option, "sasl");
data/weechat-3.0/src/plugins/irc/irc-protocol.c:645:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_msg_auth[512], **str_caps_enabled, **str_caps_disabled;
data/weechat-3.0/src/plugins/irc/irc-protocol.c:1264:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_account[512], str_realname[512];
data/weechat-3.0/src/plugins/irc/irc-protocol.c:1730: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 *new_nick, *old_color, str_tags[512];
data/weechat-3.0/src/plugins/irc/irc-protocol.c:1911: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 *pos_target, *pos_args, *pos, end_char, *channel, status_notice[2];
data/weechat-3.0/src/plugins/irc/irc-protocol.c:2403: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 *pos_args, *pos_target, str_tags[1024], *str_color, status_msg[2];
data/weechat-3.0/src/plugins/irc/irc-protocol.c:3273:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (pos_start + 1, argv_eol[3], length);
data/weechat-3.0/src/plugins/irc/irc-protocol.c:3686: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).
    idle_time = atoi (argv[4]);
data/weechat-3.0/src/plugins/irc/irc-protocol.c:3692:25:  [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).
    datetime = (time_t)(atol (argv[5]));
data/weechat-3.0/src/plugins/irc/irc-protocol.c:4024:25:  [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).
    datetime = (time_t)(atol ((argv_eol[4][0] == ':') ?
data/weechat-3.0/src/plugins/irc/irc-protocol.c:4251:25:  [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).
    datetime = (time_t)(atol ((argv_eol[arg_date][0] == ':') ?
data/weechat-3.0/src/plugins/irc/irc-protocol.c:4477:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_number[64];
data/weechat-3.0/src/plugins/irc/irc-protocol.c:4512:33:  [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).
            datetime = (time_t)(atol ((argv[6][0] == ':') ? argv[6] + 1 : argv[6]));
data/weechat-3.0/src/plugins/irc/irc-protocol.c:4648:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_number[64];
data/weechat-3.0/src/plugins/irc/irc-protocol.c:4683:33:  [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).
            datetime = (time_t)(atol ((argv[6][0] == ':') ? argv[6] + 1 : argv[6]));
data/weechat-3.0/src/plugins/irc/irc-protocol.c:5271: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 *string, str_nicks_count[2048], *color;
data/weechat-3.0/src/plugins/irc/irc-protocol.c:5497:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_number[64];
data/weechat-3.0/src/plugins/irc/irc-protocol.c:5532:33:  [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).
            datetime = (time_t)(atol ((argv[6][0] == ':') ? argv[6] + 1 : argv[6]));
data/weechat-3.0/src/plugins/irc/irc-protocol.c:5980:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_number[64];
data/weechat-3.0/src/plugins/irc/irc-protocol.c:6015:33:  [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).
            datetime = (time_t)(atol ((argv[7][0] == ':') ? argv[7] + 1 : argv[7]));
data/weechat-3.0/src/plugins/irc/irc-raw.c:81: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 *command, *result, str_date[128];
data/weechat-3.0/src/plugins/irc/irc-raw.c:187: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, *buf2, prefix[512], prefix_arrow[16];
data/weechat-3.0/src/plugins/irc/irc-raw.c:319:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_title[1024];
data/weechat-3.0/src/plugins/irc/irc-redirect.c:409: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 **items[4], *pos, *error;
data/weechat-3.0/src/plugins/irc/irc-redirect.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 signal_name[1024], str_int[64];
data/weechat-3.0/src/plugins/irc/irc-sasl.c:44:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *irc_sasl_mechanism_string[IRC_NUM_SASL_MECHANISMS] =
data/weechat-3.0/src/plugins/irc/irc-sasl.c:224:17:  [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 (pubkey + 1, x.data, x.size);
data/weechat-3.0/src/plugins/irc/irc-sasl.c:288:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (string, signature.data, signature.size);
data/weechat-3.0/src/plugins/irc/irc-sasl.c:483: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 (password_clear, sasl_password, strlen (sasl_password));
data/weechat-3.0/src/plugins/irc/irc-sasl.c:511: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 (ptr_answer, public_bin, length_key);
data/weechat-3.0/src/plugins/irc/irc-sasl.c:513: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 (ptr_answer, sasl_username, length_username);
data/weechat-3.0/src/plugins/irc/irc-sasl.c:515: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 (ptr_answer, password_crypted, length_password);
data/weechat-3.0/src/plugins/irc/irc-sasl.c:566: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 iv[16];
data/weechat-3.0/src/plugins/irc/irc-sasl.c:608: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 (ptr_userpass, sasl_username, length_username);
data/weechat-3.0/src/plugins/irc/irc-sasl.c:610: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 (ptr_userpass, sasl_password, length_password);
data/weechat-3.0/src/plugins/irc/irc-sasl.c:639: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 (ptr_answer, public_bin, length_key);
data/weechat-3.0/src/plugins/irc/irc-sasl.c:641: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 (ptr_answer, iv, sizeof (iv));
data/weechat-3.0/src/plugins/irc/irc-sasl.c:643: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 (ptr_answer, userpass_crypted, length_userpass);
data/weechat-3.0/src/plugins/irc/irc-server.c:75:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *irc_server_sasl_fail_string[IRC_SERVER_NUM_SASL_FAIL] =
data/weechat-3.0/src/plugins/irc/irc-server.c:78:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *irc_server_options[IRC_SERVER_NUM_OPTIONS][2] =
data/weechat-3.0/src/plugins/irc/irc-server.c:124:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *irc_server_casemapping_string[IRC_SERVER_NUM_CASEMAPPING] =
data/weechat-3.0/src/plugins/irc/irc-server.c:127:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *irc_server_utf8mapping_string[IRC_SERVER_NUM_UTF8MAPPING] =
data/weechat-3.0/src/plugins/irc/irc-server.c:139:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *irc_fingerprint_digest_algos_name[IRC_FINGERPRINT_NUM_ALGOS] =
data/weechat-3.0/src/plugins/irc/irc-server.c:881: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 nick[64];
data/weechat-3.0/src/plugins/irc/irc-server.c:882:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_number[64];
data/weechat-3.0/src/plugins/irc/irc-server.c:946: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 (nick + length_nick - length_number, str_number, length_number);
data/weechat-3.0/src/plugins/irc/irc-server.c:962: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 feature2[64], *pos_feature, *pos_equal, *pos_space;
data/weechat-3.0/src/plugins/irc/irc-server.c:964: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 value[256];
data/weechat-3.0/src/plugins/irc/irc-server.c:984:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (value, pos_equal + 1, length);
data/weechat-3.0/src/plugins/irc/irc-server.c:1081:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_lag[32];
data/weechat-3.0/src/plugins/irc/irc-server.c:1546: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 default_port[16];
data/weechat-3.0/src/plugins/irc/irc-server.c:1753: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 *pos, *option_name, *ptr_value, *value_boolean[2] = { "off", "on" };
data/weechat-3.0/src/plugins/irc/irc-server.c:2109: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 *mask, *pos_option, *new_option_name, charset_modifier[256];
data/weechat-3.0/src/plugins/irc/irc-server.c:2510:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[4096];
data/weechat-3.0/src/plugins/irc/irc-server.c:2513:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_modifier[128], modifier_data[256];
data/weechat-3.0/src/plugins/irc/irc-server.c:2726: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 **items, hash_key[32], value[32], *nick, *command, *channel, *new_msg;
data/weechat-3.0/src/plugins/irc/irc-server.c:2727:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_modifier[128];
data/weechat-3.0/src/plugins/irc/irc-server.c:2999:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_modifier[128], modifier_data[256];
data/weechat-3.0/src/plugins/irc/irc-server.c:3229:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[4096 + 2];
data/weechat-3.0/src/plugins/irc/irc-server.c:4173: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_name[256], charset_modifier[256];
data/weechat-3.0/src/plugins/irc/irc-server.c:4279:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_sizes[1024], str_one_size[128];
data/weechat-3.0/src/plugins/irc/irc-server.c:4342: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 *fingerprint_server[IRC_FINGERPRINT_NUM_ALGOS];
data/weechat-3.0/src/plugins/irc/irc-server.c:4812:25:  [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 (answer, &tls_struct, sizeof (tls_struct));
data/weechat-3.0/src/plugins/irc/irc-server.c:5587: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 converted_addr[NI_MAXHOST];
data/weechat-3.0/src/plugins/irc/irc-upgrade.c:345: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, option_name[64], **nicks, *nick_join, *pos, *error;
data/weechat-3.0/src/plugins/irc/irc-upgrade.c:581:25:  [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 (&(irc_upgrade_current_server->lag_check_time), buf, size);
data/weechat-3.0/src/plugins/javascript/weechat-js-api.cpp:771: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/javascript/weechat-js-api.cpp:831: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/javascript/weechat-js-api.cpp:872: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/javascript/weechat-js-api.cpp:911: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/javascript/weechat-js-api.cpp:952: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/javascript/weechat-js-api.cpp:994: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/javascript/weechat-js-api.cpp:1100: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/javascript/weechat-js-api.cpp:1138: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/javascript/weechat-js-api.cpp:1166: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/javascript/weechat-js-api.cpp:1835: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/javascript/weechat-js-api.cpp:1907: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/javascript/weechat-js-api.cpp:2017: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/javascript/weechat-js-api.cpp:2077:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_remaining_calls[32], empty_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/javascript/weechat-js-api.cpp:2143: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/javascript/weechat-js-api.cpp:2210: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_arg[1] = { '\0' }, *result;
data/weechat-3.0/src/plugins/javascript/weechat-js-api.cpp:2331: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/javascript/weechat-js-api.cpp:2409: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/javascript/weechat-js-api.cpp:2469: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/javascript/weechat-js-api.cpp:2471: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 timebuffer[64];
data/weechat-3.0/src/plugins/javascript/weechat-js-api.cpp:2552: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/javascript/weechat-js-api.cpp:2554: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 str_value[64];
data/weechat-3.0/src/plugins/javascript/weechat-js-api.cpp:2669: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/javascript/weechat-js-api.cpp:2751: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/javascript/weechat-js-api.cpp:2812: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/javascript/weechat-js-api.cpp:2878: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/javascript/weechat-js-api.cpp:2932: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/javascript/weechat-js-api.cpp:2992: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/javascript/weechat-js-api.cpp:3052: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/javascript/weechat-js-api.cpp:3140: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/javascript/weechat-js-api.cpp:3178: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/javascript/weechat-js-api.cpp:3802: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_arg[1] = { '\0' }, *ret;
data/weechat-3.0/src/plugins/javascript/weechat-js-api.cpp:4792: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_arg[1] = { '\0' }, str_object_id[32];
data/weechat-3.0/src/plugins/javascript/weechat-js.cpp:209:55:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    argv2[i] = v8::String::New((const char *)argv[i]);
data/weechat-3.0/src/plugins/javascript/weechat-js.cpp:919:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_interpreter[64];
data/weechat-3.0/src/plugins/logger/logger-command.c:41: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 status[128];
data/weechat-3.0/src/plugins/logger/logger-tail.c:71: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[LOGGER_TAIL_BUFSIZE + 1];
data/weechat-3.0/src/plugins/logger/logger-tail.c:76:10:  [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 (filename, O_RDONLY);
data/weechat-3.0/src/plugins/logger/logger.c:529: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 *charset, *message, buf_time[256], buf_beginning[1024];
data/weechat-3.0/src/plugins/logger/logger.c:575: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 (logger_buffer->log_filename, "a");
data/weechat-3.0/src/plugins/logger/logger.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 buf_time[256];
data/weechat-3.0/src/plugins/logger/logger.c:1061: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_time[256], *prefix_ansi, *message_ansi;
data/weechat-3.0/src/plugins/lua/weechat-lua-api.c:873: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/lua/weechat-lua-api.c:935: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/lua/weechat-lua-api.c:976: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/lua/weechat-lua-api.c:1015: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/lua/weechat-lua-api.c:1056: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/lua/weechat-lua-api.c:1098: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/lua/weechat-lua-api.c:1212: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/lua/weechat-lua-api.c:1250: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/lua/weechat-lua-api.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 empty_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/lua/weechat-lua-api.c:2051: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/lua/weechat-lua-api.c:2126: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/lua/weechat-lua-api.c:2240: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/lua/weechat-lua-api.c:2301:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_remaining_calls[32], empty_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/lua/weechat-lua-api.c:2368: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/lua/weechat-lua-api.c:2436: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_arg[1] = { '\0' }, *result;
data/weechat-3.0/src/plugins/lua/weechat-lua-api.c:2558: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/lua/weechat-lua-api.c:2637: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/lua/weechat-lua-api.c:2695: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/lua/weechat-lua-api.c:2697: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 timebuffer[64];
data/weechat-3.0/src/plugins/lua/weechat-lua-api.c:2779: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/lua/weechat-lua-api.c:2781: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 str_value[64];
data/weechat-3.0/src/plugins/lua/weechat-lua-api.c:2898: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/lua/weechat-lua-api.c:2983: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/lua/weechat-lua-api.c:3046: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/lua/weechat-lua-api.c:3116: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/lua/weechat-lua-api.c:3171: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/lua/weechat-lua-api.c:3230: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/lua/weechat-lua-api.c:3292: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/lua/weechat-lua-api.c:3384: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/lua/weechat-lua-api.c:3422: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/lua/weechat-lua-api.c:4113: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_arg[1] = { '\0' }, *ret;
data/weechat-3.0/src/plugins/lua/weechat-lua-api.c:5197: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_arg[1] = { '\0' }, str_object_id[32];
data/weechat-3.0/src/plugins/lua/weechat-lua.c:311:63:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    lua_pushstring (lua_current_interpreter, (char *)argv[i]);
data/weechat-3.0/src/plugins/lua/weechat-lua.c:526: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).
        fp = fopen (filename, "r");
data/weechat-3.0/src/plugins/perl/weechat-perl-api.c:815: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/perl/weechat-perl-api.c:879: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/perl/weechat-perl-api.c:920: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/perl/weechat-perl-api.c:959: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/perl/weechat-perl-api.c:1000: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/perl/weechat-perl-api.c:1042: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/perl/weechat-perl-api.c:1155: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/perl/weechat-perl-api.c:1193: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/perl/weechat-perl-api.c:1221: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/perl/weechat-perl-api.c:1963: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/perl/weechat-perl-api.c:2039: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/perl/weechat-perl-api.c:2155: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/perl/weechat-perl-api.c:2217:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_remaining_calls[32], empty_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/perl/weechat-perl-api.c:2277: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/perl/weechat-perl-api.c:2337: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_arg[1] = { '\0' }, *result;
data/weechat-3.0/src/plugins/perl/weechat-perl-api.c:2457: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/perl/weechat-perl-api.c:2533: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/perl/weechat-perl-api.c:2592: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/perl/weechat-perl-api.c:2594: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 timebuffer[64];
data/weechat-3.0/src/plugins/perl/weechat-perl-api.c:2675: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/perl/weechat-perl-api.c:2677: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 str_value[64];
data/weechat-3.0/src/plugins/perl/weechat-perl-api.c:2796: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/perl/weechat-perl-api.c:2883: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/perl/weechat-perl-api.c:2947: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/perl/weechat-perl-api.c:3018: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/perl/weechat-perl-api.c:3074: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/perl/weechat-perl-api.c:3134: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/perl/weechat-perl-api.c:3197: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/perl/weechat-perl-api.c:3295: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/perl/weechat-perl-api.c:3332: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/perl/weechat-perl-api.c:4038: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_arg[1] = { '\0' }, *ret;
data/weechat-3.0/src/plugins/perl/weechat-perl-api.c:5142: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_arg[1] = { '\0' }, str_object_id[32];
data/weechat-3.0/src/plugins/perl/weechat-perl.c:367:49:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    XPUSHs (sv_2mortal(newSVpv((char *)argv[i], 0)));
data/weechat-3.0/src/plugins/perl/weechat-perl.c:500:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_warning[512], str_error[512];
data/weechat-3.0/src/plugins/perl/weechat-perl.c:507: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 pkgname[64];
data/weechat-3.0/src/plugins/php/weechat-php-api.c:98: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 weechat_php_empty_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/php/weechat-php.c:566:46:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    ZVAL_STRING(&params[i], (char *)argv[i]);
data/weechat-3.0/src/plugins/plugin-api-info.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 version_number[32];
data/weechat-3.0/src/plugins/plugin-api-info.c:155: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 value[32];
data/weechat-3.0/src/plugins/plugin-api-info.c:194: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 weechat_dir_absolute_path[PATH_MAX];
data/weechat-3.0/src/plugins/plugin-api-info.c:308: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 value[32];
data/weechat-3.0/src/plugins/plugin-api-info.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 value[32];
data/weechat-3.0/src/plugins/plugin-api-info.c:350: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 value[32];
data/weechat-3.0/src/plugins/plugin-api-info.c:429: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 value[32];
data/weechat-3.0/src/plugins/plugin-api-info.c:456: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 value[32];
data/weechat-3.0/src/plugins/plugin-api-info.c:477: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 value[32];
data/weechat-3.0/src/plugins/plugin-api-info.c:498: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 value[32];
data/weechat-3.0/src/plugins/plugin-api-info.c:519: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 value[32];
data/weechat-3.0/src/plugins/plugin-api-info.c:540: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 value[32];
data/weechat-3.0/src/plugins/plugin-api-info.c:561: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 value[32];
data/weechat-3.0/src/plugins/plugin-api-info.c:600: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 value[32];
data/weechat-3.0/src/plugins/plugin-api-info.c:612:46:  [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).
              gui_color_convert_term_to_rgb (atoi (arguments)));
data/weechat-3.0/src/plugins/plugin-api-info.c:625: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 value[32], *pos, *color;
data/weechat-3.0/src/plugins/plugin-api-info.c:643: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).
        rgb = atoi (color);
data/weechat-3.0/src/plugins/plugin-api-info.c:644: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).
        limit = atoi (pos + 1);
data/weechat-3.0/src/plugins/plugin-api-info.c:649: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).
        rgb = atoi (arguments);
data/weechat-3.0/src/plugins/plugin-api-info.c:726: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 value[32];
data/weechat-3.0/src/plugins/plugin-api-info.c:851: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 value[16], **argv, *ptr_secret, *ptr_otp, *error;
data/weechat-3.0/src/plugins/plugin-script-api.c:1252:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_function[1024], *function_and_data;;
data/weechat-3.0/src/plugins/plugin-script.c:174: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 string[512], *completion;
data/weechat-3.0/src/plugins/plugin-script.c:336: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 str_pointer[32][32];
data/weechat-3.0/src/plugins/plugin-script.c:417:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (result, function, length_function + 1);
data/weechat-3.0/src/plugins/plugin-script.c:422:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (result + length_function + 1, data, length_data + 1);
data/weechat-3.0/src/plugins/plugin-script.c:1221: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 *symlink_path, str_signal[128], *ptr_list, *dir_home, *dir_separator;
data/weechat-3.0/src/plugins/plugin-script.c:1385: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 **argv, str_signal[128], *ptr_list;
data/weechat-3.0/src/plugins/plugin-script.c:1627:21:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                    strcat (buf, ", ");
data/weechat-3.0/src/plugins/plugin-script.c:1646:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_hdata_callback[128];
data/weechat-3.0/src/plugins/plugin.c:1361:25:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                        strcat (buf, ", ");
data/weechat-3.0/src/plugins/python/weechat-python-api.c:804: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/python/weechat-python-api.c:865: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/python/weechat-python-api.c:906: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/python/weechat-python-api.c:945: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/python/weechat-python-api.c:986: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/python/weechat-python-api.c:1028: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/python/weechat-python-api.c:1146: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/python/weechat-python-api.c:1184: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/python/weechat-python-api.c:1212: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/python/weechat-python-api.c:1956: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/python/weechat-python-api.c:2031: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/python/weechat-python-api.c:2145: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/python/weechat-python-api.c:2205:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_remaining_calls[32], empty_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/python/weechat-python-api.c:2272: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/python/weechat-python-api.c:2344: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_arg[1] = { '\0' }, *result;
data/weechat-3.0/src/plugins/python/weechat-python-api.c:2471: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/python/weechat-python-api.c:2562: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/python/weechat-python-api.c:2627: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/python/weechat-python-api.c:2629: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 timebuffer[64];
data/weechat-3.0/src/plugins/python/weechat-python-api.c:2719: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/python/weechat-python-api.c:2721: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 str_value[64];
data/weechat-3.0/src/plugins/python/weechat-python-api.c:2837: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/python/weechat-python-api.c:2927: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/python/weechat-python-api.c:2989: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/python/weechat-python-api.c:3057: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/python/weechat-python-api.c:3112: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/python/weechat-python-api.c:3179: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/python/weechat-python-api.c:3242: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/python/weechat-python-api.c:3342: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/python/weechat-python-api.c:3379: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/python/weechat-python-api.c:4048: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_arg[1] = { '\0' }, *ret;
data/weechat-3.0/src/plugins/python/weechat-python-api.c:5108: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_arg[1] = { '\0' }, str_object_id[32];
data/weechat-3.0/src/plugins/python/weechat-python.c:146: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_separator, *py2_bin, *path, **paths, bin[4096];
data/weechat-3.0/src/plugins/python/weechat-python.c:473: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 format2[17];
data/weechat-3.0/src/plugins/python/weechat-python.c:808: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).
        fp = fopen (filename, "r");
data/weechat-3.0/src/plugins/relay/irc/relay-irc.c:43:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *relay_irc_backlog_commands_tags[RELAY_IRC_NUM_CMD] =
data/weechat-3.0/src/plugins/relay/irc/relay-irc.c:45:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *relay_irc_server_capabilities[RELAY_IRC_NUM_CAPAB] =
data/weechat-3.0/src/plugins/relay/irc/relay-irc.c:195: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 *pos, hash_key[32], *message;
data/weechat-3.0/src/plugins/relay/irc/relay-irc.c:385:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_infolist_args[256];
data/weechat-3.0/src/plugins/relay/irc/relay-irc.c:533: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 pattern[128], **messages;
data/weechat-3.0/src/plugins/relay/irc/relay-irc.c:610:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_tag[512], *pos, *message_no_color, str_time[256];
data/weechat-3.0/src/plugins/relay/irc/relay-irc.c:1145: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_beginning[1024], *buf;
data/weechat-3.0/src/plugins/relay/irc/relay-irc.c:1164:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (buf, buf_beginning, length_beginning);
data/weechat-3.0/src/plugins/relay/irc/relay-irc.c:1165:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (buf + length_beginning, vbuffer, length_vbuffer);
data/weechat-3.0/src/plugins/relay/irc/relay-irc.c:1188:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_signal_name[128];
data/weechat-3.0/src/plugins/relay/irc/relay-irc.c:1244:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_capab[1024], *ptr_cap;
data/weechat-3.0/src/plugins/relay/irc/relay-irc.c:1325:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_time[128], str_signal[128], str_server_channel[256], *nick;
data/weechat-3.0/src/plugins/relay/irc/relay-irc.c:1326: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 *version, str_command[128], *target, **irc_argv, **irc_argv_eol;
data/weechat-3.0/src/plugins/relay/relay-auth.c:298: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 *salt_password, hash[512 / 8], hash_hexa[((512 / 8) * 2) + 1];
data/weechat-3.0/src/plugins/relay/relay-auth.c:309:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (salt_password, salt, salt_size);
data/weechat-3.0/src/plugins/relay/relay-auth.c:310:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (salt_password + salt_size, relay_password,
data/weechat-3.0/src/plugins/relay/relay-auth.c:344: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 hash[512 / 8], hash_hexa[((512 / 8) * 2) + 1];
data/weechat-3.0/src/plugins/relay/relay-buffer.c:47:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_color[256], str_status[64], str_date_start[128], str_date_end[128];
data/weechat-3.0/src/plugins/relay/relay-client.c:195: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 signal[128];
data/weechat-3.0/src/plugins/relay/relay-client.c:210: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 desc[512];
data/weechat-3.0/src/plugins/relay/relay-client.c:580:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[4096], decoded[8192 + 1];
data/weechat-3.0/src/plugins/relay/relay-client.c:854:25:  [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,
data/weechat-3.0/src/plugins/relay/relay-client.c:954:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *data, int data_size,
data/weechat-3.0/src/plugins/relay/relay-client.c:957:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *raw_message[2],
data/weechat-3.0/src/plugins/relay/relay-client.c:977: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 (new_outqueue->data, data, data_size);
data/weechat-3.0/src/plugins/relay/relay-client.c:992:17:  [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_outqueue->raw_message[i], raw_message[i],
data/weechat-3.0/src/plugins/relay/relay-client.c:1034: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 *ptr_data, *raw_msg[2];
data/weechat-3.0/src/plugins/relay/relay-client.c:1834: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 value[128];
data/weechat-3.0/src/plugins/relay/relay-client.h:78: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 *raw_message[2];               /* msgs for raw buffer (can be NULL)*/
data/weechat-3.0/src/plugins/relay/relay-command.c:44: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 date_start[128], date_activity[128];
data/weechat-3.0/src/plugins/relay/relay-command.c:131: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 date_start[128];
data/weechat-3.0/src/plugins/relay/relay-completion.c:42: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 protocol_name[1024];
data/weechat-3.0/src/plugins/relay/relay-completion.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 str_port[16];
data/weechat-3.0/src/plugins/relay/relay-info.c:40:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_count[32], **items;
data/weechat-3.0/src/plugins/relay/relay-raw.c:230:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *buf, *buf2, *buf3, prefix[256], prefix_arrow[16];
data/weechat-3.0/src/plugins/relay/relay-server.c:271: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 ipv4_address[INET_ADDRSTRLEN + 1], ipv6_address[INET6_ADDRSTRLEN + 1];
data/weechat-3.0/src/plugins/relay/relay-server.c:272: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 unix_address[sizeof (client_addr_unix.sun_path)];
data/weechat-3.0/src/plugins/relay/relay-server.c:889:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_path[128];
data/weechat-3.0/src/plugins/relay/relay-websocket.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 *key, sec_websocket_accept[128], handshake[1024], hash[160 / 8];
data/weechat-3.0/src/plugins/relay/relay-websocket.c:405: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 (frame + index, buffer, length);
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-msg.c:107: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 (msg->data + msg->data_size, buffer, size);
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-msg.c:122: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 (msg->data + position, buffer, size);
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-msg.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 str_long[128];
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-msg.c:225:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_pointer[128];
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-msg.c:242:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_time[128];
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-msg.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 *types[2] = { "type_keys", "type_values" };
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-msg.c:276:55:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            relay_weechat_msg_add_string (msg, (const char *)pointers[i]);
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-msg.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 *types[2] = { "type_keys", "type_values" };
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-msg.c:989:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_vars[512];
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-msg.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 compression, raw_message[1024];
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-msg.c:1064:25:  [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 (dest, &size32, 4);
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-protocol.c:172: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 *totp_secret, string[64];
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-protocol.c:859: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 cmd_hdata[64], str_signal[128];
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-protocol.c:1378:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_signal[128];
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat.c:209: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[64];
data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.c:1001: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.c:1069: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.c:1110: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.c:1149: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.c:1190: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.c:1232: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.c:1384: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.c:1422: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.c:1450: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.c:2417: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.c:2505: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.c:2643: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.c:2710:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_remaining_calls[32], empty_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.c:2786: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.c:2864: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_arg[1] = { '\0' }, *result;
data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.c:3003: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.c:3097: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.c:3164: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.c:3166: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 timebuffer[64];
data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.c:3259: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.c:3261: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 str_value[64];
data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.c:3390: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.c:3485: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.c:3554: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.c:3636: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.c:3701: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.c:3774: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.c:3849: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.c:3959: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.c:3997: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.c:4867: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_arg[1] = { '\0' }, *ret;
data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.c:6249: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_arg[1] = { '\0' }, str_object_id[32];
data/weechat-3.0/src/plugins/ruby/weechat-ruby.c:309:21:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                    strcat (cline, ": ");
data/weechat-3.0/src/plugins/ruby/weechat-ruby.c:311:21:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                    strcat (cline, " (");
data/weechat-3.0/src/plugins/ruby/weechat-ruby.c:322:21:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                    strcat (cline, "     from ");
data/weechat-3.0/src/plugins/ruby/weechat-ruby.c:484:46:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    argv2[i] = rb_str_new2 ((char *)argv[i]);
data/weechat-3.0/src/plugins/ruby/weechat-ruby.c:593: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 modname[64];
data/weechat-3.0/src/plugins/ruby/weechat-ruby.c:879: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/script/script-action.c:52: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 hdata_name[128];
data/weechat-3.0/src/plugins/script/script-action.c:106: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 hdata_name[128], **buf, str_pos[16];
data/weechat-3.0/src/plugins/script/script-action.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 *pos, str_command[1024];
data/weechat-3.0/src/plugins/script/script-action.c:224: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 *pos, hdata_name[128], *filename, *ptr_base_name, str_command[1024];
data/weechat-3.0/src/plugins/script/script-action.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 *pos, hdata_name[128], *filename, *ptr_base_name, str_command[1024];
data/weechat-3.0/src/plugins/script/script-action.c:440:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_signal[256], *filename;
data/weechat-3.0/src/plugins/script/script-action.c:527: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 *pos, *filename, *filename2, str_signal[256];
data/weechat-3.0/src/plugins/script/script-action.c:710:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_signal[256], *filename;
data/weechat-3.0/src/plugins/script/script-action.c:944: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 *pos, *filename, *filename_loaded, line[4096], *ptr_line;
data/weechat-3.0/src/plugins/script/script-action.c:988:32:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                        file = fopen (filename, "r");
data/weechat-3.0/src/plugins/script/script-action.c:1159:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_command[64];
data/weechat-3.0/src/plugins/script/script-buffer.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 str_line[16384], str_item[1024], str_color_name[256], str_color[32];
data/weechat-3.0/src/plugins/script/script-buffer.c:50:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_format[256], str_date[64], str_key[2], utf_char[16], *tags;
data/weechat-3.0/src/plugins/script/script-buffer.c:76:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (utf_char, ptr_col, char_size);
data/weechat-3.0/src/plugins/script/script-buffer.c:82:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (utf_char, ptr_col, char_size);
data/weechat-3.0/src/plugins/script/script-buffer.c:344:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_format[16];
data/weechat-3.0/src/plugins/script/script-buffer.c:345: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[1024];
data/weechat-3.0/src/plugins/script/script-buffer.c:406: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 hdata_name[128], str_option[256], str_info[1024];
data/weechat-3.0/src/plugins/script/script-buffer.c:600:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_time[1024];
data/weechat-3.0/src/plugins/script/script-buffer.c:760:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_title[1024];
data/weechat-3.0/src/plugins/script/script-buffer.c:905:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_command[256];
data/weechat-3.0/src/plugins/script/script-buffer.c:990:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_command[64];
data/weechat-3.0/src/plugins/script/script-buffer.c:1103:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_key[64], str_command[64];
data/weechat-3.0/src/plugins/script/script-command.c:45:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_action[4096];
data/weechat-3.0/src/plugins/script/script-command.c:133: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 *error, command[128];
data/weechat-3.0/src/plugins/script/script-completion.c:161:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    extension = (const char *)(((void **)data)[1]);
data/weechat-3.0/src/plugins/script/script-config.c:102: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[64];
data/weechat-3.0/src/plugins/script/script-config.c:104:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *path, **paths, bin[4096];
data/weechat-3.0/src/plugins/script/script-mouse.c:45: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 *error, str_date[64];
data/weechat-3.0/src/plugins/script/script-repo.c:168: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 *weechat_home, *filename, resolved_path[PATH_MAX];
data/weechat-3.0/src/plugins/script/script-repo.c:237: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 str_status[128];
data/weechat-3.0/src/plugins/script/script-repo.c:239:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_space[2];
data/weechat-3.0/src/plugins/script/script-repo.c:295: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 str_status[256];
data/weechat-3.0/src/plugins/script/script-repo.c:313:21:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                    strcat (str_status, _("popular"));
data/weechat-3.0/src/plugins/script/script-repo.c:322:21:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                    strcat (str_status, _("installed"));
data/weechat-3.0/src/plugins/script/script-repo.c:331:21:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                    strcat (str_status, _("autoloaded"));
data/weechat-3.0/src/plugins/script/script-repo.c:340:21:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                    strcat (str_status, _("held"));
data/weechat-3.0/src/plugins/script/script-repo.c:349:21:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                    strcat (str_status, _("running"));
data/weechat-3.0/src/plugins/script/script-repo.c:358:21:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                    strcat (str_status, _("obsolete"));
data/weechat-3.0/src/plugins/script/script-repo.c:758:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *data, hash[512 / 8], hash_hexa[((512 / 8) * 2) + 1];
data/weechat-3.0/src/plugins/script/script-repo.c:768: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).
    file = fopen (filename, "r");
data/weechat-3.0/src/plugins/script/script-repo.c:1143: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, *ptr_line, line[4096], *pos, *pos2, *pos3;
data/weechat-3.0/src/plugins/script/script.c:49:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *script_language[SCRIPT_NUM_LANGUAGES] =
data/weechat-3.0/src/plugins/script/script.c:51:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *script_extension[SCRIPT_NUM_LANGUAGES] =
data/weechat-3.0/src/plugins/script/script.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 hdata_name[128], *filename, *ptr_base_name;
data/weechat-3.0/src/plugins/script/script.h:30:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char *script_language[SCRIPT_NUM_LANGUAGES];
data/weechat-3.0/src/plugins/script/script.h:31:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char *script_extension[SCRIPT_NUM_LANGUAGES];
data/weechat-3.0/src/plugins/spell/spell-command.c:87:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_dict[256];
data/weechat-3.0/src/plugins/spell/spell-command.c:144:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_dict[256], str_country[128];
data/weechat-3.0/src/plugins/tcl/weechat-tcl-api.c:1000: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/tcl/weechat-tcl-api.c:1065: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/tcl/weechat-tcl-api.c:1106: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/tcl/weechat-tcl-api.c:1145: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/tcl/weechat-tcl-api.c:1186: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/tcl/weechat-tcl-api.c:1228: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/tcl/weechat-tcl-api.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 empty_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/tcl/weechat-tcl-api.c:1388: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/tcl/weechat-tcl-api.c:1416: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/tcl/weechat-tcl-api.c:2212: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/tcl/weechat-tcl-api.c:2289: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/tcl/weechat-tcl-api.c:2411: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/tcl/weechat-tcl-api.c:2474:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_remaining_calls[32], empty_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/tcl/weechat-tcl-api.c:2541: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/tcl/weechat-tcl-api.c:2608: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_arg[1] = { '\0' }, *result;
data/weechat-3.0/src/plugins/tcl/weechat-tcl-api.c:2736: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/tcl/weechat-tcl-api.c:2818: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/tcl/weechat-tcl-api.c:2878: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/tcl/weechat-tcl-api.c:2880: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 timebuffer[64];
data/weechat-3.0/src/plugins/tcl/weechat-tcl-api.c:2965: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/tcl/weechat-tcl-api.c:2967: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 str_value[64];
data/weechat-3.0/src/plugins/tcl/weechat-tcl-api.c:3090: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/tcl/weechat-tcl-api.c:3178: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/tcl/weechat-tcl-api.c:3243: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/tcl/weechat-tcl-api.c:3316: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/tcl/weechat-tcl-api.c:3373: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/tcl/weechat-tcl-api.c:3434: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/tcl/weechat-tcl-api.c:3498: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/tcl/weechat-tcl-api.c:3601: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/tcl/weechat-tcl-api.c:3638: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_arg[1] = { '\0' };
data/weechat-3.0/src/plugins/tcl/weechat-tcl-api.c:4395: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_arg[1] = { '\0' }, *ret;
data/weechat-3.0/src/plugins/tcl/weechat-tcl-api.c:5514: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_arg[1] = { '\0' }, str_object_id[32];
data/weechat-3.0/src/plugins/trigger/trigger-buffer.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 title[1024];
data/weechat-3.0/src/plugins/trigger/trigger-callback.c:154:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_temp[128];
data/weechat-3.0/src/plugins/trigger/trigger-callback.c:467:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_data[128], *irc_server_name;
data/weechat-3.0/src/plugins/trigger/trigger-callback.c:967:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *str_tags, *str_tags2, str_temp[128], *str_no_color;
data/weechat-3.0/src/plugins/trigger/trigger-callback.c:1045:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_name[32], str_temp[128];
data/weechat-3.0/src/plugins/trigger/trigger-callback.c:1109:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_temp[128];
data/weechat-3.0/src/plugins/trigger/trigger-command.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 str_conditions[64], str_regex[64], str_command[64], str_rc[64];
data/weechat-3.0/src/plugins/trigger/trigger-command.c:67:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_post_action[64], spaces[256];
data/weechat-3.0/src/plugins/trigger/trigger-command.c:504: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 *value, **sargv, **items, *input, str_pos[16];
data/weechat-3.0/src/plugins/trigger/trigger-completion.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 str_hook[128];
data/weechat-3.0/src/plugins/trigger/trigger-config.c:581: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 option_name[512];
data/weechat-3.0/src/plugins/trigger/trigger.c:45:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *trigger_option_string[TRIGGER_NUM_OPTIONS] =
data/weechat-3.0/src/plugins/trigger/trigger.c:48:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *trigger_option_default[TRIGGER_NUM_OPTIONS] =
data/weechat-3.0/src/plugins/trigger/trigger.c:51:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *trigger_hook_type_string[TRIGGER_NUM_HOOK_TYPES] =
data/weechat-3.0/src/plugins/trigger/trigger.c:57:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *trigger_hook_default_arguments[TRIGGER_NUM_HOOK_TYPES] =
data/weechat-3.0/src/plugins/trigger/trigger.c:60:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *trigger_hook_default_rc[TRIGGER_NUM_HOOK_TYPES] =
data/weechat-3.0/src/plugins/trigger/trigger.c:64:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *trigger_hook_regex_default_var[TRIGGER_NUM_HOOK_TYPES] =
data/weechat-3.0/src/plugins/trigger/trigger.c:68:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *trigger_return_code_string[TRIGGER_NUM_RETURN_CODES] =
data/weechat-3.0/src/plugins/trigger/trigger.c:73:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *trigger_post_action_string[TRIGGER_NUM_POST_ACTIONS] =
data/weechat-3.0/src/plugins/trigger/trigger.c:998: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 *value[TRIGGER_NUM_OPTIONS];
data/weechat-3.0/src/plugins/xfer/xfer-buffer.c:46:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_color[256], suffix[32], status[64], date[128], eta[128];
data/weechat-3.0/src/plugins/xfer/xfer-buffer.c:47:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_ip[128], str_hash[128];
data/weechat-3.0/src/plugins/xfer/xfer-buffer.c:197:21:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                    strcat (progress_bar, "] ");
data/weechat-3.0/src/plugins/xfer/xfer-chat.c:110:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[4096 + 2];
data/weechat-3.0/src/plugins/xfer/xfer-chat.c:113:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_tags[256], *str_color;
data/weechat-3.0/src/plugins/xfer/xfer-chat.c:273: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 *input_data_color, str_tags[256], *str_color;
data/weechat-3.0/src/plugins/xfer/xfer-command.c:88: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 date[128];
data/weechat-3.0/src/plugins/xfer/xfer-dcc.c:53:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[XFER_BLOCKSIZE_MAX];
data/weechat-3.0/src/plugins/xfer/xfer-dcc.c:258: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).
        fd = open (xfer->temp_local_filename, O_RDONLY);
data/weechat-3.0/src/plugins/xfer/xfer-dcc.c:312:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[XFER_BLOCKSIZE_MAX];
data/weechat-3.0/src/plugins/xfer/xfer-dcc.c:318: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 hash[9];
data/weechat-3.0/src/plugins/xfer/xfer-network.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[1 + 1 + 32 + 1];   /* status + error + pos + \0 */
data/weechat-3.0/src/plugins/xfer/xfer-network.c:99: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 bufpipe[1 + 1 + 32 + 1];
data/weechat-3.0/src/plugins/xfer/xfer-network.c:225: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).
    xfer->file = open (xfer->local_filename, O_RDONLY | O_NONBLOCK, 0644);
data/weechat-3.0/src/plugins/xfer/xfer-network.c:294: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).
        xfer->file = open (xfer->temp_local_filename,
data/weechat-3.0/src/plugins/xfer/xfer-network.c:299: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).
        xfer->file = open (xfer->temp_local_filename,
data/weechat-3.0/src/plugins/xfer/xfer-network.c:382:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_address[NI_MAXHOST];
data/weechat-3.0/src/plugins/xfer/xfer.c:664:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_address[NI_MAXHOST], *color;
data/weechat-3.0/src/plugins/xfer/xfer.c:881: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 (xfer->remote_address, address, length);
data/weechat-3.0/src/plugins/xfer/xfer.c:900: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 (xfer->local_address, address, length);
data/weechat-3.0/src/plugins/xfer/xfer.c:1039:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (addr, ainfo->ai_addr, ainfo->ai_addrlen);
data/weechat-3.0/src/plugins/xfer/xfer.c:1068:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *path, *filename2, *short_filename, *pos, str_port_temp[16];
data/weechat-3.0/src/plugins/xfer/xfer.c:1283:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (&((struct sockaddr_in6*)&bind_addr)->sin6_addr,
data/weechat-3.0/src/plugins/xfer/xfer.c:1627: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 value[128];
data/weechat-3.0/tests/scripts/test-scripts.cpp:123:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char path_testapigen[PATH_MAX], path_testapi[PATH_MAX];
data/weechat-3.0/tests/scripts/test-scripts.cpp:124:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *path_testapi_output_dir, str_command[(PATH_MAX * 2) + 128];
data/weechat-3.0/tests/scripts/test-scripts.cpp:125: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 *test_scripts_dir, str_condition[128];
data/weechat-3.0/tests/unit/core/test-core-calc.cpp:201:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_number[1024];
data/weechat-3.0/tests/unit/core/test-core-calc.cpp:223:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_result[64];
data/weechat-3.0/tests/unit/core/test-core-crypto.cpp:169: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 hash_expected[4096], hash[4096];
data/weechat-3.0/tests/unit/core/test-core-crypto.cpp:203: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 hash_expected[4096], hash[4096];
data/weechat-3.0/tests/unit/core/test-core-eval.cpp: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 *value, str_value[256];
data/weechat-3.0/tests/unit/core/test-core-infolist.cpp:47:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 buffer[4] = { 'a', 'b', 'c', 0 };
data/weechat-3.0/tests/unit/core/test-core-infolist.cpp:121: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 buffer[3] = { 12, 34, 56 };
data/weechat-3.0/tests/unit/core/test-core-infolist.cpp:423:30:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    LONGS_EQUAL('a', ((const char *)ptr_buffer)[0]);
data/weechat-3.0/tests/unit/core/test-core-infolist.cpp:424:30:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    LONGS_EQUAL('b', ((const char *)ptr_buffer)[1]);
data/weechat-3.0/tests/unit/core/test-core-infolist.cpp:425:30:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    LONGS_EQUAL('c', ((const char *)ptr_buffer)[2]);
data/weechat-3.0/tests/unit/core/test-core-infolist.cpp:426:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    LONGS_EQUAL(0, ((const char *)ptr_buffer)[3]);
data/weechat-3.0/tests/unit/core/test-core-secure.cpp:50: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 salt[SECURE_SALT_SIZE], zeroes[32];
data/weechat-3.0/tests/unit/core/test-core-secure.cpp:56: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 sha512_bin[64 + 1];
data/weechat-3.0/tests/unit/core/test-core-string.cpp:288: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 string[128];
data/weechat-3.0/tests/unit/core/test-core-string.cpp:330: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 string[128], result[128];
data/weechat-3.0/tests/unit/core/test-core-string.cpp:583: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 *masks_none[1] = { NULL };
data/weechat-3.0/tests/unit/core/test-core-string.cpp:584: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 *masks_one_empty[2] = { "", NULL };
data/weechat-3.0/tests/unit/core/test-core-string.cpp:585: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 *masks_one[2] = { "toto", NULL };
data/weechat-3.0/tests/unit/core/test-core-string.cpp:586: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 *masks_two[3] = { "toto", "abc", NULL };
data/weechat-3.0/tests/unit/core/test-core-string.cpp:587: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 *masks_negative[3] = { "*", "!abc", NULL };
data/weechat-3.0/tests/unit/core/test-core-string.cpp:588: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 *masks_negative_star[3] = { "*", "!abc*", NULL };
data/weechat-3.0/tests/unit/core/test-core-string.cpp:1634: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).
    f = fopen ("/dev/null", "w");
data/weechat-3.0/tests/unit/core/test-core-string.cpp:1688:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[1024];
data/weechat-3.0/tests/unit/core/test-core-string.cpp:1738:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[1024];
data/weechat-3.0/tests/unit/core/test-core-string.cpp:1796:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[1024];
data/weechat-3.0/tests/unit/core/test-core-string.cpp:1862:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[1024];
data/weechat-3.0/tests/unit/core/test-core-string.cpp:1890:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[1024];
data/weechat-3.0/tests/unit/core/test-core-utf8.cpp:284: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[5];
data/weechat-3.0/tests/unit/core/test-core-util.cpp:344: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).
    f = fopen (path, "wb");
data/weechat-3.0/tests/unit/core/test-core-util.cpp:363: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).
    f = fopen (path, "wb");
data/weechat-3.0/tests/unit/gui/test-gui-color.cpp: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 string[32];
data/weechat-3.0/tests/unit/gui/test-gui-color.cpp:243: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 string[256];
data/weechat-3.0/tests/unit/gui/test-gui-color.cpp: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 string[256], *decoded;
data/weechat-3.0/tests/unit/gui/test-gui-color.cpp:503: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 string[256], *decoded;
data/weechat-3.0/tests/unit/gui/test-gui-color.cpp:663: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 string[256], *encoded;
data/weechat-3.0/tests/unit/gui/test-gui-color.cpp:789: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 string1[256], string2[256], *emphasized;
data/weechat-3.0/tests/unit/plugins/irc/test-irc-color.cpp:154: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 string[1024], *decoded;
data/weechat-3.0/tests/unit/plugins/irc/test-irc-color.cpp:281: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 string[1024], *encoded;
data/weechat-3.0/tests/unit/plugins/irc/test-irc-color.cpp:413: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 string[1024], *decoded;
data/weechat-3.0/tests/unit/plugins/irc/test-irc-color.cpp:581: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 string[1024], *result;
data/weechat-3.0/tests/unit/plugins/irc/test-irc-protocol.cpp:226: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.
        char str_command[4096];
data/weechat-3.0/tests/unit/plugins/irc/test-irc-protocol.cpp:251: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.
        char *data, response_sent[1024], str_error[4096];
data/weechat-3.0/tests/unit/plugins/irc/test-irc-protocol.cpp:325: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[1024];
data/weechat-3.0/tests/unit/plugins/irc/test-irc-protocol.cpp:1096: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 *info, message[1024];
data/weechat-3.0/tests/unit/plugins/irc/test-irc-protocol.cpp:1644: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 message[1024];
data/weechat-3.0/tests/unit/plugins/irc/test-irc-server.cpp:979: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.
        char str_command[4096];
data/weechat-3.0/tests/unit/plugins/relay/test-relay-auth.cpp:109: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 salt_expected[4] = { 0x41, 0x42, 0x43, 0x44 };  /* "ABCD" */
data/weechat-3.0/tests/unit/plugins/relay/test-relay-auth.cpp:166: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 salt_expected[4] = { 0x41, 0x42, 0x43, 0x44 };  /* "ABCD" */
data/weechat-3.0/tests/unit/plugins/relay/test-relay-auth.cpp:271: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 salt[16] = { 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48,
data/weechat-3.0/tests/unit/plugins/relay/test-relay-auth.cpp:339: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 salt[16] = { 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48,
data/weechat-3.0/src/core/hook/wee-hook-command-run.c:103: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).
        length = strlen (command) + 1;
data/weechat-3.0/src/core/hook/wee-hook-command-run.c:128: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).
                length = strlen (HOOK_COMMAND_RUN(ptr_hook, command));
data/weechat-3.0/src/core/hook/wee-hook-command.c:103:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            pos_double_pipe = pos_completion + strlen (pos_completion);
data/weechat-3.0/src/core/hook/wee-hook-command.c:210: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).
                    length += strlen (hook_command->cplt_template_args[j][i]) + 1;
data/weechat-3.0/src/core/hook/wee-hook-command.c:237:37:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                                    strcat (hook_command->cplt_template_args_concat[i], "|");
data/weechat-3.0/src/core/hook/wee-hook-command.c:378: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).
    length_command_name = strlen (ptr_command_name);
data/weechat-3.0/src/core/hook/wee-hook-focus.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).
    length = strlen ((const char *)key) + 1 + 1;
data/weechat-3.0/src/core/hook/wee-hook-focus.c:245: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).
                    length = strlen (list_keys[i]) + 1 + 1;
data/weechat-3.0/src/core/hook/wee-hook-process.c:422:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    num_read = read (fd, buffer, sizeof (buffer) - 1);
data/weechat-3.0/src/core/hook/wee-hook-process.c:585:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep (1000);
data/weechat-3.0/src/core/wee-calc.c:218: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).
    i = strlen (string) - 1;
data/weechat-3.0/src/core/wee-calc.c:296: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).
    i = strlen (result) - 1;
data/weechat-3.0/src/core/wee-command.c:1489:13:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
            strcat (str_color, ";");
data/weechat-3.0/src/core/wee-command.c:1494:13:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
            strcat (str_color, ";");
data/weechat-3.0/src/core/wee-command.c:1663: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).
        length = strlen (argv_eol[index_args + 1]) + 2;
data/weechat-3.0/src/core/wee-command.c:2628: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).
                            if (strlen (str_line) + strlen (weelist_string (item)) + 1 < (int)sizeof (str_line))
data/weechat-3.0/src/core/wee-command.c:2628: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).
                            if (strlen (str_line) + strlen (weelist_string (item)) + 1 < (int)sizeof (str_line))
data/weechat-3.0/src/core/wee-command.c:2859: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).
                        length += strlen (ptr_option->string_values[i]) + 5;
data/weechat-3.0/src/core/wee-command.c:2871:33:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                                strcat (string, "\"");
data/weechat-3.0/src/core/wee-command.c:2873:33:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                                strcat (string, "\"");
data/weechat-3.0/src/core/wee-command.c:4265: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).
            length = strlen (ptr_command) + 2;
data/weechat-3.0/src/core/wee-command.c:4937: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).
                memmove (pos + 1, pos + 2, strlen (pos + 2) + 1);
data/weechat-3.0/src/core/wee-command.c:5529: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).
            && (strlen (argv_eol[2]) > SECURE_PASSPHRASE_MAX_LENGTH))
data/weechat-3.0/src/core/wee-command.c:5767: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).
                length = strlen (ptr_config->name) + 1
data/weechat-3.0/src/core/wee-command.c:5768: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).
                    + strlen (ptr_section->name) + 1
data/weechat-3.0/src/core/wee-command.c:5769: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).
                    + strlen (ptr_option->name) + 1;
data/weechat-3.0/src/core/wee-command.c:6173: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).
                    length = strlen (ptr_config->name) + 1
data/weechat-3.0/src/core/wee-command.c:6174: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).
                        + strlen (ptr_section->name) + 1
data/weechat-3.0/src/core/wee-command.c:6175: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).
                        + strlen (ptr_option->name) + 1;
data/weechat-3.0/src/core/wee-command.c:6420: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).
            str_first_start[strlen (str_first_start) - 1] = '\0';
data/weechat-3.0/src/core/wee-command.c:6496: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).
                str_first_start[strlen (str_first_start) - 1] = '\0';
data/weechat-3.0/src/core/wee-command.c:6500: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).
                str_last_start[strlen (str_last_start) - 1] = '\0';
data/weechat-3.0/src/core/wee-completion.c:499: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).
              "%s", completion->base_word + strlen (prefix));
data/weechat-3.0/src/core/wee-completion.c:525: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).
    length_path_base = strlen (path_base);
data/weechat-3.0/src/core/wee-completion.c:801: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).
                length = strlen (ptr_config->name) + 1
data/weechat-3.0/src/core/wee-completion.c:802: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).
                    + strlen (ptr_section->name) + 1
data/weechat-3.0/src/core/wee-completion.c:803: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).
                    + strlen (ptr_option->name) + 1;
data/weechat-3.0/src/core/wee-completion.c:908: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).
        length = strlen (extra_libdir) + 16 + 1;
data/weechat-3.0/src/core/wee-completion.c:944:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (WEECHAT_LIBDIR) + 16 + 1;
data/weechat-3.0/src/core/wee-completion.c:1201: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).
                                length = strlen (CONFIG_STRING(option_found)) + 2 + 1;
data/weechat-3.0/src/core/wee-config-file.c:144: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).
        length = strlen (name) + 8 + 1;
data/weechat-3.0/src/core/wee-config-file.c:340: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_option = strlen (option->config_file->name) + 1 +
data/weechat-3.0/src/core/wee-config-file.c:341: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 (option->section->name) + 1 + strlen (option->name) + 1;
data/weechat-3.0/src/core/wee-config-file.c:341: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).
        strlen (option->section->name) + 1 + strlen (option->name) + 1;
data/weechat-3.0/src/core/wee-config-file.c:1777: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).
                length = strlen (ptr_value) + ((use_colors) ? 64 : 0) + 1;
data/weechat-3.0/src/core/wee-config-file.c:1802: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).
            length = strlen (ptr_value) + ((use_colors) ? 64 : 0) + 1;
data/weechat-3.0/src/core/wee-config-file.c:1821: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).
            length = strlen (ptr_value) + ((use_colors) ? 64 : 0) + 1;
data/weechat-3.0/src/core/wee-config-file.c:2369: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).
    filename_length = strlen (weechat_home) +
data/weechat-3.0/src/core/wee-config-file.c:2370: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 (config_file->filename) + 2;
data/weechat-3.0/src/core/wee-config-file.c:2564: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).
    filename_length = strlen (weechat_home) + strlen (DIR_SEPARATOR) +
data/weechat-3.0/src/core/wee-config-file.c:2564: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).
    filename_length = strlen (weechat_home) + strlen (DIR_SEPARATOR) +
data/weechat-3.0/src/core/wee-config-file.c:2565: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 (config_file->filename) + 1;
data/weechat-3.0/src/core/wee-config-file.c:2693: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).
                            if (strlen (pos) > 1)
data/weechat-3.0/src/core/wee-config-file.c:2695: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).
                                pos2 = pos + strlen (pos) - 1;
data/weechat-3.0/src/core/wee-config-file.c:2701: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).
                                pos2 = pos + strlen (pos) - 1;
data/weechat-3.0/src/core/wee-crypto.c:314: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).
    secret = malloc ((strlen (secret_base32) * 4) + 16 + 1);
data/weechat-3.0/src/core/wee-crypto.c:369: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).
    digits = strlen (otp);
data/weechat-3.0/src/core/wee-crypto.c:376: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).
    secret = malloc (strlen (secret_base32) + 1);
data/weechat-3.0/src/core/wee-debug.c:476: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).
                                size_data += strlen ((char *)(ptr_var->value));
data/weechat-3.0/src/core/wee-eval.c:134: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_search = strlen (search);
data/weechat-3.0/src/core/wee-eval.c:136: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_prefix = strlen (eval_context->prefix);
data/weechat-3.0/src/core/wee-eval.c:137: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_suffix = strlen (eval_context->suffix);
data/weechat-3.0/src/core/wee-eval.c:139: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).
    length_prefix2 = (extra_prefix) ? strlen (extra_prefix) : 0;
data/weechat-3.0/src/core/wee-eval.c:140: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).
    length_suffix2 = (extra_suffix) ? strlen (extra_suffix) : 0;
data/weechat-3.0/src/core/wee-eval.c:213: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).
        length_hide_char = strlen (hide_char);
data/weechat-3.0/src/core/wee-eval.c:477:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (ptr_string);
data/weechat-3.0/src/core/wee-eval.c:526: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).
    result = malloc (strlen (ptr_string) + 1);
data/weechat-3.0/src/core/wee-eval.c:1225: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).
    length1 = strlen (expr1);
data/weechat-3.0/src/core/wee-eval.c:1226: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).
    length2 = strlen (expr2);
data/weechat-3.0/src/core/wee-eval.c:1321: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).
    pos_end = expr + strlen (expr) - 1;
data/weechat-3.0/src/core/wee-eval.c:1367: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).
            pos += strlen (logical_ops[logic]);
data/weechat-3.0/src/core/wee-eval.c:1409: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).
            pos += strlen (comparisons[comp]);
data/weechat-3.0/src/core/wee-eval.c:1474: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).
        length = ((tmp_value) ? strlen (tmp_value) : 0) + 1 +
data/weechat-3.0/src/core/wee-eval.c:1475: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).
            strlen (pos + 1) + 1;
data/weechat-3.0/src/core/wee-eval.c:1486:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat (tmp_value2, " ");
data/weechat-3.0/src/core/wee-eval.c:1546:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (string) + 1;
data/weechat-3.0/src/core/wee-eval.c:1602: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).
        length_replace = (str_replace) ? strlen (str_replace) : 0;
data/weechat-3.0/src/core/wee-eval.c:1605: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).
            strlen (result + eval_regex.match[0].rm_eo) + 1;
data/weechat-3.0/src/core/wee-hashtable.c:267:34:  [1] (buffer) strlen:
  Does not handle 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 = (*pointer) ? strlen (*pointer) + 1 : 0;
data/weechat-3.0/src/core/wee-hashtable.c:770: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).
        *length += strlen (str_key) + 1;
data/weechat-3.0/src/core/wee-hashtable.c:795: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).
            *length += strlen (str_value) + 1;
data/weechat-3.0/src/core/wee-hashtable.c:799: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).
        *length += strlen ("(null)") + 1;
data/weechat-3.0/src/core/wee-hashtable.c:836:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat (str, ",");
data/weechat-3.0/src/core/wee-hashtable.c:862:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat (str, ",");
data/weechat-3.0/src/core/wee-hashtable.c:892:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat (str, ",");
data/weechat-3.0/src/core/wee-hashtable.c:898:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat (str, ":");
data/weechat-3.0/src/core/wee-hashtable.c:1130: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).
    prefix_length = strlen (prefix_name);
data/weechat-3.0/src/core/wee-hook.c:491: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).
                                 value, strlen (value));
data/weechat-3.0/src/core/wee-infolist.c:398: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).
        length += strlen (ptr_var->name) + 3;
data/weechat-3.0/src/core/wee-infolist.c:429:13:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
            strcat (infolist->ptr_item->fields, ",");
data/weechat-3.0/src/core/wee-input.c:120: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).
    pos = &command[strlen (command) - 1];
data/weechat-3.0/src/core/wee-input.c:316: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).
                length = strlen (ptr_data_for_buffer) + char_size + 1;
data/weechat-3.0/src/core/wee-log.c:82: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).
        filename_length = strlen (weechat_home) + 64;
data/weechat-3.0/src/core/wee-log.c:274:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (weechat_home) + 128;
data/weechat-3.0/src/core/wee-network.c:184:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep (100);
data/weechat-3.0/src/core/wee-network.c:216:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep (100);
data/weechat-3.0/src/core/wee-network.c:260: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).
        if (string_base64_encode (authbuf, strlen (authbuf), authbuf_base64) < 0)
data/weechat-3.0/src/core/wee-network.c:367:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (socks4.user, username, sizeof (socks4.user) - 1);
data/weechat-3.0/src/core/wee-network.c:371: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).
    length = 8 + strlen (socks4.user) + 1;
data/weechat-3.0/src/core/wee-network.c:451: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).
        username_len = strlen (username);
data/weechat-3.0/src/core/wee-network.c:452: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).
        password_len = strlen (password);
data/weechat-3.0/src/core/wee-network.c:488: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).
    addr_len = strlen (address);
data/weechat-3.0/src/core/wee-network.c:792: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).
                                 status_without_string, strlen (status_without_string));
data/weechat-3.0/src/core/wee-network.c:827: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).
            length = 1 + 5 + strlen (error) + 1;
data/weechat-3.0/src/core/wee-network.c:833: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).
                          (int)strlen (error), error);
data/weechat-3.0/src/core/wee-network.c:839:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                 status_with_string, strlen (status_with_string));
data/weechat-3.0/src/core/wee-network.c:846: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).
                                 status_without_string, strlen (status_without_string));
data/weechat-3.0/src/core/wee-network.c:858: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).
                             status_without_string, strlen (status_without_string));
data/weechat-3.0/src/core/wee-network.c:882:34:  [1] (buffer) strlen:
  Does not handle 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 = 1 + 5 + strlen (error) + 1;
data/weechat-3.0/src/core/wee-network.c:888:36:  [1] (buffer) strlen:
  Does not handle 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 (error), error);
data/weechat-3.0/src/core/wee-network.c:894:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                     status_with_string, strlen (status_with_string));
data/weechat-3.0/src/core/wee-network.c:901:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                     status_without_string, strlen (status_without_string));
data/weechat-3.0/src/core/wee-network.c:913: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).
                                 status_without_string, strlen (status_without_string));
data/weechat-3.0/src/core/wee-network.c:948: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).
                             status_without_string, strlen (status_without_string));
data/weechat-3.0/src/core/wee-network.c:1030: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).
                             status_without_string, strlen (status_without_string));
data/weechat-3.0/src/core/wee-network.c:1160: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).
            length = strlen (status_str) + 5 + strlen (ptr_address) + 1;
data/weechat-3.0/src/core/wee-network.c:1160:48:  [1] (buffer) strlen:
  Does not handle 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 (status_str) + 5 + strlen (ptr_address) + 1;
data/weechat-3.0/src/core/wee-network.c:1165: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).
                          status_str, (int)strlen (ptr_address), ptr_address);
data/weechat-3.0/src/core/wee-network.c:1172:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                 status_with_string, strlen (status_with_string));
data/weechat-3.0/src/core/wee-network.c:1180: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).
                                 status_without_string, strlen (status_without_string));
data/weechat-3.0/src/core/wee-network.c:1221: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).
                             status_without_string, strlen (status_without_string));
data/weechat-3.0/src/core/wee-network.c:1410:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    num_read = read (HOOK_CONNECT(hook_connect, child_read),
data/weechat-3.0/src/core/wee-network.c:1418:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            num_read = read (HOOK_CONNECT(hook_connect, child_read),
data/weechat-3.0/src/core/wee-network.c:1429:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        num_read = read (HOOK_CONNECT(hook_connect, child_read),
data/weechat-3.0/src/core/wee-network.c:1473:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                num_read = read (HOOK_CONNECT(hook_connect, child_read), &sock, sizeof (sock));
data/weechat-3.0/src/core/wee-network.c:1577:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            num_read = read (HOOK_CONNECT(hook_connect, child_read),
data/weechat-3.0/src/core/wee-network.c:1588:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        num_read = read (HOOK_CONNECT(hook_connect, child_read),
data/weechat-3.0/src/core/wee-network.c:1654: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).
                                     strlen (HOOK_CONNECT(hook_connect, address)));
data/weechat-3.0/src/core/wee-proxy.c:167:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (name) + 64;
data/weechat-3.0/src/core/wee-proxy.c:261:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (proxy_name) + 1 +
data/weechat-3.0/src/core/wee-proxy.c:262: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 (proxy_option_string[index_option]) + 1;
data/weechat-3.0/src/core/wee-secure-config.c:273: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).
    buffer = malloc (strlen (value) + 1);
data/weechat-3.0/src/core/wee-secure-config.c:360: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).
            value, strlen (value) + 1,
data/weechat-3.0/src/core/wee-secure.c:86: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).
    length = SECURE_SALT_SIZE + strlen (passphrase);
data/weechat-3.0/src/core/wee-secure.c:93:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    memcpy (buffer + SECURE_SALT_SIZE, passphrase, strlen (passphrase));
data/weechat-3.0/src/core/wee-secure.c:185: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).
        length_salt = strlen (SECURE_SALT_DEFAULT);
data/weechat-3.0/src/core/wee-secure.c:462:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                buffer = malloc (strlen (value) + 1);
data/weechat-3.0/src/core/wee-string.c:85: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 ((int)strlen (string) < length)
data/weechat-3.0/src/core/wee-string.c:133: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).
        length_cut_suffix = strlen (cut_suffix);
data/weechat-3.0/src/core/wee-string.c:186:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (string);
data/weechat-3.0/src/core/wee-string.c:229:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (string);
data/weechat-3.0/src/core/wee-string.c:244: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).
            ptr_next = ptr_string + strlen (ptr_string);
data/weechat-3.0/src/core/wee-string.c:288: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_string = strlen (string);
data/weechat-3.0/src/core/wee-string.c:636: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).
            length_word = strlen (ptr_mask);
data/weechat-3.0/src/core/wee-string.c:765:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (ptr_home) + strlen (path + 1) + 1;
data/weechat-3.0/src/core/wee-string.c:765:34:  [1] (buffer) strlen:
  Does not handle 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 (ptr_home) + strlen (path + 1) + 1;
data/weechat-3.0/src/core/wee-string.c:805: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).
        length = strlen (weechat_home) + strlen (path + 2) + 1;
data/weechat-3.0/src/core/wee-string.c:805: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).
        length = strlen (weechat_home) + strlen (path + 2) + 1;
data/weechat-3.0/src/core/wee-string.c:856:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (string);
data/weechat-3.0/src/core/wee-string.c:893: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).
    ptr_end = string + strlen (string) - 1;
data/weechat-3.0/src/core/wee-string.c:952: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).
    output = malloc (strlen (string) + 1);
data/weechat-3.0/src/core/wee-string.c:1047: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).
                            length = strlen (utf_char);
data/weechat-3.0/src/core/wee-string.c:1186: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).
    result = malloc ((strlen (mask) * 2) + 1);
data/weechat-3.0/src/core/wee-string.c:1464:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            endswith = ((regex_match.rm_eo == (int)strlen (string))
data/weechat-3.0/src/core/wee-string.c:1517: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).
    length1 = strlen (search);
data/weechat-3.0/src/core/wee-string.c:1518: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).
    length2 = strlen (replace);
data/weechat-3.0/src/core/wee-string.c:1534: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).
    length_new = strlen (string) - (count * length1) + (count * length2) + 1;
data/weechat-3.0/src/core/wee-string.c:1548:13:  [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.
            strncat (new_string, string, pos - string);
data/weechat-3.0/src/core/wee-string.c:1578: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).
    length = (strlen (string) * 2);
data/weechat-3.0/src/core/wee-string.c:1635: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).
                                length_add = strlen (modified_replace);
data/weechat-3.0/src/core/wee-string.c:1773:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (string) + 1;
data/weechat-3.0/src/core/wee-string.c:1822: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).
        length_replace = (str_replace) ? strlen (str_replace) : 0;
data/weechat-3.0/src/core/wee-string.c:1825: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).
            strlen (result + regex_match[0].rm_eo) + 1;
data/weechat-3.0/src/core/wee-string.c:2091:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy (array[i], ptr1, ptr2 - ptr1);
data/weechat-3.0/src/core/wee-string.c:2229: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).
    temp = malloc ((2 * strlen (string)) + 1);
data/weechat-3.0/src/core/wee-string.c:2430: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).
    length_separator = (separator) ? strlen (separator) : 0;
data/weechat-3.0/src/core/wee-string.c:2434: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).
        length += strlen (split_string[i]) + length_separator;
data/weechat-3.0/src/core/wee-string.c:2484: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).
    buffer = malloc (strlen (command) + 1);
data/weechat-3.0/src/core/wee-string.c:2670: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).
            inbytesleft = strlen (inbuf);
data/weechat-3.0/src/core/wee-string.c:2851: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).
        rc = (num_written == (int)strlen ((buf2) ? buf2 : vbuffer)) ? 1 : 0;
data/weechat-3.0/src/core/wee-string.c:2963:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (from) / 2;
data/weechat-3.0/src/core/wee-string.c:3385: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).
    length_prefix = (prefix) ? strlen (prefix) : 0;
data/weechat-3.0/src/core/wee-string.c:3386: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).
    length_suffix = (suffix) ? strlen (suffix) : 0;
data/weechat-3.0/src/core/wee-string.c:3419:17:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                strcat (buf, "\n");
data/weechat-3.0/src/core/wee-string.c:3435:13:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
            strcat (buf, "\n");
data/weechat-3.0/src/core/wee-string.c:3598: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_prefix = strlen (prefix);
data/weechat-3.0/src/core/wee-string.c:3599: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_suffix = strlen (suffix);
data/weechat-3.0/src/core/wee-string.c:3601:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (string) + 1;
data/weechat-3.0/src/core/wee-string.c:3661: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).
                                        strlen (list_prefix_no_replace[i])) == 0)
data/weechat-3.0/src/core/wee-string.c:3688: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).
                        length_value = strlen (value);
data/weechat-3.0/src/core/wee-string.c:3827: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).
    length = sizeof (string_shared_count_t) + strlen (string) + 1;
data/weechat-3.0/src/core/wee-string.c:3951: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).
    length_new = (new_string) ? strlen (new_string) : 0;
data/weechat-3.0/src/core/wee-string.c:4009: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).
    length_add = strlen (add);
data/weechat-3.0/src/core/wee-upgrade-file.c:135: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).
        length = strlen (string);
data/weechat-3.0/src/core/wee-upgrade-file.c:206: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).
        length = strlen (weechat_home) + 1 + strlen (filename) + 16 + 1;
data/weechat-3.0/src/core/wee-upgrade-file.c:206: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).
        length = strlen (weechat_home) + 1 + strlen (filename) + 16 + 1;
data/weechat-3.0/src/core/wee-upgrade.c:589: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).
        length = 16 + strlen (key) + 1;
data/weechat-3.0/src/core/wee-upgrade.c:612: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).
        length = 32 + strlen (var_name) + 1;
data/weechat-3.0/src/core/wee-url.c:1311: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).
            length += strlen (option->constants[i].name) + 1;
data/weechat-3.0/src/core/wee-url.c:1320:21:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                    strcat (constants, ",");
data/weechat-3.0/src/core/wee-util.c:565: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).
    dir_length = strlen (weechat_home) + strlen (directory) + 2;
data/weechat-3.0/src/core/wee-util.c:565: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).
    dir_length = strlen (weechat_home) + strlen (directory) + 2;
data/weechat-3.0/src/core/wee-util.c:773:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (filename) + strlen (extension) + 1;
data/weechat-3.0/src/core/wee-util.c:773:34:  [1] (buffer) strlen:
  Does not handle 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 (filename) + strlen (extension) + 1;
data/weechat-3.0/src/core/wee-util.c:786: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).
        length = strlen (extra_libdir) + strlen (name_with_ext) +
data/weechat-3.0/src/core/wee-util.c:786: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).
        length = strlen (extra_libdir) + strlen (name_with_ext) +
data/weechat-3.0/src/core/wee-util.c:787: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).
            strlen (plugins_dir) + 16;
data/weechat-3.0/src/core/wee-util.c:810:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (weechat_home) + strlen (name_with_ext) +
data/weechat-3.0/src/core/wee-util.c:810: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).
    length = strlen (weechat_home) + strlen (name_with_ext) +
data/weechat-3.0/src/core/wee-util.c:811: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 (plugins_dir) + 16;
data/weechat-3.0/src/core/wee-util.c:833:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (WEECHAT_LIBDIR) + strlen (name_with_ext) +
data/weechat-3.0/src/core/wee-util.c:833: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).
    length = strlen (WEECHAT_LIBDIR) + strlen (name_with_ext) +
data/weechat-3.0/src/core/wee-util.c:834: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 (plugins_dir) + 16;
data/weechat-3.0/src/core/weechat.c:396: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).
        dir_length = strlen (ptr_home) + strlen (home_path + 1) + 1;
data/weechat-3.0/src/core/weechat.c:396: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).
        dir_length = strlen (ptr_home) + strlen (home_path + 1) + 1;
data/weechat-3.0/src/core/weechat.c:447: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).
        length = strlen (temp_dir) + 32 + 1;
data/weechat-3.0/src/core/weechat.c:459: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).
        add_separator = (temp_dir[strlen (temp_dir) - 1] != DIR_SEPARATOR_CHAR);
data/weechat-3.0/src/gui/curses/gui-curses-bar-window.c:452: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).
        length_start_input = strlen (str_start_input);
data/weechat-3.0/src/gui/curses/gui-curses-bar-window.c:458: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).
        length_start_input_hidden = strlen (str_start_input_hidden);
data/weechat-3.0/src/gui/curses/gui-curses-bar-window.c:582:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    pos_after_start_input = pos_start_input + strlen (str_start_input);
data/weechat-3.0/src/gui/curses/gui-curses-bar-window.c:621:43:  [1] (buffer) strlen:
  Does not handle 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 = malloc (strlen (items[line]) + length_start_input_hidden + 1);
data/weechat-3.0/src/gui/curses/gui-curses-bar-window.c:643: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 = strlen (new_start_input) + 1;
data/weechat-3.0/src/gui/curses/gui-curses-chat.c:481: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).
    end_line = data + strlen (data);
data/weechat-3.0/src/gui/curses/gui-curses-chat.c:590: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).
            ptr_data += strlen (ptr_data);
data/weechat-3.0/src/gui/curses/gui-curses-chat.c:980: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).
                length = strlen (str_color) + strlen (ptr_prefix) + 1;
data/weechat-3.0/src/gui/curses/gui-curses-chat.c:980: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).
                length = strlen (str_color) + strlen (ptr_prefix) + 1;
data/weechat-3.0/src/gui/curses/gui-curses-chat.c:1079: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).
                length = strlen (prefix_no_color) + 32;
data/weechat-3.0/src/gui/curses/gui-curses-chat.c:2009:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (str_time) + 1 + 1 + strlen (prefix) + 1 + 1
data/weechat-3.0/src/gui/curses/gui-curses-chat.c:2009: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).
    length = strlen (str_time) + 1 + 1 + strlen (prefix) + 1 + 1
data/weechat-3.0/src/gui/curses/gui-curses-chat.c:2010: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).
        + strlen (message) + 1;
data/weechat-3.0/src/gui/curses/gui-curses-key.c:470: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).
                    && (strlen (gui_current_window->buffer->input_buffer) > strlen (input_old))
data/weechat-3.0/src/gui/curses/gui-curses-key.c:470:77:  [1] (buffer) strlen:
  Does not handle 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 (gui_current_window->buffer->input_buffer) > strlen (input_old))
data/weechat-3.0/src/gui/curses/gui-curses-key.c:472:34:  [1] (buffer) strlen:
  Does not handle 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 (input_old)) == 0))
data/weechat-3.0/src/gui/curses/gui-curses-key.c:499: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).
        length_key_str = strlen (key_str);
data/weechat-3.0/src/gui/curses/gui-curses-key.c:534:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ret = read (STDIN_FILENO, buffer, sizeof (buffer));
data/weechat-3.0/src/gui/curses/gui-curses-mouse.c:270:54:  [1] (buffer) strlen:
  Does not handle 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 = (code_utf8) ? utf8_strlen (code) : (int)strlen (code);
data/weechat-3.0/src/gui/curses/gui-curses-window.c:2528: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).
        printf ("\033&f0k%dD%s", (int)(strlen (new_title) + 1), new_title);
data/weechat-3.0/src/gui/curses/gui-curses-window.c:2588:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (text);
data/weechat-3.0/src/gui/gui-bar-item.c:199:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (item_name);
data/weechat-3.0/src/gui/gui-bar-item.c:245:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (item_name);
data/weechat-3.0/src/gui/gui-bar-item.c:419: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).
        length += 64 + strlen (bar->items_prefix[item][subitem]) + 1; /* color + prefix + color */
data/weechat-3.0/src/gui/gui-bar-item.c:421: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).
        length += strlen (item_value) + 1;
data/weechat-3.0/src/gui/gui-bar-item.c:423: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).
        length += 32 + strlen (bar->items_suffix[item][subitem]) + 1; /* color + suffix */
data/weechat-3.0/src/gui/gui-bar-item.c:871: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_cursor = strlen (str_cursor);
data/weechat-3.0/src/gui/gui-bar-item.c:876: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).
    length_start_input = strlen (str_start_input);
data/weechat-3.0/src/gui/gui-bar-item.c:903: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).
        length = strlen (ptr_input) + length_cursor + 1;
data/weechat-3.0/src/gui/gui-bar-item.c:948: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).
        length = strlen (ptr_input) + length_start_input + 1;
data/weechat-3.0/src/gui/gui-bar-item.c:1512: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).
            snprintf (str_hotlist + strlen (str_hotlist), 16,
data/weechat-3.0/src/gui/gui-bar-item.c:1521:17:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                strcat (str_hotlist, ":");
data/weechat-3.0/src/gui/gui-bar-item.c:1537: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).
                    if (strlen (buffer_name) > 128)
data/weechat-3.0/src/gui/gui-bar-item.c:1616:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        snprintf (str_hotlist + strlen (str_hotlist), 16,
data/weechat-3.0/src/gui/gui-bar-item.c:1620:21:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                    strcat (str_hotlist, ")");
data/weechat-3.0/src/gui/gui-bar-item.c:1624: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 (strlen (str_hotlist) > sizeof (str_hotlist) - 256)
data/weechat-3.0/src/gui/gui-bar-item.c:1634: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).
        && (strlen (str_hotlist) + strlen (CONFIG_STRING(config_look_hotlist_suffix)) + 16 < sizeof (str_hotlist)))
data/weechat-3.0/src/gui/gui-bar-item.c:1634:36:  [1] (buffer) strlen:
  Does not handle 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 (str_hotlist) + strlen (CONFIG_STRING(config_look_hotlist_suffix)) + 16 < sizeof (str_hotlist)))
data/weechat-3.0/src/gui/gui-bar-item.c:1676: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).
        length += strlen (ptr_completion_word->word) + 32;
data/weechat-3.0/src/gui/gui-bar-item.c:1692:17:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                strcat (buf, "(");
data/weechat-3.0/src/gui/gui-bar-item.c:1696:17:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                strcat (buf, ")");
data/weechat-3.0/src/gui/gui-bar-item.c:1699:17:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                strcat (buf, " ");
data/weechat-3.0/src/gui/gui-bar-item.c:1977: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).
        length = strlen (message) + 64 + 1;
data/weechat-3.0/src/gui/gui-bar-window.c:707: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).
    length_reinit_color_space = strlen (str_reinit_color_space);
data/weechat-3.0/src/gui/gui-bar-window.c:722: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).
    length_start_item = strlen (str_start_item);
data/weechat-3.0/src/gui/gui-bar-window.c:763: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).
                            strlen ((item_value) ? item_value : ptr_content);
data/weechat-3.0/src/gui/gui-bar-window.c:778:33:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                                strcat (content, "\n");
data/weechat-3.0/src/gui/gui-bar-window.c:856: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).
                                length = strlen (split_items[i][sub][j]);
data/weechat-3.0/src/gui/gui-bar-window.c:951: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).
                            index_content += strlen (linear_items[index]);
data/weechat-3.0/src/gui/gui-bar.c:1162:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (name) + 64;
data/weechat-3.0/src/gui/gui-bar.c:1344:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (bar_name) + 1 +
data/weechat-3.0/src/gui/gui-bar.c:1345: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 (gui_bar_option_string[index_option]) + 1;
data/weechat-3.0/src/gui/gui-bar.c:1875: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).
                length += strlen (CONFIG_STRING(ptr_bar->options[GUI_BAR_OPTION_ITEMS]));
data/weechat-3.0/src/gui/gui-bar.c:1877: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).
            length += strlen (gui_bar_item_names[GUI_BAR_ITEM_INPUT_TEXT]);
data/weechat-3.0/src/gui/gui-bar.c:2131: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).
        length = strlen (scroll);
data/weechat-3.0/src/gui/gui-buffer.c:222:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (gui_buffer_get_plugin_name (buffer)) + 1 +
data/weechat-3.0/src/gui/gui-buffer.c:223: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 (buffer->name) + 1;
data/weechat-3.0/src/gui/gui-buffer.c:305:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (buffer->full_name) + 1;
data/weechat-3.0/src/gui/gui-buffer.c:311: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).
        ptr_end = option_name + strlen (option_name);
data/weechat-3.0/src/gui/gui-buffer.c:951:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (string) + 1;
data/weechat-3.0/src/gui/gui-buffer.c:982: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).
                            length_var = strlen (ptr_value);
data/weechat-3.0/src/gui/gui-buffer.c:1002: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).
                            index_string += strlen (local_var) + 1;
data/weechat-3.0/src/gui/gui-buffer.c:1535: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).
            length += strlen (ptr_string) + 1;
data/weechat-3.0/src/gui/gui-buffer.c:1554:17:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                strcat (words, ",");
data/weechat-3.0/src/gui/gui-buffer.c:2506: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).
    length_name = strlen (name);
data/weechat-3.0/src/gui/gui-buffer.c:4641: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).
        buf[strlen (buf) - 1] = '\0';
data/weechat-3.0/src/gui/gui-buffer.c:4645: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).
        buf[strlen (buf) - 1] = '\0';
data/weechat-3.0/src/gui/gui-chat.c:405: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).
            *word_end_offset = data + strlen (data) - start_data - 1;
data/weechat-3.0/src/gui/gui-chat.c:590: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).
        length += strlen (line->data->prefix);
data/weechat-3.0/src/gui/gui-chat.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).
        length += strlen (line->data->message);
data/weechat-3.0/src/gui/gui-chat.c:602:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat (string, "\t");
data/weechat-3.0/src/gui/gui-chat.c:635: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).
        length += strlen (line->data->message);
data/weechat-3.0/src/gui/gui-chat.c:638: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).
        length += strlen (line->data->tags_array[i]) + 1;
data/weechat-3.0/src/gui/gui-chat.c:653:13:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
            strcat (buf, ",");
data/weechat-3.0/src/gui/gui-chat.c:656:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat (buf, "]");
data/weechat-3.0/src/gui/gui-chat.c:764: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).
    length_data = 64 + 1 + ((tags) ? strlen (tags) : 0) + 1;
data/weechat-3.0/src/gui/gui-chat.c:766:75:  [1] (buffer) strlen:
  Does not handle 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_str = ((new_line->data->prefix && new_line->data->prefix[0]) ? strlen (new_line->data->prefix) : 1) +
data/weechat-3.0/src/gui/gui-chat.c:768:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        (new_line->data->message ? strlen (new_line->data->message) : 0) +
data/weechat-3.0/src/gui/gui-chat.c:1200: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).
    length_time = strlen (str_time);
data/weechat-3.0/src/gui/gui-chat.c:1201: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).
    length_nick_prefix = strlen (CONFIG_STRING(config_look_quote_nick_prefix));
data/weechat-3.0/src/gui/gui-chat.c:1202:36:  [1] (buffer) strlen:
  Does not handle 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_prefix = (ptr_prefix) ? strlen (ptr_prefix) : 0;
data/weechat-3.0/src/gui/gui-chat.c:1203: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).
    length_nick_suffix = strlen (CONFIG_STRING(config_look_quote_nick_suffix));
data/weechat-3.0/src/gui/gui-chat.c:1204: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).
    length_message = strlen (message);
data/weechat-3.0/src/gui/gui-color.c:759: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).
    out_length = (strlen ((char *)string) * 2) + 1;
data/weechat-3.0/src/gui/gui-color.c:962:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (text);
data/weechat-3.0/src/gui/gui-color.c:1254: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).
    out = string_dyn_alloc (((strlen (string) * 3) / 2) + 1);
data/weechat-3.0/src/gui/gui-color.c:1670: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).
    length_emphasis = strlen (color_emphasis);
data/weechat-3.0/src/gui/gui-color.c:1677: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_result = strlen (string) + (length_emphasis * 2 * 8) + 1;
data/weechat-3.0/src/gui/gui-color.c:1695: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).
    length_search = (search) ? strlen (search) : 0;
data/weechat-3.0/src/gui/gui-color.c:1763:13:  [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.
            strncat (result, ptr_string, real_pos1);
data/weechat-3.0/src/gui/gui-color.c:1765:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
        strncat (result, ptr_string + real_pos1, real_pos2 - real_pos1);
data/weechat-3.0/src/gui/gui-completion.c:323: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).
    length_command = strlen (command);
data/weechat-3.0/src/gui/gui-completion.c:400: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).
    result = malloc (strlen (string) + 1);
data/weechat-3.0/src/gui/gui-completion.c:649: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).
                length = strlen (items[j]);
data/weechat-3.0/src/gui/gui-completion.c:761:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (template);
data/weechat-3.0/src/gui/gui-completion.c:820: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 = (data) ? strlen (data) : 0;
data/weechat-3.0/src/gui/gui-completion.c:1427: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).
            completion->diff_size = strlen (completion->word_found) -
data/weechat-3.0/src/gui/gui-completion.c:1428: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).
                strlen (old_word_found);
data/weechat-3.0/src/gui/gui-completion.c:1434: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).
            completion->diff_size = strlen (completion->word_found) -
data/weechat-3.0/src/gui/gui-completion.c:1435: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).
                strlen (completion->base_word);
data/weechat-3.0/src/gui/gui-input.c:103: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 = strlen (input_utf8);
data/weechat-3.0/src/gui/gui-input.c:262: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 = strlen (string_utf8);
data/weechat-3.0/src/gui/gui-input.c:273: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).
            memmove (ptr_start + size, ptr_start, strlen (ptr_start));
data/weechat-3.0/src/gui/gui-input.c:466: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).
                         (int)strlen (buffer->completion->word_found); i--)
data/weechat-3.0/src/gui/gui-input.c:476: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).
                     strlen (buffer->completion->word_found);
data/weechat-3.0/src/gui/gui-input.c:491:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy (buffer->input_buffer + buffer->completion->position_replace,
data/weechat-3.0/src/gui/gui-input.c:493: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).
                 strlen (buffer->completion->word_found));
data/weechat-3.0/src/gui/gui-input.c:793: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_to_move = strlen (pos);
data/weechat-3.0/src/gui/gui-input.c:826: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_to_move = strlen (pos_next);
data/weechat-3.0/src/gui/gui-input.c:880:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        memmove (string, string + size_deleted, strlen (string + size_deleted));
data/weechat-3.0/src/gui/gui-input.c:929: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).
        memmove (start, string, strlen (string));
data/weechat-3.0/src/gui/gui-input.c:965: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).
        memmove (buffer->input_buffer, start, strlen (start));
data/weechat-3.0/src/gui/gui-input.c:996: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_deleted = strlen (start);
data/weechat-3.0/src/gui/gui-input.c:1000: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).
                                        strlen (buffer->input_buffer),
data/weechat-3.0/src/gui/gui-input.c:1252:34:  [1] (buffer) strlen:
  Does not handle 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 ((*ptr_history)->text),
data/weechat-3.0/src/gui/gui-input.c:1296:43:  [1] (buffer) strlen:
  Does not handle 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 ((*ptr_history)->text),
data/weechat-3.0/src/gui/gui-key.c:281: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).
    result = malloc (strlen (key) + 1);
data/weechat-3.0/src/gui/gui-key.c:305:13:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
            strcat (result, " ");
data/weechat-3.0/src/gui/gui-key.c:310:13:  [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.
            strncat (result, key, 1);
data/weechat-3.0/src/gui/gui-key.c:337: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).
    result = malloc ((strlen (key) * 5) + 1);
data/weechat-3.0/src/gui/gui-key.c:366:13:  [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.
            strncat (result, key, 1);
data/weechat-3.0/src/gui/gui-key.c:465: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).
        length = strlen (gui_key_focus_string[focus]);
data/weechat-3.0/src/gui/gui-key.c:1275:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (key);
data/weechat-3.0/src/gui/gui-key.c:1304:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (gui_key_combo_buffer);
data/weechat-3.0/src/gui/gui-key.c:1305: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).
    length_key = strlen (key_str);
data/weechat-3.0/src/gui/gui-key.c:1604:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (string);
data/weechat-3.0/src/gui/gui-line.c:718:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (tag);
data/weechat-3.0/src/gui/gui-line.c:789: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).
            length = strlen (line->data->tags_array[i]);
data/weechat-3.0/src/gui/gui-line.c:849: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).
        length = strlen (ptr_nick);
data/weechat-3.0/src/gui/gui-line.c:2117: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).
        length += strlen (line->data->tags_array[i]) + 1;
data/weechat-3.0/src/gui/gui-line.c:2127:13:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
            strcat (tags, ",");
data/weechat-3.0/src/gui/gui-nick.c:213: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).
    result = malloc (strlen (nickname) + 1);
data/weechat-3.0/src/gui/gui-nicklist.c:67: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).
        length = 128 + ((arguments) ? strlen (arguments) : 0) + 1 + 1;
data/weechat-3.0/src/plugins/alias/alias.c:109: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).
    length_word = strlen (word);
data/weechat-3.0/src/plugins/alias/alias.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).
        alias2 = realloc (*alias, strlen (*alias) + length_word + 1);
data/weechat-3.0/src/plugins/alias/alias.c:393: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).
                    length1 = strlen (*ptr_cmd);
data/weechat-3.0/src/plugins/alias/alias.c:394: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).
                    length2 = strlen (argv_eol[1]);
data/weechat-3.0/src/plugins/alias/alias.c:400:29:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
                            strcpy (alias_command, "/");
data/weechat-3.0/src/plugins/alias/alias.c:405:25:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                        strcat (alias_command, " ");
data/weechat-3.0/src/plugins/alias/alias.c:422: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).
                        alias_command = malloc (1 + strlen ((args_replaced) ? args_replaced : *ptr_cmd) + 1);
data/weechat-3.0/src/plugins/alias/alias.c:425:29:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
                            strcpy (alias_command, "/");
data/weechat-3.0/src/plugins/alias/alias.c:530:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (alias->name) + 16 + 1;
data/weechat-3.0/src/plugins/alias/alias.c:543: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).
        length = 2 + strlen (alias->command) + 1;
data/weechat-3.0/src/plugins/charset/charset.c:343: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).
        ptr_end = option_name + strlen (option_name);
data/weechat-3.0/src/plugins/charset/charset.c:513: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).
        length = strlen (plugin_name) + 1 + strlen (name) + 1;
data/weechat-3.0/src/plugins/charset/charset.c:513: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).
        length = strlen (plugin_name) + 1 + strlen (name) + 1;
data/weechat-3.0/src/plugins/exec/exec-command.c:346: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).
                    length = strlen (argv[end]);
data/weechat-3.0/src/plugins/exec/exec-command.c:361:25:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                        strcat (cmd_options->pipe_command, " ");
data/weechat-3.0/src/plugins/exec/exec-command.c:365: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).
                length = strlen (cmd_options->pipe_command);
data/weechat-3.0/src/plugins/exec/exec-command.c:692: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).
            length = strlen (argv_eol[3]) + 1 + 1;
data/weechat-3.0/src/plugins/exec/exec-command.c:713: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).
                length = strlen (argv_eol[3]) + 1 + 1;
data/weechat-3.0/src/plugins/exec/exec.c:287: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).
            length = strlen (exec_cmd->pipe_command) + 1 + strlen (line_color) + 1;
data/weechat-3.0/src/plugins/exec/exec.c:287: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).
            length = strlen (exec_cmd->pipe_command) + 1 + strlen (line_color) + 1;
data/weechat-3.0/src/plugins/exec/exec.c:302: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).
            length = 32 + strlen (line_color) + 1;
data/weechat-3.0/src/plugins/exec/exec.c:326: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).
                length = 1 + strlen (line_color) + 1;
data/weechat-3.0/src/plugins/exec/exec.c:423:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (ptr_text);
data/weechat-3.0/src/plugins/exec/exec.c:589: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).
                        (out) ? strlen (out) : 0,
data/weechat-3.0/src/plugins/exec/exec.c:590: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).
                        (err) ? strlen (err) : 0);
data/weechat-3.0/src/plugins/fifo/fifo.c:255:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    num_read = read (fifo_fd, buffer, sizeof (buffer) - 2);
data/weechat-3.0/src/plugins/fifo/fifo.c:264: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).
            buf2 = malloc (strlen (fifo_unterminated) +
data/weechat-3.0/src/plugins/fifo/fifo.c:265: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).
                           strlen (buffer) + 1);
data/weechat-3.0/src/plugins/fset/fset-buffer.c:123:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (field);
data/weechat-3.0/src/plugins/fset/fset-buffer.c:177: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 (fset_option->value) + 256 : 0;
data/weechat-3.0/src/plugins/fset/fset-buffer.c:181: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 (fset_option->default_value) + 256 : 0;
data/weechat-3.0/src/plugins/fset/fset-buffer.c:735: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).
                             strlen (str_number), 0, 1);
data/weechat-3.0/src/plugins/fset/fset-buffer.c:913: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 (fset_option->value) + 256 : 4096;
data/weechat-3.0/src/plugins/fset/fset-config.c:247:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (substring);
data/weechat-3.0/src/plugins/fset/fset-option.c:248: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).
        length = 1 + strlen (fset_option->value) + 1 + 1;
data/weechat-3.0/src/plugins/fset/fset-option.c:462:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (ptr_config_name) + 1 +
data/weechat-3.0/src/plugins/fset/fset-option.c:463: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 (ptr_section_name) + 1 +
data/weechat-3.0/src/plugins/fset/fset-option.c:464: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 (ptr_option_name) + 1;
data/weechat-3.0/src/plugins/fset/fset-option.c:1200: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).
    length_input = 64 + strlen (fset_option->name) + strlen (ptr_value) + 1;
data/weechat-3.0/src/plugins/fset/fset-option.c:1200:54:  [1] (buffer) strlen:
  Does not handle 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_input = 64 + strlen (fset_option->name) + strlen (ptr_value) + 1;
data/weechat-3.0/src/plugins/guile/weechat-guile-api.c:2280:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
weechat_guile_api_hook_fd (SCM fd, SCM read, SCM write, SCM exception,
data/weechat-3.0/src/plugins/guile/weechat-guile-api.c:2287:50:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!scm_is_integer (fd) || !scm_is_integer (read)
data/weechat-3.0/src/plugins/guile/weechat-guile-api.c:2295:65:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                                                    scm_to_int (read),
data/weechat-3.0/src/plugins/guile/weechat-guile.c:152: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).
                length = 1 + strlen (temp_buffer) + 1;
data/weechat-3.0/src/plugins/guile/weechat-guile.c:363: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).
        argc = strlen (format);
data/weechat-3.0/src/plugins/irc/irc-bar-item.c:575: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).
    length = 64 + strlen (server->nick) + 64 +
data/weechat-3.0/src/plugins/irc/irc-bar-item.c:576: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).
        ((server->nick_modes) ? strlen (server->nick_modes) : 0) + 64 + 1;
data/weechat-3.0/src/plugins/irc/irc-bar-item.c:634: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).
    length = 64 + strlen (server->nick_modes) + 1;
data/weechat-3.0/src/plugins/irc/irc-channel.c:1269: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).
                length_tags += strlen (tags[i]) + 1;
data/weechat-3.0/src/plugins/irc/irc-channel.c:1305:33:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                                strcat (new_tags, ",");
data/weechat-3.0/src/plugins/irc/irc-color.c:107:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (string);
data/weechat-3.0/src/plugins/irc/irc-color.c:299:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (string);
data/weechat-3.0/src/plugins/irc/irc-color.c:502:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (text);
data/weechat-3.0/src/plugins/irc/irc-command.c:191: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).
                if (strlen (nicks) + 1 + strlen (ptr_nick->name) + 1 < sizeof (nicks))
data/weechat-3.0/src/plugins/irc/irc-command.c:191: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).
                if (strlen (nicks) + 1 + strlen (ptr_nick->name) + 1 < sizeof (nicks))
data/weechat-3.0/src/plugins/irc/irc-command.c:195:25:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                        strcat (nicks, " ");
data/weechat-3.0/src/plugins/irc/irc-command.c:309: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).
        mask_fits = (strlen (masks) + 1 +
data/weechat-3.0/src/plugins/irc/irc-command.c:310: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).
                     strlen ((mask) ? mask : argv[pos_masks]) + 1 <
data/weechat-3.0/src/plugins/irc/irc-command.c:337:17:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                strcat (masks, " ");
data/weechat-3.0/src/plugins/irc/irc-command.c:2289: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).
                length = 1 + strlen (ptr_regex) + 1 + 1;
data/weechat-3.0/src/plugins/irc/irc-command.c:2296:21:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                    strcat (regex2, "^");
data/weechat-3.0/src/plugins/irc/irc-command.c:2298:21:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                    strcat (regex2, "$");
data/weechat-3.0/src/plugins/irc/irc-command.c:2305: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).
            length = 1 + strlen (ptr_regex) + 1 + 1;
data/weechat-3.0/src/plugins/irc/irc-command.c:2580: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).
        length = strlen (arguments) + num_channels + 1;
data/weechat-3.0/src/plugins/irc/irc-command.c:2604:21:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                    strcat (new_args, ",");
data/weechat-3.0/src/plugins/irc/irc-command.c:2605: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).
                pos_channel = new_args + strlen (new_args);
data/weechat-3.0/src/plugins/irc/irc-command.c:2907: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).
        length = strlen (pos_nick) + 16 + 1;
data/weechat-3.0/src/plugins/irc/irc-command.c:5574: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).
        length = strlen (argv_eol[2]);
data/weechat-3.0/src/plugins/irc/irc-completion.c:400:34:  [1] (buffer) strlen:
  Does not handle 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 (ptr_nick->name) + 1 +
data/weechat-3.0/src/plugins/irc/irc-completion.c:401: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).
                            strlen (ptr_nick->host) + 1;
data/weechat-3.0/src/plugins/irc/irc-completion.c:534: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).
                                    strlen (ptr_channel->name)) == 0)
data/weechat-3.0/src/plugins/irc/irc-completion.c:543: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).
            length = strlen (ptr_channel->name) + strlen (ptr_channel->topic) + 16 + 1;
data/weechat-3.0/src/plugins/irc/irc-completion.c:543: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).
            length = strlen (ptr_channel->name) + strlen (ptr_channel->topic) + 16 + 1;
data/weechat-3.0/src/plugins/irc/irc-config.c:2576: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).
        length = (strlen (my_passwd->pw_name) + 4) * 5;
data/weechat-3.0/src/plugins/irc/irc-ctcp.c:540:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (filename);
data/weechat-3.0/src/plugins/irc/irc-message.c:181: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).
            ptr_message += strlen (ptr_message);
data/weechat-3.0/src/plugins/irc/irc-message.c:431: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).
    length = pos_start + strlen (text) + 1;
data/weechat-3.0/src/plugins/irc/irc-message.c:472:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy (host2, host, pos_space - host);
data/weechat-3.0/src/plugins/irc/irc-message.c:486:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy (nick, ptr_host, pos - ptr_host);
data/weechat-3.0/src/plugins/irc/irc-message.c:521:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy (host2, host, pos_space - host);
data/weechat-3.0/src/plugins/irc/irc-message.c:597: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).
        length = ((tags) ? strlen (tags) : 0) + strlen (message) + 1;
data/weechat-3.0/src/plugins/irc/irc-message.c:597:49:  [1] (buffer) strlen:
  Does not handle 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 = ((tags) ? strlen (tags) : 0) + strlen (message) + 1;
data/weechat-3.0/src/plugins/irc/irc-message.c:683: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).
        max_length -= (host) ? strlen (host) + 1 : 0;
data/weechat-3.0/src/plugins/irc/irc-message.c:684: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).
    max_length -= strlen (command) + 1;
data/weechat-3.0/src/plugins/irc/irc-message.c:686: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).
        max_length -= strlen (target);
data/weechat-3.0/src/plugins/irc/irc-message.c:688: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).
        max_length -= strlen (prefix);
data/weechat-3.0/src/plugins/irc/irc-message.c:690: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).
        max_length -= strlen (suffix);
data/weechat-3.0/src/plugins/irc/irc-message.c:785: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).
        length = strlen (ptr_args);
data/weechat-3.0/src/plugins/irc/irc-message.c:881:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (msg_to_send);
data/weechat-3.0/src/plugins/irc/irc-message.c:887: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).
        length_to_add = 1 + strlen (channels[index_channel]);
data/weechat-3.0/src/plugins/irc/irc-message.c:889:34:  [1] (buffer) strlen:
  Does not handle 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_to_add += 1 + strlen (keys[index_channel]);
data/weechat-3.0/src/plugins/irc/irc-message.c:900: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).
                if (strlen (keys_to_add) + 1 +
data/weechat-3.0/src/plugins/irc/irc-message.c:901: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).
                    strlen (keys[index_channel]) < (int)sizeof (keys_to_add))
data/weechat-3.0/src/plugins/irc/irc-message.c:921: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).
            length = strlen (msg_to_send);
data/weechat-3.0/src/plugins/irc/irc-message.c:981:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (arguments2);
data/weechat-3.0/src/plugins/irc/irc-message.c:1000:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy (prefix, ":");
data/weechat-3.0/src/plugins/irc/irc-message.c:1230: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 ((int)strlen (message) > split_msg_max_length - 2)
data/weechat-3.0/src/plugins/irc/irc-mode.c:195: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).
    new_modes = malloc (strlen (channel->modes) + 1 + 1);
data/weechat-3.0/src/plugins/irc/irc-mode.c:196: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).
    new_args = malloc (((pos_args) ? strlen (pos_args) : 0)
data/weechat-3.0/src/plugins/irc/irc-mode.c:197: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).
                       + ((argument) ? 1 + strlen (argument) : 0) + 1);
data/weechat-3.0/src/plugins/irc/irc-mode.c:244:37:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                                    strcat (new_args, " ");
data/weechat-3.0/src/plugins/irc/irc-mode.c:258:29:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                            strcat (new_args, " ");
data/weechat-3.0/src/plugins/irc/irc-mode.c:280:25:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                        strcat (new_args, " ");
data/weechat-3.0/src/plugins/irc/irc-mode.c:291: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).
                    memmove (pos + 1, pos, strlen (pos) + 1);
data/weechat-3.0/src/plugins/irc/irc-mode.c:298: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).
            length = strlen (new_modes) + 1 + strlen (new_args) + 1;
data/weechat-3.0/src/plugins/irc/irc-mode.c:298: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).
            length = strlen (new_modes) + 1 + strlen (new_args) + 1;
data/weechat-3.0/src/plugins/irc/irc-mode.c:597:36:  [1] (buffer) strlen:
  Does not handle 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 (server->nick_modes) + 1 + 1);
data/weechat-3.0/src/plugins/irc/irc-mode.c:637: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).
            new_size = strlen (server->nick_modes);
data/weechat-3.0/src/plugins/irc/irc-mode.c:638:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            memmove (pos, pos + 1, strlen (pos + 1) + 1);
data/weechat-3.0/src/plugins/irc/irc-nick.c:89: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).
        && (int)strlen (string) > server->nick_max_length)
data/weechat-3.0/src/plugins/irc/irc-nick.c:221:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    memset (nick->prefixes, ' ', strlen (nick->prefixes));
data/weechat-3.0/src/plugins/irc/irc-nick.c:570:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (irc_server_get_prefix_chars (server));
data/weechat-3.0/src/plugins/irc/irc-nick.c:1063:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (user, nick->host, pos_hostname - nick->host);
data/weechat-3.0/src/plugins/irc/irc-notify.c:138: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).
            length = strlen (ptr_notify->nick) + 32;
data/weechat-3.0/src/plugins/irc/irc-notify.c:161:21:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                    strcat (str, ",");
data/weechat-3.0/src/plugins/irc/irc-notify.c:284:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (irc_message) + 1;
data/weechat-3.0/src/plugins/irc/irc-notify.c:286: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).
    length_separator = strlen (separator);
data/weechat-3.0/src/plugins/irc/irc-notify.c:296: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).
        length = strlen (ptr_notify->nick);
data/weechat-3.0/src/plugins/irc/irc-notify.c:655:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (notify->server->name) + 1 + strlen (notify->nick) + 1
data/weechat-3.0/src/plugins/irc/irc-notify.c:655: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).
    length = strlen (notify->server->name) + 1 + strlen (notify->nick) + 1
data/weechat-3.0/src/plugins/irc/irc-notify.c:656: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).
        + ((away_message) ? strlen (away_message) : 0) + 1;
data/weechat-3.0/src/plugins/irc/irc-protocol.c:546: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).
              strlen (ptr_cap_option) : 0) + 16;
data/weechat-3.0/src/plugins/irc/irc-protocol.c:557:17:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                strcat (cap_option, ",");
data/weechat-3.0/src/plugins/irc/irc-protocol.c:582:25:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                        strcat (cap_req, " ");
data/weechat-3.0/src/plugins/irc/irc-protocol.c:1037:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (argv[2]) + 1 + strlen (pos_new_host) + 1;
data/weechat-3.0/src/plugins/irc/irc-protocol.c:1037: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).
    length = strlen (argv[2]) + 1 + strlen (pos_new_host) + 1;
data/weechat-3.0/src/plugins/irc/irc-protocol.c:2283: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).
                join_length = strlen (ptr_channel->name) + 1 +
data/weechat-3.0/src/plugins/irc/irc-protocol.c:2284: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).
                    strlen (ptr_channel->key) + 1;
data/weechat-3.0/src/plugins/irc/irc-protocol.c:3058: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).
                        length = 1 + strlen(command2) + 1;
data/weechat-3.0/src/plugins/irc/irc-protocol.c:3250: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).
    length = (pos) ? pos - argv_eol[3] : (int)strlen (argv_eol[3]);
data/weechat-3.0/src/plugins/irc/irc-protocol.c:3253: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).
        length_isupport = strlen (server->isupport);
data/weechat-3.0/src/plugins/irc/irc-protocol.c:4897: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).
        length = strlen (argv[4]) + 1 + strlen (argv[5]) + 1;
data/weechat-3.0/src/plugins/irc/irc-protocol.c:4897: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).
        length = strlen (argv[4]) + 1 + strlen (argv[5]) + 1;
data/weechat-3.0/src/plugins/irc/irc-protocol.c:5007: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).
        length = strlen (argv_eol[args]) + ((argc - args) * (16 + 16 + 16)) + 1;
data/weechat-3.0/src/plugins/irc/irc-protocol.c:5057:21:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                    strcat (str_nicks, " ");
data/weechat-3.0/src/plugins/irc/irc-protocol.c:5169: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).
        length = strlen (argv[4]) + 1 + strlen (argv[5]) + 1;
data/weechat-3.0/src/plugins/irc/irc-protocol.c:5169: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).
        length = strlen (argv[4]) + 1 + strlen (argv[5]) + 1;
data/weechat-3.0/src/plugins/irc/irc-protocol.c:5295: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).
                            ((ptr_option) ? strlen (weechat_color (weechat_config_string (ptr_option))) : 0) +
data/weechat-3.0/src/plugins/irc/irc-protocol.c:5296: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).
                            strlen (weechat_infolist_string (infolist, "prefix")) +
data/weechat-3.0/src/plugins/irc/irc-protocol.c:5298: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).
                            strlen (weechat_infolist_string (infolist, "name")) +
data/weechat-3.0/src/plugins/irc/irc-protocol.c:5318:37:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                                    strcat (string, " ");
data/weechat-3.0/src/plugins/irc/irc-protocol.c:5388: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).
                length = strlen (str_nicks_count);
data/weechat-3.0/src/plugins/irc/irc-protocol.c:5400: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).
                length = strlen (str_nicks_count);
data/weechat-3.0/src/plugins/irc/irc-protocol.c:5412: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).
                length = strlen (str_nicks_count);
data/weechat-3.0/src/plugins/irc/irc-protocol.c:5422: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).
            length = strlen (str_nicks_count);
data/weechat-3.0/src/plugins/irc/irc-raw.c:205: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).
            strlen (raw_message->message),
data/weechat-3.0/src/plugins/irc/irc-raw.c:214: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).
        buf2 = malloc ((strlen (buf) * 4) + 1);
data/weechat-3.0/src/plugins/irc/irc-redirect.c:705:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        redirect->output_size += strlen ("\n") + strlen (message);
data/weechat-3.0/src/plugins/irc/irc-redirect.c:705: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).
        redirect->output_size += strlen ("\n") + strlen (message);
data/weechat-3.0/src/plugins/irc/irc-redirect.c:715:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat (redirect->output, "\n");
data/weechat-3.0/src/plugins/irc/irc-redirect.c:719: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).
        redirect->output_size = strlen (message) + 1;
data/weechat-3.0/src/plugins/irc/irc-sasl.c:61: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).
    length_username = strlen (sasl_username);
data/weechat-3.0/src/plugins/irc/irc-sasl.c:62: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).
    length = ((length_username + 1) * 2) + strlen (sasl_password) + 1;
data/weechat-3.0/src/plugins/irc/irc-sasl.c:165: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).
        length_username = strlen (sasl_username);
data/weechat-3.0/src/plugins/irc/irc-sasl.c:179: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).
        data = malloc (strlen (data_base64) + 1);
data/weechat-3.0/src/plugins/irc/irc-sasl.c:196: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).
        filedatum.size = strlen (str_privkey);
data/weechat-3.0/src/plugins/irc/irc-sasl.c:364: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).
    data = malloc (strlen (data_base64) + 1);
data/weechat-3.0/src/plugins/irc/irc-sasl.c:479: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).
    length_password = strlen (sasl_password) +
data/weechat-3.0/src/plugins/irc/irc-sasl.c:480: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).
        ((8 - (strlen (sasl_password) % 8)) % 8);
data/weechat-3.0/src/plugins/irc/irc-sasl.c:483: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).
    memcpy (password_clear, sasl_password, strlen (sasl_password));
data/weechat-3.0/src/plugins/irc/irc-sasl.c:505: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).
    length_username = strlen (sasl_username) + 1;
data/weechat-3.0/src/plugins/irc/irc-sasl.c:601: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).
    length_username = strlen (sasl_username) + 1;
data/weechat-3.0/src/plugins/irc/irc-sasl.c:602: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).
    length_password = strlen (sasl_password) + 1;
data/weechat-3.0/src/plugins/irc/irc-server.c:461: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).
        length = strlen (fingerprints[i]);
data/weechat-3.0/src/plugins/irc/irc-server.c:922: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 (nick) < 9)
data/weechat-3.0/src/plugins/irc/irc-server.c:924:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat (nick, "_");
data/weechat-3.0/src/plugins/irc/irc-server.c:942: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).
    length_nick = strlen (nick);
data/weechat-3.0/src/plugins/irc/irc-server.c:943: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_number = strlen (str_number);
data/weechat-3.0/src/plugins/irc/irc-server.c:981: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).
            length = strlen (pos_equal) + 1;
data/weechat-3.0/src/plugins/irc/irc-server.c:990: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).
    feature2[strlen (feature2) - 1] = ' ';
data/weechat-3.0/src/plugins/irc/irc-server.c:1022: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 (server->prefix_chars) :
data/weechat-3.0/src/plugins/irc/irc-server.c:1023: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 (irc_server_prefix_chars_default);
data/weechat-3.0/src/plugins/irc/irc-server.c:1046: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).
            length_modes = strlen (server->prefix_modes);
data/weechat-3.0/src/plugins/irc/irc-server.c:1047: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).
            length_chars = strlen (pos);
data/weechat-3.0/src/plugins/irc/irc-server.c:1066: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 (server->prefix_chars) :
data/weechat-3.0/src/plugins/irc/irc-server.c:1067: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 (irc_server_prefix_chars_default);
data/weechat-3.0/src/plugins/irc/irc-server.c:1500: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).
        length = strlen (new_server->name) + 1 +
data/weechat-3.0/src/plugins/irc/irc-server.c:1501: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).
            strlen (irc_server_options[i][0]) +
data/weechat-3.0/src/plugins/irc/irc-server.c:1663: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).
            length = strlen (pos_address) + 1 +
data/weechat-3.0/src/plugins/irc/irc-server.c:1664: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).
                ((pos_port) ? strlen (pos_port) : 16) + 1;
data/weechat-3.0/src/plugins/irc/irc-server.c:1687: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).
            length = ((strlen (pos_nick) + 2) * 5) + 1;
data/weechat-3.0/src/plugins/irc/irc-server.c:1719:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                server_autojoin = malloc (strlen (pos_channel) + 2);
data/weechat-3.0/src/plugins/irc/irc-server.c:1722:21:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
                    strcpy (server_autojoin, "#");
data/weechat-3.0/src/plugins/irc/irc-server.c:2062: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).
    length = 32 + strlen (server->name) + 1;
data/weechat-3.0/src/plugins/irc/irc-server.c:2120: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).
    length = 32 + strlen (server->name) + 1;
data/weechat-3.0/src/plugins/irc/irc-server.c:2142:34:  [1] (buffer) strlen:
  Does not handle 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 (new_name) + 1 + strlen (pos_option) + 1;
data/weechat-3.0/src/plugins/irc/irc-server.c:2142:58:  [1] (buffer) strlen:
  Does not handle 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 (new_name) + 1 + strlen (pos_option) + 1;
data/weechat-3.0/src/plugins/irc/irc-server.c:2265:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (server->name) + 1 + strlen (signal) + 1 + strlen (command) + 1;
data/weechat-3.0/src/plugins/irc/irc-server.c:2265: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).
    length = strlen (server->name) + 1 + strlen (signal) + 1 + strlen (command) + 1;
data/weechat-3.0/src/plugins/irc/irc-server.c:2265:64:  [1] (buffer) strlen:
  Does not handle 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 (server->name) + 1 + strlen (signal) + 1 + strlen (command) + 1;
data/weechat-3.0/src/plugins/irc/irc-server.c:2273: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).
            length = strlen (tags) + 1 + strlen (full_message) + 1;
data/weechat-3.0/src/plugins/irc/irc-server.c:2273: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).
            length = strlen (tags) + 1 + strlen (full_message) + 1;
data/weechat-3.0/src/plugins/irc/irc-server.c:2390:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (tags) + 1 + strlen (irc_server_send_default_tags) + 1;
data/weechat-3.0/src/plugins/irc/irc-server.c:2390:34:  [1] (buffer) strlen:
  Does not handle 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 (tags) + 1 + strlen (irc_server_send_default_tags) + 1;
data/weechat-3.0/src/plugins/irc/irc-server.c:2472: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).
                    strlen (server->outqueue[priority]->message_after_mod));
data/weechat-3.0/src/plugins/irc/irc-server.c:2671:54:  [1] (buffer) strlen:
  Does not handle 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 (irc_server_send (server, buffer, strlen (buffer)) <= 0)
data/weechat-3.0/src/plugins/irc/irc-server.c:2874: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).
        message->data = malloc (strlen (server->unterminated_message) +
data/weechat-3.0/src/plugins/irc/irc-server.c:2875: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).
                                strlen (msg) + 1);
data/weechat-3.0/src/plugins/irc/irc-server.c:2924: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).
                     (strlen (server->unterminated_message) +
data/weechat-3.0/src/plugins/irc/irc-server.c:2925: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).
                      strlen (string) + 1));
data/weechat-3.0/src/plugins/irc/irc-server.c:4144: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).
                ((server->current_address) ? strlen (server->current_address) : 16) +
data/weechat-3.0/src/plugins/irc/irc-server.c:4145: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).
                16 + ((server->current_ip) ? strlen (server->current_ip) : 16) + 1;
data/weechat-3.0/src/plugins/irc/irc-server.c:4314: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 ((ssize_t)strlen (fingerprint) != fingerprint_size * 2)
data/weechat-3.0/src/plugins/irc/irc-server.c:4365: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_bits = strlen (fingerprints[i]) * 4;
data/weechat-3.0/src/plugins/irc/irc-server.c:4724: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).
                    filedatum.size = strlen (cert_str);
data/weechat-3.0/src/plugins/irc/irc-server.c:4920: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).
        length = 32 + strlen (proxy) + 1;
data/weechat-3.0/src/plugins/javascript/weechat-js-api.cpp:2176:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int fd, read, write, exception;
data/weechat-3.0/src/plugins/javascript/weechat-js-api.cpp:2193:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            read,
data/weechat-3.0/src/plugins/javascript/weechat-js.cpp:203: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).
        argc = strlen (format);
data/weechat-3.0/src/plugins/logger/logger-tail.c:101:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bytes_read = read (fd, buf, to_read);
data/weechat-3.0/src/plugins/logger/logger-tail.c:140: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).
                        new_line->data = malloc ((strlen (pos_eol) +
data/weechat-3.0/src/plugins/logger/logger-tail.c:141: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).
                                                  strlen (part_of_line) + 1));
data/weechat-3.0/src/plugins/logger/logger-tail.c:174:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    new_part_of_line = malloc (strlen (buf) + strlen (part_of_line) + 1);
data/weechat-3.0/src/plugins/logger/logger-tail.c:174:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    new_part_of_line = malloc (strlen (buf) + strlen (part_of_line) + 1);
data/weechat-3.0/src/plugins/logger/logger-tail.c:189: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).
                    part_of_line = malloc (strlen (buf) + 1);
data/weechat-3.0/src/plugins/logger/logger.c:87:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (path) + 256 + 1;
data/weechat-3.0/src/plugins/logger/logger.c:158:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (plugin_name) + 1 + strlen (name) + 1;
data/weechat-3.0/src/plugins/logger/logger.c:158: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).
    length = strlen (plugin_name) + 1 + strlen (name) + 1;
data/weechat-3.0/src/plugins/logger/logger.c:193: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).
        ptr_end = option_name + strlen (option_name);
data/weechat-3.0/src/plugins/logger/logger.c:246: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).
        ptr_end = option_name + strlen (option_name);
data/weechat-3.0/src/plugins/logger/logger.c:314:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (mask) + 256 + 1;
data/weechat-3.0/src/plugins/logger/logger.c:439:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (file_path) + strlen (dir_separator) +
data/weechat-3.0/src/plugins/logger/logger.c:439: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).
    length = strlen (file_path) + strlen (dir_separator) +
data/weechat-3.0/src/plugins/logger/logger.c:440: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 (mask_expanded) + 1;
data/weechat-3.0/src/plugins/logger/logger.c:446: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).
                  (file_path[strlen (file_path) - 1] == dir_separator[0]) ? "" : dir_separator,
data/weechat-3.0/src/plugins/lua/weechat-lua-api.c:2401:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int fd, read, write, exception;
data/weechat-3.0/src/plugins/lua/weechat-lua-api.c:2419:53:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                                                    read,
data/weechat-3.0/src/plugins/lua/weechat-lua.c:222: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).
                length = 1 + strlen (temp_buffer) + 1;
data/weechat-3.0/src/plugins/lua/weechat-lua.c:305: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).
        argc = strlen (format);
data/weechat-3.0/src/plugins/perl/weechat-perl.c:151: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).
    (void) hv_store (hash, key, strlen (key), newSVpv (value, 0), 0);
data/weechat-3.0/src/plugins/perl/weechat-perl.c:258: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).
                length = 1 + strlen (temp_buffer) + 1;
data/weechat-3.0/src/plugins/perl/weechat-perl.c:344:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen ((script->interpreter) ? script->interpreter : perl_main) +
data/weechat-3.0/src/plugins/perl/weechat-perl.c:345: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 (function) + 3;
data/weechat-3.0/src/plugins/perl/weechat-perl.c:361: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).
        argc = strlen (format);
data/weechat-3.0/src/plugins/perl/weechat-perl.c:567:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (perl_weechat_code) + strlen (str_warning) +
data/weechat-3.0/src/plugins/perl/weechat-perl.c:567:43:  [1] (buffer) strlen:
  Does not handle 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 (perl_weechat_code) + strlen (str_warning) +
data/weechat-3.0/src/plugins/perl/weechat-perl.c:568: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 (str_error) - 2 + 4 + strlen ((code) ? code : filename) + 4 + 1;
data/weechat-3.0/src/plugins/perl/weechat-perl.c:568: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).
        strlen (str_error) - 2 + 4 + strlen ((code) ? code : filename) + 4 + 1;
data/weechat-3.0/src/plugins/perl/weechat-perl.c:581:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (perl_weechat_code) + strlen (str_warning) +
data/weechat-3.0/src/plugins/perl/weechat-perl.c:581:43:  [1] (buffer) strlen:
  Does not handle 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 (perl_weechat_code) + strlen (str_warning) +
data/weechat-3.0/src/plugins/perl/weechat-perl.c:582: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 (str_error) - 4 + strlen (pkgname) + 4 +
data/weechat-3.0/src/plugins/perl/weechat-perl.c:582:34:  [1] (buffer) strlen:
  Does not handle 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 (str_error) - 4 + strlen (pkgname) + 4 +
data/weechat-3.0/src/plugins/perl/weechat-perl.c:583: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 ((code) ? code : filename) + 4 + 1;
data/weechat-3.0/src/plugins/php/weechat-php.c:558: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).
        argc = strlen (format);
data/weechat-3.0/src/plugins/php/weechat-php.c:1244: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).
        php_weechat_ub_write (vbuffer, strlen (vbuffer));
data/weechat-3.0/src/plugins/php/weechat-php.c:1257:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    php_weechat_ub_write (message, strlen (message));
data/weechat-3.0/src/plugins/php/weechat-php.c:1264:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    php_weechat_ub_write (message, strlen (message));
data/weechat-3.0/src/plugins/plugin-config.c:60:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (plugin_name) + 1 + strlen (option_name) + 1;
data/weechat-3.0/src/plugins/plugin-config.c:60: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).
    length = strlen (plugin_name) + 1 + strlen (option_name) + 1;
data/weechat-3.0/src/plugins/plugin-config.c:118:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (plugin_name) + 1 + strlen (option_name) + 1;
data/weechat-3.0/src/plugins/plugin-config.c:118: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).
    length = strlen (plugin_name) + 1 + strlen (option_name) + 1;
data/weechat-3.0/src/plugins/plugin-config.c:204:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (plugin_name) + 1 + strlen (option_name) + 1;
data/weechat-3.0/src/plugins/plugin-config.c:204: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).
    length = strlen (plugin_name) + 1 + strlen (option_name) + 1;
data/weechat-3.0/src/plugins/plugin-script-api.c:1340: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).
    option_fullname = malloc ((strlen (script->name) +
data/weechat-3.0/src/plugins/plugin-script-api.c:1341: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).
                               strlen (option) + 2));
data/weechat-3.0/src/plugins/plugin-script-api.c:1346:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat (option_fullname, ".");
data/weechat-3.0/src/plugins/plugin-script-api.c:1375: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).
    option_fullname = malloc ((strlen (script->name) +
data/weechat-3.0/src/plugins/plugin-script-api.c:1376: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).
                               strlen (option) + 2));
data/weechat-3.0/src/plugins/plugin-script-api.c:1381:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat (option_fullname, ".");
data/weechat-3.0/src/plugins/plugin-script-api.c:1406: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).
    option_fullname = malloc ((strlen (script->name) +
data/weechat-3.0/src/plugins/plugin-script-api.c:1407: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).
                               strlen (option) + 2));
data/weechat-3.0/src/plugins/plugin-script-api.c:1412:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat (option_fullname, ".");
data/weechat-3.0/src/plugins/plugin-script-api.c:1436: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).
    option_fullname = malloc ((strlen (script->name) +
data/weechat-3.0/src/plugins/plugin-script-api.c:1437: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).
                               strlen (option) + 2));
data/weechat-3.0/src/plugins/plugin-script-api.c:1442:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat (option_fullname, ".");
data/weechat-3.0/src/plugins/plugin-script-api.c:1465: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).
    option_fullname = malloc ((strlen (script->name) +
data/weechat-3.0/src/plugins/plugin-script-api.c:1466: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).
                               strlen (option) + 2));
data/weechat-3.0/src/plugins/plugin-script-api.c:1471:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat (option_fullname, ".");
data/weechat-3.0/src/plugins/plugin-script.c:149:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (weechat_plugin->name) + strlen ("/autoload") + 1;
data/weechat-3.0/src/plugins/plugin-script.c:149: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).
    length = strlen (weechat_plugin->name) + strlen ("/autoload") + 1;
data/weechat-3.0/src/plugins/plugin-script.c:408:36:  [1] (buffer) strlen:
  Does not handle 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_function = (function) ? strlen (function) : 0;
data/weechat-3.0/src/plugins/plugin-script.c:409: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).
    length_data = (data) ? strlen (data) : 0;
data/weechat-3.0/src/plugins/plugin-script.c:445: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).
        ptr_data = string + strlen (string) + 1;
data/weechat-3.0/src/plugins/plugin-script.c:471: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).
    dir_length = strlen (dir_home) + strlen (weechat_plugin->name) + 16;
data/weechat-3.0/src/plugins/plugin-script.c:471: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).
    dir_length = strlen (dir_home) + strlen (weechat_plugin->name) + 16;
data/weechat-3.0/src/plugins/plugin-script.c:556: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).
        length = strlen (dir_home) + strlen (weechat_plugin->name) + 8 +
data/weechat-3.0/src/plugins/plugin-script.c:556: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).
        length = strlen (dir_home) + strlen (weechat_plugin->name) + 8 +
data/weechat-3.0/src/plugins/plugin-script.c:557: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).
            strlen (filename) + 16;
data/weechat-3.0/src/plugins/plugin-script.c:573: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).
        length = strlen (dir_home) + strlen (weechat_plugin->name) +
data/weechat-3.0/src/plugins/plugin-script.c:573: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).
        length = strlen (dir_home) + strlen (weechat_plugin->name) +
data/weechat-3.0/src/plugins/plugin-script.c:574: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).
            strlen (filename) + 16;
data/weechat-3.0/src/plugins/plugin-script.c:589: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).
        length = strlen (dir_home) + strlen (filename) + 16;
data/weechat-3.0/src/plugins/plugin-script.c:589: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).
        length = strlen (dir_home) + strlen (filename) + 16;
data/weechat-3.0/src/plugins/plugin-script.c:609: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).
        length = strlen (dir_system) + strlen (weechat_plugin->name) +
data/weechat-3.0/src/plugins/plugin-script.c:609: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).
        length = strlen (dir_system) + strlen (weechat_plugin->name) +
data/weechat-3.0/src/plugins/plugin-script.c:610: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).
            strlen (filename) + 16;
data/weechat-3.0/src/plugins/plugin-script.c:1105:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (name);
data/weechat-3.0/src/plugins/plugin-script.c:1116: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).
                                strlen (*action_list) + 1 + length + 1);
data/weechat-3.0/src/plugins/plugin-script.c:1124:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat (*action_list, ",");
data/weechat-3.0/src/plugins/plugin-script.c:1287: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).
                    length = strlen (dir_home) + strlen (weechat_plugin->name) +
data/weechat-3.0/src/plugins/plugin-script.c:1287: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).
                    length = strlen (dir_home) + strlen (weechat_plugin->name) +
data/weechat-3.0/src/plugins/plugin-script.c:1288: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).
                        strlen (base_name) + 16;
data/weechat-3.0/src/plugins/plugin-script.c:1299: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).
                                length = strlen (dir_home) +
data/weechat-3.0/src/plugins/plugin-script.c:1300: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).
                                    strlen (weechat_plugin->name) + 8 +
data/weechat-3.0/src/plugins/plugin-script.c:1301: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).
                                    strlen (base_name) + 16;
data/weechat-3.0/src/plugins/plugin-script.c:1310: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).
                                    length = 2 + strlen (dir_separator) +
data/weechat-3.0/src/plugins/plugin-script.c:1311: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).
                                        strlen (base_name) + 1;
data/weechat-3.0/src/plugins/plugin-script.c:1494: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).
                    length = strlen (dir_home) +
data/weechat-3.0/src/plugins/plugin-script.c:1495: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).
                        strlen (weechat_plugin->name) + 8 +
data/weechat-3.0/src/plugins/plugin-script.c:1496: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).
                        strlen (base_name) + 16;
data/weechat-3.0/src/plugins/plugin-script.c:1507: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).
                            length = 2 + strlen (dir_separator) +
data/weechat-3.0/src/plugins/plugin-script.c:1508: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).
                                strlen (base_name) + 1;
data/weechat-3.0/src/plugins/plugin-script.c:1608: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).
        length = strlen (scripts_loaded) + strlen (weechat_plugin->name) + 1;
data/weechat-3.0/src/plugins/plugin-script.c:1608: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).
        length = strlen (scripts_loaded) + strlen (weechat_plugin->name) + 1;
data/weechat-3.0/src/plugins/plugin-script.c:1613: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).
            length += strlen (ptr_script->name) + 2;
data/weechat-3.0/src/plugins/plugin-script.c:1621:13:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
            strcat (buf, " ");
data/weechat-3.0/src/plugins/plugin.c:168:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (filename);
data/weechat-3.0/src/plugins/plugin.c:171: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).
        length_ext = strlen (config_plugin_extensions[i]);
data/weechat-3.0/src/plugins/plugin.c:231: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).
        length = strlen (base_name);
data/weechat-3.0/src/plugins/plugin.c:234: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).
            length_ext = strlen (config_plugin_extensions[i]);
data/weechat-3.0/src/plugins/plugin.c:286: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).
    length_plugin_name = strlen (plugin->name);
data/weechat-3.0/src/plugins/plugin.c:1072: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).
            length = strlen (extra_libdir) + 16 + 1;
data/weechat-3.0/src/plugins/plugin.c:1084: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).
        length = strlen (WEECHAT_LIBDIR) + 16 + 1;
data/weechat-3.0/src/plugins/plugin.c:1341: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).
            length = strlen (plugins_loaded) + 1;
data/weechat-3.0/src/plugins/plugin.c:1346: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).
                length += strlen (ptr_plugin->name) + 2;
data/weechat-3.0/src/plugins/plugin.c:1355:17:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                strcat (buf, " ");
data/weechat-3.0/src/plugins/python/weechat-python-api.c:2309:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int fd, read, write, exception;
data/weechat-3.0/src/plugins/python/weechat-python-api.c:2320:50:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!PyArg_ParseTuple (args, "iiiiss", &fd, &read, &write, &exception,
data/weechat-3.0/src/plugins/python/weechat-python-api.c:2327:53:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                                                    read,
data/weechat-3.0/src/plugins/python/weechat-python.c:393: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).
                length = 1 + strlen (temp_buffer) + 1;
data/weechat-3.0/src/plugins/python/weechat-python.c:504: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).
        argc = strlen (format);
data/weechat-3.0/src/plugins/python/weechat-python.c:870: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).
        len = strlen (weechat_sharedir) + 1 + strlen (PYTHON_PLUGIN_NAME) + 1;
data/weechat-3.0/src/plugins/python/weechat-python.c:870: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).
        len = strlen (weechat_sharedir) + 1 + strlen (PYTHON_PLUGIN_NAME) + 1;
data/weechat-3.0/src/plugins/python/weechat-python.c:896: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).
        len = strlen (weechat_home) + 1 + strlen (PYTHON_PLUGIN_NAME) + 1;
data/weechat-3.0/src/plugins/python/weechat-python.c:896:43:  [1] (buffer) strlen:
  Does not handle 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 (weechat_home) + 1 + strlen (PYTHON_PLUGIN_NAME) + 1;
data/weechat-3.0/src/plugins/relay/irc/relay-irc.c:232: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).
                length = strlen (str_message) + 16 + 1;
data/weechat-3.0/src/plugins/relay/irc/relay-irc.c:238:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                       message, strlen (message), NULL);
data/weechat-3.0/src/plugins/relay/irc/relay-irc.c:739: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).
            length = strlen (str_time) + strlen (pos) + 1;
data/weechat-3.0/src/plugins/relay/irc/relay-irc.c:739: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).
            length = strlen (str_time) + strlen (pos) + 1;
data/weechat-3.0/src/plugins/relay/irc/relay-irc.c:984:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (client->protocol_args) + 1 + strlen (channel) + 1
data/weechat-3.0/src/plugins/relay/irc/relay-irc.c:984: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).
    length = strlen (client->protocol_args) + 1 + strlen (channel) + 1
data/weechat-3.0/src/plugins/relay/irc/relay-irc.c:985: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).
        + strlen (RELAY_IRC_DATA(client, nick)) + 1;
data/weechat-3.0/src/plugins/relay/irc/relay-irc.c:1050: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).
                    length_nicks += strlen (nick) + 1 + 1;
data/weechat-3.0/src/plugins/relay/irc/relay-irc.c:1061:25:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                        strcat (nicks, " ");
data/weechat-3.0/src/plugins/relay/irc/relay-irc.c:1159: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).
    length_beginning = strlen (buf_beginning);
data/weechat-3.0/src/plugins/relay/irc/relay-irc.c:1160: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).
    length_vbuffer = strlen (vbuffer);
data/weechat-3.0/src/plugins/relay/irc/relay-irc.c:1254:17:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                strcat (str_capab, " ");
data/weechat-3.0/src/plugins/relay/irc/relay-irc.c:1539: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).
                str_time[strlen (str_time) - 1] = '\0';
data/weechat-3.0/src/plugins/relay/relay-auth.c:177: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).
    *salt = malloc (strlen (argv[0]) + 1);
data/weechat-3.0/src/plugins/relay/relay-auth.c:236: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).
    *salt = malloc (strlen (argv[0]) + 1);
data/weechat-3.0/src/plugins/relay/relay-auth.c:278: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).
            && (strlen (salt_hexa) > strlen (client->nonce))
data/weechat-3.0/src/plugins/relay/relay-auth.c:278: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).
            && (strlen (salt_hexa) > strlen (client->nonce))
data/weechat-3.0/src/plugins/relay/relay-auth.c:280: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).
                                     strlen (client->nonce)) == 0)) ? 1 : 0;
data/weechat-3.0/src/plugins/relay/relay-auth.c:305: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).
        length = salt_size + strlen (relay_password);
data/weechat-3.0/src/plugins/relay/relay-auth.c:311: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).
                    strlen (relay_password));
data/weechat-3.0/src/plugins/relay/relay-auth.c:352: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).
                                        strlen (relay_password),
data/weechat-3.0/src/plugins/relay/relay-buffer.c:91:21:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                    strcat (str_status, " ");
data/weechat-3.0/src/plugins/relay/relay-client.c:327: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).
                               strlen (client->partial_message) +
data/weechat-3.0/src/plugins/relay/relay-client.c:328: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).
                               strlen (data) + 1);
data/weechat-3.0/src/plugins/relay/relay-client.c:347: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).
                             raw_msg, strlen (raw_msg) + 1);
data/weechat-3.0/src/plugins/relay/relay-client.c:363: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).
                length = strlen (lines[i]);
data/weechat-3.0/src/plugins/relay/relay-client.c:393:52:  [1] (buffer) strlen:
  Does not handle 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 (handshake), NULL);
data/weechat-3.0/src/plugins/relay/relay-client.c:536:34:  [1] (buffer) strlen:
  Does not handle 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 (buffer + index + 1));
data/weechat-3.0/src/plugins/relay/relay-client.c:541:36:  [1] (buffer) strlen:
  Does not handle 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 (buffer + index + 1),
data/weechat-3.0/src/plugins/relay/relay-client.c:550:34:  [1] (buffer) strlen:
  Does not handle 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 (buffer + index + 1));
data/weechat-3.0/src/plugins/relay/relay-client.c:555:36:  [1] (buffer) strlen:
  Does not handle 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 (buffer + index + 1),
data/weechat-3.0/src/plugins/relay/relay-client.c:568: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).
        index += strlen (buffer + index) + 1;
data/weechat-3.0/src/plugins/relay/relay-client.c:1055: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).
            raw_size[0] = strlen (message_raw_buffer) + 1;
data/weechat-3.0/src/plugins/relay/relay-client.c:1068: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).
            raw_size[0] = strlen (message_raw_buffer) + 1;
data/weechat-3.0/src/plugins/relay/relay-config.c:280: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).
        secret = malloc (strlen (totp_secret) + 1);
data/weechat-3.0/src/plugins/relay/relay-config.c:557:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (path);
data/weechat-3.0/src/plugins/relay/relay-raw.c:257: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).
        buf2 = malloc ((strlen (buf) * 4) + 1);
data/weechat-3.0/src/plugins/relay/relay-raw.c:335:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (relay_client_msg_type_string[msg_type]) +
data/weechat-3.0/src/plugins/relay/relay-raw.c:336: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 ((buf2) ? buf2 : ((buf) ? buf : data)) + 1;
data/weechat-3.0/src/plugins/relay/relay-websocket.c:198:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (sec_websocket_key) + strlen (WEBSOCKET_GUID) + 1;
data/weechat-3.0/src/plugins/relay/relay-websocket.c:198:43:  [1] (buffer) strlen:
  Does not handle 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 (sec_websocket_key) + strlen (WEBSOCKET_GUID) + 1;
data/weechat-3.0/src/plugins/relay/relay-websocket.c:210:36:  [1] (buffer) strlen:
  Does not handle 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 (!weechat_crypto_hash (key, strlen (key), "sha1", hash, &hash_size))
data/weechat-3.0/src/plugins/relay/relay-websocket.c:249: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).
    length = 32 + strlen (http) + 1;
data/weechat-3.0/src/plugins/relay/relay-websocket.c:255: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).
                           message, strlen (message), NULL);
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-msg.c:133: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).
        relay_weechat_msg_add_bytes (msg, string, strlen (string));
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-msg.c:170:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (str_long);
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-msg.c:187: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).
        length = strlen (string);
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-msg.c:230:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (str_pointer);
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-msg.c:246:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (str_time);
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-msg.c:453: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).
                    length = 16 + strlen (list_keys[i]) + 1;
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-msg.c:631: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).
    path_returned = malloc (strlen (path) * 2);
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-msg.c:647:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat (path_returned, "/");
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-msg.c:665: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).
    keys_types = malloc (strlen (keys) + (num_keys * 8) + 1);
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-msg.c:675:17:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                strcat (keys_types, ",");
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-msg.c:677:13:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
            strcat (keys_types, ":");
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-msg.c:810: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).
                    if (strlen (list_fields[i]) > 2)
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-protocol.c:395:34:  [1] (buffer) strlen:
  Does not handle 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 (totp_secret) + strlen (pos) + 16 + 1;
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-protocol.c:395: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).
                        length = strlen (totp_secret) + strlen (pos) + 16 + 1;
data/weechat-3.0/src/plugins/relay/weechat/relay-weechat-protocol.c:722: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).
    length_data = strlen ((pos_data) ? pos_data : "");
data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.c:2818:56:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
weechat_ruby_api_hook_fd (VALUE class, VALUE fd, VALUE read, VALUE write,
data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.c:2826:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (NIL_P (fd) || NIL_P (read) || NIL_P (write) || NIL_P (exception)
data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.c:2831:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    CHECK_INTEGER(read);
data/weechat-3.0/src/plugins/ruby/weechat-ruby-api.c:2838:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    c_read = NUM2INT (read);
data/weechat-3.0/src/plugins/ruby/weechat-ruby.c:303: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).
                cline = (char *)calloc (strlen (line) + 2 + strlen (err_msg) +
data/weechat-3.0/src/plugins/ruby/weechat-ruby.c:303:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                cline = (char *)calloc (strlen (line) + 2 + strlen (err_msg) +
data/weechat-3.0/src/plugins/ruby/weechat-ruby.c:304: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).
                                        3 + strlen (err_class) + 1,
data/weechat-3.0/src/plugins/ruby/weechat-ruby.c:313:21:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                    strcat (cline, ")");
data/weechat-3.0/src/plugins/ruby/weechat-ruby.c:318: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).
                cline = (char *)calloc (strlen (line) + strlen ("     from ") + 1,
data/weechat-3.0/src/plugins/ruby/weechat-ruby.c:318: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).
                cline = (char *)calloc (strlen (line) + strlen ("     from ") + 1,
data/weechat-3.0/src/plugins/ruby/weechat-ruby.c:393: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).
                length = 1 + strlen (temp_buffer) + 1;
data/weechat-3.0/src/plugins/ruby/weechat-ruby.c:478: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).
        argc = strlen (format);
data/weechat-3.0/src/plugins/script/script-action.c:166: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).
        length = strlen (*buf);
data/weechat-3.0/src/plugins/script/script-action.c:472: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).
    length = 16 + strlen (ptr_script->name_with_extension) + 1;
data/weechat-3.0/src/plugins/script/script-action.c:561: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).
                    length = 16 + strlen (filename) + 1;
data/weechat-3.0/src/plugins/script/script-action.c:762: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).
    length = 3 + strlen (ptr_script->name_with_extension) + 1;
data/weechat-3.0/src/plugins/script/script-action.c:1028: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).
                            length = strlen (ptr_diff_command) + 1
data/weechat-3.0/src/plugins/script/script-action.c:1029: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).
                                + strlen (filename_loaded) + 1
data/weechat-3.0/src/plugins/script/script-action.c:1030: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).
                                + strlen (filename) + 1;
data/weechat-3.0/src/plugins/script/script-completion.c:204:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (weechat_home) + 128 + 1;
data/weechat-3.0/src/plugins/script/script-config.c:165:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (path) + 64;
data/weechat-3.0/src/plugins/script/script-config.c:192:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (path) + 1 + strlen (script->name_with_extension)
data/weechat-3.0/src/plugins/script/script-config.c:192:34:  [1] (buffer) strlen:
  Does not handle 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 (path) + 1 + strlen (script->name_with_extension)
data/weechat-3.0/src/plugins/script/script-config.c:193: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).
        + ((suffix) ? strlen (suffix) : 0) + 1;
data/weechat-3.0/src/plugins/script/script-config.c:294:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (weechat_config_string (script_config_scripts_hold)) +
data/weechat-3.0/src/plugins/script/script-config.c:295: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).
        1 + strlen (name_with_extension) + 1;
data/weechat-3.0/src/plugins/script/script-config.c:316:25:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                        strcat (hold, ",");
data/weechat-3.0/src/plugins/script/script-config.c:323:13:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
            strcat (hold, ",");
data/weechat-3.0/src/plugins/script/script-config.c:345:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (weechat_config_string (script_config_scripts_hold)) + 1;
data/weechat-3.0/src/plugins/script/script-config.c:366:25:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                        strcat (hold, ",");
data/weechat-3.0/src/plugins/script/script-repo.c:173:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (weechat_home) + strlen (script->name_with_extension) + 64;
data/weechat-3.0/src/plugins/script/script-repo.c:173: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).
    length = strlen (weechat_home) + strlen (script->name_with_extension) + 64;
data/weechat-3.0/src/plugins/script/script-repo.c:311:25:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                        strcat (str_status, " ");
data/weechat-3.0/src/plugins/script/script-repo.c:320:25:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                        strcat (str_status, " ");
data/weechat-3.0/src/plugins/script/script-repo.c:329:25:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                        strcat (str_status, " ");
data/weechat-3.0/src/plugins/script/script-repo.c:338:25:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                        strcat (str_status, " ");
data/weechat-3.0/src/plugins/script/script-repo.c:347:25:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                        strcat (str_status, " ");
data/weechat-3.0/src/plugins/script/script-repo.c:356:25:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                        strcat (str_status, " ");
data/weechat-3.0/src/plugins/script/script-repo.c:730:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (script->name_with_extension);
data/weechat-3.0/src/plugins/script/script-repo.c:811:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (weechat_home) + strlen (script->name_with_extension) + 64;
data/weechat-3.0/src/plugins/script/script-repo.c:811: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).
    length = strlen (weechat_home) + strlen (script->name_with_extension) + 64;
data/weechat-3.0/src/plugins/script/script-repo.c:1281: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).
                                length = strlen (script->name) + 1 +
data/weechat-3.0/src/plugins/script/script-repo.c:1282: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).
                                    strlen (script_extension[script->language]) + 1;
data/weechat-3.0/src/plugins/script/script.c:143: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).
    length = 4 + strlen (url) + 1;
data/weechat-3.0/src/plugins/spell/spell-command.c:303: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).
    enchant_dict_add (ptr_speller, word, strlen (word));
data/weechat-3.0/src/plugins/spell/spell-command.c:307: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).
                                        strlen (word)) == 1)
data/weechat-3.0/src/plugins/spell/spell-config.c:112: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).
                spell_length_commands_to_check[i] = strlen (spell_commands_to_check[i]);
data/weechat-3.0/src/plugins/spell/spell.c:244:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (plugin_name) + 1 + strlen (name) + 1;
data/weechat-3.0/src/plugins/spell/spell.c:244: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).
    length = strlen (plugin_name) + 1 + strlen (name) + 1;
data/weechat-3.0/src/plugins/spell/spell.c:273: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).
        ptr_end = option_name + strlen (option_name);
data/weechat-3.0/src/plugins/spell/spell.c:349: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).
    length_command = strlen (command);
data/weechat-3.0/src/plugins/spell/spell.c:382:34:  [1] (buffer) strlen:
  Does not handle 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 (spell_url_prefix[i])) == 0)
data/weechat-3.0/src/plugins/spell/spell.c:511: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).
        && ((int)strlen (word) < weechat_config_integer (spell_config_check_word_min_length)))
data/weechat-3.0/src/plugins/spell/spell.c:524:72:  [1] (buffer) strlen:
  Does not handle 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 (enchant_dict_check (speller_buffer->spellers[i], word, strlen (word)) == 0)
data/weechat-3.0/src/plugins/spell/spell.c:583: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).
                        size += strlen (ptr_word) + ((suggestions[0]) ? 1 : 0);
data/weechat-3.0/src/plugins/spell/spell.c:611: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).
                    size += strlen (ptr_word) + ((suggestions[0]) ? 1 : 0);
data/weechat-3.0/src/plugins/spell/spell.c:803:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (string);
data/weechat-3.0/src/plugins/spell/spell.c:996: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).
                length = strlen (misspelled_word) + 1 /* ":" */
data/weechat-3.0/src/plugins/spell/spell.c:997: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).
                    + strlen (suggestions) + 1;
data/weechat-3.0/src/plugins/spell/spell.c:1174:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        (spell_nick_completer) ? strlen (spell_nick_completer) : 0;
data/weechat-3.0/src/plugins/tcl/weechat-tcl-api.c:2576:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int i, fd, read, write, exception;
data/weechat-3.0/src/plugins/tcl/weechat-tcl-api.c:2583:50:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        || (Tcl_GetIntFromObj (interp, objv[2], &read) != TCL_OK)
data/weechat-3.0/src/plugins/tcl/weechat-tcl-api.c:2591:53:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                                                    read, /* read */
data/weechat-3.0/src/plugins/tcl/weechat-tcl.c:227: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).
        argc = strlen (format);
data/weechat-3.0/src/plugins/trigger/trigger-callback.c:771: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).
                        length = 1 + strlen (pos) + 1 + 1;
data/weechat-3.0/src/plugins/trigger/trigger-callback.c:866: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).
    length = 1 + strlen ((ptr_value) ? ptr_value : "") + 1 + 1;
data/weechat-3.0/src/plugins/trigger/trigger-callback.c:924: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).
                                && (str_tags[strlen (str_tags) - 1] == ','))
data/weechat-3.0/src/plugins/trigger/trigger-callback.c:926: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).
                                str_tags[strlen (str_tags) - 1] = '\0';
data/weechat-3.0/src/plugins/trigger/trigger-callback.c:1015: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).
        length = 1 + strlen (str_tags) + 1 + 1;
data/weechat-3.0/src/plugins/trigger/trigger-completion.c:250: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).
    length = 1 + strlen (word) + 1 + 1;
data/weechat-3.0/src/plugins/trigger/trigger-config.c:308:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (trigger_name) + 1 +
data/weechat-3.0/src/plugins/trigger/trigger-config.c:309: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 (trigger_option_string[index_option]) + 1;
data/weechat-3.0/src/plugins/trigger/trigger.c:638: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 (str_regex) < 3)
data/weechat-3.0/src/plugins/trigger/trigger.c:663: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).
        length_delimiter = strlen (delimiter);
data/weechat-3.0/src/plugins/trigger/trigger.c:1089:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (name) + 64;
data/weechat-3.0/src/plugins/xfer/xfer-buffer.c:140:21:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                    strcat (status, " ");
data/weechat-3.0/src/plugins/xfer/xfer-buffer.c:177:21:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
                    strcpy (progress_bar, "[");
data/weechat-3.0/src/plugins/xfer/xfer-buffer.c:189:25:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                        strcat (progress_bar, "=");
data/weechat-3.0/src/plugins/xfer/xfer-buffer.c:192:25:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                        strcat (progress_bar, ">");
data/weechat-3.0/src/plugins/xfer/xfer-buffer.c:195:25:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                        strcat (progress_bar, " ");
data/weechat-3.0/src/plugins/xfer/xfer-chat.c:87: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).
    if (xfer_chat_send (xfer, ptr_msg, strlen (ptr_msg)) <= 0)
data/weechat-3.0/src/plugins/xfer/xfer-chat.c:132: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).
            buf2 = malloc (strlen (xfer->unterminated_message) +
data/weechat-3.0/src/plugins/xfer/xfer-chat.c:133:36:  [1] (buffer) strlen:
  Does not handle 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 (buffer) + 1);
data/weechat-3.0/src/plugins/xfer/xfer-chat.c:163: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).
                length = strlen (ptr_buf);
data/weechat-3.0/src/plugins/xfer/xfer-chat.c:358:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (xfer->plugin_name) + 8 + strlen (xfer->plugin_id) + 1
data/weechat-3.0/src/plugins/xfer/xfer-chat.c:358: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).
    length = strlen (xfer->plugin_name) + 8 + strlen (xfer->plugin_id) + 1
data/weechat-3.0/src/plugins/xfer/xfer-chat.c:359: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).
        + strlen (xfer->remote_nick) + 1;
data/weechat-3.0/src/plugins/xfer/xfer-dcc.c:119:17:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                usleep (100);
data/weechat-3.0/src/plugins/xfer/xfer-dcc.c:124:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                num_read = read (xfer->file, buffer, blocksize);
data/weechat-3.0/src/plugins/xfer/xfer-dcc.c:139:25:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                        usleep (1000);
data/weechat-3.0/src/plugins/xfer/xfer-dcc.c:165:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep (1000);
data/weechat-3.0/src/plugins/xfer/xfer-dcc.c:220:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep (1000);
data/weechat-3.0/src/plugins/xfer/xfer-dcc.c:275:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                num_read = read (fd, buf, length_buf);
data/weechat-3.0/src/plugins/xfer/xfer-dcc.c:277:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                num_read = read (fd, buf, to_read);
data/weechat-3.0/src/plugins/xfer/xfer-dcc.c:402:17:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                usleep (100);
data/weechat-3.0/src/plugins/xfer/xfer-dcc.c:495:25:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                        usleep (100000);
data/weechat-3.0/src/plugins/xfer/xfer-file.c:94:36:  [1] (buffer) strlen:
  Does not handle 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_suffix = (ptr_suffix) ? strlen (ptr_suffix) : 0;
data/weechat-3.0/src/plugins/xfer/xfer-file.c:103: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).
        length = strlen (xfer->local_filename) + 16 + 1;
data/weechat-3.0/src/plugins/xfer/xfer-file.c:116:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (new_filename) + length_suffix + 1;
data/weechat-3.0/src/plugins/xfer/xfer-file.c:223:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    xfer->local_filename = malloc (strlen (path) +
data/weechat-3.0/src/plugins/xfer/xfer-file.c:224:36:  [1] (buffer) strlen:
  Does not handle 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 (xfer->remote_nick) +
data/weechat-3.0/src/plugins/xfer/xfer-file.c:225:36:  [1] (buffer) strlen:
  Does not handle 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 (xfer->filename) + 4);
data/weechat-3.0/src/plugins/xfer/xfer-file.c:235:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        && (xfer->local_filename[strlen (xfer->local_filename) - 1] != dir_separator[0]))
data/weechat-3.0/src/plugins/xfer/xfer-file.c:244:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat (xfer->local_filename, ".");
data/weechat-3.0/src/plugins/xfer/xfer-network.c:108:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    num_read = read (xfer->child_read, bufpipe, sizeof (bufpipe));
data/weechat-3.0/src/plugins/xfer/xfer.c:1184: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).
            filename2 = malloc (strlen (path) + strlen (filename) + 4);
data/weechat-3.0/src/plugins/xfer/xfer.c:1184:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            filename2 = malloc (strlen (path) + strlen (filename) + 4);
data/weechat-3.0/src/plugins/xfer/xfer.c:1195: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 (filename2[strlen (filename2) - 1] != DIR_SEPARATOR_CHAR)
data/weechat-3.0/tests/tests.cpp:203:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (argv[0]) +
data/weechat-3.0/tests/tests.cpp:205: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).
        ((weechat_tests_args) ? 1 + strlen (weechat_tests_args) : 0) +
data/weechat-3.0/tests/unit/core/test-core-crypto.cpp:172: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).
    data_size = strlen (data);
data/weechat-3.0/tests/unit/core/test-core-crypto.cpp:206: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).
    data_size = strlen (data);
data/weechat-3.0/tests/unit/core/test-core-crypto.cpp:207: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).
    salt_size = strlen (salt);
data/weechat-3.0/tests/unit/core/test-core-crypto.cpp:262: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).
    LONGS_EQUAL(6, strlen (totp));
data/weechat-3.0/tests/unit/core/test-core-eval.cpp:585: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).
    LONGS_EQUAL(19, strlen (value));
data/weechat-3.0/tests/unit/core/test-core-eval.cpp:589: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).
    LONGS_EQUAL(8, strlen (value));
data/weechat-3.0/tests/unit/core/test-core-hashtable.cpp:173: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).
    LONGS_EQUAL(strlen (str_key) + 1, item->key_size);
data/weechat-3.0/tests/unit/core/test-core-hashtable.cpp:184: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).
    LONGS_EQUAL(strlen (str_key) + 1, item->key_size);
data/weechat-3.0/tests/unit/core/test-core-hashtable.cpp:186: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).
    LONGS_EQUAL(strlen (str_value) + 1, item->value_size);
data/weechat-3.0/tests/unit/core/test-core-hashtable.cpp:214: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).
                                    str_key, strlen (str_key) + 1,
data/weechat-3.0/tests/unit/core/test-core-hashtable.cpp:215:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                    str_value, strlen (str_value) + 1);
data/weechat-3.0/tests/unit/core/test-core-hashtable.cpp:219: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).
    LONGS_EQUAL(strlen (str_key) + 1, item->key_size);
data/weechat-3.0/tests/unit/core/test-core-hashtable.cpp:221: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).
    LONGS_EQUAL(strlen (str_value) + 1, item->value_size);
data/weechat-3.0/tests/unit/core/test-core-hook.cpp:228:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (string) + 128;
data/weechat-3.0/tests/unit/core/test-core-secure.cpp:96: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).
    length_password = strlen (password) + 1;
data/weechat-3.0/tests/unit/core/test-core-string.cpp:648: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).
    length_home = strlen (home);
data/weechat-3.0/tests/unit/core/test-core-string.cpp:654:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    LONGS_EQUAL(length_home + 8, strlen (result));
data/weechat-3.0/tests/unit/core/test-core-string.cpp:671: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).
    length_home = strlen (home);
data/weechat-3.0/tests/unit/core/test-core-string.cpp:673: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).
    length_weechat_home = strlen (weechat_home);
data/weechat-3.0/tests/unit/core/test-core-string.cpp:683:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    LONGS_EQUAL(length_home + 5, strlen (result));
data/weechat-3.0/tests/unit/core/test-core-string.cpp:689: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).
    LONGS_EQUAL(length_weechat_home + 5, strlen (result));
data/weechat-3.0/tests/unit/core/test-core-string.cpp:698:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    LONGS_EQUAL(length_weechat_home + 12, strlen (result));
data/weechat-3.0/tests/unit/core/test-core-string.cpp:712:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    LONGS_EQUAL(length_weechat_home + 12, strlen (result));
data/weechat-3.0/tests/unit/core/test-core-string.cpp:1709: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).
        length = strlen (str_base16[i][1]);
data/weechat-3.0/tests/unit/core/test-core-string.cpp:1711: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).
                                                  strlen (str_base16[i][0]),
data/weechat-3.0/tests/unit/core/test-core-string.cpp:1723: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).
        length = strlen (str_base16[i][0]);
data/weechat-3.0/tests/unit/core/test-core-string.cpp:1767: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).
        length = strlen (str_base32[i][1]);
data/weechat-3.0/tests/unit/core/test-core-string.cpp:1769: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).
                                                  strlen (str_base32[i][0]),
data/weechat-3.0/tests/unit/core/test-core-string.cpp:1781: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).
        length = strlen (str_base32[i][0]);
data/weechat-3.0/tests/unit/core/test-core-string.cpp:1832: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).
        length = strlen (str_base64[i][1]);
data/weechat-3.0/tests/unit/core/test-core-string.cpp:1834: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).
                                                  strlen (str_base64[i][0]),
data/weechat-3.0/tests/unit/core/test-core-string.cpp:1846: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).
        length = strlen (str_base64[i][0]);
data/weechat-3.0/tests/unit/core/test-core-string.cpp:1939: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).
                 noel_utf8, strlen (noel_utf8), 5, NULL, NULL);
data/weechat-3.0/tests/unit/core/test-core-string.cpp:1943: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).
                 noel_utf8, strlen (noel_utf8), 2, NULL, NULL);
data/weechat-3.0/tests/unit/core/test-core-string.cpp:1947: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).
                 noel_utf8, strlen (noel_utf8), 2, "( ", NULL);
data/weechat-3.0/tests/unit/core/test-core-string.cpp:1951: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).
                 noel_utf8, strlen (noel_utf8), 2, "( ", " )");
data/weechat-3.0/tests/unit/core/test-core-string.cpp:1953: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).
                 noel_iso, strlen (noel_iso), 5, NULL, NULL);
data/weechat-3.0/tests/unit/core/test-core-string.cpp:1956: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).
                 noel_iso, strlen (noel_iso), 2, NULL, NULL);
data/weechat-3.0/tests/unit/core/test-core-util.cpp:343:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (content_small);
data/weechat-3.0/tests/unit/plugins/irc/test-irc-message.cpp:570:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen (string) + 32 + 1;
data/weechat-3.0/tests/unit/plugins/relay/test-relay-auth.cpp:87: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).
    LONGS_EQUAL(2, strlen (nonce));
data/weechat-3.0/tests/unit/plugins/relay/test-relay-auth.cpp:93: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).
    LONGS_EQUAL(4, strlen (nonce));

ANALYSIS SUMMARY:

Hits = 2273
Lines analyzed = 278185 in approximately 6.32 seconds (44007 lines/second)
Physical Source Lines of Code (SLOC) = 206533
Hits@level = [0] 1253 [1] 876 [2] 1041 [3]  37 [4] 315 [5]   4
Hits@level+ = [0+] 3526 [1+] 2273 [2+] 1397 [3+] 356 [4+] 319 [5+]   4
Hits/KSLOC@level+ = [0+] 17.0723 [1+] 11.0055 [2+] 6.76405 [3+] 1.7237 [4+] 1.54455 [5+] 0.0193674
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.