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/tilde-1.1.2/src/log.cc
Examining data/tilde-1.1.2/src/optionMacros.h
Examining data/tilde-1.1.2/src/fileeditwindow.cc
Examining data/tilde-1.1.2/src/option.h
Examining data/tilde-1.1.2/src/util.h
Examining data/tilde-1.1.2/src/fileautocompleter.h
Examining data/tilde-1.1.2/src/filebuffer.cc
Examining data/tilde-1.1.2/src/filewrapper.cc
Examining data/tilde-1.1.2/src/main.h
Examining data/tilde-1.1.2/src/openfiles.cc
Examining data/tilde-1.1.2/src/util.cc
Examining data/tilde-1.1.2/src/attributemap.h
Examining data/tilde-1.1.2/src/filebuffer.h
Examining data/tilde-1.1.2/src/filestate.h
Examining data/tilde-1.1.2/src/string_util.h
Examining data/tilde-1.1.2/src/log.h
Examining data/tilde-1.1.2/src/attributemap.cc
Examining data/tilde-1.1.2/src/fileautocompleter.cc
Examining data/tilde-1.1.2/src/main.cc
Examining data/tilde-1.1.2/src/filestate.cc
Examining data/tilde-1.1.2/src/dialogs/openrecentdialog.h
Examining data/tilde-1.1.2/src/dialogs/optionsdialog.cc
Examining data/tilde-1.1.2/src/dialogs/optionsdialog.h
Examining data/tilde-1.1.2/src/dialogs/encodingdialog.h
Examining data/tilde-1.1.2/src/dialogs/characterdetailsdialog.h
Examining data/tilde-1.1.2/src/dialogs/characterdetailsdialog.cc
Examining data/tilde-1.1.2/src/dialogs/highlightdialog.h
Examining data/tilde-1.1.2/src/dialogs/attributesdialog.h
Examining data/tilde-1.1.2/src/dialogs/attributesdialog.cc
Examining data/tilde-1.1.2/src/dialogs/selectbufferdialog.cc
Examining data/tilde-1.1.2/src/dialogs/selectbufferdialog.h
Examining data/tilde-1.1.2/src/dialogs/openrecentdialog.cc
Examining data/tilde-1.1.2/src/dialogs/highlightdialog.cc
Examining data/tilde-1.1.2/src/dialogs/encodingdialog.cc
Examining data/tilde-1.1.2/src/fileline.cc
Examining data/tilde-1.1.2/src/fileline.h
Examining data/tilde-1.1.2/src/option_access.h
Examining data/tilde-1.1.2/src/option.cc
Examining data/tilde-1.1.2/src/copy_file.h
Examining data/tilde-1.1.2/src/fileeditwindow.h
Examining data/tilde-1.1.2/src/filewrapper.h
Examining data/tilde-1.1.2/src/openfiles.h
Examining data/tilde-1.1.2/src/copy_file.cc
Examining data/tilde-1.1.2/src/option_access.cc
Examining data/tilde-1.1.2/src/action.h
Examining data/tilde-1.1.2/src/static_assert.h

FINAL RESULTS:

data/tilde-1.1.2/src/main.cc:724:26:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
  if ((readlink_result = readlink(name.c_str(), pid_str, sizeof(pid_str) - 1)) > 0) {
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:104:34:  [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.
  for (const attribute_access_t &access : attribute_access) {
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:105:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access.widget_group != group) {
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:108:80:  [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.
    smart_label_t *attribute_label = widget_group->emplace_back<smart_label_t>(access.desc);
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:114:45:  [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.
    change_button->connect_activate([this, &access] { change_button_activated(&access); });
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:114:80:  [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.
    change_button->connect_activate([this, &access] { change_button_activated(&access); });
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:117:12:  [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.
    this->*access.dialog_line = widget_group->emplace_back<attribute_test_line_t>();
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:118:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    (this->*access.dialog_line)
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:120:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    (this->*access.dialog_line)->set_position(0, -2);
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:218:77:  [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.
void attributes_dialog_t::change_button_activated(const attribute_access_t *access) {
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:223:19:  [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.
  change_access = access;
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:247:34:  [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.
  for (const attribute_access_t &access : attribute_access) {
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:248:88:  [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.
    optional<t3_attr_t> term_options_t::*term_options_member = get_term_options_member(access.name);
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:250:14:  [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.
      this->*access.dialog_member = source_options->highlights.lookup_attributes(access.name);
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:250:82:  [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.
      this->*access.dialog_member = source_options->highlights.lookup_attributes(access.name);
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:251:20:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      if (!(this->*access.dialog_member).is_valid()) {
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:252:16:  [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.
        this->*access.dialog_member = defaults->highlights.lookup_attributes(access.name);
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:252:78:  [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.
        this->*access.dialog_member = defaults->highlights.lookup_attributes(access.name);
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:255:14:  [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.
      this->*access.dialog_member = source_options->*term_options_member;
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:256:20:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      if (!(this->*access.dialog_member).is_valid()) {
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:257:16:  [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.
        this->*access.dialog_member = defaults->*term_options_member;
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:276:34:  [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.
  for (const attribute_access_t &access : attribute_access) {
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:277:88:  [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.
    optional<t3_attr_t> term_options_t::*term_options_member = get_term_options_member(access.name);
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:279:19:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      if ((this->*access.dialog_member).is_valid()) {
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:280:49:  [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.
        term_options->highlights.insert_mapping(access.name, (this->*access.dialog_member).value());
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:280:70:  [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.
        term_options->highlights.insert_mapping(access.name, (this->*access.dialog_member).value());
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:282:48:  [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.
        term_options->highlights.erase_mapping(access.name);
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:285:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
          access.name,
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:286:61:  [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.
          term_specific_option.highlights.lookup_attributes(access.name)
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:287:82:  [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.
              .value_or(default_option.term_options.highlights.lookup_attributes(access.name)
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:288:56:  [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.
                            .value_or(get_default_attr(access.attribute))));
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:292:51:  [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.
      term_options->*term_options_member = this->*access.dialog_member;
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:307:34:  [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.
  for (const attribute_access_t &access : attribute_access) {
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:308:88:  [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.
    optional<t3_attr_t> term_options_t::*term_options_member = get_term_options_member(access.name);
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:310:81:  [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.
        term_options_member == nullptr ? defaults->highlights.lookup_attributes(access.name)
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:312:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    (this->*access.dialog_line)
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:314:21:  [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.
            (this->*access.dialog_member)
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:315:71:  [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.
                .value_or(default_attribute.value_or(get_default_attr(access.attribute, color))),
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:316:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
            access.text_background ? text_attr : 0));
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:364:34:  [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.
  for (const attribute_access_t &access : attribute_access) {
data/tilde-1.1.2/src/dialogs/attributesdialog.cc:365:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    (this->*access.dialog_member).reset();
data/tilde-1.1.2/src/log.cc:39:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(log_file, fmt, args);
data/tilde-1.1.2/src/log.h:23:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    __attribute__((format(printf, 1, 2)))
data/tilde-1.1.2/src/option_access.cc:104:33:  [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.
    for (const option_access_t &access : option_access) {
data/tilde-1.1.2/src/option_access.cc:105:18:  [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.
      (*mapping)[access.name] = &access;
data/tilde-1.1.2/src/option_access.cc:105:34:  [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.
      (*mapping)[access.name] = &access;
data/tilde-1.1.2/src/option_access.cc:165:31:  [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.
  for (const option_access_t &access : option_access) {
data/tilde-1.1.2/src/option_access.cc:167:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        access.type == option_access_t::TERM_T3_ATTR_T ? attributes : config, access.name.c_str());
data/tilde-1.1.2/src/option_access.cc:167:79:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        access.type == option_access_t::TERM_T3_ATTR_T ? attributes : config, access.name.c_str());
data/tilde-1.1.2/src/option_access.cc:168:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    switch (access.type) {
data/tilde-1.1.2/src/option_access.cc:175:26:  [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.
          term_options->*access.bool_term_opt = t3_config_get_bool(tmp);
data/tilde-1.1.2/src/option_access.cc:180:26:  [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.
          term_options->*access.int_term_opt = t3_config_get_int(tmp);
data/tilde-1.1.2/src/option_access.cc:184:24:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        term_options->*access.t3_attr_t_term_opt = convert_config_attribute(tmp);
data/tilde-1.1.2/src/option_access.cc:199:31:  [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.
  for (const option_access_t &access : option_access) {
data/tilde-1.1.2/src/option_access.cc:200:46:  [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.
    t3_config_t *tmp = t3_config_get(config, access.name.c_str());
data/tilde-1.1.2/src/option_access.cc:202:15:  [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.
      switch (access.type) {
data/tilde-1.1.2/src/option_access.cc:204:27:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
          default_option.*access.bool_option = t3_config_get_bool(tmp);
data/tilde-1.1.2/src/option_access.cc:207:27:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
          default_option.*access.int_option = t3_config_get_int(tmp);
data/tilde-1.1.2/src/option_access.cc:210:27:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
          default_option.*access.size_t_option = t3_config_get_int64(tmp);
data/tilde-1.1.2/src/option_access.cc:305:31:  [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.
  for (const option_access_t &access : option_access) {
data/tilde-1.1.2/src/option_access.cc:306:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    switch (access.type) {
data/tilde-1.1.2/src/option_access.cc:312:28:  [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.
        set_option(config, access.name, term_options, access.bool_term_opt);
data/tilde-1.1.2/src/option_access.cc:312:55:  [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.
        set_option(config, access.name, term_options, access.bool_term_opt);
data/tilde-1.1.2/src/option_access.cc:315:28:  [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.
        set_option(config, access.name, term_options, access.int_term_opt);
data/tilde-1.1.2/src/option_access.cc:315:55:  [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.
        set_option(config, access.name, term_options, access.int_term_opt);
data/tilde-1.1.2/src/option_access.cc:318:52:  [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.
        set_config_attribute(config, "attributes", access.name.c_str(),
data/tilde-1.1.2/src/option_access.cc:319:44:  [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.
                             term_options.*access.t3_attr_t_term_opt);
data/tilde-1.1.2/src/option_access.cc:338:31:  [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.
  for (const option_access_t &access : option_access) {
data/tilde-1.1.2/src/option_access.cc:339:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    switch (access.type) {
data/tilde-1.1.2/src/option_access.cc:341:28:  [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.
        set_option(config, access.name, default_option, access.bool_option);
data/tilde-1.1.2/src/option_access.cc:341:57:  [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.
        set_option(config, access.name, default_option, access.bool_option);
data/tilde-1.1.2/src/option_access.cc:344:28:  [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.
        set_option(config, access.name, default_option, access.int_option);
data/tilde-1.1.2/src/option_access.cc:344:57:  [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.
        set_option(config, access.name, default_option, access.int_option);
data/tilde-1.1.2/src/option_access.cc:347:28:  [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.
        set_option(config, access.name, default_option, access.size_t_option);
data/tilde-1.1.2/src/option_access.cc:347:57:  [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.
        set_option(config, access.name, default_option, access.size_t_option);
data/tilde-1.1.2/src/option_access.cc:360:31:  [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.
  for (const option_access_t &access : option_access) {
data/tilde-1.1.2/src/option_access.cc:361:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    switch (access.type) {
data/tilde-1.1.2/src/option_access.cc:363:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access.bool_runtime_opt != nullptr) {
data/tilde-1.1.2/src/option_access.cc:364:19:  [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.
          option.*access.bool_runtime_opt =
data/tilde-1.1.2/src/option_access.cc:365:32:  [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.
              (default_option.*access.bool_option).value_or(access.bool_default);
data/tilde-1.1.2/src/option_access.cc:365:61:  [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.
              (default_option.*access.bool_option).value_or(access.bool_default);
data/tilde-1.1.2/src/option_access.cc:369:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access.int_runtime_opt != nullptr) {
data/tilde-1.1.2/src/option_access.cc:370:19:  [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.
          option.*access.int_runtime_opt =
data/tilde-1.1.2/src/option_access.cc:371:32:  [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.
              (default_option.*access.int_option).value_or(access.int_default);
data/tilde-1.1.2/src/option_access.cc:371:60:  [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.
              (default_option.*access.int_option).value_or(access.int_default);
data/tilde-1.1.2/src/option_access.cc:375:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access.size_t_runtime_opt != nullptr) {
data/tilde-1.1.2/src/option_access.cc:376:19:  [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.
          option.*access.size_t_runtime_opt =
data/tilde-1.1.2/src/option_access.cc:377:32:  [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.
              (default_option.*access.size_t_option).value_or(access.size_t_default);
data/tilde-1.1.2/src/option_access.cc:377:63:  [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.
              (default_option.*access.size_t_option).value_or(access.size_t_default);
data/tilde-1.1.2/src/option_access.cc:381:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access.bool_runtime_opt != nullptr) {
data/tilde-1.1.2/src/option_access.cc:382:19:  [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.
          option.*access.bool_runtime_opt =
data/tilde-1.1.2/src/option_access.cc:383:38:  [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.
              (term_specific_option.*access.bool_term_opt)
data/tilde-1.1.2/src/option_access.cc:384:59:  [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.
                  .value_or((default_option.term_options.*access.bool_term_opt)
data/tilde-1.1.2/src/option_access.cc:385:43:  [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.
                                .value_or(access.bool_default));
data/tilde-1.1.2/src/option_access.cc:389:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access.optional_int_runtime_opt) {
data/tilde-1.1.2/src/option_access.cc:390:19:  [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.
          option.*access.optional_int_runtime_opt = term_specific_option.*access.int_term_opt;
data/tilde-1.1.2/src/option_access.cc:390:75:  [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.
          option.*access.optional_int_runtime_opt = term_specific_option.*access.int_term_opt;
data/tilde-1.1.2/src/option_access.cc:391:25:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
          if (!(option.*access.optional_int_runtime_opt).is_valid()) {
data/tilde-1.1.2/src/option_access.cc:392:21:  [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.
            option.*access.optional_int_runtime_opt =
data/tilde-1.1.2/src/option_access.cc:393:46:  [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.
                default_option.term_options.*access.int_term_opt;
data/tilde-1.1.2/src/option_access.cc:398:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access.t3_attr_t_runtime_opt) {
data/tilde-1.1.2/src/option_access.cc:399:19:  [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.
          option.*access.t3_attr_t_runtime_opt =
data/tilde-1.1.2/src/option_access.cc:400:38:  [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.
              (term_specific_option.*access.t3_attr_t_term_opt)
data/tilde-1.1.2/src/option_access.cc:401:59:  [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.
                  .value_or((default_option.term_options.*access.t3_attr_t_term_opt)
data/tilde-1.1.2/src/option_access.cc:438:31:  [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.
  for (const option_access_t &access : option_access) {
data/tilde-1.1.2/src/option_access.cc:439:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access.type == option_access_t::TERM_T3_ATTR_T && access.attribute.is_valid()) {
data/tilde-1.1.2/src/option_access.cc:439:59:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access.type == option_access_t::TERM_T3_ATTR_T && access.attribute.is_valid()) {
data/tilde-1.1.2/src/option_access.cc:440:56:  [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.
      optional<t3_attr_t> attr = term_specific_option.*access.t3_attr_t_term_opt;
data/tilde-1.1.2/src/option_access.cc:442:45:  [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.
        attr = default_option.term_options.*access.t3_attr_t_term_opt;
data/tilde-1.1.2/src/option_access.cc:444:21:  [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.
      set_attribute(access.attribute.value(),
data/tilde-1.1.2/src/option_access.cc:445:57:  [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.
                    attr.value_or(get_default_attribute(access.attribute.value(), option.color)));
data/tilde-1.1.2/src/util.cc:88:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(debug_buffer, "DISPLAY=:0.0 ddd %s %d", executable->c_str(), getpid());
data/tilde-1.1.2/src/util.cc:89:3:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  system(debug_buffer);
data/tilde-1.1.2/src/util.cc:120:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(stderr, fmt, args);
data/tilde-1.1.2/src/util.cc:162:12:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  result = vsnprintf(message_buffer.data(), message_buffer.size(), format, args);
data/tilde-1.1.2/src/util.cc:176:12:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  result = vsnprintf(message_buffer.data(), message_buffer.size(), format, args);
data/tilde-1.1.2/src/util.h:26:56:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void fatal(const char *fmt, ...) __attribute__((format(printf, 1, 2))) __attribute__((noreturn));
data/tilde-1.1.2/src/dialogs/optionsdialog.cc:320:48:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (!cli_option.disable_primary_selection && getenv("SSH_TTY") != nullptr) {
data/tilde-1.1.2/src/main.cc:807:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
       getenv("SSH_TTY") != nullptr) ||
data/tilde-1.1.2/src/option.cc:109:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  } else if ((term = getenv("TERM")) == nullptr) {
data/tilde-1.1.2/src/option.cc:321:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    term = getenv("TERM");
data/tilde-1.1.2/src/util.cc:126: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.
  char *realpath_result = realpath(path, nullptr);
data/tilde-1.1.2/src/util.cc:137:9:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    if (realpath(path, store_path) != nullptr) {
data/tilde-1.1.2/src/copy_file.cc:105: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 buffer[32768];
data/tilde-1.1.2/src/dialogs/characterdetailsdialog.cc:19: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 name_buffer[UNINAME_MAX];
data/tilde-1.1.2/src/dialogs/optionsdialog.cc:133: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 tabsize_text[20];
data/tilde-1.1.2/src/dialogs/optionsdialog.cc:134:3:  [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(tabsize_text, "%d", view->get_tabsize());
data/tilde-1.1.2/src/dialogs/optionsdialog.cc:146:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  int tabsize = atoi(tabsize_field->get_text().c_str());
data/tilde-1.1.2/src/dialogs/optionsdialog.cc:159: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 tabsize_text[20];
data/tilde-1.1.2/src/dialogs/optionsdialog.cc:160:3:  [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(tabsize_text, "%d", option.tabsize);
data/tilde-1.1.2/src/dialogs/optionsdialog.cc:172:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  int tabsize = atoi(tabsize_field->get_text().c_str());
data/tilde-1.1.2/src/dialogs/optionsdialog.cc:185:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  int tabsize = atoi(tabsize_field->get_text().c_str());
data/tilde-1.1.2/src/filebuffer.cc:98:24:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      if ((state->fd = open(name.c_str(), O_RDONLY)) < 0) {
data/tilde-1.1.2/src/filebuffer.cc:292:24:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      if ((state->fd = open(state->real_name.c_str(), O_CREAT | O_EXCL | O_RDWR, 0666)) < 0) {
data/tilde-1.1.2/src/filebuffer.cc:294:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if ((state->fd = open(state->real_name.c_str(), O_RDWR)) >= 0) {
data/tilde-1.1.2/src/filebuffer.cc:299:42:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        } else if ((state->readonly_fd = open(state->real_name.c_str(), O_RDONLY)) >= 0) {
data/tilde-1.1.2/src/filebuffer.cc:325:28:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
          if ((state->fd = open(state->real_name.c_str(), O_RDWR)) < 0) {
data/tilde-1.1.2/src/filebuffer.cc:347:33:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if ((state->backup_fd = open(temp_name_str.c_str(), O_CREAT | O_TRUNC | O_WRONLY, 0600)) <
data/tilde-1.1.2/src/filebuffer.cc:366:33:  [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).
        if ((state->backup_fd = mkstemp(temp_name.data())) >= 0) {
data/tilde-1.1.2/src/filewrapper.cc:131: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 transcript_buffer[FILE_BUFFER_SIZE], *transcript_buffer_ptr;
data/tilde-1.1.2/src/filewrapper.h:28: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 buffer[FILE_BUFFER_SIZE];
data/tilde-1.1.2/src/log.cc:27:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    log_file = fopen("log.txt", "a");
data/tilde-1.1.2/src/main.cc:670:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buffer[4];
data/tilde-1.1.2/src/main.cc:671:7:  [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(buffer, "%%%02X", c);
data/tilde-1.1.2/src/main.cc:682: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 hostname[128];
data/tilde-1.1.2/src/main.cc:712: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 pid_str[16];
data/tilde-1.1.2/src/main.cc:739:3:  [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(pid_str, "%u", getpid());
data/tilde-1.1.2/src/openfiles.cc:202:59:  [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).
  std::unique_ptr<FILE, fclose_deleter> recent_files_file(fopen(recent_files_path.c_str(), "r"));
data/tilde-1.1.2/src/openfiles.cc:313:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  int fd = open(recent_files_path.c_str(), O_CREAT | O_RDWR, 0600);
data/tilde-1.1.2/src/option.cc:122:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  config_file.reset(fopen(DATADIR "/base.config", "r"));
data/tilde-1.1.2/src/option.cc:135:23:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    config_file.reset(fopen(cli_option.config_file.value().c_str(), "r"));
data/tilde-1.1.2/src/option.cc:286:23:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    config_file.reset(fopen(cli_option.config_file.value().c_str(), "r"));
data/tilde-1.1.2/src/option_access.cc:293:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char color_name_buffer[32];
data/tilde-1.1.2/src/option_access.cc:295:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(color_name_buffer, "fg %d", (search >> T3_ATTR_COLOR_SHIFT) - 1);
data/tilde-1.1.2/src/option_access.cc:297:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(color_name_buffer, "bg %d", (search >> (T3_ATTR_COLOR_SHIFT + 9)) - 1);
data/tilde-1.1.2/src/string_util.h:76: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 buffer[sizeof(i) * 3 + 3];
data/tilde-1.1.2/src/util.cc:33: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 debug_buffer[1024];
data/tilde-1.1.2/src/util.cc:136:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char store_path[PATH_MAX];
data/tilde-1.1.2/src/log.cc:66:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  for (i = 0; i < strlen(keys); i++) {
data/tilde-1.1.2/src/main.cc:798:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/tilde-1.1.2/src/optionMacros.h:130: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).
          optlength = strlen(optcurrent);                                       \
data/tilde-1.1.2/src/optionMacros.h:229: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).
      (opttype == LONG && strlen(longName) == optlength - 2 &&   \
data/tilde-1.1.2/src/optionMacros.h:238:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (opttype == LONG && strlen(longName) == optlength - 2 &&  \
data/tilde-1.1.2/src/string_util.h:94: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).
inline size_t Len(const char *str) { return strlen(str); }

ANALYSIS SUMMARY:

Hits = 164
Lines analyzed = 8601 in approximately 0.26 seconds (33485 lines/second)
Physical Source Lines of Code (SLOC) = 6704
Hits@level = [0]  16 [1]   6 [2]  35 [3]   6 [4] 116 [5]   1
Hits@level+ = [0+] 180 [1+] 164 [2+] 158 [3+] 123 [4+] 117 [5+]   1
Hits/KSLOC@level+ = [0+] 26.8496 [1+] 24.463 [2+] 23.568 [3+] 18.3473 [4+] 17.4523 [5+] 0.149165
Symlinks skipped = 1 (--allowlink overrides but see doc for security issue)
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.