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/irssi-1.2.2/src/lib-config/module.h Examining data/irssi-1.2.2/src/lib-config/parse.c Examining data/irssi-1.2.2/src/lib-config/get.c Examining data/irssi-1.2.2/src/lib-config/set.c Examining data/irssi-1.2.2/src/lib-config/write.c Examining data/irssi-1.2.2/src/lib-config/iconfig.h Examining data/irssi-1.2.2/src/fe-common/core/printtext.c Examining data/irssi-1.2.2/src/fe-common/core/fe-tls.h Examining data/irssi-1.2.2/src/fe-common/core/fe-exec.c Examining data/irssi-1.2.2/src/fe-common/core/fe-windows.h Examining data/irssi-1.2.2/src/fe-common/core/fe-modules.c Examining data/irssi-1.2.2/src/fe-common/core/module.h Examining data/irssi-1.2.2/src/fe-common/core/window-commands.c Examining data/irssi-1.2.2/src/fe-common/core/fe-common-core.h Examining data/irssi-1.2.2/src/fe-common/core/window-items.h Examining data/irssi-1.2.2/src/fe-common/core/chat-completion.c Examining data/irssi-1.2.2/src/fe-common/core/fe-log.c Examining data/irssi-1.2.2/src/fe-common/core/fe-ignore-messages.c Examining data/irssi-1.2.2/src/fe-common/core/hilight-text.c Examining data/irssi-1.2.2/src/fe-common/core/fe-exec.h Examining data/irssi-1.2.2/src/fe-common/core/fe-help.c Examining data/irssi-1.2.2/src/fe-common/core/completion.c Examining data/irssi-1.2.2/src/fe-common/core/keyboard.c Examining data/irssi-1.2.2/src/fe-common/core/fe-queries.c Examining data/irssi-1.2.2/src/fe-common/core/hilight-text.h Examining data/irssi-1.2.2/src/fe-common/core/completion.h Examining data/irssi-1.2.2/src/fe-common/core/fe-core-commands.h Examining data/irssi-1.2.2/src/fe-common/core/printtext.h Examining data/irssi-1.2.2/src/fe-common/core/command-history.c Examining data/irssi-1.2.2/src/fe-common/core/fe-core-commands.c Examining data/irssi-1.2.2/src/fe-common/core/fe-recode.c Examining data/irssi-1.2.2/src/fe-common/core/module-formats.h Examining data/irssi-1.2.2/src/fe-common/core/fe-expandos.c Examining data/irssi-1.2.2/src/fe-common/core/fe-capsicum.h Examining data/irssi-1.2.2/src/fe-common/core/fe-common-core.c Examining data/irssi-1.2.2/src/fe-common/core/window-activity.h Examining data/irssi-1.2.2/src/fe-common/core/fe-queries.h Examining data/irssi-1.2.2/src/fe-common/core/fe-windows.c Examining data/irssi-1.2.2/src/fe-common/core/themes.c Examining data/irssi-1.2.2/src/fe-common/core/fe-capsicum.c Examining data/irssi-1.2.2/src/fe-common/core/windows-layout.h Examining data/irssi-1.2.2/src/fe-common/core/fe-server.c Examining data/irssi-1.2.2/src/fe-common/core/fe-ignore.c Examining data/irssi-1.2.2/src/fe-common/core/fe-channels.c Examining data/irssi-1.2.2/src/fe-common/core/window-activity.c Examining data/irssi-1.2.2/src/fe-common/core/keyboard.h Examining data/irssi-1.2.2/src/fe-common/core/fe-recode.h Examining data/irssi-1.2.2/src/fe-common/core/module-formats.c Examining data/irssi-1.2.2/src/fe-common/core/fe-channels.h Examining data/irssi-1.2.2/src/fe-common/core/fe-tls.c Examining data/irssi-1.2.2/src/fe-common/core/fe-messages.h Examining data/irssi-1.2.2/src/fe-common/core/formats.c Examining data/irssi-1.2.2/src/fe-common/core/windows-layout.c Examining data/irssi-1.2.2/src/fe-common/core/fe-messages.c Examining data/irssi-1.2.2/src/fe-common/core/chat-completion.h Examining data/irssi-1.2.2/src/fe-common/core/command-history.h Examining data/irssi-1.2.2/src/fe-common/core/window-items.c Examining data/irssi-1.2.2/src/fe-common/core/fe-settings.h Examining data/irssi-1.2.2/src/fe-common/core/fe-settings.c Examining data/irssi-1.2.2/src/fe-common/core/formats.h Examining data/irssi-1.2.2/src/fe-common/core/themes.h Examining data/irssi-1.2.2/src/fe-common/irc/dcc/fe-dcc-send.c Examining data/irssi-1.2.2/src/fe-common/irc/dcc/module.h Examining data/irssi-1.2.2/src/fe-common/irc/dcc/fe-dcc-chat.c Examining data/irssi-1.2.2/src/fe-common/irc/dcc/module-formats.h Examining data/irssi-1.2.2/src/fe-common/irc/dcc/fe-dcc.c Examining data/irssi-1.2.2/src/fe-common/irc/dcc/fe-dcc-server.c Examining data/irssi-1.2.2/src/fe-common/irc/dcc/fe-dcc-get.c Examining data/irssi-1.2.2/src/fe-common/irc/dcc/module-formats.c Examining data/irssi-1.2.2/src/fe-common/irc/dcc/fe-dcc-chat-messages.c Examining data/irssi-1.2.2/src/fe-common/irc/dcc/fe-dcc.h Examining data/irssi-1.2.2/src/fe-common/irc/fe-modes.c Examining data/irssi-1.2.2/src/fe-common/irc/fe-common-irc.c Examining data/irssi-1.2.2/src/fe-common/irc/module.h Examining data/irssi-1.2.2/src/fe-common/irc/fe-irc-server.h Examining data/irssi-1.2.2/src/fe-common/irc/fe-irc-channels.c Examining data/irssi-1.2.2/src/fe-common/irc/fe-netjoin.c Examining data/irssi-1.2.2/src/fe-common/irc/fe-irc-messages.c Examining data/irssi-1.2.2/src/fe-common/irc/fe-cap.c Examining data/irssi-1.2.2/src/fe-common/irc/fe-sasl.c Examining data/irssi-1.2.2/src/fe-common/irc/module-formats.h Examining data/irssi-1.2.2/src/fe-common/irc/fe-ircnet.c Examining data/irssi-1.2.2/src/fe-common/irc/fe-events.c Examining data/irssi-1.2.2/src/fe-common/irc/fe-irc-channels.h Examining data/irssi-1.2.2/src/fe-common/irc/fe-netsplit.c Examining data/irssi-1.2.2/src/fe-common/irc/fe-events-numeric.c Examining data/irssi-1.2.2/src/fe-common/irc/fe-whois.c Examining data/irssi-1.2.2/src/fe-common/irc/module-formats.c Examining data/irssi-1.2.2/src/fe-common/irc/fe-irc-queries.c Examining data/irssi-1.2.2/src/fe-common/irc/irc-completion.c Examining data/irssi-1.2.2/src/fe-common/irc/notifylist/module.h Examining data/irssi-1.2.2/src/fe-common/irc/notifylist/module-formats.h Examining data/irssi-1.2.2/src/fe-common/irc/notifylist/fe-notifylist.c Examining data/irssi-1.2.2/src/fe-common/irc/notifylist/module-formats.c Examining data/irssi-1.2.2/src/fe-common/irc/fe-ctcp.c Examining data/irssi-1.2.2/src/fe-common/irc/fe-irc-commands.c Examining data/irssi-1.2.2/src/fe-common/irc/fe-irc-server.c Examining data/irssi-1.2.2/src/common.h Examining data/irssi-1.2.2/src/perl/module.h Examining data/irssi-1.2.2/src/perl/perl-signals.h Examining data/irssi-1.2.2/src/perl/perl-common.h Examining data/irssi-1.2.2/src/perl/perl-common.c Examining data/irssi-1.2.2/src/perl/common/module.h Examining data/irssi-1.2.2/src/perl/perl-sources.h Examining data/irssi-1.2.2/src/perl/perl-core.c Examining data/irssi-1.2.2/src/perl/perl-core.h Examining data/irssi-1.2.2/src/perl/module-fe.h Examining data/irssi-1.2.2/src/perl/module-formats.h Examining data/irssi-1.2.2/src/perl/ui/module.h Examining data/irssi-1.2.2/src/perl/perl-signals.c Examining data/irssi-1.2.2/src/perl/perl-sources.c Examining data/irssi-1.2.2/src/perl/perl-fe.c Examining data/irssi-1.2.2/src/perl/module-formats.c Examining data/irssi-1.2.2/src/perl/irc/module.h Examining data/irssi-1.2.2/src/perl/textui/module.h Examining data/irssi-1.2.2/src/core/servers-reconnect.c Examining data/irssi-1.2.2/src/core/pidwait.c Examining data/irssi-1.2.2/src/core/recode.h Examining data/irssi-1.2.2/src/core/servers-setup.h Examining data/irssi-1.2.2/src/core/levels.c Examining data/irssi-1.2.2/src/core/commands.c Examining data/irssi-1.2.2/src/core/network-openssl.h Examining data/irssi-1.2.2/src/core/servers.h Examining data/irssi-1.2.2/src/core/log-away.c Examining data/irssi-1.2.2/src/core/nickmatch-cache.h Examining data/irssi-1.2.2/src/core/module.h Examining data/irssi-1.2.2/src/core/modules-load.h Examining data/irssi-1.2.2/src/core/tls.c Examining data/irssi-1.2.2/src/core/queries.h Examining data/irssi-1.2.2/src/core/signals.c Examining data/irssi-1.2.2/src/core/chat-commands.c Examining data/irssi-1.2.2/src/core/pidwait.h Examining data/irssi-1.2.2/src/core/rawlog.h Examining data/irssi-1.2.2/src/core/chat-protocols.c Examining data/irssi-1.2.2/src/core/capsicum.h Examining data/irssi-1.2.2/src/core/net-nonblock.h Examining data/irssi-1.2.2/src/core/settings.c Examining data/irssi-1.2.2/src/core/channels.c Examining data/irssi-1.2.2/src/core/net-disconnect.c Examining data/irssi-1.2.2/src/core/masks.h Examining data/irssi-1.2.2/src/core/write-buffer.c Examining data/irssi-1.2.2/src/core/chatnets.c Examining data/irssi-1.2.2/src/core/modules-load.c Examining data/irssi-1.2.2/src/core/channels.h Examining data/irssi-1.2.2/src/core/channel-setup-rec.h Examining data/irssi-1.2.2/src/core/net-sendbuffer.c Examining data/irssi-1.2.2/src/core/nick-rec.h Examining data/irssi-1.2.2/src/core/masks.c Examining data/irssi-1.2.2/src/core/ignore.c Examining data/irssi-1.2.2/src/core/args.h Examining data/irssi-1.2.2/src/core/settings.h Examining data/irssi-1.2.2/src/core/recode.c Examining data/irssi-1.2.2/src/core/net-sendbuffer.h Examining data/irssi-1.2.2/src/core/misc.h Examining data/irssi-1.2.2/src/core/servers-setup.c Examining data/irssi-1.2.2/src/core/rawlog.c Examining data/irssi-1.2.2/src/core/misc.c Examining data/irssi-1.2.2/src/core/levels.h Examining data/irssi-1.2.2/src/core/modules.c Examining data/irssi-1.2.2/src/core/nicklist.h Examining data/irssi-1.2.2/src/core/network-openssl.c Examining data/irssi-1.2.2/src/core/channels-setup.h Examining data/irssi-1.2.2/src/core/wcwidth-wrapper.c Examining data/irssi-1.2.2/src/core/special-vars.c Examining data/irssi-1.2.2/src/core/iregex-regexh.c Examining data/irssi-1.2.2/src/core/utf8.c Examining data/irssi-1.2.2/src/core/channel-rec.h Examining data/irssi-1.2.2/src/core/commands.h Examining data/irssi-1.2.2/src/core/ignore.h Examining data/irssi-1.2.2/src/core/line-split.c Examining data/irssi-1.2.2/src/core/channels-setup.c Examining data/irssi-1.2.2/src/core/nicklist.c Examining data/irssi-1.2.2/src/core/network.h Examining data/irssi-1.2.2/src/core/session.h Examining data/irssi-1.2.2/src/core/servers.c Examining data/irssi-1.2.2/src/core/wcwidth.c Examining data/irssi-1.2.2/src/core/expandos.h Examining data/irssi-1.2.2/src/core/nickmatch-cache.c Examining data/irssi-1.2.2/src/core/args.c Examining data/irssi-1.2.2/src/core/window-item-def.h Examining data/irssi-1.2.2/src/core/window-item-rec.h Examining data/irssi-1.2.2/src/core/tls.h Examining data/irssi-1.2.2/src/core/log.c Examining data/irssi-1.2.2/src/core/queries.c Examining data/irssi-1.2.2/src/core/session.c Examining data/irssi-1.2.2/src/core/chatnet-rec.h Examining data/irssi-1.2.2/src/core/write-buffer.h Examining data/irssi-1.2.2/src/core/iregex-gregex.c Examining data/irssi-1.2.2/src/core/capsicum.c Examining data/irssi-1.2.2/src/core/utf8.h Examining data/irssi-1.2.2/src/core/line-split.h Examining data/irssi-1.2.2/src/core/net-disconnect.h Examining data/irssi-1.2.2/src/core/core.c Examining data/irssi-1.2.2/src/core/servers-reconnect.h Examining data/irssi-1.2.2/src/core/iregex.h Examining data/irssi-1.2.2/src/core/chat-protocols.h Examining data/irssi-1.2.2/src/core/server-rec.h Examining data/irssi-1.2.2/src/core/modules.h Examining data/irssi-1.2.2/src/core/core.h Examining data/irssi-1.2.2/src/core/query-rec.h Examining data/irssi-1.2.2/src/core/log.h Examining data/irssi-1.2.2/src/core/signals.h Examining data/irssi-1.2.2/src/core/special-vars.h Examining data/irssi-1.2.2/src/core/net-nonblock.c Examining data/irssi-1.2.2/src/core/network.c Examining data/irssi-1.2.2/src/core/chatnets.h Examining data/irssi-1.2.2/src/core/expandos.c Examining data/irssi-1.2.2/src/core/server-connect-rec.h Examining data/irssi-1.2.2/src/core/server-setup-rec.h Examining data/irssi-1.2.2/src/otr/module.h Examining data/irssi-1.2.2/src/otr/otr-fe.c Examining data/irssi-1.2.2/src/otr/otr-formats.c Examining data/irssi-1.2.2/src/otr/otr-module.c Examining data/irssi-1.2.2/src/otr/irssi-otr.h Examining data/irssi-1.2.2/src/otr/otr-formats.h Examining data/irssi-1.2.2/src/otr/otr-fe.h Examining data/irssi-1.2.2/src/otr/otr.h Examining data/irssi-1.2.2/src/otr/key.h Examining data/irssi-1.2.2/src/otr/otr.c Examining data/irssi-1.2.2/src/otr/key.c Examining data/irssi-1.2.2/src/otr/otr-ops.c Examining data/irssi-1.2.2/src/fe-none/module.h Examining data/irssi-1.2.2/src/fe-none/irssi.c Examining data/irssi-1.2.2/src/irc/dcc/module.h Examining data/irssi-1.2.2/src/irc/dcc/dcc-chat.c Examining data/irssi-1.2.2/src/irc/dcc/dcc.h Examining data/irssi-1.2.2/src/irc/dcc/dcc-resume.c Examining data/irssi-1.2.2/src/irc/dcc/dcc.c Examining data/irssi-1.2.2/src/irc/dcc/dcc-file.h Examining data/irssi-1.2.2/src/irc/dcc/dcc-get.h Examining data/irssi-1.2.2/src/irc/dcc/dcc-get.c Examining data/irssi-1.2.2/src/irc/dcc/dcc-server.h Examining data/irssi-1.2.2/src/irc/dcc/dcc-autoget.c Examining data/irssi-1.2.2/src/irc/dcc/dcc-rec.h Examining data/irssi-1.2.2/src/irc/dcc/dcc-send.h Examining data/irssi-1.2.2/src/irc/dcc/dcc-queue.c Examining data/irssi-1.2.2/src/irc/dcc/dcc-send.c Examining data/irssi-1.2.2/src/irc/dcc/dcc-file-rec.h Examining data/irssi-1.2.2/src/irc/dcc/dcc-chat.h Examining data/irssi-1.2.2/src/irc/dcc/dcc-queue.h Examining data/irssi-1.2.2/src/irc/dcc/dcc-server.c Examining data/irssi-1.2.2/src/irc/flood/module.h Examining data/irssi-1.2.2/src/irc/flood/autoignore.c Examining data/irssi-1.2.2/src/irc/flood/flood.c Examining data/irssi-1.2.2/src/irc/proxy/module.h Examining data/irssi-1.2.2/src/irc/proxy/proxy.c Examining data/irssi-1.2.2/src/irc/proxy/dump.c Examining data/irssi-1.2.2/src/irc/proxy/proxy.h Examining data/irssi-1.2.2/src/irc/proxy/listen.c Examining data/irssi-1.2.2/src/irc/core/channel-rejoin.h Examining data/irssi-1.2.2/src/irc/core/irc-cap.c Examining data/irssi-1.2.2/src/irc/core/irc-session.c Examining data/irssi-1.2.2/src/irc/core/mode-lists.h Examining data/irssi-1.2.2/src/irc/core/netsplit.h Examining data/irssi-1.2.2/src/irc/core/module.h Examining data/irssi-1.2.2/src/irc/core/irc-chatnets.h Examining data/irssi-1.2.2/src/irc/core/modes.c Examining data/irssi-1.2.2/src/irc/core/irc-commands.c Examining data/irssi-1.2.2/src/irc/core/modes.h Examining data/irssi-1.2.2/src/irc/core/irc-servers-setup.h Examining data/irssi-1.2.2/src/irc/core/irc.c Examining data/irssi-1.2.2/src/irc/core/irc-servers-setup.c Examining data/irssi-1.2.2/src/irc/core/irc-core.c Examining data/irssi-1.2.2/src/irc/core/irc-channels-setup.c Examining data/irssi-1.2.2/src/irc/core/irc-masks.h Examining data/irssi-1.2.2/src/irc/core/irc-commands.h Examining data/irssi-1.2.2/src/irc/core/channel-rejoin.c Examining data/irssi-1.2.2/src/irc/core/irc-masks.c Examining data/irssi-1.2.2/src/irc/core/channels-query.c Examining data/irssi-1.2.2/src/irc/core/massjoin.c Examining data/irssi-1.2.2/src/irc/core/irc.h Examining data/irssi-1.2.2/src/irc/core/servers-idle.c Examining data/irssi-1.2.2/src/irc/core/irc-expandos.c Examining data/irssi-1.2.2/src/irc/core/ctcp.h Examining data/irssi-1.2.2/src/irc/core/irc-channels.h Examining data/irssi-1.2.2/src/irc/core/sasl.c Examining data/irssi-1.2.2/src/irc/core/irc-servers.h Examining data/irssi-1.2.2/src/irc/core/servers-redirect.h Examining data/irssi-1.2.2/src/irc/core/servers-idle.h Examining data/irssi-1.2.2/src/irc/core/mode-lists.c Examining data/irssi-1.2.2/src/irc/core/sasl.h Examining data/irssi-1.2.2/src/irc/core/servers-redirect.c Examining data/irssi-1.2.2/src/irc/core/irc-nicklist.h Examining data/irssi-1.2.2/src/irc/core/bans.h Examining data/irssi-1.2.2/src/irc/core/netsplit.c Examining data/irssi-1.2.2/src/irc/core/channel-events.h Examining data/irssi-1.2.2/src/irc/core/irc-cap.h Examining data/irssi-1.2.2/src/irc/core/channel-events.c Examining data/irssi-1.2.2/src/irc/core/irc-channels.c Examining data/irssi-1.2.2/src/irc/core/bans.c Examining data/irssi-1.2.2/src/irc/core/irc-queries.c Examining data/irssi-1.2.2/src/irc/core/irc-servers.c Examining data/irssi-1.2.2/src/irc/core/irc-chatnets.c Examining data/irssi-1.2.2/src/irc/core/irc-nicklist.c Examining data/irssi-1.2.2/src/irc/core/irc-queries.h Examining data/irssi-1.2.2/src/irc/core/irc-servers-reconnect.c Examining data/irssi-1.2.2/src/irc/core/lag.c Examining data/irssi-1.2.2/src/irc/core/ctcp.c Examining data/irssi-1.2.2/src/irc/notifylist/notify-ison.c Examining data/irssi-1.2.2/src/irc/notifylist/module.h Examining data/irssi-1.2.2/src/irc/notifylist/notify-setup.h Examining data/irssi-1.2.2/src/irc/notifylist/notifylist.c Examining data/irssi-1.2.2/src/irc/notifylist/notify-setup.c Examining data/irssi-1.2.2/src/irc/notifylist/notify-whois.c Examining data/irssi-1.2.2/src/irc/notifylist/notifylist.h Examining data/irssi-1.2.2/src/irc/notifylist/notify-commands.c Examining data/irssi-1.2.2/src/fe-fuzz/server.c Examining data/irssi-1.2.2/src/fe-fuzz/fe-common/core/theme-load.c Examining data/irssi-1.2.2/src/fe-fuzz/irssi.c Examining data/irssi-1.2.2/src/fe-fuzz/irc/core/event-get-params.c Examining data/irssi-1.2.2/src/fe-text/mainwindows.h Examining data/irssi-1.2.2/src/fe-text/mainwindow-activity.c Examining data/irssi-1.2.2/src/fe-text/gui-entry.c Examining data/irssi-1.2.2/src/fe-text/statusbar-items.c Examining data/irssi-1.2.2/src/fe-text/module.h Examining data/irssi-1.2.2/src/fe-text/statusbar-config.c Examining data/irssi-1.2.2/src/fe-text/term-terminfo.c Examining data/irssi-1.2.2/src/fe-text/gui-readline.c Examining data/irssi-1.2.2/src/fe-text/gui-expandos.c Examining data/irssi-1.2.2/src/fe-text/statusbar.c Examining data/irssi-1.2.2/src/fe-text/textbuffer-commands.c Examining data/irssi-1.2.2/src/fe-text/textbuffer-view.c Examining data/irssi-1.2.2/src/fe-text/terminfo-core.h Examining data/irssi-1.2.2/src/fe-text/module-formats.h Examining data/irssi-1.2.2/src/fe-text/statusbar.h Examining data/irssi-1.2.2/src/fe-text/gui-entry.h Examining data/irssi-1.2.2/src/fe-text/gui-windows.h Examining data/irssi-1.2.2/src/fe-text/textbuffer.c Examining data/irssi-1.2.2/src/fe-text/irssi.c Examining data/irssi-1.2.2/src/fe-text/statusbar-item.h Examining data/irssi-1.2.2/src/fe-text/mainwindows-layout.c Examining data/irssi-1.2.2/src/fe-text/term.h Examining data/irssi-1.2.2/src/fe-text/gui-printtext.h Examining data/irssi-1.2.2/src/fe-text/terminfo-core.c Examining data/irssi-1.2.2/src/fe-text/mainwindows.c Examining data/irssi-1.2.2/src/fe-text/statusbar-config.h Examining data/irssi-1.2.2/src/fe-text/lastlog.c Examining data/irssi-1.2.2/src/fe-text/textbuffer.h Examining data/irssi-1.2.2/src/fe-text/gui-printtext.c Examining data/irssi-1.2.2/src/fe-text/textbuffer-view.h Examining data/irssi-1.2.2/src/fe-text/term.c Examining data/irssi-1.2.2/src/fe-text/gui-windows.c Examining data/irssi-1.2.2/src/fe-text/gui-readline.h Examining data/irssi-1.2.2/src/fe-text/module-formats.c Examining data/irssi-1.2.2/irssi-config.h Examining data/irssi-1.2.2/irssi-version.h Examining data/irssi-1.2.2/tests/fe-common/core/test-formats.c Examining data/irssi-1.2.2/tests/irc/flood/test-796.c Examining data/irssi-1.2.2/tests/irc/core/test-channel-events.c Examining data/irssi-1.2.2/tests/irc/core/test-irc.c Examining data/irssi-1.2.2/tests/fe-text/mock-irssi.c Examining data/irssi-1.2.2/tests/fe-text/test-paste-join-multiline.c FINAL RESULTS: data/irssi-1.2.2/src/core/session.c:53:2: [4] (shell) execv: 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. execv(session_args[0], session_args); data/irssi-1.2.2/src/fe-common/core/fe-exec.c:340:3: [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(shell_args[0], (char **) shell_args); data/irssi-1.2.2/src/fe-common/core/fe-exec.c:345:17: [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(args[0], args); data/irssi-1.2.2/src/fe-text/irssi.c:299:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PACKAGE_TARNAME" " PACKAGE_VERSION" (%d %04d)\n", data/irssi-1.2.2/src/irc/core/modes.c:101:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(prefixes, newprefixes); data/irssi-1.2.2/src/otr/key.c:355:8: [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. ret = access(filename, F_OK); data/irssi-1.2.2/src/otr/key.c:387:8: [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. ret = access(filename, F_OK); data/irssi-1.2.2/src/otr/otr.c:75:8: [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. ret = access(filename, F_OK); data/irssi-1.2.2/src/core/core.c:196:10: [3] (buffer) g_get_home_dir: This function is synonymous with 'getenv("HOME")';it returns untrustable input if the environment can beset by an attacker. It 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 = g_get_home_dir(); data/irssi-1.2.2/src/core/misc.c:403:10: [3] (buffer) g_get_home_dir: This function is synonymous with 'getenv("HOME")';it returns untrustable input if the environment can beset by an attacker. It 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 = g_get_home_dir(); data/irssi-1.2.2/src/core/modules-load.c:253:18: [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. GString *realpath; data/irssi-1.2.2/src/core/modules-load.c:258:18: [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. g_string_insert(realpath, end, "_core"); data/irssi-1.2.2/src/core/modules-load.c:269:41: [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. g_string_assign(realpath, path); data/irssi-1.2.2/src/core/modules-load.c:270:22: [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. g_string_insert_c(realpath, start, '_'); data/irssi-1.2.2/src/core/modules-load.c:271:20: [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. g_string_insert(realpath, start, *prefixes); data/irssi-1.2.2/src/core/modules-load.c:284:19: [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. g_string_assign(realpath, path); data/irssi-1.2.2/src/core/modules-load.c:285:19: [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. g_string_insert(realpath, end, "_core"); data/irssi-1.2.2/src/core/modules-load.c:289:16: [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. g_string_free(realpath, TRUE); data/irssi-1.2.2/src/core/net-nonblock.c:64:2: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(time(NULL)); data/irssi-1.2.2/src/fe-common/core/completion.c:337:8: [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. char *realpath, *dir, *name; data/irssi-1.2.2/src/fe-common/core/completion.c:350:23: [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 (USE_DEFAULT_PATH(realpath, default_path)) { data/irssi-1.2.2/src/fe-common/core/completion.c:351:24: [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. g_free(realpath); data/irssi-1.2.2/src/fe-common/core/completion.c:357:27: [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. dir = g_path_get_dirname(realpath); data/irssi-1.2.2/src/fe-common/core/completion.c:360:16: [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. g_free(realpath); data/irssi-1.2.2/src/fe-none/irssi.c:52:2: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(time(NULL)); data/irssi-1.2.2/src/fe-text/irssi.c:304:2: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(time(NULL)); data/irssi-1.2.2/src/fe-text/terminfo-core.c:576: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. term_env = getenv("TERM"); data/irssi-1.2.2/src/lib-config/write.c:316:14: [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. dest_name = realpath(base_name, NULL); data/irssi-1.2.2/src/lib-config/write.c:322:20: [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 ((dest_name = realpath(base_name, resolved_path)) != NULL) { data/irssi-1.2.2/src/core/capsicum.c:141: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(ip4, received_ip4, sizeof(*ip4)); data/irssi-1.2.2/src/core/capsicum.c:142: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(ip6, received_ip6, sizeof(*ip6)); data/irssi-1.2.2/src/core/capsicum.c:163:8: [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(path, flags, mode); data/irssi-1.2.2/src/core/capsicum.c:178:9: [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). return open(path, flags, mode); data/irssi-1.2.2/src/core/capsicum.c:431:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). irclogs_fd = open(irclogs_path, O_DIRECTORY | O_CLOEXEC); data/irssi-1.2.2/src/core/chat-commands.c:75:7: [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(portstr), chatnet, password, nick); data/irssi-1.2.2/src/core/chat-protocols.c:120: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(newrec, rec, sizeof(CHAT_PROTOCOL_REC)); data/irssi-1.2.2/src/core/expandos.c:334:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[2] = { 0, 0 }; data/irssi-1.2.2/src/core/expandos.c:442: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[256]; data/irssi-1.2.2/src/core/line-split.c:49: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(rec->str + rec->len, data, len); data/irssi-1.2.2/src/core/log.c:68:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[256]; data/irssi-1.2.2/src/core/log.c:81:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *str, fname[1024]; data/irssi-1.2.2/src/core/log.c:134:3: [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). open(log->real_fname, O_WRONLY | O_APPEND | O_CREAT, data/irssi-1.2.2/src/core/misc.c:650:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(*save_column_widths, columns[ret-1], sizeof(int)*ret); data/irssi-1.2.2/src/core/misc.c:694: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 digit[4]; data/irssi-1.2.2/src/core/net-disconnect.c:51:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[512]; data/irssi-1.2.2/src/core/net-nonblock.c:235:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(rec->my_ip, my_ip, sizeof(IPADDR)); data/irssi-1.2.2/src/core/net-sendbuffer.c:105: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(rec->buffer+rec->bufpos, data, size); data/irssi-1.2.2/src/core/net-sendbuffer.c:144:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmpbuf[2048]; data/irssi-1.2.2/src/core/network-openssl.c:439: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(buffer, password, length + 1); data/irssi-1.2.2/src/core/network-openssl.c:489:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fp = fopen(scert, "r"))) { data/irssi-1.2.2/src/core/network-openssl.c:611:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[128]; data/irssi-1.2.2/src/core/network-openssl.c:823:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char pubkey_fingerprint[EVP_MAX_MD_SIZE]; data/irssi-1.2.2/src/core/network-openssl.c:825:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char cert_fingerprint[EVP_MAX_MD_SIZE]; data/irssi-1.2.2/src/core/network.c:116:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&so->sin6.sin6_addr, &ip->ip, sizeof(ip->ip)); data/irssi-1.2.2/src/core/network.c:118:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&so->sin.sin_addr, &ip->ip, 4); data/irssi-1.2.2/src/core/network.c:128:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&ip->ip, &so->sin.sin_addr, 4); data/irssi-1.2.2/src/core/network.c:463:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hostname[NI_MAXHOST]; data/irssi-1.2.2/src/core/network.c:512:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&ip->ip, &addr, 4); data/irssi-1.2.2/src/core/nick-rec.h:22: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 prefixes[MAX_USER_PREFIXES+1]; data/irssi-1.2.2/src/core/rawlog.c:135:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). rawlog->handle = open(path, O_WRONLY | O_APPEND | O_CREAT, data/irssi-1.2.2/src/core/rawlog.c:177:6: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = open(path, O_WRONLY | O_APPEND | O_CREAT, log_file_create_mode); data/irssi-1.2.2/src/core/servers-reconnect.c:197:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest->own_ip4, src->own_ip4, sizeof(IPADDR)); data/irssi-1.2.2/src/core/servers-reconnect.c:201:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest->own_ip6, src->own_ip6, sizeof(IPADDR)); data/irssi-1.2.2/src/core/servers-reconnect.c:444:12: [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). tagnum = atoi(tag); data/irssi-1.2.2/src/core/servers-reconnect.c:468:27: [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). rec = reconnect_find_tag(atoi(data+6)); data/irssi-1.2.2/src/core/servers-setup.c:46:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(*save_ip4, ip4, sizeof(IPADDR)); data/irssi-1.2.2/src/core/servers-setup.c:54:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(*save_ip6, ip6, sizeof(IPADDR)); data/irssi-1.2.2/src/core/servers-setup.c:144:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(conn->own_ip4, source_host_ip4, sizeof(IPADDR)); data/irssi-1.2.2/src/core/servers-setup.c:148:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(conn->own_ip6, source_host_ip6, sizeof(IPADDR)); data/irssi-1.2.2/src/core/servers.c:208:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ipaddr[MAX_IP_LEN]; data/irssi-1.2.2/src/core/servers.c:679:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(conn->own_ip4, ip4, sizeof(IPADDR)); data/irssi-1.2.2/src/core/servers.c:686:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(conn->own_ip6, ip6, sizeof(IPADDR)); data/irssi-1.2.2/src/core/session.c:312: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). pidwait_add(atoi(*pid)); data/irssi-1.2.2/src/core/settings.c:668: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 buf[512]; data/irssi-1.2.2/src/core/settings.c:672:6: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = open(fname, O_RDONLY); data/irssi-1.2.2/src/core/special-vars.c:170:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[2]; data/irssi-1.2.2/src/core/special-vars.c:472:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char esc[4], *escpos; data/irssi-1.2.2/src/core/write-buffer.c:87:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(rec->active_block+rec->active_block_pos, data/irssi-1.2.2/src/fe-common/core/fe-channels.c:356:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *aligned_nick, nickmode[2] = { 0, 0 }; data/irssi-1.2.2/src/fe-common/core/fe-core-commands.c:94: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). window_find_refnum(atoi(winname)) : data/irssi-1.2.2/src/fe-common/core/fe-core-commands.c:105:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char time[10]; data/irssi-1.2.2/src/fe-common/core/fe-core-commands.c:134:9: [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). fpos = atoi(fposstr); data/irssi-1.2.2/src/fe-common/core/fe-exec.c:159:40: [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). return process_find_id(atoi(name+1), verbose); data/irssi-1.2.2/src/fe-common/core/fe-exec.c:254:36: [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). signum = is_numeric(signame, 0) ? atol(signame) : data/irssi-1.2.2/src/fe-common/core/fe-exec.c:284:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *shell_args[4] = { "/bin/sh", "-c", NULL, NULL }; data/irssi-1.2.2/src/fe-common/core/fe-exec.c:355: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 tmpbuf[512], *str; data/irssi-1.2.2/src/fe-common/core/fe-help.c:99:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(linebuf, rec->cmd, strlen(rec->cmd)); data/irssi-1.2.2/src/fe-common/core/fe-ignore.c:242: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). tmp = g_slist_nth(ignores, atoi(mask)-1); data/irssi-1.2.2/src/fe-common/core/fe-ignore.c:246:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *chans[2] = { "*", NULL }; data/irssi-1.2.2/src/fe-common/core/fe-log.c:89:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char window[MAX_INT_STRLEN]; data/irssi-1.2.2/src/fe-common/core/fe-log.c:153:26: [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). tmp = g_slist_nth(logs, atoi(data)-1); data/irssi-1.2.2/src/fe-common/core/fe-log.c:279:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *set, *fname, window[MAX_INT_STRLEN]; data/irssi-1.2.2/src/fe-common/core/fe-log.c:332:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char window[MAX_INT_STRLEN]; data/irssi-1.2.2/src/fe-common/core/fe-log.c:353:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char winnum[MAX_INT_STRLEN]; data/irssi-1.2.2/src/fe-common/core/fe-log.c:508:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char windownum[MAX_INT_STRLEN]; data/irssi-1.2.2/src/fe-common/core/fe-server.c:124:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). port = atoi(portstr); data/irssi-1.2.2/src/fe-common/core/fe-server.c:126:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). port = atoi(value); data/irssi-1.2.2/src/fe-common/core/fe-server.c:288: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). rec = server_setup_find(addr, atoi(port), NULL); data/irssi-1.2.2/src/fe-common/core/fe-server.c:290: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). rec = server_setup_find(addr, atoi(port), chatnet); data/irssi-1.2.2/src/fe-common/core/fe-server.c:358:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ipaddr[MAX_IP_LEN]; data/irssi-1.2.2/src/fe-common/core/fe-windows.c:686:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *format, str[256]; data/irssi-1.2.2/src/fe-common/core/formats.c:132:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char rgbx[4]; data/irssi-1.2.2/src/fe-common/core/formats.c:633:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *arglist[MAX_FORMAT_PARAMS]; data/irssi-1.2.2/src/fe-common/core/formats.c:634:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[DEFAULT_FORMAT_ARGLIST_SIZE]; data/irssi-1.2.2/src/fe-common/core/formats.c:767:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *format, str[256]; data/irssi-1.2.2/src/fe-common/core/formats.c:875:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char ansitab[8] = { 0, 4, 2, 6, 1, 5, 3, 7 }; data/irssi-1.2.2/src/fe-common/core/hilight-text.c:597:44: [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). rec->priority = priorityarg == NULL ? 0 : atoi(priorityarg); data/irssi-1.2.2/src/fe-common/core/hilight-text.c:649:31: [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). tmp = g_slist_nth(hilights, atoi(data)-1); data/irssi-1.2.2/src/fe-common/core/hilight-text.c:653:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *chans[2] = { "*", NULL }; data/irssi-1.2.2/src/fe-common/core/keyboard.c:42: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 used_keys[256]; data/irssi-1.2.2/src/fe-common/core/printtext.c:49:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *arglist[MAX_FORMAT_PARAMS]; data/irssi-1.2.2/src/fe-common/core/printtext.c:50:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[DEFAULT_FORMAT_ARGLIST_SIZE]; data/irssi-1.2.2/src/fe-common/core/printtext.c:136:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *arglist[MAX_FORMAT_PARAMS]; data/irssi-1.2.2/src/fe-common/core/printtext.c:137:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[DEFAULT_FORMAT_ARGLIST_SIZE]; data/irssi-1.2.2/src/fe-common/core/themes.c:123:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *ret, *abstract, data[2]; data/irssi-1.2.2/src/fe-common/core/themes.c:152:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *value, *args[1] = { NULL }; data/irssi-1.2.2/src/fe-common/core/themes.h:61:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char m[8]; data/irssi-1.2.2/src/fe-common/core/window-commands.c:206:52: [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). first_num = *first == '\0' ? active_win->refnum : atoi(first); data/irssi-1.2.2/src/fe-common/core/window-commands.c:207:41: [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). last_num = *last == '\0' ? first_num : atoi(last); data/irssi-1.2.2/src/fe-common/core/window-commands.c:245: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). window = window_find_refnum(atoi(data)); data/irssi-1.2.2/src/fe-common/core/window-commands.c:540:40: [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). tmp = g_slist_nth(active_win->items, atoi(target)-1); data/irssi-1.2.2/src/fe-common/core/window-commands.c:565:45: [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). window = window_find_refnum(atoi(target)); data/irssi-1.2.2/src/fe-common/core/window-commands.c:592:8: [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). num = atoi(refnum); data/irssi-1.2.2/src/fe-common/core/window-commands.c:764:24: [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). active_window_move_to(atoi(data)); data/irssi-1.2.2/src/fe-common/core/windows-layout.c:132:31: [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). window = window_find_refnum(atoi(node->key)); data/irssi-1.2.2/src/fe-common/core/windows-layout.c:136: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). window_set_refnum(window, atoi(node->key)); data/irssi-1.2.2/src/fe-common/core/windows-layout.c:197:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char refnum[MAX_INT_STRLEN]; data/irssi-1.2.2/src/fe-common/irc/dcc/fe-dcc-get.c:61:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *sizestr, timestr[20]; data/irssi-1.2.2/src/fe-common/irc/dcc/fe-dcc-send.c:48:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *sizestr, timestr[20]; data/irssi-1.2.2/src/fe-common/irc/dcc/fe-dcc.c:108:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *transfd_str, *size_str, etastr[20]; data/irssi-1.2.2/src/fe-common/irc/dcc/fe-dcc.c:119:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(etastr, "(stalled)"); data/irssi-1.2.2/src/fe-common/irc/fe-events-numeric.c:154:24: [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). (long) (time(NULL) - atol(tims)); data/irssi-1.2.2/src/fe-common/irc/fe-events-numeric.c:179:24: [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). (long) (time(NULL) - atol(tims)); data/irssi-1.2.2/src/fe-common/irc/fe-events-numeric.c:225:24: [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). (long) (time(NULL) - atol(tims)); data/irssi-1.2.2/src/fe-common/irc/fe-events-numeric.c:275:39: [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). timestr = my_asctime((time_t) atol(topictime)); data/irssi-1.2.2/src/fe-common/irc/fe-events-numeric.c:312:39: [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). timestr = my_asctime((time_t) atol(createtime)); data/irssi-1.2.2/src/fe-common/irc/fe-irc-server.c:83:62: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (value != NULL && *value != '\0') rec->cmd_queue_speed = atoi(value); data/irssi-1.2.2/src/fe-common/irc/fe-irc-server.c:85:63: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (value != NULL && *value != '\0') rec->max_cmds_at_once = atoi(value); data/irssi-1.2.2/src/fe-common/irc/fe-irc-server.c:87:62: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (value != NULL && *value != '\0') rec->max_query_chans = atoi(value); data/irssi-1.2.2/src/fe-common/irc/fe-ircnet.c:134:38: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (value != NULL) rec->max_kicks = atoi(value); data/irssi-1.2.2/src/fe-common/irc/fe-ircnet.c:136:37: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (value != NULL) rec->max_msgs = atoi(value); data/irssi-1.2.2/src/fe-common/irc/fe-ircnet.c:138:38: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (value != NULL) rec->max_modes = atoi(value); data/irssi-1.2.2/src/fe-common/irc/fe-ircnet.c:140:38: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (value != NULL) rec->max_whois = atoi(value); data/irssi-1.2.2/src/fe-common/irc/fe-ircnet.c:143:44: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (value != NULL) rec->cmd_queue_speed = atoi(value); data/irssi-1.2.2/src/fe-common/irc/fe-ircnet.c:145:45: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (value != NULL) rec->max_cmds_at_once = atoi(value); data/irssi-1.2.2/src/fe-common/irc/fe-ircnet.c:147:44: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (value != NULL) rec->max_query_chans = atoi(value); data/irssi-1.2.2/src/fe-common/irc/fe-whois.c:53:9: [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). secs = atol(secstr); data/irssi-1.2.2/src/fe-common/irc/fe-whois.c:55:12: [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). (time_t) atol(signonstr); data/irssi-1.2.2/src/fe-common/irc/fe-whois.c:395:8: [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). num = atoi(current_server_event); data/irssi-1.2.2/src/fe-fuzz/fe-common/core/theme-load.c:55:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen("/tmp/irssi/fuzz.theme", "wb"); data/irssi-1.2.2/src/fe-fuzz/irssi.c:52: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(copy, data, size); data/irssi-1.2.2/src/fe-text/gui-entry.c:797: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(tmp->cutbuffer, tmpcutbuffer, data/irssi-1.2.2/src/fe-text/gui-entry.c:799: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(tmp->cutbuffer + tmp->cutbuffer_len, data/irssi-1.2.2/src/fe-text/gui-entry.c:809: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(tmp->cutbuffer, entry->text + entry->pos - size, data/irssi-1.2.2/src/fe-text/gui-entry.c:811: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(tmp->cutbuffer + size, tmpcutbuffer, data/irssi-1.2.2/src/fe-text/gui-entry.c:828: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(tmp->cutbuffer, entry->text + entry->pos - size, size * sizeof(unichar)); data/irssi-1.2.2/src/fe-text/gui-readline.c:279:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char out[10], *text; data/irssi-1.2.2/src/fe-text/gui-readline.c:400:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[20]; data/irssi-1.2.2/src/fe-text/gui-readline.c:1145:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *key, data[MAX_INT_STRLEN]; data/irssi-1.2.2/src/fe-text/lastlog.c:110:23: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). window_find_refnum(atoi(str)) : data/irssi-1.2.2/src/fe-text/lastlog.c:131:20: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). before = after = atoi(str); data/irssi-1.2.2/src/fe-text/lastlog.c:135:4: [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(str) : DEFAULT_LASTLOG_BEFORE; data/irssi-1.2.2/src/fe-text/lastlog.c:140:4: [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(str) : DEFAULT_LASTLOG_AFTER; data/irssi-1.2.2/src/fe-text/lastlog.c:205:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char timestamp[10]; data/irssi-1.2.2/src/fe-text/lastlog.c:264:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). count = atoi(countstr); data/irssi-1.2.2/src/fe-text/lastlog.c:272:8: [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(fname, O_WRONLY | O_APPEND | O_CREAT, data/irssi-1.2.2/src/fe-text/lastlog.c:286:31: [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). show_lastlog(text, optlist, atoi(start), count, fhandle); data/irssi-1.2.2/src/fe-text/mainwindows-layout.c:83: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 num[MAX_INT_STRLEN]; data/irssi-1.2.2/src/fe-text/mainwindows-layout.c:265:31: [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). window_set_refnum(new_win, atoi(node2->key)); data/irssi-1.2.2/src/fe-text/mainwindows.c:1331:31: [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). window = window_find_refnum(atoi(data)); data/irssi-1.2.2/src/fe-text/mainwindows.c:1381:31: [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). window = window_find_refnum(atoi(args)); data/irssi-1.2.2/src/fe-text/mainwindows.c:1447: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). count = *data == '\0' ? 1 : atoi(args); data/irssi-1.2.2/src/fe-text/mainwindows.c:1470: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). count = *data == '\0' ? 1 : atoi(args); data/irssi-1.2.2/src/fe-text/mainwindows.c:1498:9: [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). size = atoi(data); data/irssi-1.2.2/src/fe-text/mainwindows.c:1765:28: [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). win = window_find_refnum(atoi(data)); data/irssi-1.2.2/src/fe-text/statusbar-config.c:517: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). iconfig_node_set_int(node, "position", atoi(data)); data/irssi-1.2.2/src/fe-text/statusbar-config.c:682:60: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (value != NULL) iconfig_node_set_int(node, "priority", atoi(value)); data/irssi-1.2.2/src/fe-text/statusbar-items.c:354: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[MAX_INT_STRLEN+10]; data/irssi-1.2.2/src/fe-text/term-terminfo.c:63:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char term_inbuf[256]; data/irssi-1.2.2/src/fe-text/term-terminfo.c:322:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[20]; data/irssi-1.2.2/src/fe-text/term-terminfo.c:334:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "\033[%d8;2;%d;%d;%dm", bg ? 4 : 3, color[0], color[1], color[2]); data/irssi-1.2.2/src/fe-text/term-terminfo.c:504:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[10]; data/irssi-1.2.2/src/fe-text/terminfo-core.c:450:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char ansitab[16] = { data/irssi-1.2.2/src/fe-text/terminfo-core.h:50:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer1[1024], buffer2[1024]; data/irssi-1.2.2/src/fe-text/textbuffer-commands.c:57:31: [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). window = window_find_refnum(atoi(refnum)); data/irssi-1.2.2/src/fe-text/textbuffer-commands.c:141:31: [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). window = window_find_refnum(atoi(refnum)); data/irssi-1.2.2/src/fe-text/textbuffer-commands.c:184:31: [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). window = window_find_refnum(atoi(refnum)); data/irssi-1.2.2/src/fe-text/textbuffer-commands.c:218:12: [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). stamp -= atoi(datearg+1) * 3600*24; data/irssi-1.2.2/src/fe-text/textbuffer-commands.c:219:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&tm, localtime(&stamp), sizeof(struct tm)); data/irssi-1.2.2/src/fe-text/textbuffer-commands.c:222:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&tm, localtime(&stamp), sizeof(struct tm)); data/irssi-1.2.2/src/fe-text/textbuffer-commands.c:257: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(&tm, localtime(&stamp), sizeof(struct tm)); data/irssi-1.2.2/src/fe-text/textbuffer-commands.c:295:25: [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). lines = atoi(datearg + (*datearg == '-' ? 0 : 1)); data/irssi-1.2.2/src/fe-text/textbuffer-commands.c:299:24: [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). scrollback_goto_line(atoi(datearg)); data/irssi-1.2.2/src/fe-text/textbuffer-view.c:167:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char rgbx[4]; data/irssi-1.2.2/src/fe-text/textbuffer-view.c:241: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(&tmp, ptr, sizeof(char *)); data/irssi-1.2.2/src/fe-text/textbuffer-view.c:340:4: [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(&rec->lines[pos], data, data/irssi-1.2.2/src/fe-text/textbuffer-view.c:494: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(&tmp, text+1, sizeof(unsigned char *)); data/irssi-1.2.2/src/fe-text/textbuffer.c:93:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, pptr, sizeof(unsigned char *)); data/irssi-1.2.2/src/fe-text/textbuffer.c:124: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(&tmp, text+1, sizeof(char *)); data/irssi-1.2.2/src/fe-text/textbuffer.c:174:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(chunk->buffer + chunk->pos, data, left); data/irssi-1.2.2/src/fe-text/textbuffer.c:182: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(chunk->buffer + chunk->pos, data, len); data/irssi-1.2.2/src/fe-text/textbuffer.c:266:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char data[22]; data/irssi-1.2.2/src/fe-text/textbuffer.c:473:4: [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(&tmp, ptr, sizeof(unsigned char *)); data/irssi-1.2.2/src/fe-text/textbuffer.h:55:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buffer[LINE_TEXT_CHUNK_SIZE]; data/irssi-1.2.2/src/irc/core/bans.c:161:8: [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(*ban)-1); data/irssi-1.2.2/src/irc/core/channel-events.c:189:15: [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). t = (time_t) atol(topictime); data/irssi-1.2.2/src/irc/core/irc-commands.c:617:6: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). n = atoi(msecs); data/irssi-1.2.2/src/irc/core/irc-expandos.c:63:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hostname[HOST_NAME_MAX + 1]; data/irssi-1.2.2/src/irc/core/irc-expandos.c:79:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(hostname, "(none)"); data/irssi-1.2.2/src/irc/core/irc-expandos.c:87:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hostname[HOST_NAME_MAX + 1]; data/irssi-1.2.2/src/irc/core/irc-expandos.c:105:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(hostname, "(none)"); data/irssi-1.2.2/src/irc/core/irc-nicklist.c:84:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char prefixes[MAX_USER_PREFIXES+1]; data/irssi-1.2.2/src/irc/core/irc-servers.c:544:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&server->wait_cmd, &server->last_cmd, sizeof(GTimeVal)); data/irssi-1.2.2/src/irc/core/irc-servers.c:880:35: [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). server->channels_formed = atoi(channels); data/irssi-1.2.2/src/irc/core/irc-servers.c:984: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). server->max_modes_in_cmd = atoi(sptr); data/irssi-1.2.2/src/irc/core/irc-servers.c:1003:32: [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). server->max_kicks_in_cmd = atoi(p + 5); data/irssi-1.2.2/src/irc/core/irc-servers.c:1007:31: [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). server->max_msgs_in_cmd = atoi(p + 8); data/irssi-1.2.2/src/irc/core/irc-servers.c:1017: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). server->max_msgs_in_cmd = atoi(sptr); data/irssi-1.2.2/src/irc/core/irc-servers.h:118:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char prefix[256]; data/irssi-1.2.2/src/irc/core/irc-session.c:133:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char newprefixes[MAX_USER_PREFIXES + 1]; data/irssi-1.2.2/src/irc/core/irc.c:51:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[513]; data/irssi-1.2.2/src/irc/core/mode-lists.c:124:18: [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). tim = (time_t) atol(tims); data/irssi-1.2.2/src/irc/core/modes.c:38:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char modestr[2], typestr[2]; data/irssi-1.2.2/src/irc/core/modes.c:62:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void prefix_add(char prefixes[MAX_USER_PREFIXES+1], char newprefix, SERVER_REC *server) data/irssi-1.2.2/src/irc/core/modes.c:65:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char newprefixes[MAX_USER_PREFIXES+1]; /* to hold the new prefixes */ data/irssi-1.2.2/src/irc/core/modes.c:104:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void prefix_del(char prefixes[MAX_USER_PREFIXES+1], char oldprefix) data/irssi-1.2.2/src/irc/core/modes.c:286:38: [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 = type == '-' ? 0 : atoi(arg); data/irssi-1.2.2/src/irc/core/modes.h:58:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void prefix_add(char prefixes[MAX_USER_PREFIXES+1], char newprefix, SERVER_REC *server); data/irssi-1.2.2/src/irc/core/modes.h:59:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void prefix_del(char prefixes[MAX_USER_PREFIXES+1], char oldprefix); data/irssi-1.2.2/src/irc/core/netsplit.h:31:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char prefixes[MAX_USER_PREFIXES+1]; data/irssi-1.2.2/src/irc/dcc/dcc-chat.c:355: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(&dcc->addr, &ip, sizeof(IPADDR)); data/irssi-1.2.2/src/irc/dcc/dcc-chat.c:415:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char host[MAX_IP_LEN]; data/irssi-1.2.2/src/irc/dcc/dcc-chat.c:450:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *nick, host[MAX_IP_LEN]; data/irssi-1.2.2/src/irc/dcc/dcc-chat.c:658:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (dcc->pasv_id != atoi(params[3])) { data/irssi-1.2.2/src/irc/dcc/dcc-chat.c:665: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). dcc->port = atoi(params[2]); data/irssi-1.2.2/src/irc/dcc/dcc-chat.c:683:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). dcc->port = atoi(params[2]); data/irssi-1.2.2/src/irc/dcc/dcc-chat.c:686:18: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). dcc->pasv_id = atoi(params[3]); data/irssi-1.2.2/src/irc/dcc/dcc-file-rec.h:8: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 count_buf[4]; data/irssi-1.2.2/src/irc/dcc/dcc-get.c:103: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(dcc->count_buf, &recd, 4); data/irssi-1.2.2/src/irc/dcc/dcc-get.c:145: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(&recd, dcc->count_buf, 4); data/irssi-1.2.2/src/irc/dcc/dcc-get.c:235:16: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). temphandle = mkstemp(tempfname); data/irssi-1.2.2/src/irc/dcc/dcc-get.c:268:4: [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). open(dcc->file, O_WRONLY | O_TRUNC); data/irssi-1.2.2/src/irc/dcc/dcc-get.c:343: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(&dcc->addr, &addr, sizeof(IPADDR)); data/irssi-1.2.2/src/irc/dcc/dcc-get.c:356:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char host[MAX_IP_LEN]; data/irssi-1.2.2/src/irc/dcc/dcc-get.c:376:39: [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). is_numeric(params[(pos)+1], '\0') && atol(params[(pos)+1]) < 65536 && \ data/irssi-1.2.2/src/irc/dcc/dcc-get.c:464:9: [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(params[fileparams+1]); data/irssi-1.2.2/src/irc/dcc/dcc-get.c:469:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). p_id = atoi(params[fileparams+3]); data/irssi-1.2.2/src/irc/dcc/dcc-get.c:496:4: [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_dcc->addr, &ip, sizeof(IPADDR)); data/irssi-1.2.2/src/irc/dcc/dcc-get.c:537: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(&dcc->addr, &ip, sizeof(ip)); data/irssi-1.2.2/src/irc/dcc/dcc-rec.h:15: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 addrstr[MAX_IP_LEN]; /* in readable form */ data/irssi-1.2.2/src/irc/dcc/dcc-resume.c:49:36: [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). (is_numeric(params[pos], '\0') && atol(params[pos]) < 65536 && \ data/irssi-1.2.2/src/irc/dcc/dcc-resume.c:101:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). port = atoi(params[fileparams]); data/irssi-1.2.2/src/irc/dcc/dcc-resume.c:103:64: [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). *pasv_id = ((port == 0) && (paramcount == fileparams + 3)) ? atoi(params[fileparams+2]) : -1; data/irssi-1.2.2/src/irc/dcc/dcc-resume.c:193:17: [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). dcc->fhandle = open(dcc->file, O_WRONLY); data/irssi-1.2.2/src/irc/dcc/dcc-send.c:262: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 buffer[512]; data/irssi-1.2.2/src/irc/dcc/dcc-send.c:335: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(&dcc->addr, &addr, sizeof(IPADDR)); data/irssi-1.2.2/src/irc/dcc/dcc-send.c:375:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char host[MAX_IP_LEN]; data/irssi-1.2.2/src/irc/dcc/dcc-send.c:387: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). hfile = open(str, O_RDONLY); data/irssi-1.2.2/src/irc/dcc/dcc-server.c:183: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(&newdcc->addr, &ip, sizeof(IPADDR)); data/irssi-1.2.2/src/irc/dcc/dcc-server.c:210:4: [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(&dccchat->addr, &dcc->addr, sizeof(IPADDR)); data/irssi-1.2.2/src/irc/dcc/dcc-server.c:271:4: [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(&dccget->addr, &dcc->addr, sizeof(dcc->addr)); data/irssi-1.2.2/src/irc/dcc/dcc-server.c:301:9: [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(port_str); data/irssi-1.2.2/src/irc/dcc/dcc-server.c:341: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). &own_ip, atoi(port)); data/irssi-1.2.2/src/irc/dcc/dcc-server.c:349:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). dcc->port = atoi(port); data/irssi-1.2.2/src/irc/dcc/dcc-server.c:377:9: [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(port_str); data/irssi-1.2.2/src/irc/dcc/dcc.c:190:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&ip->ip, &addr, sizeof(addr)); data/irssi-1.2.2/src/irc/dcc/dcc.c:221:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). first = atoi(dcc_port); data/irssi-1.2.2/src/irc/dcc/dcc.c:236:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). last = atoi(dcc_port+1); data/irssi-1.2.2/src/irc/proxy/listen.c:433:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char host[MAX_IP_LEN]; data/irssi-1.2.2/src/irc/proxy/listen.c:782:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). portnum = atoi(port_or_path); data/irssi-1.2.2/src/lib-config/get.c:204: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). return atoi(str); data/irssi-1.2.2/src/lib-config/get.c:235:9: [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). return atoi(str); data/irssi-1.2.2/src/lib-config/parse.c:277:7: [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(rec->fname, O_RDONLY); data/irssi-1.2.2/src/lib-config/parse.c:307:7: [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). f = open(fname, O_RDONLY | (create_mode != -1 ? O_CREAT : 0), create_mode); data/irssi-1.2.2/src/lib-config/set.c:133:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[MAX_INT_STRLEN]; data/irssi-1.2.2/src/lib-config/set.c:159:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[MAX_INT_STRLEN]; data/irssi-1.2.2/src/lib-config/write.c:320:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char resolved_path[PATH_MAX] = { 0 }; data/irssi-1.2.2/src/otr/otr-fe.c:274:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ownfp[OTRL_PRIVKEY_FPRINT_HUMAN_LEN]; data/irssi-1.2.2/src/otr/otr-ops.c:72:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ownfp[OTRL_PRIVKEY_FPRINT_HUMAN_LEN]; data/irssi-1.2.2/src/otr/otr-ops.c:73:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char peerfp[OTRL_PRIVKEY_FPRINT_HUMAN_LEN]; data/irssi-1.2.2/src/otr/otr.c:315:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char human_fp[OTRL_PRIVKEY_FPRINT_HUMAN_LEN], *trust; data/irssi-1.2.2/src/otr/otr.c:447:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char peerfp[OTRL_PRIVKEY_FPRINT_HUMAN_LEN]; data/irssi-1.2.2/src/otr/otr.c:627:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(opc->full_msg + opc->msg_len, msg, msg_len); data/irssi-1.2.2/src/otr/otr.c:669:4: [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(opc->full_msg, msg, msg_len); data/irssi-1.2.2/src/otr/otr.c:825:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str_fp[OTRL_PRIVKEY_FPRINT_HUMAN_LEN]; data/irssi-1.2.2/src/otr/otr.c:858:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fp[OTRL_PRIVKEY_FPRINT_HUMAN_LEN]; data/irssi-1.2.2/src/otr/otr.c:907:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fp[OTRL_PRIVKEY_FPRINT_HUMAN_LEN]; data/irssi-1.2.2/src/perl/perl-common.c:580:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *name, stash[100], code[100], *pcode; data/irssi-1.2.2/src/perl/perl-signals.c:42:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *args[7]; data/irssi-1.2.2/src/core/capsicum.c:157:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(path) > irclogs_path_len + 1 && data/irssi-1.2.2/src/core/capsicum.c:191:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(path) <= irclogs_path_len + 1 || data/irssi-1.2.2/src/core/capsicum.c:422: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). irclogs_path_len = strlen(irclogs_path); data/irssi-1.2.2/src/core/commands.c:109: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(command); data/irssi-1.2.2/src/core/commands.c:264:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(cmd); data/irssi-1.2.2/src/core/commands.c:314: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). args = strchr(subcmd+8 + strlen(cmd)+1, ' '); data/irssi-1.2.2/src/core/commands.c:504: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). g_memmove(*data, (*data)+1, strlen(*data)); data/irssi-1.2.2/src/core/commands.c:528:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(option); data/irssi-1.2.2/src/core/core.c:205:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(irssi_dir); data/irssi-1.2.2/src/core/ignore.c:177: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). len = rec->mask == NULL ? 0 : strlen(rec->mask); data/irssi-1.2.2/src/core/ignore.c:182: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). len = rec->pattern == NULL ? 0 : strlen(rec->pattern); data/irssi-1.2.2/src/core/iregex-gregex.c:21: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). str = g_string_sized_new(strlen(text) + 12); data/irssi-1.2.2/src/core/levels.c:67:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(level); data/irssi-1.2.2/src/core/levels.c:74:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((int)strlen(levels[n]) == len) { data/irssi-1.2.2/src/core/log.c:75: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). write_buffer(handle, str, strlen(str)); data/irssi-1.2.2/src/core/log.c:76: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). if (text != NULL) write_buffer(handle, text, strlen(text)); data/irssi-1.2.2/src/core/log.c:249: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). write_buffer(log->handle, str, strlen(str)); data/irssi-1.2.2/src/core/misc.c:138:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (ptr == NULL) ptr = list+strlen(list); data/irssi-1.2.2/src/core/misc.c:319: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). keylen = strlen(key); data/irssi-1.2.2/src/core/misc.c:320:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). datalen = strlen(data); data/irssi-1.2.2/src/core/misc.c:353: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). keylen = strlen(key); data/irssi-1.2.2/src/core/misc.c:354:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). datalen = strlen(data); data/irssi-1.2.2/src/core/misc.c:452:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). data += strlen(data); data/irssi-1.2.2/src/core/misc.c:465: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). data += strlen(mask); data/irssi-1.2.2/src/core/misc.c:466: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). mask += strlen(mask)-1; data/irssi-1.2.2/src/core/misc.c:549: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). ret = p = g_malloc(strlen(str)*2+1); data/irssi-1.2.2/src/core/misc.c:577:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(str); data/irssi-1.2.2/src/core/misc.c:749: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). p = ret = g_malloc(strlen(str)*2+1); data/irssi-1.2.2/src/core/misc.c:765: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). p = ret = g_malloc(strlen(str)*2+1); data/irssi-1.2.2/src/core/misc.c:1044: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). offset = MIN(len, strlen(str)); data/irssi-1.2.2/src/core/misc.c:1045: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 (onspace && strlen(str) > len) { data/irssi-1.2.2/src/core/modules-load.c:55: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). *end = *start + (ptr == NULL ? strlen(name) : data/irssi-1.2.2/src/core/modules-load.c:69:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(*prefixes); data/irssi-1.2.2/src/core/modules-load.c:80: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(name); data/irssi-1.2.2/src/core/modules-load.c:92: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). namelen = strlen(name); data/irssi-1.2.2/src/core/modules-load.c:93:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). rootlen = strlen(root); data/irssi-1.2.2/src/core/net-nonblock.c:79: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). rec.errlen = errorstr == NULL ? 0 : strlen(errorstr)+1; data/irssi-1.2.2/src/core/net-nonblock.c:87:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(rec.host4) + 1; data/irssi-1.2.2/src/core/net-nonblock.c:94:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(rec.host6) + 1; data/irssi-1.2.2/src/core/network-openssl.c:98: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). return strlen(str) != len; data/irssi-1.2.2/src/core/network-openssl.c:434:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). length = strlen(pass); data/irssi-1.2.2/src/core/network.c:234:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(sa.sun_path, path, sizeof(sa.sun_path)-1); data/irssi-1.2.2/src/core/nicklist.c:509:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(nick); data/irssi-1.2.2/src/core/rawlog.c:71: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). write_buffer(rawlog->handle, str, strlen(str)); data/irssi-1.2.2/src/core/rawlog.c:109: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). ret = write(f, tmp->data, strlen((char *) tmp->data)); data/irssi-1.2.2/src/core/recode.c:105:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(str); data/irssi-1.2.2/src/core/recode.c:163:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(str); data/irssi-1.2.2/src/core/recode.c:196: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). gsize inbytesleft = strlen(inbuf); data/irssi-1.2.2/src/core/servers.c:93: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). if (end == NULL) end = address + strlen(address); data/irssi-1.2.2/src/core/servers.c:114: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). strncmp(conn->tag, tag, strlen(tag)) == 0) { data/irssi-1.2.2/src/core/settings.c:676:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((ret = read(f, buf, sizeof(buf))) > 0) { data/irssi-1.2.2/src/core/special-vars.c:266:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(value); data/irssi-1.2.2/src/core/utf8.c:72:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return strlen(str); data/irssi-1.2.2/src/fe-common/core/chat-completion.c:229:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). msgnick[strlen(msgnick)-1] = '\0'; data/irssi-1.2.2/src/fe-common/core/chat-completion.c:287:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(nick); data/irssi-1.2.2/src/fe-common/core/chat-completion.c:372:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(nick); data/irssi-1.2.2/src/fe-common/core/chat-completion.c:409:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(nick); data/irssi-1.2.2/src/fe-common/core/chat-completion.c:416: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). tmplen = strlen(rec->nick); data/irssi-1.2.2/src/fe-common/core/chat-completion.c:474:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(nick); data/irssi-1.2.2/src/fe-common/core/chat-completion.c:528:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(word); data/irssi-1.2.2/src/fe-common/core/chat-completion.c:554:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(word); data/irssi-1.2.2/src/fe-common/core/chat-completion.c:590:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(word); data/irssi-1.2.2/src/fe-common/core/chat-completion.c:743: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). g_ascii_strncasecmp(word, query->name, strlen(word)) == 0) { data/irssi-1.2.2/src/fe-common/core/chat-completion.c:842:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(word); data/irssi-1.2.2/src/fe-common/core/chat-completion.c:863:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(word); data/irssi-1.2.2/src/fe-common/core/chat-completion.c:885:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(word); data/irssi-1.2.2/src/fe-common/core/chat-completion.c:1011:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(word); data/irssi-1.2.2/src/fe-common/core/chat-completion.c:1080: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). ret = ptr = g_malloc(strlen(line)+1); data/irssi-1.2.2/src/fe-common/core/completion.c:103: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). g_string_erase(result, startpos, strlen(word)); data/irssi-1.2.2/src/fe-common/core/completion.c:111:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). *pos = startpos+strlen(replace); data/irssi-1.2.2/src/fe-common/core/completion.c:167: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). wordlen = strlen(word); data/irssi-1.2.2/src/fe-common/core/completion.c:208:5: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(linestart)+1; data/irssi-1.2.2/src/fe-common/core/completion.c:274: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 = startpos + strlen(data); data/irssi-1.2.2/src/fe-common/core/completion.c:288:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). wordlen = strlen(data); data/irssi-1.2.2/src/fe-common/core/completion.c:375:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(path); data/irssi-1.2.2/src/fe-common/core/completion.c:383:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(basename); data/irssi-1.2.2/src/fe-common/core/completion.c:422:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(key); data/irssi-1.2.2/src/fe-common/core/completion.c:448:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(alias); data/irssi-1.2.2/src/fe-common/core/completion.c:480:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(cmd); data/irssi-1.2.2/src/fe-common/core/completion.c:511: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). skip = spacepos == NULL ? strlen(cmd)+1 : data/irssi-1.2.2/src/fe-common/core/completion.c:514:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(cmd); data/irssi-1.2.2/src/fe-common/core/completion.c:519:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((int)strlen(rec->cmd) < len) data/irssi-1.2.2/src/fe-common/core/completion.c:545:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(option); data/irssi-1.2.2/src/fe-common/core/completion.c:885:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(key); data/irssi-1.2.2/src/fe-common/core/fe-channels.c:369: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). item_extra = strlen(stripped); data/irssi-1.2.2/src/fe-common/core/fe-channels.c:383: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). max_width -= strlen(stripped); data/irssi-1.2.2/src/fe-common/core/fe-channels.c:395: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). max_width -= strlen(stripped); data/irssi-1.2.2/src/fe-common/core/fe-channels.c:456: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 (prefix_format != NULL && str->len > strlen(prefix_format)) { data/irssi-1.2.2/src/fe-common/core/fe-common-core.c:490: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_tag_len = dest->server_tag != NULL ? strlen(dest->server_tag) : 0; data/irssi-1.2.2/src/fe-common/core/fe-core-commands.c:307: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(command); data/irssi-1.2.2/src/fe-common/core/fe-exec.c:405: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). net_sendbuffer_send(rec->out, args, strlen(args)); data/irssi-1.2.2/src/fe-common/core/fe-exec.c:647: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). net_sendbuffer_send(item->process->out, data, strlen(data)); data/irssi-1.2.2/src/fe-common/core/fe-help.c:50:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return strlen(((COMMAND_REC *) data)->cmd); data/irssi-1.2.2/src/fe-common/core/fe-help.c:70: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). max_width -= strlen(stripped); data/irssi-1.2.2/src/fe-common/core/fe-help.c:99: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). memcpy(linebuf, rec->cmd, strlen(rec->cmd)); data/irssi-1.2.2/src/fe-common/core/fe-help.c:178: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). items = 0; findlen = strlen(data); found = FALSE; data/irssi-1.2.2/src/fe-common/core/fe-help.c:205:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((int)strlen(rec->cmd) >= findlen && data/irssi-1.2.2/src/fe-common/core/fe-help.c:226:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (*data != '\0' && data[strlen(data)-1] != ' ' && data/irssi-1.2.2/src/fe-common/core/fe-log.c:406: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). p = str = g_malloc(strlen(target)*2+1); data/irssi-1.2.2/src/fe-common/core/fe-messages.c:610: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). p = strchr(nickhost+strlen(nick->nick), '.'); data/irssi-1.2.2/src/fe-common/core/fe-settings.c:254: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). aliaslen = strlen(alias); data/irssi-1.2.2/src/fe-common/core/formats.c:588: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). int len = strlen(ret); data/irssi-1.2.2/src/fe-common/core/formats.c:590:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). diff = strlen(ret)-len; data/irssi-1.2.2/src/fe-common/core/hilight-text.c:223: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). *match_end = *match_beg + strlen(rec->text); data/irssi-1.2.2/src/fe-common/core/hilight-text.c:686:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(rec->text); data/irssi-1.2.2/src/fe-common/core/keyboard.c:766: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). len = searchkey == NULL ? 0 : strlen(searchkey); data/irssi-1.2.2/src/fe-common/core/keyboard.c:855: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). list = NULL; len = strlen(info); data/irssi-1.2.2/src/fe-common/core/themes.c:249:6: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(t, *format, 7); data/irssi-1.2.2/src/fe-common/core/themes.c:261:6: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(t, *format, 3); data/irssi-1.2.2/src/fe-common/core/themes.c:370:2: [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(reset.m, "n"); data/irssi-1.2.2/src/fe-common/core/themes.c:468:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(data); data/irssi-1.2.2/src/fe-common/core/themes.c:658:2: [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(reset.m, "n"); data/irssi-1.2.2/src/fe-common/core/themes.c:1302:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(key); data/irssi-1.2.2/src/fe-common/core/themes.c:1389:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(current_theme->name); data/irssi-1.2.2/src/fe-common/irc/fe-events-numeric.c:603: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). g_memmove(ptr+1, ptr+2, strlen(ptr+1)); data/irssi-1.2.2/src/fe-common/irc/fe-events.c:185:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (reason == NULL || reason[strlen(reason)-1] != ')') { data/irssi-1.2.2/src/fe-common/irc/fe-events.c:193:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). reason[strlen(reason)-1] = '\0'; data/irssi-1.2.2/src/fe-common/irc/fe-events.c:305:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(tmp); data/irssi-1.2.2/src/fe-fuzz/fe-common/core/theme-load.c:57: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). fwrite(copy, strlen(copy), 1, fp); data/irssi-1.2.2/src/fe-text/gui-entry.c:291: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). str = g_string_sized_new(strlen(p)); data/irssi-1.2.2/src/fe-text/gui-entry.c:610:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(str); data/irssi-1.2.2/src/fe-text/gui-entry.c:1479:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(extent); data/irssi-1.2.2/src/fe-text/gui-entry.c:1480: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). if (len >= strlen(POS_FLAG) && g_strcmp0(&extent[len-strlen(POS_FLAG)], POS_FLAG) == 0) { data/irssi-1.2.2/src/fe-text/gui-entry.c:1480: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). if (len >= strlen(POS_FLAG) && g_strcmp0(&extent[len-strlen(POS_FLAG)], POS_FLAG) == 0) { data/irssi-1.2.2/src/fe-text/gui-entry.c:1483: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). extent = g_strndup(tmp, len - strlen(POS_FLAG)); data/irssi-1.2.2/src/fe-text/gui-entry.c:1488:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(extent) > 0) { data/irssi-1.2.2/src/fe-text/gui-printtext.c:316: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), &lineinfo); data/irssi-1.2.2/src/fe-text/statusbar.c:687:2: [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(reset.m, "n"); data/irssi-1.2.2/src/fe-text/term-terminfo.c:546:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). raw_len = strlen(str); data/irssi-1.2.2/src/fe-text/term-terminfo.c:734:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fileno(current_term->in), data/irssi-1.2.2/src/irc/core/bans.c:78: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). g_memmove(user+1, user+(size-9), strlen(user+(size-9))+1); data/irssi-1.2.2/src/irc/core/channel-events.c:41: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). if (chanrec == NULL && channel[0] == '!' && strlen(channel) > 6) { data/irssi-1.2.2/src/irc/core/channel-events.c:202:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(channel); data/irssi-1.2.2/src/irc/core/channel-events.c:236: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 (*channel != '!' || strlen(channel) < 7) data/irssi-1.2.2/src/irc/core/channel-events.c:351:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(channel) > 6) { data/irssi-1.2.2/src/irc/core/ctcp.c:128:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(data) > 100) { data/irssi-1.2.2/src/irc/core/ctcp.c:283:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(msg); data/irssi-1.2.2/src/irc/core/irc-channels.c:137:59: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). cmdlen += server_ischannel(SERVER(server), *tmpstr) ? strlen(*tmpstr) : data/irssi-1.2.2/src/irc/core/irc-channels.c:138:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(*tmpstr)+1; data/irssi-1.2.2/src/irc/core/irc-channels.c:140: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). cmdlen += strlen(*tmpkey); data/irssi-1.2.2/src/irc/core/irc-masks.c:35:24: [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. if (ptr[1] != '\0') strcpy(ptr+1, "*"); data/irssi-1.2.2/src/irc/core/irc-masks.c:45:4: [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(ptr+1, "*"); data/irssi-1.2.2/src/irc/core/irc-nicklist.c:355: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). else if (strlen(server->nick) < 9) { data/irssi-1.2.2/src/irc/core/irc-servers.c:118:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len -= strlen(recoded_start) + strlen(recoded_end); data/irssi-1.2.2/src/irc/core/irc-servers.c:118: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). len -= strlen(recoded_start) + strlen(recoded_end); data/irssi-1.2.2/src/irc/core/irc-servers.c:149: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(recoded_l) <= strlen(recoded_end)) { data/irssi-1.2.2/src/irc/core/irc-servers.c:149:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(recoded_l) <= strlen(recoded_end)) { data/irssi-1.2.2/src/irc/core/irc-servers.c:211:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). 510 - strlen(":! PRIVMSG :") - data/irssi-1.2.2/src/irc/core/irc-servers.c:212:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(ircserver->nick) - MAX_USERHOST_LEN - data/irssi-1.2.2/src/irc/core/irc-servers.c:213:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(target)); data/irssi-1.2.2/src/irc/core/irc-servers.c:363: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(target); data/irssi-1.2.2/src/irc/core/irc-servers.c:501:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). 510 - strlen(":! PRIVMSG :\001ACTION \001") - data/irssi-1.2.2/src/irc/core/irc-servers.c:502:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(server->nick) - MAX_USERHOST_LEN - data/irssi-1.2.2/src/irc/core/irc-servers.c:503:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(target)); data/irssi-1.2.2/src/irc/core/irc-servers.c:578:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(cmd); data/irssi-1.2.2/src/irc/core/irc-servers.c:897:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). newhost[strlen(newhost) - 1] != '-') { data/irssi-1.2.2/src/irc/core/irc-session.c:57:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(cmd)) == -1) data/irssi-1.2.2/src/irc/core/irc.c:60:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(cmd); data/irssi-1.2.2/src/irc/core/irc.c:68:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(str, cmd, 510); data/irssi-1.2.2/src/irc/core/irc.c:245:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). *data += strlen(*data); data/irssi-1.2.2/src/irc/core/irc.c:299: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). memmove(s, s+1, strlen(s+1)+1); data/irssi-1.2.2/src/irc/core/modes.c:110: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). memmove(todel, todel+1, strlen(todel)); data/irssi-1.2.2/src/irc/core/netsplit.c:289:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p = host2+strlen(host2); data/irssi-1.2.2/src/irc/core/netsplit.c:295:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(p) < 2) return FALSE; data/irssi-1.2.2/src/irc/core/sasl.c:143: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). fragment_len = strlen(fragment); data/irssi-1.2.2/src/irc/core/sasl.c:209:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). enc_len = strlen(enc); data/irssi-1.2.2/src/irc/dcc/dcc-chat.c:145: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). net_sendbuffer_send(dcc->sendbuf, data, strlen(data)); data/irssi-1.2.2/src/irc/dcc/dcc-chat.c:735:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (event[strlen(event)-1] == 1) event[strlen(event)-1] = '\0'; data/irssi-1.2.2/src/irc/dcc/dcc-chat.c:735: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). if (event[strlen(event)-1] == 1) event[strlen(event)-1] = '\0'; data/irssi-1.2.2/src/irc/dcc/dcc-get.c:234:29: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). old_umask = umask(0077); data/irssi-1.2.2/src/irc/dcc/dcc-get.c:236:3: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(old_umask); data/irssi-1.2.2/src/irc/dcc/dcc-get.c:295: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). net_transmit(dcc->handle, str, strlen(str)); data/irssi-1.2.2/src/irc/dcc/dcc-get.c:395:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(params[pos]) == 0) data/irssi-1.2.2/src/irc/dcc/dcc-get.c:397:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (params[pos][strlen(params[pos])-1] == '"' && data/irssi-1.2.2/src/irc/dcc/dcc-get.c:476: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(fname); data/irssi-1.2.2/src/irc/dcc/dcc-resume.c:65:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(params[pos]) == 0) data/irssi-1.2.2/src/irc/dcc/dcc-resume.c:67:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (params[pos][strlen(params[pos])-1] == '"' && data/irssi-1.2.2/src/irc/dcc/dcc-send.c:265:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(dcc->fhandle, buffer, sizeof(buffer)); data/irssi-1.2.2/src/irc/dcc/dcc-server.c:221: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). net_sendbuffer_send(dccchat->sendbuf, str, strlen(str)); data/irssi-1.2.2/src/irc/dcc/dcc-server.c:260:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(fname); data/irssi-1.2.2/src/irc/notifylist/notify-ison.c:132:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(nick); data/irssi-1.2.2/src/irc/notifylist/notify-ison.c:175: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). for (p = str+strlen(nicks)+1; *p != '\0'; p++) data/irssi-1.2.2/src/irc/notifylist/notifylist.c:111:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(mask); data/irssi-1.2.2/src/irc/proxy/dump.c:44: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). net_sendbuffer_send(client->handle, str, strlen(str)); data/irssi-1.2.2/src/irc/proxy/dump.c:63:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(str); data/irssi-1.2.2/src/irc/proxy/listen.c:46: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). return strspn(s, "0123456789") == strlen(s); data/irssi-1.2.2/src/irc/proxy/listen.c:65:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(sa.sun_path, path, sizeof sa.sun_path - 1); data/irssi-1.2.2/src/irc/proxy/listen.c:186: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). tag_end = args + strlen(args); data/irssi-1.2.2/src/irc/proxy/listen.c:362: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). if (*msg != '\001' || msg[strlen(msg)-1] != '\001') { data/irssi-1.2.2/src/irc/proxy/listen.c:368:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). msg[strlen(msg)-1] = '\0'; data/irssi-1.2.2/src/irc/proxy/listen.c:375:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). msg[strlen(msg)-1] = '\0'; data/irssi-1.2.2/src/lib-config/parse.c:294: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). g_scanner_input_text(rec->scanner, data, strlen(data)); data/irssi-1.2.2/src/lib-config/write.c:61: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 (g_io_channel_write_chars(rec->handle, strpos, strlen(strpos), data/irssi-1.2.2/src/lib-config/write.c:214: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). len = 5 + strlen(node->key) + strlen(node->value); data/irssi-1.2.2/src/lib-config/write.c:214: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). len = 5 + strlen(node->key) + strlen(node->value); data/irssi-1.2.2/src/lib-config/write.c:218: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). len = 2 + strlen(node->value); data/irssi-1.2.2/src/lib-config/write.c:224: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 (node->key != NULL) len += strlen(node->key); data/irssi-1.2.2/src/otr/otr.c:132: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). if (g_ascii_strncasecmp(server->tag, network, strlen(server->tag))) data/irssi-1.2.2/src/otr/otr.c:559: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). secret_len = strlen(secret); data/irssi-1.2.2/src/otr/otr.c:606:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). msg_len = strlen(msg); data/irssi-1.2.2/src/otr/otr.c:739:71: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). IRSSI_OTR_DEBUG("Ignoring message of length %d from %s to %s.\n%s", strlen(msg), from, server->tag, msg); data/irssi-1.2.2/src/perl/perl-common.h:6: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). (newSVpv((a) == NULL ? "" : (a), (a) == NULL ? 0 : strlen(a))) data/irssi-1.2.2/src/perl/perl-core.c:47:3: [1] (buffer) strlen: Does not handle 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(file) > 3 && g_strcmp0(file+strlen(file)-3, ".pl") == 0) data/irssi-1.2.2/src/perl/perl-core.c:47: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(file) > 3 && g_strcmp0(file+strlen(file)-3, ".pl") == 0) data/irssi-1.2.2/src/perl/perl-fe.c:184:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(rootmodule); data/irssi-1.2.2/src/perl/perl-fe.c:230: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(name); data/irssi-1.2.2/src/perl/perl-signals.c:67:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strncmp(rec->signal, signame, strlen(rec->signal)) == 0) data/irssi-1.2.2/src/perl/perl-signals.c:537: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 (rec->signal[strlen(rec->signal)-1] == ' ') { ANALYSIS SUMMARY: Hits = 497 Lines analyzed = 85414 in approximately 2.13 seconds (40071 lines/second) Physical Source Lines of Code (SLOC) = 61503 Hits@level = [0] 19 [1] 208 [2] 260 [3] 21 [4] 8 [5] 0 Hits@level+ = [0+] 516 [1+] 497 [2+] 289 [3+] 29 [4+] 8 [5+] 0 Hits/KSLOC@level+ = [0+] 8.38983 [1+] 8.08091 [2+] 4.69896 [3+] 0.471522 [4+] 0.130075 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.