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/ipe-7.2.20/src/include/ipeattributes.h Examining data/ipe-7.2.20/src/include/ipebase.h Examining data/ipe-7.2.20/src/include/ipebitmap.h Examining data/ipe-7.2.20/src/include/ipedoc.h Examining data/ipe-7.2.20/src/include/ipefactory.h Examining data/ipe-7.2.20/src/include/ipegeo.h Examining data/ipe-7.2.20/src/include/ipegroup.h Examining data/ipe-7.2.20/src/include/ipeimage.h Examining data/ipe-7.2.20/src/include/ipeiml.h Examining data/ipe-7.2.20/src/include/ipelatex.h Examining data/ipe-7.2.20/src/include/ipelet.h Examining data/ipe-7.2.20/src/include/ipelib.h Examining data/ipe-7.2.20/src/include/ipeobject.h Examining data/ipe-7.2.20/src/include/ipeosx.h Examining data/ipe-7.2.20/src/include/ipepage.h Examining data/ipe-7.2.20/src/include/ipepainter.h Examining data/ipe-7.2.20/src/include/ipepath.h Examining data/ipe-7.2.20/src/include/ipepdfparser.h Examining data/ipe-7.2.20/src/include/ipepdfwriter.h Examining data/ipe-7.2.20/src/include/ipepswriter.h Examining data/ipe-7.2.20/src/include/ipereference.h Examining data/ipe-7.2.20/src/include/iperesources.h Examining data/ipe-7.2.20/src/include/ipeshape.h Examining data/ipe-7.2.20/src/include/ipesnap.h Examining data/ipe-7.2.20/src/include/ipestyle.h Examining data/ipe-7.2.20/src/include/ipetext.h Examining data/ipe-7.2.20/src/include/ipetoolbase.h Examining data/ipe-7.2.20/src/include/ipeutils.h Examining data/ipe-7.2.20/src/include/ipexml.h Examining data/ipe-7.2.20/src/ipe/appui.cpp Examining data/ipe-7.2.20/src/ipe/appui.h Examining data/ipe-7.2.20/src/ipe/appui_cocoa.cpp Examining data/ipe-7.2.20/src/ipe/appui_cocoa.h Examining data/ipe-7.2.20/src/ipe/appui_gtk.cpp Examining data/ipe-7.2.20/src/ipe/appui_gtk.h Examining data/ipe-7.2.20/src/ipe/appui_qt.cpp Examining data/ipe-7.2.20/src/ipe/appui_qt.h Examining data/ipe-7.2.20/src/ipe/appui_win.cpp Examining data/ipe-7.2.20/src/ipe/appui_win.h Examining data/ipe-7.2.20/src/ipe/controls_cocoa.cpp Examining data/ipe-7.2.20/src/ipe/controls_cocoa.h Examining data/ipe-7.2.20/src/ipe/controls_qt.cpp Examining data/ipe-7.2.20/src/ipe/controls_qt.h Examining data/ipe-7.2.20/src/ipe/controls_win.h Examining data/ipe-7.2.20/src/ipe/main_cocoa.cpp Examining data/ipe-7.2.20/src/ipe/main_gtk.cpp Examining data/ipe-7.2.20/src/ipe/main_qt.cpp Examining data/ipe-7.2.20/src/ipe/main_win.cpp Examining data/ipe-7.2.20/src/ipe/pagesorter_cocoa.cpp Examining data/ipe-7.2.20/src/ipe/pagesorter_win.cpp Examining data/ipe-7.2.20/src/ipe/pathview_win.cpp Examining data/ipe-7.2.20/src/ipe/tools.cpp Examining data/ipe-7.2.20/src/ipe/tools.h Examining data/ipe-7.2.20/src/ipe/uilua.cpp Examining data/ipe-7.2.20/src/ipe6upgrade/ipe6upgrade.cpp Examining data/ipe-7.2.20/src/ipecairo/ipecairopainter.cpp Examining data/ipe-7.2.20/src/ipecairo/ipecairopainter.h Examining data/ipe-7.2.20/src/ipecairo/ipefonts.cpp Examining data/ipe-7.2.20/src/ipecairo/ipefonts.h Examining data/ipe-7.2.20/src/ipecairo/ipethumbs.cpp Examining data/ipe-7.2.20/src/ipecairo/ipethumbs.h Examining data/ipe-7.2.20/src/ipecanvas/ipecanvas.cpp Examining data/ipe-7.2.20/src/ipecanvas/ipecanvas.h Examining data/ipe-7.2.20/src/ipecanvas/ipecanvas_cocoa.cpp Examining data/ipe-7.2.20/src/ipecanvas/ipecanvas_cocoa.h Examining data/ipe-7.2.20/src/ipecanvas/ipecanvas_gtk.cpp Examining data/ipe-7.2.20/src/ipecanvas/ipecanvas_gtk.h Examining data/ipe-7.2.20/src/ipecanvas/ipecanvas_qt.cpp Examining data/ipe-7.2.20/src/ipecanvas/ipecanvas_qt.h Examining data/ipe-7.2.20/src/ipecanvas/ipecanvas_win.cpp Examining data/ipe-7.2.20/src/ipecanvas/ipecanvas_win.h Examining data/ipe-7.2.20/src/ipecanvas/ipepdfview.cpp Examining data/ipe-7.2.20/src/ipecanvas/ipepdfview.h Examining data/ipe-7.2.20/src/ipecanvas/ipepdfview_cocoa.cpp Examining data/ipe-7.2.20/src/ipecanvas/ipepdfview_cocoa.h Examining data/ipe-7.2.20/src/ipecanvas/ipepdfview_qt.cpp Examining data/ipe-7.2.20/src/ipecanvas/ipepdfview_qt.h Examining data/ipe-7.2.20/src/ipecanvas/ipepdfview_win.cpp Examining data/ipe-7.2.20/src/ipecanvas/ipepdfview_win.h Examining data/ipe-7.2.20/src/ipecanvas/ipeselector_cocoa.cpp Examining data/ipe-7.2.20/src/ipecanvas/ipeselector_cocoa.h Examining data/ipe-7.2.20/src/ipecanvas/ipeselector_gtk.cpp Examining data/ipe-7.2.20/src/ipecanvas/ipeselector_qt.cpp Examining data/ipe-7.2.20/src/ipecanvas/ipeselector_qt.h Examining data/ipe-7.2.20/src/ipecanvas/ipeselector_win.cpp Examining data/ipe-7.2.20/src/ipecanvas/ipetool.cpp Examining data/ipe-7.2.20/src/ipecanvas/ipetool.h Examining data/ipe-7.2.20/src/ipecurl/ipecurl_osx.cpp Examining data/ipe-7.2.20/src/ipecurl/ipecurl_win.cpp Examining data/ipe-7.2.20/src/ipeextract/ipeextract.cpp Examining data/ipe-7.2.20/src/ipelets/kgon/kgon.cpp Examining data/ipe-7.2.20/src/ipelets/qvoronoi/qvoronoi.cpp Examining data/ipe-7.2.20/src/ipelib/ipeattributes.cpp Examining data/ipe-7.2.20/src/ipelib/ipebase.cpp Examining data/ipe-7.2.20/src/ipelib/ipebitmap.cpp Examining data/ipe-7.2.20/src/ipelib/ipebitmap_unix.cpp Examining data/ipe-7.2.20/src/ipelib/ipebitmap_win.cpp Examining data/ipe-7.2.20/src/ipelib/ipedoc.cpp Examining data/ipe-7.2.20/src/ipelib/ipefactory.cpp Examining data/ipe-7.2.20/src/ipelib/ipegeo.cpp Examining data/ipe-7.2.20/src/ipelib/ipegroup.cpp Examining data/ipe-7.2.20/src/ipelib/ipeimage.cpp Examining data/ipe-7.2.20/src/ipelib/ipeiml.cpp Examining data/ipe-7.2.20/src/ipelib/ipelatex.cpp Examining data/ipe-7.2.20/src/ipelib/ipeobject.cpp Examining data/ipe-7.2.20/src/ipelib/ipepage.cpp Examining data/ipe-7.2.20/src/ipelib/ipepainter.cpp Examining data/ipe-7.2.20/src/ipelib/ipepath.cpp Examining data/ipe-7.2.20/src/ipelib/ipepdfparser.cpp Examining data/ipe-7.2.20/src/ipelib/ipepdfwriter.cpp Examining data/ipe-7.2.20/src/ipelib/ipeplatform.cpp Examining data/ipe-7.2.20/src/ipelib/ipereference.cpp Examining data/ipe-7.2.20/src/ipelib/iperesources.cpp Examining data/ipe-7.2.20/src/ipelib/ipeshape.cpp Examining data/ipe-7.2.20/src/ipelib/ipesnap.cpp Examining data/ipe-7.2.20/src/ipelib/ipestdstyles.cpp Examining data/ipe-7.2.20/src/ipelib/ipestyle.cpp Examining data/ipe-7.2.20/src/ipelib/ipetext.cpp Examining data/ipe-7.2.20/src/ipelib/ipetoolbase.cpp Examining data/ipe-7.2.20/src/ipelib/ipeutils.cpp Examining data/ipe-7.2.20/src/ipelib/ipexml.cpp Examining data/ipe-7.2.20/src/ipelua/ipelib.cpp Examining data/ipe-7.2.20/src/ipelua/ipelua.h Examining data/ipe-7.2.20/src/ipelua/ipeluageo.cpp Examining data/ipe-7.2.20/src/ipelua/ipeluaipelet.cpp Examining data/ipe-7.2.20/src/ipelua/ipeluaobj.cpp Examining data/ipe-7.2.20/src/ipelua/ipeluapage.cpp Examining data/ipe-7.2.20/src/ipelua/ipeluastyle.cpp Examining data/ipe-7.2.20/src/ipepresenter/ipepresenter.cpp Examining data/ipe-7.2.20/src/ipepresenter/ipepresenter.h Examining data/ipe-7.2.20/src/ipepresenter/ipepresenter_cocoa.cpp Examining data/ipe-7.2.20/src/ipepresenter/ipepresenter_qt.cpp Examining data/ipe-7.2.20/src/ipepresenter/ipepresenter_qt.h Examining data/ipe-7.2.20/src/ipepresenter/ipepresenter_win.cpp Examining data/ipe-7.2.20/src/ipepresenter/timelabel_qt.cpp Examining data/ipe-7.2.20/src/ipepresenter/timelabel_qt.h Examining data/ipe-7.2.20/src/iperender/iperender.cpp Examining data/ipe-7.2.20/src/ipescript/ipescript.cpp Examining data/ipe-7.2.20/src/ipetoipe/ipetoipe.cpp Examining data/ipe-7.2.20/src/ipeui/ipeui_cocoa.cpp Examining data/ipe-7.2.20/src/ipeui/ipeui_common.cpp Examining data/ipe-7.2.20/src/ipeui/ipeui_common.h Examining data/ipe-7.2.20/src/ipeui/ipeui_gtk.cpp Examining data/ipe-7.2.20/src/ipeui/ipeui_qt.cpp Examining data/ipe-7.2.20/src/ipeui/ipeui_qt.h Examining data/ipe-7.2.20/src/ipeui/ipeui_win.cpp Examining data/ipe-7.2.20/src/ipeui/ipeui_wstring.h Examining data/ipe-7.2.20/src/ipeui/ipeuilayout_cocoa.h Examining data/ipe-7.2.20/src/spiro/bezctx_intf.h Examining data/ipe-7.2.20/src/spiro/spiro-config.h Examining data/ipe-7.2.20/src/spiro/spiro.c Examining data/ipe-7.2.20/src/spiro/spiro.h Examining data/ipe-7.2.20/src/spiro/spiroentrypoints.c Examining data/ipe-7.2.20/src/spiro/spiroentrypoints.h FINAL RESULTS: data/ipe-7.2.20/src/ipe/appui.cpp:513:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(s, iCoordinatesFormat.z(), v.x, units, v.y, units); data/ipe-7.2.20/src/ipe/appui_qt.cpp:789:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. s.sprintf("(%dppi)", int(72.0 * zoom)); data/ipe-7.2.20/src/ipe/appui_qt.cpp:910:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(&buf[0], aboutText, data/ipe-7.2.20/src/ipe/appui_win.cpp:1350:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(&buf[0], aboutText, data/ipe-7.2.20/src/ipe/controls_qt.cpp:302:4: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. s.sprintf("%d: ", i+1); data/ipe-7.2.20/src/ipe/controls_qt.cpp:305:4: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. s.sprintf("View %d", i+1); data/ipe-7.2.20/src/ipe/controls_qt.cpp:327:4: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. s.sprintf("%d: ", i+1); data/ipe-7.2.20/src/ipe/controls_qt.cpp:330:4: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. s.sprintf("Page %d", i+1); data/ipe-7.2.20/src/ipelib/ipeplatform.cpp:244:10: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. std::vsprintf(buf, msg, ap); data/ipe-7.2.20/src/ipelib/ipeplatform.cpp:410: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. return (access(fname.z(), F_OK) == 0); data/ipe-7.2.20/src/ipelib/ipeplatform.cpp:616:21: [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. int result = std::system(s.z()); data/ipe-7.2.20/src/ipepresenter/ipepresenter_qt.cpp:435:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(&buf[0], aboutText, data/ipe-7.2.20/src/ipepresenter/ipepresenter_win.cpp:549:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(&buf[0], aboutText, data/ipe-7.2.20/src/ipeui/ipeui_cocoa.cpp:748:49: [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. delegate.threadFunction = ^() { (void) std::system(cmd); [NSApp abortModal]; }; data/ipe-7.2.20/src/ipeui/ipeui_qt.cpp:599:23: [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. int result = std::system(iCommand.toUtf8()); data/ipe-7.2.20/src/ipeui/ipeui_win.cpp:1141:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%s\n\n%s", text, details); data/ipe-7.2.20/src/ipe/main_cocoa.cpp:48:25: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *luapath = getenv("IPELUAPATH"); data/ipe-7.2.20/src/ipe/main_gtk.cpp:49:25: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *luapath = getenv("IPELUAPATH"); data/ipe-7.2.20/src/ipe/main_qt.cpp:52:25: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *luapath = getenv("IPELUAPATH"); data/ipe-7.2.20/src/ipe/main_win.cpp:64:25: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *luapath = getenv("IPELUAPATH"); data/ipe-7.2.20/src/ipelib/ipeplatform.cpp:108:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *home = getenv("HOME"); data/ipe-7.2.20/src/ipelib/ipeplatform.cpp:189:7: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("IPEDEBUG")) { data/ipe-7.2.20/src/ipelib/ipeplatform.cpp:303:49: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. if (_NSGetExecutablePath(path, &size) == 0 && realpath(path, rpath) != nullptr) data/ipe-7.2.20/src/ipelib/ipeplatform.cpp:345:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *p = getenv("IPELATEXPATH"); data/ipe-7.2.20/src/ipelib/ipeplatform.cpp:388:19: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *p = getenv("IPELATEXDIR"); data/ipe-7.2.20/src/ipelib/ipeplatform.cpp:425:7: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. if (realpath(fname.z(), rpath)) data/ipe-7.2.20/src/ipelib/ipeplatform.cpp:429:7: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. if (realpath(".", rpath) == nullptr) data/ipe-7.2.20/src/ipelib/ipeplatform.cpp:501:18: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (!online && getenv("IPETEXFORMAT")) { data/ipe-7.2.20/src/ipelib/ipeplatform.cpp:580:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *wine = getenv("IPEWINE"); data/ipe-7.2.20/src/ipelib/ipeplatform.cpp:585:18: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (!online && getenv("IPETEXFORMAT")) { data/ipe-7.2.20/src/ipelua/ipeluaipelet.cpp:175:38: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. ipeDebug("DYLD_LIBRARY_PATH=%s", getenv("DYLD_LIBRARY_PATH")); data/ipe-7.2.20/src/ipelua/ipeluaipelet.cpp:176:47: [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. ipeDebug("DYLD_FALLBACK_LIBRARY_PATH=%s", getenv("DYLD_FALLBACK_LIBRARY_PATH")); data/ipe-7.2.20/src/ipescript/ipescript.cpp:92:26: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *pscripts = getenv("IPESCRIPTS"); data/ipe-7.2.20/src/ipescript/ipescript.cpp:119:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *home = getenv("HOME"); data/ipe-7.2.20/src/include/ipebase.h:356: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). static FILE *fopen(const char *fname, const char *mode); data/ipe-7.2.20/src/include/ipebase.h:359:25: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). inline static FILE *fopen(const char *fname, const char *mode) { data/ipe-7.2.20/src/include/ipebase.h:360:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return ::fopen(fname, mode); data/ipe-7.2.20/src/ipe/appui.cpp:322:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char display[32]; data/ipe-7.2.20/src/ipe/appui.cpp:323:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char action[32]; data/ipe-7.2.20/src/ipe/appui.cpp:325: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(display, "%d:1", -s); data/ipe-7.2.20/src/ipe/appui.cpp:327: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(display, "1:%d", s); data/ipe-7.2.20/src/ipe/appui.cpp:328: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(action, "@scaling|%d", s); data/ipe-7.2.20/src/ipe/appui.cpp:432:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[20]; data/ipe-7.2.20/src/ipe/appui.cpp:443:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "ipelet_%d_", j); data/ipe-7.2.20/src/ipe/appui.cpp:512: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 s[256]; data/ipe-7.2.20/src/ipe/appui.cpp:805: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). FILE *f = Platform::fopen(fn.z(), "rb"); data/ipe-7.2.20/src/ipe/appui_gtk.cpp:232: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 s[32]; data/ipe-7.2.20/src/ipe/appui_gtk.cpp:233:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(s, "(%dppi)", int(72.0 * zoom)); data/ipe-7.2.20/src/ipe/appui_qt.cpp:276:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char action[32]; data/ipe-7.2.20/src/ipe/appui_qt.cpp:277: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(action, "scaling|%d", iScalings[i]); data/ipe-7.2.20/src/ipe/appui_win.cpp:1082:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[16]; data/ipe-7.2.20/src/ipe/appui_win.cpp:1083: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, " (%d)", objCounts[i]); data/ipe-7.2.20/src/ipe/appui_win.cpp:1456: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 s[32]; data/ipe-7.2.20/src/ipe/appui_win.cpp:1457:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(s, "%dppi", int(72.0 * zoom)); data/ipe-7.2.20/src/ipe/appui_win.cpp:1535: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). FILE *f = Platform::fopen(temp.z(), "wb"); data/ipe-7.2.20/src/ipe/appui_win.cpp:1583: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 formatName[256]; data/ipe-7.2.20/src/ipe/appui_win.cpp:1590: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(formatName, "#%u", format); data/ipe-7.2.20/src/ipe/appui_win.cpp:1632:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, ws.data(), size); data/ipe-7.2.20/src/ipe/appui_win.cpp:1653:3: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t cname[100]; data/ipe-7.2.20/src/ipe/main_win.cpp:52:3: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t szPath[MAX_PATH]; data/ipe-7.2.20/src/ipe/pagesorter_win.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 buf[16]; data/ipe-7.2.20/src/ipe/pagesorter_win.cpp:121: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(buf, "%d: ", page+1); data/ipe-7.2.20/src/ipe/pagesorter_win.cpp:123: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(buf, "View %d", page+1); data/ipe-7.2.20/src/ipe/pagesorter_win.cpp:128: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(buf, "%d: ", page+1); data/ipe-7.2.20/src/ipe/pagesorter_win.cpp:130: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(buf, "Page %d", page+1); data/ipe-7.2.20/src/ipe/pagesorter_win.cpp:196:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[32]; data/ipe-7.2.20/src/ipe/pagesorter_win.cpp:198: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(buf, "Insert before view %d", d->pages[index] + 1); data/ipe-7.2.20/src/ipe/pagesorter_win.cpp:200: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(buf, "Insert before page %d", d->pages[index] + 1); data/ipe-7.2.20/src/ipe/pagesorter_win.cpp:203: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(buf, "Insert after view %d", d->pages[index] + 1); data/ipe-7.2.20/src/ipe/pagesorter_win.cpp:205: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(buf, "Insert after page %d", d->pages[index] + 1); data/ipe-7.2.20/src/ipe6upgrade/ipe6upgrade.cpp:646:29: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). std::FILE *fd = Platform::fopen(src, "rb"); data/ipe-7.2.20/src/ipe6upgrade/ipe6upgrade.cpp:651:30: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). std::FILE *out = Platform::fopen(dst.z(), "wb"); data/ipe-7.2.20/src/ipecairo/ipefonts.cpp:125: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[128]; data/ipe-7.2.20/src/ipecairo/ipefonts.cpp:126:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "Freetype %d.%d.%d / %d.%d.%d", data/ipe-7.2.20/src/ipecairo/ipefonts.cpp:442:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[100]; data/ipe-7.2.20/src/ipecairo/ipethumbs.cpp:125:31: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). std::FILE *file = Platform::fopen(dst, "wb"); data/ipe-7.2.20/src/ipecurl/ipecurl_osx.cpp:98:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(p, "ipetemp.tex"); data/ipe-7.2.20/src/ipecurl/ipecurl_osx.cpp:99:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(p + 100, "0000644"); // mode data/ipe-7.2.20/src/ipecurl/ipecurl_osx.cpp:100:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(p + 108, "0001750"); // uid 1000 data/ipe-7.2.20/src/ipecurl/ipecurl_osx.cpp:101:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(p + 116, "0001750"); // gid 1000 data/ipe-7.2.20/src/ipecurl/ipecurl_osx.cpp:102:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(p + 124, "%011o", tex.size()); data/ipe-7.2.20/src/ipecurl/ipecurl_osx.cpp:106:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(p + 148, " "); data/ipe-7.2.20/src/ipecurl/ipecurl_osx.cpp:110:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(p + 148, "%06o", checksum); data/ipe-7.2.20/src/ipecurl/ipecurl_osx.cpp:172:25: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *log = Platform::fopen(LOGNAME, "wb"); data/ipe-7.2.20/src/ipecurl/ipecurl_osx.cpp:176: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). FILE * out = fopen(PDFNAME, "wb"); data/ipe-7.2.20/src/ipecurl/ipecurl_win.cpp:107:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE * out = fopen(PDFNAME, "wb"); data/ipe-7.2.20/src/ipecurl/ipecurl_win.cpp:131:3: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t agent[32]; data/ipe-7.2.20/src/ipecurl/ipecurl_win.cpp:167:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(p, "ipetemp.tex"); data/ipe-7.2.20/src/ipecurl/ipecurl_win.cpp:168:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(p + 100, "0000644"); // mode data/ipe-7.2.20/src/ipecurl/ipecurl_win.cpp:169:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(p + 108, "0001750"); // uid 1000 data/ipe-7.2.20/src/ipecurl/ipecurl_win.cpp:170:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(p + 116, "0001750"); // gid 1000 data/ipe-7.2.20/src/ipecurl/ipecurl_win.cpp:171:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(p + 124, "%011o", tex.size()); data/ipe-7.2.20/src/ipecurl/ipecurl_win.cpp:175:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(p + 148, " "); data/ipe-7.2.20/src/ipecurl/ipecurl_win.cpp:179:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(p + 148, "%06o", checksum); data/ipe-7.2.20/src/ipecurl/ipecurl_win.cpp:229:25: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *log = Platform::fopen(LOGNAME, "wb"); data/ipe-7.2.20/src/ipeextract/ipeextract.cpp:403:29: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). std::FILE *fd = Platform::fopen(src, "rb"); data/ipe-7.2.20/src/ipeextract/ipeextract.cpp:417:32: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). std::FILE *out = Platform::fopen(dst.z(), "wb"); data/ipe-7.2.20/src/ipelets/qvoronoi/qvoronoi.cpp:331:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[32]; data/ipe-7.2.20/src/ipelets/qvoronoi/qvoronoi.cpp:332:10: [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. std::sprintf(buf, "%g", iInfiniteEdgeLength); data/ipe-7.2.20/src/ipelib/ipebase.cpp:108: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(iImp->iData, str, iImp->iSize); data/ipe-7.2.20/src/ipelib/ipebase.cpp:138: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(iImp->iData, str, iImp->iSize); data/ipe-7.2.20/src/ipelib/ipebase.cpp:167: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(iImp->iData, rhs.iImp->iData + index, len); data/ipe-7.2.20/src/ipelib/ipebase.cpp:215: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(imp->iData, iImp->iData, imp->iSize); data/ipe-7.2.20/src/ipelib/ipebase.cpp:296:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(iImp->iData + iImp->iSize, rhs.iImp->iData, n); data/ipe-7.2.20/src/ipelib/ipebase.cpp:306: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(iImp->iData + iImp->iSize, rhs, n); data/ipe-7.2.20/src/ipelib/ipebase.cpp:577: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(&(*iData)[0], data, size); data/ipe-7.2.20/src/ipelib/ipebase.cpp:622: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[30]; data/ipe-7.2.20/src/ipelib/ipebase.cpp:623:8: [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. std::sprintf(buf, "%d", i); data/ipe-7.2.20/src/ipelib/ipebase.cpp:631: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[30]; data/ipe-7.2.20/src/ipelib/ipebase.cpp:639:10: [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. std::sprintf(buf, "%g", d); data/ipe-7.2.20/src/ipelib/ipebase.cpp:669:10: [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. std::sprintf(buf, "%d", intpart); data/ipe-7.2.20/src/ipelib/ipebase.cpp:686: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[3]; data/ipe-7.2.20/src/ipelib/ipebase.cpp:687:8: [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. std::sprintf(buf, "%02x", (b & 0xff)); data/ipe-7.2.20/src/ipelib/ipebitmap.cpp:332:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[10]; data/ipe-7.2.20/src/ipelib/ipebitmap.cpp:333: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, "%x", colorKey()); data/ipe-7.2.20/src/ipelib/ipebitmap.cpp:441:26: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *file = Platform::fopen(fname, "wb"); data/ipe-7.2.20/src/ipelib/ipebitmap.cpp:721:26: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *file = Platform::fopen(fname, "rb"); data/ipe-7.2.20/src/ipelib/ipebitmap_unix.cpp:124:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char jpegLastErrorMsg[JMSG_LENGTH_MAX]; data/ipe-7.2.20/src/ipelib/ipebitmap_unix.cpp:185:24: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = Platform::fopen(fname, "rb"); data/ipe-7.2.20/src/ipelib/ipedoc.cpp:241:29: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). std::FILE *fd = Platform::fopen(fname, "rb"); data/ipe-7.2.20/src/ipelib/ipedoc.cpp:328:29: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). std::FILE *fd = Platform::fopen(fname, "wb"); data/ipe-7.2.20/src/ipelib/ipedoc.cpp:348:29: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). std::FILE *fd = Platform::fopen(fname, "wb"); data/ipe-7.2.20/src/ipelib/ipedoc.cpp:367:29: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). std::FILE *fd = Platform::fopen(fname, "wb"); data/ipe-7.2.20/src/ipelib/ipedoc.cpp:638:31: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). std::FILE *file = Platform::fopen(texFile.z(), "wb"); data/ipe-7.2.20/src/ipelib/ipedoc.cpp:666:31: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). std::FILE *pdfF = Platform::fopen(pdfFile.z(), "rb"); data/ipe-7.2.20/src/ipelib/ipelatex.cpp:154: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 latex[256]; data/ipe-7.2.20/src/ipelib/ipelatex.cpp:155:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(latex, "\\def\\ipeNumber#1#2{#%d}" data/ipe-7.2.20/src/ipelib/ipepage.cpp:249:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[20]; data/ipe-7.2.20/src/ipelib/ipepage.cpp:252:10: [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. std::sprintf(name, "alpha%d", i); data/ipe-7.2.20/src/ipelib/ipepdfparser.cpp:42:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char specialChars[256] = { data/ipe-7.2.20/src/ipelib/ipepdfparser.cpp:159:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char octbuf[5]; data/ipe-7.2.20/src/ipelib/ipepdfparser.cpp:164:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(octbuf, "\\%.3o", (ch & 0xff)); data/ipe-7.2.20/src/ipelib/ipepdfparser.cpp:523:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[4]; data/ipe-7.2.20/src/ipelib/ipepdfwriter.cpp:156: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 buf[12]; data/ipe-7.2.20/src/ipelib/ipepdfwriter.cpp:157:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "/alpha%03d", alpha.internal()); data/ipe-7.2.20/src/ipelib/ipepdfwriter.cpp:942:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[5]; data/ipe-7.2.20/src/ipelib/ipepdfwriter.cpp:945: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(buf, "%04X", text.unicode(i)); data/ipe-7.2.20/src/ipelib/ipepdfwriter.cpp:1157:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char s[12]; data/ipe-7.2.20/src/ipelib/ipepdfwriter.cpp:1159:12: [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. std::sprintf(s, "%010d", obj); data/ipe-7.2.20/src/ipelib/ipepdfwriter.cpp:1162:12: [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. std::sprintf(s, "%010ld", iXref[obj]); data/ipe-7.2.20/src/ipelib/ipeplatform.cpp:241:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[8196]; data/ipe-7.2.20/src/ipelib/ipeplatform.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[1024]; data/ipe-7.2.20/src/ipelib/ipeplatform.cpp:296:3: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t exename[OFS_MAXPATHNAME]; data/ipe-7.2.20/src/ipelib/ipeplatform.cpp:300: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 path[PATH_MAX], rpath[PATH_MAX]; data/ipe-7.2.20/src/ipelib/ipeplatform.cpp:419:3: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t wresult[MAX_PATH]; data/ipe-7.2.20/src/ipelib/ipeplatform.cpp:424: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 rpath[PATH_MAX]; data/ipe-7.2.20/src/ipelib/ipeplatform.cpp:471:31: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). std::FILE *file = Platform::fopen(fname.z(), "rb"); data/ipe-7.2.20/src/ipelib/ipeplatform.cpp:548:28: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). std::FILE *f = Platform::fopen(s.z(), "wb"); data/ipe-7.2.20/src/ipelib/ipeplatform.cpp:624:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *Platform::fopen(const char *fname, const char *mode) data/ipe-7.2.20/src/ipelib/ipeplatform.cpp:639:12: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). int rw = MultiByteToWideChar(CP_UTF8, 0, data(), size(), nullptr, 0); data/ipe-7.2.20/src/ipelib/ipeplatform.cpp:641:3: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_UTF8, 0, data(), size(), &result[0], rw); data/ipe-7.2.20/src/ipelib/ipeutils.cpp:210:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[6]; data/ipe-7.2.20/src/ipelib/ipeutils.cpp:230:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[6]; data/ipe-7.2.20/src/ipelib/ipeutils.cpp:246:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char base64letter[65] = data/ipe-7.2.20/src/ipelib/ipeutils.cpp:279:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[5]; data/ipe-7.2.20/src/ipelib/ipeutils.cpp:297:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[5]; data/ipe-7.2.20/src/ipelib/ipeutils.cpp:419: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[4]; data/ipe-7.2.20/src/ipelua/ipelib.cpp:495:24: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fd = Platform::fopen(fname.z(), "rb"); data/ipe-7.2.20/src/ipelua/ipelib.cpp:633:20: [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). p->f = Platform::fopen(filename, mode); data/ipe-7.2.20/src/ipelua/ipeluastyle.cpp:77:26: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fd = Platform::fopen(fname.z(), "rb"); data/ipe-7.2.20/src/ipepresenter/ipepresenter.cpp:39:34: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). std::FILE *pdfFile = Platform::fopen(fname, "rb"); data/ipe-7.2.20/src/ipepresenter/ipepresenter.cpp:160:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[16]; data/ipe-7.2.20/src/ipepresenter/ipepresenter.cpp:161: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(buf, "%d", pno + 1); data/ipe-7.2.20/src/ipepresenter/ipepresenter_win.cpp:54:12: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). int rw = MultiByteToWideChar(CP_UTF8, 0, s, -1, nullptr, 0); data/ipe-7.2.20/src/ipepresenter/ipepresenter_win.cpp:56:3: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_UTF8, 0, s, -1, &ws[0], rw); data/ipe-7.2.20/src/ipepresenter/ipepresenter_win.cpp:404:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[16]; data/ipe-7.2.20/src/ipepresenter/ipepresenter_win.cpp:405:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%d:%02d:%02d", iTime / 3600, (iTime / 60) % 60, data/ipe-7.2.20/src/ipepresenter/ipepresenter_win.cpp:556:12: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). int rw = MultiByteToWideChar(CP_UTF8, 0, s, n, nullptr, 0); data/ipe-7.2.20/src/ipepresenter/ipepresenter_win.cpp:559:3: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_UTF8, 0, s, n, wbuf.data(), rw); data/ipe-7.2.20/src/ipepresenter/ipepresenter_win.cpp:578: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[80]; data/ipe-7.2.20/src/ipepresenter/ipepresenter_win.cpp:750:3: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t szFileName[MAX_PATH] = L""; data/ipe-7.2.20/src/ipetoipe/ipetoipe.cpp:230:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64]; data/ipe-7.2.20/src/ipetoipe/ipetoipe.cpp:231:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "ipetoipe %d.%d.%d", data/ipe-7.2.20/src/ipeui/ipeui_cocoa.cpp:1306:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[16]; data/ipe-7.2.20/src/ipeui/ipeui_cocoa.cpp:1307:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%04ld%02ld%02ld%02ld%02ld%02ld", data/ipe-7.2.20/src/ipeui/ipeui_gtk.cpp:901:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[16]; data/ipe-7.2.20/src/ipeui/ipeui_gtk.cpp:902:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%04d%02d%02d%02d%02d%02d", data/ipe-7.2.20/src/ipeui/ipeui_win.cpp:47:12: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). int rw = MultiByteToWideChar(CP_UTF8, 0, s, len, nullptr, 0); data/ipe-7.2.20/src/ipeui/ipeui_win.cpp:49:3: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_UTF8, 0, s, len, data(), rw); data/ipe-7.2.20/src/ipeui/ipeui_win.cpp:1037:3: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t szFileName[MAX_PATH] = L""; data/ipe-7.2.20/src/ipeui/ipeui_win.cpp:1140:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[strlen(text) + strlen(details) + 8]; data/ipe-7.2.20/src/ipeui/ipeui_win.cpp:1317: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[32]; data/ipe-7.2.20/src/ipeui/ipeui_win.cpp:1318:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%04d%02d%02d%02d%02d%02d", data/ipe-7.2.20/src/spiro/spiro.c:854:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(m + nmat, m, l); data/ipe-7.2.20/src/spiro/spiro.c:855:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(m + 2 * nmat, m, l); data/ipe-7.2.20/src/spiro/spiro.c:857:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(v + nmat, v, l); data/ipe-7.2.20/src/spiro/spiro.c:858:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(v + 2 * nmat, v, l); data/ipe-7.2.20/src/include/ipebitmap.h:65:10: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. bool equal(Bitmap rhs) const; data/ipe-7.2.20/src/ipe/appui.cpp:808:18: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). jpeg = (std::fgetc(f) == 0xff && std::fgetc(f) == 0xd8); data/ipe-7.2.20/src/ipe/appui.cpp:808:43: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). jpeg = (std::fgetc(f) == 0xff && std::fgetc(f) == 0xd8); data/ipe-7.2.20/src/ipe/appui_gtk.cpp:51:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int n = strlen(s); data/ipe-7.2.20/src/ipe/appui_qt.cpp:909: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). std::vector<char> buf(strlen(aboutText) + 100); data/ipe-7.2.20/src/ipe/appui_win.cpp:1349: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). std::vector<char> buf(strlen(aboutText) + 100); data/ipe-7.2.20/src/ipelib/ipebase.cpp:102:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen(str); data/ipe-7.2.20/src/ipelib/ipebase.cpp:116:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(data); data/ipe-7.2.20/src/ipelib/ipebase.cpp:251:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int s = strlen(rhs); data/ipe-7.2.20/src/ipelib/ipebase.cpp:303:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int n = strlen(rhs); data/ipe-7.2.20/src/ipelib/ipebase.cpp:348:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int n = strlen(rhs); data/ipe-7.2.20/src/ipelib/ipebase.cpp:362:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int n = strlen(rhs); data/ipe-7.2.20/src/ipelib/ipebase.cpp:842:15: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return std::fgetc(iFile); data/ipe-7.2.20/src/ipelib/ipebitmap.cpp:361:14: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. bool Bitmap::equal(Bitmap rhs) const data/ipe-7.2.20/src/ipelib/ipebitmap.cpp:592:16: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). uint8_t c1 = fgetc(f); data/ipe-7.2.20/src/ipelib/ipebitmap.cpp:593:16: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). uint8_t c2 = fgetc(f); data/ipe-7.2.20/src/ipelib/ipebitmap.cpp:616:14: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int ch = fgetc(file); data/ipe-7.2.20/src/ipelib/ipebitmap.cpp:620:12: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc(file); data/ipe-7.2.20/src/ipelib/ipebitmap.cpp:642:12: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc(file); data/ipe-7.2.20/src/ipelib/ipebitmap.cpp:647:12: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc(file); data/ipe-7.2.20/src/ipelib/ipebitmap.cpp:667:7: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc(file); data/ipe-7.2.20/src/ipelib/ipebitmap.cpp:673:20: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). char units = fgetc(file); data/ipe-7.2.20/src/ipelib/ipedoc.cpp:467:16: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (!it->equal(prev)) { data/ipe-7.2.20/src/ipelib/ipepdfwriter.cpp:672:36: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. it1 != iBitmaps.end() && !it1->equal(*it); ++it1) data/ipe-7.2.20/src/ipelib/ipeplatform.cpp:476:21: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((ch = std::fgetc(file)) != EOF) data/ipe-7.2.20/src/ipelib/ipestyle.cpp:433:11: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (!it->equal(prev)) { data/ipe-7.2.20/src/ipepresenter/ipepresenter_qt.cpp:434: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). std::vector<char> buf(strlen(aboutText) + 100); data/ipe-7.2.20/src/ipepresenter/ipepresenter_win.cpp:548: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). std::vector<char> buf(strlen(aboutText) + 100); data/ipe-7.2.20/src/ipepresenter/ipepresenter_win.cpp:555:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int n = strlen(s); data/ipe-7.2.20/src/ipeui/ipeui_cocoa.cpp:127:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(strlen(rel) == 3); data/ipe-7.2.20/src/ipeui/ipeui_win.cpp:1051:5: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). wcsncpy(szFileName, wname.data(), MAX_PATH); data/ipe-7.2.20/src/ipeui/ipeui_win.cpp:1140: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). char buf[strlen(text) + strlen(details) + 8]; data/ipe-7.2.20/src/ipeui/ipeui_win.cpp:1140: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). char buf[strlen(text) + strlen(details) + 8]; ANALYSIS SUMMARY: Hits = 220 Lines analyzed = 58899 in approximately 1.59 seconds (37029 lines/second) Physical Source Lines of Code (SLOC) = 43187 Hits@level = [0] 105 [1] 33 [2] 153 [3] 18 [4] 16 [5] 0 Hits@level+ = [0+] 325 [1+] 220 [2+] 187 [3+] 34 [4+] 16 [5+] 0 Hits/KSLOC@level+ = [0+] 7.52541 [1+] 5.09413 [2+] 4.33001 [3+] 0.787274 [4+] 0.370482 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.