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/efax-gtk-3.2.8/src/socket_notify.cpp Examining data/efax-gtk-3.2.8/src/redial_queue_icons.h Examining data/efax-gtk-3.2.8/src/addressbook.cpp Examining data/efax-gtk-3.2.8/src/utils/icon_info_handle.h Examining data/efax-gtk-3.2.8/src/utils/tree_path_handle.h Examining data/efax-gtk-3.2.8/src/utils/tree_row_reference_handle.h Examining data/efax-gtk-3.2.8/src/utils/selected_rows_handle.cpp Examining data/efax-gtk-3.2.8/src/utils/toolbar_append_widget.cpp Examining data/efax-gtk-3.2.8/src/utils/tiff_handle.h Examining data/efax-gtk-3.2.8/src/utils/mono_tiff_print_manager.cpp Examining data/efax-gtk-3.2.8/src/utils/mono_tiff_print_manager.h Examining data/efax-gtk-3.2.8/src/utils/utf8_utils.cpp Examining data/efax-gtk-3.2.8/src/utils/pango_layout_iter_handle.h Examining data/efax-gtk-3.2.8/src/utils/toolbar_append_widget.h Examining data/efax-gtk-3.2.8/src/utils/utf8_utils.h Examining data/efax-gtk-3.2.8/src/utils/cairo_handle.h Examining data/efax-gtk-3.2.8/src/utils/sem_sync.h Examining data/efax-gtk-3.2.8/src/utils/selected_rows_handle.h Examining data/efax-gtk-3.2.8/src/logger.cpp Examining data/efax-gtk-3.2.8/src/settings.cpp Examining data/efax-gtk-3.2.8/src/fax_list.h Examining data/efax-gtk-3.2.8/src/settings_icons.h Examining data/efax-gtk-3.2.8/src/file_list_icons.h Examining data/efax-gtk-3.2.8/src/helpfile.cpp Examining data/efax-gtk-3.2.8/src/dialogs.cpp Examining data/efax-gtk-3.2.8/src/addressbook.h Examining data/efax-gtk-3.2.8/src/gpl.h Examining data/efax-gtk-3.2.8/src/mainwindow.h Examining data/efax-gtk-3.2.8/src/settings.h Examining data/efax-gtk-3.2.8/src/fax_list_icons.h Examining data/efax-gtk-3.2.8/src/fax_list_manager_icons.h Examining data/efax-gtk-3.2.8/src/socket_server.h Examining data/efax-gtk-3.2.8/src/file_list.cpp Examining data/efax-gtk-3.2.8/src/efax_controller.cpp Examining data/efax-gtk-3.2.8/src/tray_icon.cpp Examining data/efax-gtk-3.2.8/src/logger.h Examining data/efax-gtk-3.2.8/src/settings_help.h Examining data/efax-gtk-3.2.8/src/efax_controller.h Examining data/efax-gtk-3.2.8/src/socket_server.cpp Examining data/efax-gtk-3.2.8/src/main.cpp Examining data/efax-gtk-3.2.8/src/window_icon.h Examining data/efax-gtk-3.2.8/src/redial_queue.h Examining data/efax-gtk-3.2.8/src/socket_list.cpp Examining data/efax-gtk-3.2.8/src/dialogs.h Examining data/efax-gtk-3.2.8/src/prog_defs.h Examining data/efax-gtk-3.2.8/src/socket_notify.h Examining data/efax-gtk-3.2.8/src/helpfile.h Examining data/efax-gtk-3.2.8/src/mainwindow.cpp Examining data/efax-gtk-3.2.8/src/settings_help.cpp Examining data/efax-gtk-3.2.8/src/file_list.h Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/reassembler.h Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/io_watch.h Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/lib_defs.h Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/intrusive_ptr.h Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/text_print_manager.h Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/prog_present.h Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/thread.cpp Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/widget.h Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/text_print_manager.cpp Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/fdstream.h Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/gerror_handle.h Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/callback.cpp Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/pipes.cpp Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/application.h Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/mutex.cpp Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/timeout.h Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/widget.cpp Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/prog-presenter/prog-presenter-bindings.h Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/prog-presenter/prog-presenter-glue.h Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/mutex.h Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/gvar_handle.h Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/window.h Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/reassembler.cpp Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/notifier.h Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/notifier.cpp Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/gobj_handle.h Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/emitter.h Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/async_queue.h Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/mem_fun.h Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/convert.h Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/prog_present.cpp Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/emitter.cpp Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/shared_handle.h Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/timeout.cpp Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/window.cpp Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/convert.cpp Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/callback.h Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/io_watch.cpp Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/shared_ptr.h Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/param.h Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/pipes.h Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/thread.h Examining data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/application.cpp Examining data/efax-gtk-3.2.8/src/fax_list_manager.h Examining data/efax-gtk-3.2.8/src/fax_list_manager.cpp Examining data/efax-gtk-3.2.8/src/socket_list_icons.h Examining data/efax-gtk-3.2.8/src/redial_queue.cpp Examining data/efax-gtk-3.2.8/src/socket_list.h Examining data/efax-gtk-3.2.8/src/fax_list.cpp Examining data/efax-gtk-3.2.8/src/addressbook_icons.h Examining data/efax-gtk-3.2.8/src/menu_icons.h Examining data/efax-gtk-3.2.8/src/tray_icon.h Examining data/efax-gtk-3.2.8/efax-gtk-faxfilter/efax-gtk-socket-client.cpp Examining data/efax-gtk-3.2.8/efax/efaxlib.c Examining data/efax-gtk-3.2.8/efax/efaxio.c Examining data/efax-gtk-3.2.8/efax/efaxos.c Examining data/efax-gtk-3.2.8/efax/efaxmsg.c Examining data/efax-gtk-3.2.8/efax/efaxos.h Examining data/efax-gtk-3.2.8/efax/efix.c Examining data/efax-gtk-3.2.8/efax/efaxio.h Examining data/efax-gtk-3.2.8/efax/efax.c Examining data/efax-gtk-3.2.8/efax/efaxmsg.h Examining data/efax-gtk-3.2.8/efax/efaxlib.h FINAL RESULTS: data/efax-gtk-3.2.8/efax/efaxos.c:431:7: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. chmod ( fname , 0444 ) ; data/efax-gtk-3.2.8/efax-gtk-faxfilter/efax-gtk-socket-client.cpp:90:3: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. syslog(LOG_ERR | LOG_USER, message); data/efax-gtk-3.2.8/efax/efax.c:781:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf ( headerbuf, header, page, pages, page, pages, page, pages ) ; data/efax-gtk-3.2.8/efax/efax.c:2002:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf ( buf, c20 ? "+FIS=%d,%d,%d,%d" : "+FDIS=%d,%d,%d,%d", data/efax-gtk-3.2.8/efax/efax.c:2197:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf ( dsbuf, nowait ? "D%.126s;" : "D%.127s" , s ) ; data/efax-gtk-3.2.8/efax/efax.c:2338:4: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf ( buf, getty, crate, crate, crate, crate, crate, crate ) ; data/efax-gtk-3.2.8/efax/efax.c:2344:4: [4] (shell) execl: 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. execl ( "/bin/sh" , "sh" , "-c" , buf , (void*) 0 ) ; data/efax-gtk-3.2.8/efax/efax.c:2361:4: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf ( buf, vcmd, f->fd, f->fd, f->fd, f->fd, f->fd, f->fd ) ; data/efax-gtk-3.2.8/efax/efax.c:2367:4: [4] (shell) execl: 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. execl ( "/bin/sh" , "sh" , "-c" , buf , (void*) 0 ) ; data/efax-gtk-3.2.8/efax/efax.c:2501:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf ( buf, c20 ? "+FCC=%d,%d,%d,%d,%d,%d,%d,%d" : data/efax-gtk-3.2.8/efax/efax.c:2507:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf ( buf, c20 ? "+FLI=\"%.*s\"" : "+FLID=\"%.*s\"" , data/efax-gtk-3.2.8/efax/efax.c:2515:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf ( buf, c20 ? "+FPI=\"%.*s\"" : "+FCIG=\"%.*s\"" , data/efax-gtk-3.2.8/efax/efax.c:2770:15: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. default : fprintf ( stderr, Usage, argv0 ) ; err = 2 ; break ; data/efax-gtk-3.2.8/efax/efax.c:2787:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf ( header = headerbuf, tmp, localid ) ; data/efax-gtk-3.2.8/efax/efaxio.c:278:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf ( buf, "AT%s\r", s ) ; data/efax-gtk-3.2.8/efax/efaxio.c:290: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 ( lresponse, buf ) ; data/efax-gtk-3.2.8/efax/efaxlib.c:1604:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf ( f->f, PSBEGIN, data/efax-gtk-3.2.8/efax/efaxlib.c:1608:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf ( f->f, PSPAGE, data/efax-gtk-3.2.8/efax/efaxlib.c:1944:7: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf ( f->f, PCLEND ) ; data/efax-gtk-3.2.8/efax/efaxlib.c:1947:7: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf ( f->f, PSPAGEEND ) ; data/efax-gtk-3.2.8/efax/efaxlib.c:1948:33: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. if ( f->fname || page<0 ) fprintf ( f->f, PSEND, f->lastpageno ) ; data/efax-gtk-3.2.8/efax/efaxlib.c:1983:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf ( f->cfname, f->fname, page+1, page+1, page+1 ) ; data/efax-gtk-3.2.8/efax/efaxlib.c:2036:7: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf ( f->f, PCLBEGIN, (int) f->xres ) ; data/efax-gtk-3.2.8/efax/efaxmsg.c:119:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf ( p, i<127 ? "%c" : CNAMEFMT, i ) ; data/efax-gtk-3.2.8/efax/efaxmsg.c:220:7: [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( logfile[i], p, ap ) ; data/efax-gtk-3.2.8/efax/efaxos.h:68:12: [4] (shell) execl: 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. extern int execl ( const char *path, const char *arg , ... ) ; data/efax-gtk-3.2.8/efax/efix.c:310:15: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. default : fprintf ( stderr, Usage, argv0 ) ; err = 2 ; break ; data/efax-gtk-3.2.8/src/dialogs.cpp:166:10: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). std::strcpy(*temp_pp, iter->c_str()); data/efax-gtk-3.2.8/src/dialogs.cpp:172:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). std::strcpy(prog_name, view_name.c_str()); data/efax-gtk-3.2.8/src/dialogs.cpp:183:10: [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(filename.c_str(), R_OK)) { data/efax-gtk-3.2.8/src/dialogs.cpp:206:7: [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(view_file_parms.first, view_file_parms.second); data/efax-gtk-3.2.8/src/efax_controller.cpp:283:10: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). std::strcpy(*temp_pp, iter->c_str()); data/efax-gtk-3.2.8/src/efax_controller.cpp:364:5: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp(exec_parms.first, exec_parms.second); data/efax-gtk-3.2.8/src/efax_controller.cpp:417: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. else if (access(filename.c_str(), F_OK)) { data/efax-gtk-3.2.8/src/efax_controller.cpp:421: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. else if (access(filename.c_str(), R_OK)) { data/efax-gtk-3.2.8/src/efax_controller.cpp:478:5: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp(gs_parms.first, gs_parms.second); data/efax-gtk-3.2.8/src/efax_controller.cpp:517: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. int result = access(strm.str().c_str(), R_OK); data/efax-gtk-3.2.8/src/efax_controller.cpp:536: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. result = access(strm.str().c_str(), R_OK); data/efax-gtk-3.2.8/src/efax_controller.cpp:587:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). std::strcpy(fax_pathname_h.get(), fax_pathname.c_str()); data/efax-gtk-3.2.8/src/efax_controller.cpp:690:5: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp(exec_parms.first, exec_parms.second); data/efax-gtk-3.2.8/src/efax_controller.cpp:746:10: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). std::strcpy(*temp_pp, iter->c_str()); data/efax-gtk-3.2.8/src/efax_controller.cpp:1193:10: [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. while (!access(suffixed_inname.c_str(), R_OK) data/efax-gtk-3.2.8/src/efax_controller.cpp:1287: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. while (!access(filename.c_str(), R_OK)) { data/efax-gtk-3.2.8/src/fax_list.cpp:669:10: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). std::strcpy(*temp_pp, iter->c_str()); data/efax-gtk-3.2.8/src/fax_list.cpp:675:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). std::strcpy(prog_name, print_name.c_str()); data/efax-gtk-3.2.8/src/fax_list.cpp:757: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. int result = access(strm.str().c_str(), R_OK); data/efax-gtk-3.2.8/src/fax_list.cpp:766: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. result = access(strm.str().c_str(), R_OK); data/efax-gtk-3.2.8/src/fax_list.cpp:776:10: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). std::strcpy(*temp_pp, iter->c_str()); data/efax-gtk-3.2.8/src/fax_list.cpp:861:10: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). std::strcpy(*temp_pp, iter->c_str()); data/efax-gtk-3.2.8/src/fax_list.cpp:867:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). std::strcpy(prog_name, view_name.c_str()); data/efax-gtk-3.2.8/src/fax_list.cpp:982: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. int result = access(strm.str().c_str(), R_OK); data/efax-gtk-3.2.8/src/fax_list.cpp:991: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. result = access(strm.str().c_str(), R_OK); data/efax-gtk-3.2.8/src/fax_list.cpp:1050:4: [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(print_from_stdin_parms.first, print_from_stdin_parms.second); data/efax-gtk-3.2.8/src/fax_list.cpp:1060:2: [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(fax_to_ps_parms.first, fax_to_ps_parms.second); data/efax-gtk-3.2.8/src/fax_list.cpp:1207:5: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp(fax_to_ps_parms.first, fax_to_ps_parms.second); data/efax-gtk-3.2.8/src/fax_list.cpp:1269:7: [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(ps_viewer_parms.first, ps_viewer_parms.second); data/efax-gtk-3.2.8/src/file_list.cpp:491:10: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). std::strcpy(*temp_pp, iter->c_str()); data/efax-gtk-3.2.8/src/file_list.cpp:497:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). std::strcpy(prog_name, view_name.c_str()); data/efax-gtk-3.2.8/src/file_list.cpp:555:2: [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(view_file_parms.first, view_file_parms.second); data/efax-gtk-3.2.8/src/main.cpp:620: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. if (access("/dev/modem", F_OK) == -1) { data/efax-gtk-3.2.8/src/main.cpp:868: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. int result = access(file_name.c_str(), F_OK); data/efax-gtk-3.2.8/src/main.cpp:1089:8: [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. std::system(command_line.c_str()); data/efax-gtk-3.2.8/src/mainwindow.cpp:1349:7: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp(prog_name, prog_name, fax_name, static_cast<void*>(0)); data/efax-gtk-3.2.8/src/settings.cpp:3187:10: [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(rcfile.c_str(), F_OK)) { data/efax-gtk-3.2.8/src/settings.cpp:3196:10: [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(rcfile.c_str(), F_OK)) found_rcfile = true; data/efax-gtk-3.2.8/src/settings.cpp:3202:10: [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(rcfile.c_str(), F_OK)) found_rcfile = true; data/efax-gtk-3.2.8/src/socket_list.cpp:405:10: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). std::strcpy(*temp_pp, iter->c_str()); data/efax-gtk-3.2.8/src/socket_list.cpp:411:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). std::strcpy(prog_name, view_name.c_str()); data/efax-gtk-3.2.8/src/socket_list.cpp:462:2: [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(view_file_parms.first, view_file_parms.second); data/efax-gtk-3.2.8/src/socket_server.cpp:440: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(file_read.substr(0, pos).c_str(), R_OK)) { // file exists and can be read data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/fdstream.h:752:44: [3] (random) setstate: 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. void close() {if (!buf.close_fd()) this->setstate(std::ios_base::failbit);} data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/fdstream.h:1162:44: [3] (random) setstate: 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. void close() {if (!buf.close_fd()) this->setstate(std::ios_base::failbit);} data/efax-gtk-3.2.8/src/main.cpp:217:28: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((opt_result = getopt(argc, argv, "rs-:")) != -1) { data/efax-gtk-3.2.8/src/main.cpp:284:23: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char* home = std::getenv("HOME"); data/efax-gtk-3.2.8/efax-gtk-faxfilter/efax-gtk-socket-client.cpp:56:33: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). address.sin_port = htons(std::atoi(argv[2])); data/efax-gtk-3.2.8/efax-gtk-faxfilter/efax-gtk-socket-client.cpp:64: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[BUFFER_LENGTH]; data/efax-gtk-3.2.8/efax/efax.c:217: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 *capvaluestr [ NCAP ] [8] = { data/efax-gtk-3.2.8/efax/efax.c:245: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 *c1cmd [ 2 ] [ 2 ] [ 8 ] = { data/efax-gtk-3.2.8/efax/efax.c:325: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 *errormsg [7] ; data/efax-gtk-3.2.8/efax/efax.c:761: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 headerbuf [ MAXLINELEN ] ; data/efax-gtk-3.2.8/efax/efax.c:830: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 ( lastruns, runs, nr * sizeof(short) ) ; data/efax-gtk-3.2.8/efax/efax.c:1342: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 remoteid [ IDLEN + 1 ] ; data/efax-gtk-3.2.8/efax/efax.c:1964:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf [ CMDBUFSIZE ] ; data/efax-gtk-3.2.8/efax/efax.c:2195: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 c, dsbuf [ 128 ], *p, *message ; data/efax-gtk-3.2.8/efax/efax.c:2330: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 [ MAXGETTY ] ; data/efax-gtk-3.2.8/efax/efax.c:2358: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 [ MAXGETTY ] ; data/efax-gtk-3.2.8/efax/efax.c:2407:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf [ CMDBUFSIZE ], model [ CMDBUFSIZE ] = "" ; data/efax-gtk-3.2.8/efax/efax.c:2408: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 **p, *q, *modelq [2][4] = { { "+FMFR?", "+FMDL?", 0 }, data/efax-gtk-3.2.8/efax/efax.c:2470:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *c1spstr [6] = { "24", "48", "72", "96", "121", "145" } ; data/efax-gtk-3.2.8/efax/efax.c:2528: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 *icmd[3][ MAXICMD+1 ] = {{0},{0},{0}} ; /* initialization commands */ data/efax-gtk-3.2.8/efax/efax.c:2530: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 *lkfile [ MAXLKFILE+1 ] = {0} ; /* lock file names */ data/efax-gtk-3.2.8/efax/efax.c:2594: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 localid [ IDLEN + 1 ] = DEFID ; data/efax-gtk-3.2.8/efax/efax.c:2606: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 fnamepat [ EFAX_PATH_MAX ] ; data/efax-gtk-3.2.8/efax/efax.c:2675: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 ( localid, "%*.*s", IDLEN, IDLEN, nxtoptarg ) ; data/efax-gtk-3.2.8/efax/efax.c:2782:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp [ MAXLINELEN ] ; data/efax-gtk-3.2.8/efax/efaxio.c:152: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 responses [ MAXRESPB ], *lresponse = responses ; data/efax-gtk-3.2.8/efax/efaxio.c:245:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf [ CMDBUFSIZE ], *p = "" ; data/efax-gtk-3.2.8/efax/efaxlib.c:70: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 ( out , str1, str1_len ) ; data/efax-gtk-3.2.8/efax/efaxlib.c:71: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 ( out + str1_len, str2, str2_len + 1 ) ; data/efax-gtk-3.2.8/efax/efaxlib.c:381:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char right [ 9 ] = { data/efax-gtk-3.2.8/efax/efaxlib.c:457: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 *iformatname [ NIFORMATS ] = IFORMATS ; data/efax-gtk-3.2.8/efax/efaxlib.c:458: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 *oformatname [ NOFORMATS ] = OFORMATS ; data/efax-gtk-3.2.8/efax/efaxlib.c:459: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 *pformatname [ NPFORMATS ] = PFORMATS ; data/efax-gtk-3.2.8/efax/efaxlib.c:1002:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf [ MAXLINELEN ] ; data/efax-gtk-3.2.8/efax/efaxlib.c:1229:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f->f = fopen ( f->page->fname, (f->page->format == P_TEXT) ? "r" : "rb" ) ; data/efax-gtk-3.2.8/efax/efaxlib.c:1322:21: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ( ! ( f->f = fopen ( *p, "rb" ) ) ) { data/efax-gtk-3.2.8/efax/efaxlib.c:1644:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char last [ MAXBITS ] ; data/efax-gtk-3.2.8/efax/efaxlib.c:1688: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 ( last, buf, n ) ; data/efax-gtk-3.2.8/efax/efaxlib.c:1986:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f->f = fopen ( f->cfname, ( f->format == O_PS ) ? "w" : "wb+" ) ; data/efax-gtk-3.2.8/efax/efaxlib.c:2011:7: [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 ( f->cfname, "standard output" ) ; data/efax-gtk-3.2.8/efax/efaxlib.c:2166: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 *fnames [2] = { 0, 0 } ; data/efax-gtk-3.2.8/efax/efaxlib.h:106:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char *iformatname [ NIFORMATS ] ; data/efax-gtk-3.2.8/efax/efaxlib.h:107:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char *oformatname [ NOFORMATS ] ; data/efax-gtk-3.2.8/efax/efaxlib.h:108:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char *pformatname [ NPFORMATS ] ; data/efax-gtk-3.2.8/efax/efaxlib.h:153:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text [ MAXLINELEN ] ; /* TEXT: current string */ data/efax-gtk-3.2.8/efax/efaxlib.h:184: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 cfname [ EFAX_PATH_MAX + 1 ] ; /* current file name */ data/efax-gtk-3.2.8/efax/efaxmsg.c:34:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *verb[NLOG] = { "ewin", "" } ; data/efax-gtk-3.2.8/efax/efaxmsg.c:70: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 tbuf [ MAXTSTAMP ] ; data/efax-gtk-3.2.8/efax/efaxmsg.c:107:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char *cnametab [ 256 ] = { /* character names */ data/efax-gtk-3.2.8/efax/efaxmsg.c:112:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char names[ (127-32)*2 + 129*(CNAMELEN) ] ; data/efax-gtk-3.2.8/efax/efaxmsg.c:143:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char msgbuf [ NLOG ] [ MAXMSGBUF ] ; data/efax-gtk-3.2.8/efax/efaxos.c:313:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). tinit ( f, open ( fname, O_RDWR | O_NDELAY | O_NOCTTY ), reverse, hwfc ) ; data/efax-gtk-3.2.8/efax/efaxos.c:352:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf [ EFAX_PATH_MAX ] = "" ; data/efax-gtk-3.2.8/efax/efaxos.c:356: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). if ( fname && ( f = fopen ( fname , "r" ) ) ) { data/efax-gtk-3.2.8/efax/efaxos.c:403: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 *p , buf [ EFAX_PATH_MAX ] = "" ; data/efax-gtk-3.2.8/efax/efaxos.c:414:5: [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 , "%.*sTMP..%05d" , dirlen , fname , (int) pid ) ; data/efax-gtk-3.2.8/efax/efaxos.c:415:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ( ! ( f = fopen( buf, "w" ) ) ) data/efax-gtk-3.2.8/efax/efaxos.h:16: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. extern unsigned char normalbits [ ] ; data/efax-gtk-3.2.8/efax/efaxos.h:40:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char ibuf [ IBUFSIZE ] ; data/efax-gtk-3.2.8/efax/efix.c:111: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). return p && *p ? atoi ( *p ) : -1 ; data/efax-gtk-3.2.8/efax/efix.c:253: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 **ifnames, *ovfnames [ 2 ] = { 0, 0 } ; data/efax-gtk-3.2.8/src/efax_controller.cpp:109: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 date_string[150]; data/efax-gtk-3.2.8/src/efax_controller.cpp:172: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). stdout_pipe.open(PipeFifo::non_block); data/efax-gtk-3.2.8/src/efax_controller.cpp:289:8: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. std::strcpy(prog_name, "gs"); data/efax-gtk-3.2.8/src/efax_controller.cpp:464:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open("/dev/null", O_RDWR); data/efax-gtk-3.2.8/src/efax_controller.cpp:595: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). stdout_pipe.open(PipeFifo::non_block); data/efax-gtk-3.2.8/src/efax_controller.cpp:752:8: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. std::strcpy(prog_name, "efax-0.9a"); data/efax-gtk-3.2.8/src/efax_controller.cpp:904: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 faxname[18]; data/efax-gtk-3.2.8/src/efax_controller.cpp:1022: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 pipe_buffer[PIPE_BUF + 1]; data/efax-gtk-3.2.8/src/efax_controller.cpp:1090: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 faxname[18]; data/efax-gtk-3.2.8/src/efax_controller.cpp:1144:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char date_description[max_description_datesize]; data/efax-gtk-3.2.8/src/efax_controller.cpp:1191: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 block[BLOCKSIZE]; data/efax-gtk-3.2.8/src/efax_controller.cpp:1194:20: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). && (filein.open(suffixed_inname.c_str(), std::ios::in), filein) // use comma operator to check filein data/efax-gtk-3.2.8/src/efax_controller.cpp:1195:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). && (fileout.open(suffixed_outname.c_str(), std::ios::out), fileout)) { // ditto for fileout data/efax-gtk-3.2.8/src/efax_controller.cpp:1310: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). int seconds = std::atoi(prog_config.redial_interval.c_str()) * 60; data/efax-gtk-3.2.8/src/fax_list.cpp:717: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). float val = 210 * (100 - std::atoi(prog_config.print_shrink.c_str()))/200.0; data/efax-gtk-3.2.8/src/fax_list.cpp:719: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). val = 297 * (100 - std::atoi(prog_config.print_shrink.c_str()))/200.0; data/efax-gtk-3.2.8/src/fax_list.cpp:728: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). float val = 216 * (100 - std::atoi(prog_config.print_shrink.c_str()))/200.0; data/efax-gtk-3.2.8/src/fax_list.cpp:730: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). val = 279 * (100 - std::atoi(prog_config.print_shrink.c_str()))/200.0; data/efax-gtk-3.2.8/src/fax_list.cpp:739: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). float val = 216 * (100 - std::atoi(prog_config.print_shrink.c_str()))/200.0; data/efax-gtk-3.2.8/src/fax_list.cpp:741: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). val = 356 * (100 - std::atoi(prog_config.print_shrink.c_str()))/200.0; data/efax-gtk-3.2.8/src/fax_list.cpp:782:8: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. std::strcpy(prog_name, "efix-0.9a"); data/efax-gtk-3.2.8/src/fax_list.cpp:792: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[PIPE_BUF]; data/efax-gtk-3.2.8/src/fax_list.cpp:1034:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fork_pipe.open(PipeFifo::block); data/efax-gtk-3.2.8/src/fax_list.cpp:1124:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(tempfile_h.get(), filename_a->c_str(), size); // this will include the terminating '\0' in the copy data/efax-gtk-3.2.8/src/fax_list.cpp:1125:19: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). int file_fd = mkstemp(tempfile_h.get()); data/efax-gtk-3.2.8/src/fax_list_manager.cpp:454:8: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. std::strcpy(target_0.get(), "STRING"); data/efax-gtk-3.2.8/src/fax_list_manager.cpp:455:8: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. std::strcpy(target_1.get(), "text/plain"); data/efax-gtk-3.2.8/src/fax_list_manager.cpp:707: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). file.open(filename.c_str(), std::ios::in | std::ios::nocreate); data/efax-gtk-3.2.8/src/fax_list_manager.cpp:711: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). file.open(filename.c_str(), std::ios::in); data/efax-gtk-3.2.8/src/fax_list_manager.cpp:761: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). file.open(filename.c_str(), std::ios::in | std::ios::nocreate); data/efax-gtk-3.2.8/src/fax_list_manager.cpp:765: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). file.open(filename.c_str(), std::ios::in); data/efax-gtk-3.2.8/src/fax_list_manager.cpp:781: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). file.open(filename.c_str(), std::ios::in | std::ios::nocreate); data/efax-gtk-3.2.8/src/fax_list_manager.cpp:785: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). file.open(filename.c_str(), std::ios::in); data/efax-gtk-3.2.8/src/fax_list_manager.cpp:1792:16: [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). fax_path_file.open(filename.c_str(), std::ios::out); data/efax-gtk-3.2.8/src/fax_list_manager.cpp:1961: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[150]; data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/application.cpp:98: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). app->open.emit(app, std::pair<GFile**, gint>(files, n_files), hint); data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/application.h:407:88: [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). Cgu::SafeEmitterArg<TypeTuple<Cgu::Application*, std::pair<GFile**, gint>, gchar*> > open; data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/notifier.cpp:54: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). pipe.open(PipeFifo::block); data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/pipes.cpp:55:16: [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). void PipeFifo::open(Fifo_mode mode) { data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/pipes.h:187: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). void open(Fifo_mode mode); data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/reassembler.cpp:40:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(out, buffer, stored); data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/reassembler.cpp:41:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(out + stored, str, size); data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/reassembler.cpp:57:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(out, input_p, size); data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/reassembler.cpp:77:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(buffer, end_p, stored); data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/reassembler.h:77: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[buff_size]; data/efax-gtk-3.2.8/src/logger.cpp:56: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). logfile.open(temp.c_str(), std::ios::app | std::ios::out); data/efax-gtk-3.2.8/src/logger.cpp:75: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 date_description[max_description_datesize]; data/efax-gtk-3.2.8/src/logger.cpp:129:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char date_description[max_description_datesize]; data/efax-gtk-3.2.8/src/logger.cpp:181:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char date_description[max_description_datesize]; data/efax-gtk-3.2.8/src/logger.cpp:212: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). logfile.open(temp.c_str(), std::ios::app | std::ios::out); data/efax-gtk-3.2.8/src/logger.cpp:231: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 date_description[max_description_datesize]; data/efax-gtk-3.2.8/src/logger.cpp:280: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). infile.open(logfile_name.c_str(), std::ios::in | std::ios:: binary); data/efax-gtk-3.2.8/src/logger.cpp:292: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 block[BLOCKSIZE]; data/efax-gtk-3.2.8/src/logger.cpp:357:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char date_description[max_description_datesize]; data/efax-gtk-3.2.8/src/logger.cpp:441: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). infile.open(logfile_name.c_str(), std::ios::in | std::ios:: binary); data/efax-gtk-3.2.8/src/logger.cpp:451: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 block[BLOCKSIZE]; data/efax-gtk-3.2.8/src/main.cpp:305: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). filein.open(rcfile.c_str(), std::ios::in | std::ios::nocreate); data/efax-gtk-3.2.8/src/main.cpp:309: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). filein.open(rcfile.c_str(), std::ios::in); data/efax-gtk-3.2.8/src/main.cpp:321: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). filein.open(rcfile.c_str(), std::ios::in | std::ios::nocreate); data/efax-gtk-3.2.8/src/main.cpp:325: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). filein.open(rcfile.c_str(), std::ios::in); data/efax-gtk-3.2.8/src/main.cpp:337: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). filein.open(rcfile.c_str(), std::ios::in | std::ios::nocreate); data/efax-gtk-3.2.8/src/main.cpp:341: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). filein.open(rcfile.c_str(), std::ios::in); data/efax-gtk-3.2.8/src/main.cpp:760:19: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). else if (std::atoi(prog_config.print_shrink.c_str()) < 50 || std::atoi(prog_config.print_shrink.c_str()) > 100) { data/efax-gtk-3.2.8/src/main.cpp:760:71: [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). else if (std::atoi(prog_config.print_shrink.c_str()) < 50 || std::atoi(prog_config.print_shrink.c_str()) > 100) { data/efax-gtk-3.2.8/src/main.cpp:788:19: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). else if (std::atoi(prog_config.sock_server_port.c_str()) < 1024 data/efax-gtk-3.2.8/src/main.cpp:789: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). || std::atoi(prog_config.sock_server_port.c_str()) > 65535) { data/efax-gtk-3.2.8/src/main.cpp:846:19: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). else if (std::atoi(prog_config.redial_interval.c_str()) < 5 data/efax-gtk-3.2.8/src/main.cpp:847: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). || std::atoi(prog_config.redial_interval.c_str()) > 1440) { data/efax-gtk-3.2.8/src/main.cpp:1105: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 faxname[18]; data/efax-gtk-3.2.8/src/mainwindow.cpp:1918: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 pipe_buffer[PIPE_BUF + 1]; data/efax-gtk-3.2.8/src/settings.cpp:442: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). int val = std::atoi(rings.c_str()); data/efax-gtk-3.2.8/src/settings.cpp:834: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). int val = std::atoi(shrink.c_str()); data/efax-gtk-3.2.8/src/settings.cpp:1231: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). int val = std::atoi(port_string.c_str()); data/efax-gtk-3.2.8/src/settings.cpp:1719: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). int val = std::atoi(interval.c_str()); data/efax-gtk-3.2.8/src/settings.cpp:2084: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). filein.open(rcfile.c_str(), std::ios::in); data/efax-gtk-3.2.8/src/settings.cpp:2299: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). if (std::atoi(temp.c_str()) < 50 || std::atoi(temp.c_str()) > 100) { data/efax-gtk-3.2.8/src/settings.cpp:2299:46: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (std::atoi(temp.c_str()) < 50 || std::atoi(temp.c_str()) > 100) { data/efax-gtk-3.2.8/src/settings.cpp:2354: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). if (std::atoi(temp.c_str()) < 1024 || std::atoi(temp.c_str()) > 65535) { data/efax-gtk-3.2.8/src/settings.cpp:2354:48: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (std::atoi(temp.c_str()) < 1024 || std::atoi(temp.c_str()) > 65535) { data/efax-gtk-3.2.8/src/settings.cpp:2446: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). if (std::atoi(temp.c_str()) < 5 || std::atoi(temp.c_str()) > 1440) { data/efax-gtk-3.2.8/src/settings.cpp:2446: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 (std::atoi(temp.c_str()) < 5 || std::atoi(temp.c_str()) > 1440) { data/efax-gtk-3.2.8/src/settings.cpp:2963: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). if (std::atoi(result.c_str()) < 1 data/efax-gtk-3.2.8/src/settings.cpp:2964:11: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). || std::atoi(result.c_str()) > 9) { data/efax-gtk-3.2.8/src/settings.cpp:3007: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). if (std::atoi(result.c_str()) < 50 data/efax-gtk-3.2.8/src/settings.cpp:3008:11: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). || std::atoi(result.c_str()) > 100) { data/efax-gtk-3.2.8/src/settings.cpp:3036: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). if (std::atoi(result.c_str()) < 1024 data/efax-gtk-3.2.8/src/settings.cpp:3037:11: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). || std::atoi(result.c_str()) > 65535) { data/efax-gtk-3.2.8/src/socket_server.cpp:150:39: [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). serve_address.sin_port = htons(std::atoi(port.c_str())); data/efax-gtk-3.2.8/src/socket_server.cpp:187: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). serve_address.sin6_port = htons(std::atoi(port.c_str())); data/efax-gtk-3.2.8/src/socket_server.cpp:233:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(tempfile_h.get(), filename.c_str(), size); // this will include the terminating '\0' in the copy data/efax-gtk-3.2.8/src/socket_server.cpp:234:19: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). int file_fd = mkstemp(tempfile_h.get()); data/efax-gtk-3.2.8/src/socket_server.cpp:273: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[BUFFER_LENGTH]; data/efax-gtk-3.2.8/src/socket_server.cpp:445: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). file_item.second = std::atoi(file_read.substr(pos + 1).c_str()); data/efax-gtk-3.2.8/src/socket_server.cpp:451: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). count = std::atoi(file_read.substr(1).c_str()); data/efax-gtk-3.2.8/src/socket_server.cpp:526: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[INET6_ADDRSTRLEN + 512]; // general buffer which must be at least INET6_ADDRSTRLEN in data/efax-gtk-3.2.8/efax-gtk-faxfilter/efax-gtk-socket-client.cpp:69:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((read_result = read(0, buffer, BUFFER_LENGTH)) > 0 data/efax-gtk-3.2.8/efax/efax.c:2661: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 ( strlen ( nxtoptarg ) > IDLEN ) { data/efax-gtk-3.2.8/efax/efax.c:2668:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ( strspn ( nxtoptarg, " +0123456789" ) != strlen ( nxtoptarg ) ) { data/efax-gtk-3.2.8/efax/efax.c:2817:5: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is low because the source is a constant string. strncat ( fnamepat, ".%03d", EFAX_PATH_MAX - strlen ( fnamepat ) ) ; data/efax-gtk-3.2.8/efax/efax.c:2817:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strncat ( fnamepat, ".%03d", EFAX_PATH_MAX - strlen ( fnamepat ) ) ; data/efax-gtk-3.2.8/efax/efaxio.c:159: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). lens = strlen ( s ) ; data/efax-gtk-3.2.8/efax/efaxio.c:160: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). for ( p=responses ; p<lresponse ; p += strlen(p) + 1 ) { data/efax-gtk-3.2.8/efax/efaxio.c:165:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). lenr = strlen ( r ) ; data/efax-gtk-3.2.8/efax/efaxio.c:187: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). for ( p=responses ; p<lresponse && !r ; p += strlen(p) + 1 ) data/efax-gtk-3.2.8/efax/efaxio.c:207:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for ( q = p+strlen(p)-1 ; q>=p && isspace(*q) ; q-- ) ; data/efax-gtk-3.2.8/efax/efaxio.c:209:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ( n + strlen(buf) < len ) data/efax-gtk-3.2.8/efax/efaxio.c:210:7: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat ( buf, p, n ) ; data/efax-gtk-3.2.8/efax/efaxio.c:212:7: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat ( buf, p, len - strlen(buf) - 1 ) ; data/efax-gtk-3.2.8/efax/efaxio.c:212: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). strncat ( buf, p, len - strlen(buf) - 1 ) ; data/efax-gtk-3.2.8/efax/efaxio.c:227: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). while ( *p && strncmp ( *p+1, s, strlen ( *p+1 ) ) ) p++ ; data/efax-gtk-3.2.8/efax/efaxio.c:271:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ( strlen(s) >= CMDBUFSIZE-4 ) { data/efax-gtk-3.2.8/efax/efaxio.c:279: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). tput ( f, (uchar*) buf, strlen(buf) ) ; data/efax-gtk-3.2.8/efax/efaxio.c:289: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 ( ( resplen += strlen ( buf ) + 1 ) <= MAXRESPB ) { data/efax-gtk-3.2.8/efax/efaxio.c:291: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). lresponse += strlen ( buf ) + 1 ; data/efax-gtk-3.2.8/efax/efaxlib.c:65:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). str1_len = strlen ( str1 ) ; data/efax-gtk-3.2.8/efax/efaxlib.c:66:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). str2_len = strlen ( str2 ) ; data/efax-gtk-3.2.8/efax/efaxlib.c:351:27: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ( ! isdigit ( c = fgetc ( f->f ) ) && c >= 0 ) data/efax-gtk-3.2.8/efax/efaxlib.c:353:21: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ( ( c = fgetc ( f->f ) ) != '\n' && c >= 0 ) ; data/efax-gtk-3.2.8/efax/efaxlib.c:358:27: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ( isdigit ( c = fgetc ( f->f ) ) && c >= 0 ) data/efax-gtk-3.2.8/efax/efaxlib.c:518:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ( ( c = fgetc ( f->f ) ) == EOF ) { data/efax-gtk-3.2.8/efax/efaxlib.c:580:16: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ( ( c = fgetc ( f->f ) ) < 0 ) { data/efax-gtk-3.2.8/efax/efaxlib.c:585:9: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc ( f->f ) ; data/efax-gtk-3.2.8/efax/efaxlib.c:586:16: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ( ( c = fgetc ( f->f ) ) < 0 ) { data/efax-gtk-3.2.8/efax/efaxlib.c:1083:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return fgetc ( f->f ) + fgetc ( f->f ) * 256 ; data/efax-gtk-3.2.8/efax/efaxlib.c:1083:27: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return fgetc ( f->f ) + fgetc ( f->f ) * 256 ; data/efax-gtk-3.2.8/efax/efaxlib.c:1106:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nc = fgetc ( f->f ) ; data/efax-gtk-3.2.8/efax/efaxmsg.c:120: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 += strlen ( p ) + 1 ; data/efax-gtk-3.2.8/efax/efaxos.c:134:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ( ( n = read( f->fd, f->ibuf, IBUFSIZE ) ) < 0 ) data/efax-gtk-3.2.8/efax/efaxos.c:413: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). dirlen = ( p = strrchr( fname , '/' ) ) ? p-fname+1 : strlen ( fname ) ; data/efax-gtk-3.2.8/efax/efix.c:182:17: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ( ( c = fgetc ( stdin ) ) >= 0 ) { data/efax-gtk-3.2.8/src/efax_controller.cpp:288: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). char* prog_name = new char[std::strlen("gs") + 1]; data/efax-gtk-3.2.8/src/efax_controller.cpp:751: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). char* prog_name = new char[std::strlen("efax-0.9a") + 1]; data/efax-gtk-3.2.8/src/efax_controller.cpp:978: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 (!iter->substr(0, std::strlen("current.")).compare("current.")) { data/efax-gtk-3.2.8/src/efax_controller.cpp:982:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). new_filename += iter->substr(std::strlen("current")); // add the suffix (".001" etc.) data/efax-gtk-3.2.8/src/efax_controller.cpp:1025:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((result = stdout_pipe.read(pipe_buffer, PIPE_BUF)) > 0) { data/efax-gtk-3.2.8/src/efax_controller.cpp:1197:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). filein.read(block, BLOCKSIZE); data/efax-gtk-3.2.8/src/fax_list.cpp:781: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). char* prog_name = new char[std::strlen("efix-0.9a") + 1]; data/efax-gtk-3.2.8/src/fax_list.cpp:794:33: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((read_result = pipe_p->read(buffer, PIPE_BUF)) > 0) { data/efax-gtk-3.2.8/src/fax_list_manager.cpp:445: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). target_0(new char[std::strlen("STRING") + 1]), data/efax-gtk-3.2.8/src/fax_list_manager.cpp:446:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). target_1(new char[std::strlen("text/plain") + 1]), data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/emitter.cpp:295:7: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(10); data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/emitter.cpp:442:9: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(10); data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/emitter.h:1151:7: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(10); data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/emitter.h:1302:9: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(10); data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/emitter.h:1914:7: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(10); data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/emitter.h:2009:9: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(10); data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/emitter.h:2144:7: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(10); data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/emitter.h:2241:9: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(10); data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/notifier.cpp:135:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). result = Notifier::pipe.read(temp_p, remaining); data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/pipes.cpp:80:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t PipeFifo::read(char* buffer, size_t max_num) { data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/pipes.cpp:84:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). result = ::read(read_fd, buffer, max_num); // call unix read() in file scope data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/pipes.cpp:89:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int PipeFifo::read() { data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/pipes.cpp:94:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). result = ::read(read_fd, &item, 1); // call unix read() in file scope data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/pipes.cpp:102: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). return write(buffer, std::strlen(buffer)); data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/pipes.cpp:206:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (::read(pipe_fifo.get_read_fd(), &letter, 1) == -1 data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/pipes.h:234:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t read(char* buf, size_t max_num); data/efax-gtk-3.2.8/src/internal/c++-gtk-utils/pipes.h:248:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int read(); data/efax-gtk-3.2.8/src/logger.cpp:294:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). infile.read(block, BLOCKSIZE - 1); data/efax-gtk-3.2.8/src/logger.cpp:453:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). infile.read(block, BLOCKSIZE); data/efax-gtk-3.2.8/src/logger.cpp:463:70: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). gtk_text_buffer_insert(buffer_p, &end_iter, read_text_h.get(), std::strlen(read_text_h)); data/efax-gtk-3.2.8/src/main.cpp:923: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). const std::string::size_type length = std::strlen(name); data/efax-gtk-3.2.8/src/main.cpp:1181: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). if (!iter->substr(0, std::strlen("current.")).compare("current.")) { data/efax-gtk-3.2.8/src/main.cpp:1185: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). new_filename += iter->substr(std::strlen("current")); // add the suffix (".001" etc.) data/efax-gtk-3.2.8/src/mainwindow.cpp:899:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (sig_pipe.read() == 'x') { data/efax-gtk-3.2.8/src/mainwindow.cpp:1576: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 (std::strlen(gtk_entry_get_text(GTK_ENTRY(file_entry_p)))) { data/efax-gtk-3.2.8/src/mainwindow.cpp:1921:43: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((result = MainWindow::error_pipe.read(pipe_buffer, PIPE_BUF)) > 0) { data/efax-gtk-3.2.8/src/mainwindow.cpp:2221: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). ssize_t to_write_count = std::strlen(message); data/efax-gtk-3.2.8/src/settings.cpp:3143: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). const std::string::size_type length = std::strlen(name); data/efax-gtk-3.2.8/src/settings.cpp:3171: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). const std::string::size_type length = std::strlen(name); data/efax-gtk-3.2.8/src/socket_server.cpp:278:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((read_result = read(connect_sock_fd, buffer, BUFFER_LENGTH)) > 0 ANALYSIS SUMMARY: Hits = 301 Lines analyzed = 52727 in approximately 1.59 seconds (33241 lines/second) Physical Source Lines of Code (SLOC) = 29396 Hits@level = [0] 21 [1] 75 [2] 152 [3] 4 [4] 69 [5] 1 Hits@level+ = [0+] 322 [1+] 301 [2+] 226 [3+] 74 [4+] 70 [5+] 1 Hits/KSLOC@level+ = [0+] 10.9539 [1+] 10.2395 [2+] 7.68812 [3+] 2.51735 [4+] 2.38128 [5+] 0.0340182 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.