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/peony-3.0.6/peony-qt-desktop/desktop-index-widget.h Examining data/peony-3.0.6/peony-qt-desktop/desktop-item-model.h Examining data/peony-3.0.6/peony-qt-desktop/bw-list-info.h Examining data/peony-3.0.6/peony-qt-desktop/peony-json-operation.h Examining data/peony-3.0.6/peony-qt-desktop/desktop-screen.cpp Examining data/peony-3.0.6/peony-qt-desktop/desktop-menu-plugin-manager.h Examining data/peony-3.0.6/peony-qt-desktop/peony-json-operation.cpp Examining data/peony-3.0.6/peony-qt-desktop/desktop-item-proxy-model.h Examining data/peony-3.0.6/peony-qt-desktop/fm-dbus-service.cpp Examining data/peony-3.0.6/peony-qt-desktop/desktop-menu.h Examining data/peony-3.0.6/peony-qt-desktop/desktop-menu.cpp Examining data/peony-3.0.6/peony-qt-desktop/desktop-item-proxy-model.cpp Examining data/peony-3.0.6/peony-qt-desktop/desktop-menu-plugin-manager.cpp Examining data/peony-3.0.6/peony-qt-desktop/desktop-window.cpp Examining data/peony-3.0.6/peony-qt-desktop/desktop-icon-view.h Examining data/peony-3.0.6/peony-qt-desktop/peony-desktop-application.cpp Examining data/peony-3.0.6/peony-qt-desktop/fm-dbus-service.h Examining data/peony-3.0.6/peony-qt-desktop/desktop-screen.h Examining data/peony-3.0.6/peony-qt-desktop/desktop-index-widget.cpp Examining data/peony-3.0.6/peony-qt-desktop/desktop-icon-view-delegate.h Examining data/peony-3.0.6/peony-qt-desktop/desktop-window.h Examining data/peony-3.0.6/peony-qt-desktop/bw-list-info.cpp Examining data/peony-3.0.6/peony-qt-desktop/desktop-icon-view.cpp Examining data/peony-3.0.6/peony-qt-desktop/main.cpp Examining data/peony-3.0.6/peony-qt-desktop/peony-dbus-service.cpp Examining data/peony-3.0.6/peony-qt-desktop/peony-dbus-service.h Examining data/peony-3.0.6/peony-qt-desktop/peony-desktop-application.h Examining data/peony-3.0.6/peony-qt-desktop/desktop-item-model.cpp Examining data/peony-3.0.6/peony-qt-desktop/desktop-icon-view-delegate.cpp Examining data/peony-3.0.6/peony-qt-plugin-test/properties-window-tab-page-plugin-example/properties-window-tab-page-examplefactory.h Examining data/peony-3.0.6/peony-qt-plugin-test/properties-window-tab-page-plugin-example/properties-window-tab-page-plugin-example_global.h Examining data/peony-3.0.6/peony-qt-plugin-test/properties-window-tab-page-plugin-example/properties-window-tab-page-examplefactory.cpp Examining data/peony-3.0.6/peony-qt-plugin-test/peony-qt-menu-plugin-mate-terminal/peony-qt-menu-plugin-mate-terminal_global.h Examining data/peony-3.0.6/peony-qt-plugin-test/peony-qt-menu-plugin-mate-terminal/mate-terminal-menu-plugin.cpp Examining data/peony-3.0.6/peony-qt-plugin-test/peony-qt-menu-plugin-mate-terminal/mate-terminal-menu-plugin.h Examining data/peony-3.0.6/peony-qt-plugin-test/gtk2-style-enhanced-plugin/gtk2-style-enhanced-plugin.h Examining data/peony-3.0.6/peony-qt-plugin-test/gtk2-style-enhanced-plugin/gtk2-style-enhanced-plugin_global.h Examining data/peony-3.0.6/peony-qt-plugin-test/gtk2-style-enhanced-plugin/gtk2-style-enhanced-plugin.cpp Examining data/peony-3.0.6/peony-qt-plugin-test/directory-view-extensions-plugin-test/directory-view-extensions-test-plugin.h Examining data/peony-3.0.6/peony-qt-plugin-test/directory-view-extensions-plugin-test/directory-view-extensions-test-plugin.cpp Examining data/peony-3.0.6/peony-qt-plugin-test/directory-view-extensions-plugin-test/directory-view-extensions-plugin-test_global.h Examining data/peony-3.0.6/peony-qt-plugin-test/peony-qt-menu-plugin-example/peony-qt-menu-plugin-example_global.h Examining data/peony-3.0.6/peony-qt-plugin-test/peony-qt-menu-plugin-example/menu-plugin-example.h Examining data/peony-3.0.6/peony-qt-plugin-test/peony-qt-menu-plugin-example/menu-plugin-example.cpp Examining data/peony-3.0.6/peony-qt-plugin-test/peony-qt-preview-file-content-plugin/content-preview-page-factory.cpp Examining data/peony-3.0.6/peony-qt-plugin-test/peony-qt-preview-file-content-plugin/content-preview-page.cpp Examining data/peony-3.0.6/peony-qt-plugin-test/peony-qt-preview-file-content-plugin/peony-qt-preview-file-content-plugin_global.h Examining data/peony-3.0.6/peony-qt-plugin-test/peony-qt-preview-file-content-plugin/content-preview-page.h Examining data/peony-3.0.6/peony-qt-plugin-test/peony-qt-preview-file-content-plugin/content-preview-page-factory.h Examining data/peony-3.0.6/plugin-iface/tool-bar-action-plugin-iface.h Examining data/peony-3.0.6/plugin-iface/preview-page-plugin-iface.h Examining data/peony-3.0.6/plugin-iface/vfs-plugin-iface.h Examining data/peony-3.0.6/plugin-iface/style-plugin-iface.h Examining data/peony-3.0.6/plugin-iface/directory-view-plugin-iface2.h Examining data/peony-3.0.6/plugin-iface/plugin-iface.h Examining data/peony-3.0.6/plugin-iface/directory-view-plugin-iface.h Examining data/peony-3.0.6/plugin-iface/properties-window-tab-page-plugin-iface.h Examining data/peony-3.0.6/plugin-iface/menu-plugin-iface.h Examining data/peony-3.0.6/libpeony-qt/file-info.h Examining data/peony-3.0.6/libpeony-qt/file-info-manager.cpp Examining data/peony-3.0.6/libpeony-qt/effects/border-shadow-effect.cpp Examining data/peony-3.0.6/libpeony-qt/effects/border-shadow-effect.h Examining data/peony-3.0.6/libpeony-qt/file-launcher/file-lauch-dialog.cpp Examining data/peony-3.0.6/libpeony-qt/file-launcher/file-lauch-dialog.h Examining data/peony-3.0.6/libpeony-qt/file-launcher/file-launch-action.h Examining data/peony-3.0.6/libpeony-qt/file-launcher/file-launch-manager.h Examining data/peony-3.0.6/libpeony-qt/file-launcher/file-launch-action.cpp Examining data/peony-3.0.6/libpeony-qt/file-launcher/file-launch-manager.cpp Examining data/peony-3.0.6/libpeony-qt/file-watcher.h Examining data/peony-3.0.6/libpeony-qt/windows/format_dialog.cpp Examining data/peony-3.0.6/libpeony-qt/windows/fm-window.cpp Examining data/peony-3.0.6/libpeony-qt/windows/FMWindowIface.h Examining data/peony-3.0.6/libpeony-qt/windows/format_dialog.h Examining data/peony-3.0.6/libpeony-qt/windows/fm-window.h Examining data/peony-3.0.6/libpeony-qt/windows/properties-window.h Examining data/peony-3.0.6/libpeony-qt/windows/fm-window-factory.h Examining data/peony-3.0.6/libpeony-qt/windows/properties-window.cpp Examining data/peony-3.0.6/libpeony-qt/windows/fm-window-factory.cpp Examining data/peony-3.0.6/libpeony-qt/file-enumerator.cpp Examining data/peony-3.0.6/libpeony-qt/plugin-manager.h Examining data/peony-3.0.6/libpeony-qt/global-settings.h Examining data/peony-3.0.6/libpeony-qt/bookmark-manager.cpp Examining data/peony-3.0.6/libpeony-qt/file-info-manager.h Examining data/peony-3.0.6/libpeony-qt/plugin-manager.cpp Examining data/peony-3.0.6/libpeony-qt/file-info-job.h Examining data/peony-3.0.6/libpeony-qt/file-info.cpp Examining data/peony-3.0.6/libpeony-qt/linux-pwd-helper.cpp Examining data/peony-3.0.6/libpeony-qt/gobject-template.h Examining data/peony-3.0.6/libpeony-qt/thumbnail-manager.cpp Examining data/peony-3.0.6/libpeony-qt/peony-core_global.h Examining data/peony-3.0.6/libpeony-qt/convenient-utils/audio-play-manager.cpp Examining data/peony-3.0.6/libpeony-qt/convenient-utils/file-operation-utils.cpp Examining data/peony-3.0.6/libpeony-qt/convenient-utils/clipboard-utils.cpp Examining data/peony-3.0.6/libpeony-qt/convenient-utils/file-operation-utils.h Examining data/peony-3.0.6/libpeony-qt/convenient-utils/audio-play-manager.h Examining data/peony-3.0.6/libpeony-qt/convenient-utils/clipboard-utils.h Examining data/peony-3.0.6/libpeony-qt/vfs/peony-search-vfs-file-enumerator.cpp Examining data/peony-3.0.6/libpeony-qt/vfs/peony-search-vfs-file.h Examining data/peony-3.0.6/libpeony-qt/vfs/vfs-plugin-manager.cpp Examining data/peony-3.0.6/libpeony-qt/vfs/search-vfs-register.cpp Examining data/peony-3.0.6/libpeony-qt/vfs/vfs-plugin-manager.h Examining data/peony-3.0.6/libpeony-qt/vfs/search-vfs-uri-parser.h Examining data/peony-3.0.6/libpeony-qt/vfs/search-vfs-register.h Examining data/peony-3.0.6/libpeony-qt/vfs/search-vfs-manager.h Examining data/peony-3.0.6/libpeony-qt/vfs/search-vfs-uri-parser.cpp Examining data/peony-3.0.6/libpeony-qt/vfs/peony-search-vfs-file-enumerator.h Examining data/peony-3.0.6/libpeony-qt/vfs/recent-vfs-manager.cpp Examining data/peony-3.0.6/libpeony-qt/vfs/recent-vfs-manager.h Examining data/peony-3.0.6/libpeony-qt/vfs/search-vfs-manager.cpp Examining data/peony-3.0.6/libpeony-qt/vfs/peony-search-vfs-file.cpp Examining data/peony-3.0.6/libpeony-qt/file-watcher.cpp Examining data/peony-3.0.6/libpeony-qt/file-operation/file-link-operation.cpp Examining data/peony-3.0.6/libpeony-qt/file-operation/file-node-reporter.cpp Examining data/peony-3.0.6/libpeony-qt/file-operation/file-count-operation.h Examining data/peony-3.0.6/libpeony-qt/file-operation/file-copy-operation.h Examining data/peony-3.0.6/libpeony-qt/file-operation/file-count-operation.cpp Examining data/peony-3.0.6/libpeony-qt/file-operation/create-template-operation.cpp Examining data/peony-3.0.6/libpeony-qt/file-operation/file-rename-operation.cpp Examining data/peony-3.0.6/libpeony-qt/file-operation/file-trash-operation.h Examining data/peony-3.0.6/libpeony-qt/file-operation/file-operation-progress-bar.cpp Examining data/peony-3.0.6/libpeony-qt/file-operation/file-move-operation.h Examining data/peony-3.0.6/libpeony-qt/file-operation/file-copy-operation.cpp Examining data/peony-3.0.6/libpeony-qt/file-operation/file-move-operation.cpp Examining data/peony-3.0.6/libpeony-qt/file-operation/file-operation-error-dialog.h Examining data/peony-3.0.6/libpeony-qt/file-operation/file-operation-error-dialog-base.cpp Examining data/peony-3.0.6/libpeony-qt/file-operation/file-operation-progress-wizard.cpp Examining data/peony-3.0.6/libpeony-qt/file-operation/file-operation-error-handler.h Examining data/peony-3.0.6/libpeony-qt/file-operation/file-delete-operation.cpp Examining data/peony-3.0.6/libpeony-qt/file-operation/file-untrash-operation.h Examining data/peony-3.0.6/libpeony-qt/file-operation/file-operation-error-dialogs.h Examining data/peony-3.0.6/libpeony-qt/file-operation/file-operation-test/mainwindow.h Examining data/peony-3.0.6/libpeony-qt/file-operation/file-operation-test/main.cpp Examining data/peony-3.0.6/libpeony-qt/file-operation/file-operation-test/mainwindow.cpp Examining data/peony-3.0.6/libpeony-qt/file-operation/file-node.h Examining data/peony-3.0.6/libpeony-qt/file-operation/create-template-operation.h Examining data/peony-3.0.6/libpeony-qt/file-operation/file-operation-progress-bar.h Examining data/peony-3.0.6/libpeony-qt/file-operation/file-operation-manager.h Examining data/peony-3.0.6/libpeony-qt/file-operation/file-node-reporter.h Examining data/peony-3.0.6/libpeony-qt/file-operation/file-delete-operation.h Examining data/peony-3.0.6/libpeony-qt/file-operation/file-operation-error-dialog.cpp Examining data/peony-3.0.6/libpeony-qt/file-operation/file-operation.h Examining data/peony-3.0.6/libpeony-qt/file-operation/file-trash-operation.cpp Examining data/peony-3.0.6/libpeony-qt/file-operation/file-untrash-operation.cpp Examining data/peony-3.0.6/libpeony-qt/file-operation/file-link-operation.h Examining data/peony-3.0.6/libpeony-qt/file-operation/file-operation-progress-wizard.h Examining data/peony-3.0.6/libpeony-qt/file-operation/file-operation-error-dialog-base.h Examining data/peony-3.0.6/libpeony-qt/file-operation/file-operation-manager.cpp Examining data/peony-3.0.6/libpeony-qt/file-operation/file-operation-error-dialogs.cpp Examining data/peony-3.0.6/libpeony-qt/file-operation/file-rename-operation.h Examining data/peony-3.0.6/libpeony-qt/file-operation/file-node.cpp Examining data/peony-3.0.6/libpeony-qt/file-operation/file-operation.cpp Examining data/peony-3.0.6/libpeony-qt/test/testwidget.cpp Examining data/peony-3.0.6/libpeony-qt/test/testwidget.h Examining data/peony-3.0.6/libpeony-qt/test/main.cpp Examining data/peony-3.0.6/libpeony-qt/gobject-template.cpp Examining data/peony-3.0.6/libpeony-qt/gerror-wrapper.cpp Examining data/peony-3.0.6/libpeony-qt/thumbnail-manager.h Examining data/peony-3.0.6/libpeony-qt/file-utils.h Examining data/peony-3.0.6/libpeony-qt/linux-pwd-helper.h Examining data/peony-3.0.6/libpeony-qt/complementary-style.cpp Examining data/peony-3.0.6/libpeony-qt/file-enumerator.h Examining data/peony-3.0.6/libpeony-qt/complementary-style.h Examining data/peony-3.0.6/libpeony-qt/volume-manager.h Examining data/peony-3.0.6/libpeony-qt/file-info-job.cpp Examining data/peony-3.0.6/libpeony-qt/bookmark-manager.h Examining data/peony-3.0.6/libpeony-qt/thumbnail/thumbnail-job.cpp Examining data/peony-3.0.6/libpeony-qt/thumbnail/pdf-thumbnail.cpp Examining data/peony-3.0.6/libpeony-qt/thumbnail/video-thumbnail.cpp Examining data/peony-3.0.6/libpeony-qt/thumbnail/office-thumbnail.h Examining data/peony-3.0.6/libpeony-qt/thumbnail/office-thumbnail.cpp Examining data/peony-3.0.6/libpeony-qt/thumbnail/generic-thumbnailer.cpp Examining data/peony-3.0.6/libpeony-qt/thumbnail/pdf-thumbnail.h Examining data/peony-3.0.6/libpeony-qt/thumbnail/generic-thumbnailer.h Examining data/peony-3.0.6/libpeony-qt/thumbnail/video-thumbnail.h Examining data/peony-3.0.6/libpeony-qt/thumbnail/thumbnail-job.h Examining data/peony-3.0.6/libpeony-qt/controls/icon-container.cpp Examining data/peony-3.0.6/libpeony-qt/controls/tab-page/tab-page.cpp Examining data/peony-3.0.6/libpeony-qt/controls/tab-page/tab-page.h Examining data/peony-3.0.6/libpeony-qt/controls/side-bar/side-bar.h Examining data/peony-3.0.6/libpeony-qt/controls/side-bar/side-bar.cpp Examining data/peony-3.0.6/libpeony-qt/controls/property-page/permissions-properties-page-factory.cpp Examining data/peony-3.0.6/libpeony-qt/controls/property-page/basic-properties-page.h Examining data/peony-3.0.6/libpeony-qt/controls/property-page/basic-properties-page-factory.cpp Examining data/peony-3.0.6/libpeony-qt/controls/property-page/computer-properties-page-factory.h Examining data/peony-3.0.6/libpeony-qt/controls/property-page/permissions-properties-page-factory.h Examining data/peony-3.0.6/libpeony-qt/controls/property-page/basic-properties-page.cpp Examining data/peony-3.0.6/libpeony-qt/controls/property-page/permissions-properties-page.h Examining data/peony-3.0.6/libpeony-qt/controls/property-page/recent-and-trash-properties-page-factory.cpp Examining data/peony-3.0.6/libpeony-qt/controls/property-page/computer-properties-page.cpp Examining data/peony-3.0.6/libpeony-qt/controls/property-page/computer-properties-page.h Examining data/peony-3.0.6/libpeony-qt/controls/property-page/recent-and-trash-properties-page.h Examining data/peony-3.0.6/libpeony-qt/controls/property-page/recent-and-trash-properties-page-factory.h Examining data/peony-3.0.6/libpeony-qt/controls/property-page/permissions-properties-page.cpp Examining data/peony-3.0.6/libpeony-qt/controls/property-page/basic-properties-page-factory.h Examining data/peony-3.0.6/libpeony-qt/controls/property-page/computer-properties-page-factory.cpp Examining data/peony-3.0.6/libpeony-qt/controls/property-page/recent-and-trash-properties-page.cpp Examining data/peony-3.0.6/libpeony-qt/controls/tool-bar/advance-search-bar.h Examining data/peony-3.0.6/libpeony-qt/controls/tool-bar/search-bar-container.h Examining data/peony-3.0.6/libpeony-qt/controls/tool-bar/view-factory-model.h Examining data/peony-3.0.6/libpeony-qt/controls/tool-bar/tool-bar.cpp Examining data/peony-3.0.6/libpeony-qt/controls/tool-bar/tool-bar.h Examining data/peony-3.0.6/libpeony-qt/controls/tool-bar/view-factory-model.cpp Examining data/peony-3.0.6/libpeony-qt/controls/tool-bar/view-factory-sort-filter-model.h Examining data/peony-3.0.6/libpeony-qt/controls/tool-bar/view-factory-sort-filter-model.cpp Examining data/peony-3.0.6/libpeony-qt/controls/tool-bar/search-bar.h Examining data/peony-3.0.6/libpeony-qt/controls/tool-bar/search-bar-container.cpp Examining data/peony-3.0.6/libpeony-qt/controls/tool-bar/search-bar.cpp Examining data/peony-3.0.6/libpeony-qt/controls/tool-bar/advance-search-bar.cpp Examining data/peony-3.0.6/libpeony-qt/controls/navigation-bar/advanced-location-bar.cpp Examining data/peony-3.0.6/libpeony-qt/controls/navigation-bar/preview-option-toolbar.h Examining data/peony-3.0.6/libpeony-qt/controls/navigation-bar/advanced-location-bar.h Examining data/peony-3.0.6/libpeony-qt/controls/navigation-bar/navigation-bar.h Examining data/peony-3.0.6/libpeony-qt/controls/navigation-bar/location-bar/location-bar.cpp Examining data/peony-3.0.6/libpeony-qt/controls/navigation-bar/location-bar/location-bar.h Examining data/peony-3.0.6/libpeony-qt/controls/navigation-bar/navigation-tool-bar.cpp Examining data/peony-3.0.6/libpeony-qt/controls/navigation-bar/navigation-tool-bar.h Examining data/peony-3.0.6/libpeony-qt/controls/navigation-bar/navigation-bar.cpp Examining data/peony-3.0.6/libpeony-qt/controls/navigation-bar/path-bar/path-edit.cpp Examining data/peony-3.0.6/libpeony-qt/controls/navigation-bar/path-bar/path-edit.h Examining data/peony-3.0.6/libpeony-qt/controls/navigation-bar/preview-option-toolbar.cpp Examining data/peony-3.0.6/libpeony-qt/controls/directory-view/directory-view-container.h Examining data/peony-3.0.6/libpeony-qt/controls/directory-view/directory-view-widget.h Examining data/peony-3.0.6/libpeony-qt/controls/directory-view/directory-view-widget.cpp Examining data/peony-3.0.6/libpeony-qt/controls/directory-view/directory-view-factory/list-view-factory.cpp Examining data/peony-3.0.6/libpeony-qt/controls/directory-view/directory-view-factory/icon-view-factory.h Examining data/peony-3.0.6/libpeony-qt/controls/directory-view/directory-view-factory/list-view-factory.h Examining data/peony-3.0.6/libpeony-qt/controls/directory-view/directory-view-factory/directory-view-factory-manager.cpp Examining data/peony-3.0.6/libpeony-qt/controls/directory-view/directory-view-factory/icon-view-factory.cpp Examining data/peony-3.0.6/libpeony-qt/controls/directory-view/directory-view-factory/directory-view-factory-manager.h Examining data/peony-3.0.6/libpeony-qt/controls/directory-view/view/icon-view/icon-view.h Examining data/peony-3.0.6/libpeony-qt/controls/directory-view/view/icon-view/icon-view-style.cpp Examining data/peony-3.0.6/libpeony-qt/controls/directory-view/view/icon-view/icon-view-style.h Examining data/peony-3.0.6/libpeony-qt/controls/directory-view/view/icon-view/icon-view.cpp Examining data/peony-3.0.6/libpeony-qt/controls/directory-view/view/list-view/list-view-style.cpp Examining data/peony-3.0.6/libpeony-qt/controls/directory-view/view/list-view/list-view.cpp Examining data/peony-3.0.6/libpeony-qt/controls/directory-view/view/list-view/list-view.h Examining data/peony-3.0.6/libpeony-qt/controls/directory-view/view/list-view/list-view-style.h Examining data/peony-3.0.6/libpeony-qt/controls/directory-view/delegate/icon-view-index-widget.h Examining data/peony-3.0.6/libpeony-qt/controls/directory-view/delegate/side-bar-delegate.cpp Examining data/peony-3.0.6/libpeony-qt/controls/directory-view/delegate/side-bar-delegate.h Examining data/peony-3.0.6/libpeony-qt/controls/directory-view/delegate/icon-view-delegate.cpp Examining data/peony-3.0.6/libpeony-qt/controls/directory-view/delegate/list-view-delegate.cpp Examining data/peony-3.0.6/libpeony-qt/controls/directory-view/delegate/list-view-delegate.h Examining data/peony-3.0.6/libpeony-qt/controls/directory-view/delegate/icon-view-index-widget.cpp Examining data/peony-3.0.6/libpeony-qt/controls/directory-view/delegate/icon-view-editor.cpp Examining data/peony-3.0.6/libpeony-qt/controls/directory-view/delegate/icon-view-editor.h Examining data/peony-3.0.6/libpeony-qt/controls/directory-view/delegate/icon-view-delegate.h Examining data/peony-3.0.6/libpeony-qt/controls/directory-view/directory-view-container.cpp Examining data/peony-3.0.6/libpeony-qt/controls/preview-page/default-preview-page/default-preview-page.cpp Examining data/peony-3.0.6/libpeony-qt/controls/preview-page/default-preview-page/default-preview-page-factory.h Examining data/peony-3.0.6/libpeony-qt/controls/preview-page/default-preview-page/default-preview-page.h Examining data/peony-3.0.6/libpeony-qt/controls/preview-page/default-preview-page/default-preview-page-factory.cpp Examining data/peony-3.0.6/libpeony-qt/controls/preview-page/preview-page-factory/preview-page-factory-manager.h Examining data/peony-3.0.6/libpeony-qt/controls/preview-page/preview-page-factory/preview-page-factory-manager.cpp Examining data/peony-3.0.6/libpeony-qt/controls/status-bar/status-bar.h Examining data/peony-3.0.6/libpeony-qt/controls/status-bar/status-bar.cpp Examining data/peony-3.0.6/libpeony-qt/controls/icon-container.h Examining data/peony-3.0.6/libpeony-qt/controls/menu/menu-plugin-manager.cpp Examining data/peony-3.0.6/libpeony-qt/controls/menu/menu-plugin-manager.h Examining data/peony-3.0.6/libpeony-qt/controls/menu/directory-view-menu/directory-view-menu.cpp Examining data/peony-3.0.6/libpeony-qt/controls/menu/directory-view-menu/directory-view-menu.h Examining data/peony-3.0.6/libpeony-qt/controls/menu/side-bar-menu/side-bar-menu.h Examining data/peony-3.0.6/libpeony-qt/controls/menu/side-bar-menu/side-bar-menu.cpp Examining data/peony-3.0.6/libpeony-qt/global-settings.cpp Examining data/peony-3.0.6/libpeony-qt/file-meta-info.h Examining data/peony-3.0.6/libpeony-qt/file-utils.cpp Examining data/peony-3.0.6/libpeony-qt/mount-operation.h Examining data/peony-3.0.6/libpeony-qt/model/file-item-model.cpp Examining data/peony-3.0.6/libpeony-qt/model/side-bar-personal-item.h Examining data/peony-3.0.6/libpeony-qt/model/path-completer.h Examining data/peony-3.0.6/libpeony-qt/model/side-bar-file-system-item.cpp Examining data/peony-3.0.6/libpeony-qt/model/file-label-model.cpp Examining data/peony-3.0.6/libpeony-qt/model/file-item-proxy-filter-sort-model.h Examining data/peony-3.0.6/libpeony-qt/model/side-bar-abstract-item.cpp Examining data/peony-3.0.6/libpeony-qt/model/model-test/mainwindow.h Examining data/peony-3.0.6/libpeony-qt/model/model-test/main.cpp Examining data/peony-3.0.6/libpeony-qt/model/model-test/mainwindow.cpp Examining data/peony-3.0.6/libpeony-qt/model/side-bar-proxy-filter-sort-model.cpp Examining data/peony-3.0.6/libpeony-qt/model/file-item.h Examining data/peony-3.0.6/libpeony-qt/model/file-item-proxy-filter-sort-model.cpp Examining data/peony-3.0.6/libpeony-qt/model/side-bar-separator-item.cpp Examining data/peony-3.0.6/libpeony-qt/model/side-bar-proxy-filter-sort-model.h Examining data/peony-3.0.6/libpeony-qt/model/file-item.cpp Examining data/peony-3.0.6/libpeony-qt/model/side-bar-favorite-item.h Examining data/peony-3.0.6/libpeony-qt/model/side-bar-file-system-item.h Examining data/peony-3.0.6/libpeony-qt/model/path-bar-model.h Examining data/peony-3.0.6/libpeony-qt/model/side-bar-abstract-item.h Examining data/peony-3.0.6/libpeony-qt/model/path-completer.cpp Examining data/peony-3.0.6/libpeony-qt/model/file-label-model.h Examining data/peony-3.0.6/libpeony-qt/model/path-bar-model.cpp Examining data/peony-3.0.6/libpeony-qt/model/side-bar-model.h Examining data/peony-3.0.6/libpeony-qt/model/side-bar-favorite-item.cpp Examining data/peony-3.0.6/libpeony-qt/model/file-item-model.h Examining data/peony-3.0.6/libpeony-qt/model/side-bar-personal-item.cpp Examining data/peony-3.0.6/libpeony-qt/model/side-bar-separator-item.h Examining data/peony-3.0.6/libpeony-qt/model/side-bar-model.cpp Examining data/peony-3.0.6/libpeony-qt/connect-server-dialog.cpp Examining data/peony-3.0.6/libpeony-qt/mount-operation.cpp Examining data/peony-3.0.6/libpeony-qt/connect-server-dialog.h Examining data/peony-3.0.6/libpeony-qt/gerror-wrapper.h Examining data/peony-3.0.6/libpeony-qt/file-meta-info.cpp Examining data/peony-3.0.6/libpeony-qt/volume-manager.cpp Examining data/peony-3.0.6/src/peony-application.cpp Examining data/peony-3.0.6/src/windows/main-window.h Examining data/peony-3.0.6/src/windows/main-window-factory.h Examining data/peony-3.0.6/src/windows/main-window.cpp Examining data/peony-3.0.6/src/windows/x11-window-manager.h Examining data/peony-3.0.6/src/windows/main-window-factory.cpp Examining data/peony-3.0.6/src/windows/x11-window-manager.cpp Examining data/peony-3.0.6/src/peony-screen.h Examining data/peony-3.0.6/src/peony-main-window-style.cpp Examining data/peony-3.0.6/src/peony-application.h Examining data/peony-3.0.6/src/control/operation-menu.cpp Examining data/peony-3.0.6/src/control/file-label-box.h Examining data/peony-3.0.6/src/control/sort-type-menu.cpp Examining data/peony-3.0.6/src/control/navigation-side-bar.h Examining data/peony-3.0.6/src/control/tab-widget.h Examining data/peony-3.0.6/src/control/tab-status-bar.h Examining data/peony-3.0.6/src/control/file-label-box.cpp Examining data/peony-3.0.6/src/control/navigation-side-bar.cpp Examining data/peony-3.0.6/src/control/operation-menu.h Examining data/peony-3.0.6/src/control/sort-type-menu.h Examining data/peony-3.0.6/src/control/view-type-menu.h Examining data/peony-3.0.6/src/control/navigation-tab-bar.h Examining data/peony-3.0.6/src/control/view-type-menu.cpp Examining data/peony-3.0.6/src/control/header-bar.h Examining data/peony-3.0.6/src/control/label-box-delegate.cpp Examining data/peony-3.0.6/src/control/tab-status-bar.cpp Examining data/peony-3.0.6/src/control/navigation-tab-bar.cpp Examining data/peony-3.0.6/src/control/tab-widget.cpp Examining data/peony-3.0.6/src/control/header-bar.cpp Examining data/peony-3.0.6/src/control/label-box-delegate.h Examining data/peony-3.0.6/src/peony-main-window-style.h Examining data/peony-3.0.6/src/peony-screen.cpp Examining data/peony-3.0.6/src/peony-main.cpp Examining data/peony-3.0.6/3rd-parties/SingleApplication/singleapplication.h Examining data/peony-3.0.6/3rd-parties/SingleApplication/singleapplication.cpp Examining data/peony-3.0.6/3rd-parties/SingleApplication/singleapplication_p.cpp Examining data/peony-3.0.6/3rd-parties/SingleApplication/singleapplication_p.h Examining data/peony-3.0.6/plugin/menuplugin.cpp Examining data/peony-3.0.6/plugin/menuplugin.h FINAL RESULTS: data/peony-3.0.6/libpeony-qt/controls/menu/directory-view-menu/directory-view-menu.cpp:499:22: [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. if (QLocale::system().name().contains("zh")) { data/peony-3.0.6/libpeony-qt/controls/preview-page/default-preview-page/default-preview-page.cpp:223:38: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. m_time_access_label->setText(access.toString(Qt::SystemLocaleShortDate)); data/peony-3.0.6/libpeony-qt/controls/preview-page/default-preview-page/default-preview-page.cpp:228:38: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. m_time_access_label->setText(access.toString(Qt::ISODate)); data/peony-3.0.6/libpeony-qt/file-info-job.cpp:286:40: [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. auto key = "Name[" + QLocale::system().name() + "]"; data/peony-3.0.6/libpeony-qt/file-operation/file-rename-operation.cpp:134:48: [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. QString locale_name = QLocale::system().name(); data/peony-3.0.6/libpeony-qt/global-settings.cpp:53:18: [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. if (QLocale::system().name().contains("zh") && !m_settings->allKeys().contains(SORT_CHINESE_FIRST)) data/peony-3.0.6/libpeony-qt/model/file-item-proxy-filter-sort-model.cpp:45:35: [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. QLocale locale = QLocale(QLocale::system().name()); data/peony-3.0.6/libpeony-qt/windows/format_dialog.cpp:138:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(rom_name,ui->lineEdit_device_name->text().toUtf8().constData()); data/peony-3.0.6/libpeony-qt/windows/format_dialog.cpp:163:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(dev_name,devName.toUtf8().constData()); data/peony-3.0.6/libpeony-qt/windows/format_dialog.cpp:257:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(name_dev,devName.toUtf8().constData()); data/peony-3.0.6/peony-qt-desktop/desktop-item-proxy-model.cpp:38:35: [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. QLocale locale = QLocale(QLocale::system().name()); data/peony-3.0.6/peony-qt-desktop/peony-desktop-application.cpp:118:60: [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. t->load("/usr/share/libpeony-qt/libpeony-qt_"+QLocale::system().name()); data/peony-3.0.6/peony-qt-desktop/peony-desktop-application.cpp:121:71: [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. t2->load("/usr/share/peony-qt-desktop/peony-qt-desktop_"+QLocale::system().name()); data/peony-3.0.6/peony-qt-desktop/peony-desktop-application.cpp:124:57: [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. t3->load("/usr/share/qt5/translations/qt_"+QLocale::system().name()); data/peony-3.0.6/peony-qt-plugin-test/peony-qt-menu-plugin-mate-terminal/mate-terminal-menu-plugin.cpp:41:111: [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. qDebug()<<"\n\n\n\n\n\n\ntranslate:"<<t->load(":/translations/peony-qt-mate-terminal-extension_"+QLocale::system().name()); data/peony-3.0.6/src/peony-application.cpp:125:98: [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. qDebug()<<"\n\n\n\n\n\n\ntranslate:"<<t->load("/usr/share/libpeony-qt/libpeony-qt_"+QLocale::system().name()); data/peony-3.0.6/src/peony-application.cpp:128:55: [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. t2->load("/usr/share/peony-qt/peony-qt_"+QLocale::system().name()); data/peony-3.0.6/src/peony-application.cpp:131:57: [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. t3->load("/usr/share/qt5/translations/qt_"+QLocale::system().name()); data/peony-3.0.6/3rd-parties/SingleApplication/singleapplication_p.cpp:109:9: [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 username [ UNLEN + 1 ]; data/peony-3.0.6/libpeony-qt/controls/directory-view/view/icon-view/icon-view.cpp:175: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 IconView::open(const QStringList &uris, bool newWindow) data/peony-3.0.6/libpeony-qt/controls/directory-view/view/icon-view/icon-view.h:104: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). void open(const QStringList &uris, bool newWindow) override; data/peony-3.0.6/libpeony-qt/controls/directory-view/view/list-view/list-view.cpp:516: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 ListView::open(const QStringList &uris, bool newWindow) data/peony-3.0.6/libpeony-qt/controls/directory-view/view/list-view/list-view.h:87: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). void open(const QStringList &uris, bool newWindow) override; data/peony-3.0.6/libpeony-qt/controls/property-page/computer-properties-page.cpp:56: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). cpuInfo.open(QFile::ReadOnly); data/peony-3.0.6/libpeony-qt/controls/property-page/computer-properties-page.cpp:58: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). memInfo.open(QFile::ReadOnly); data/peony-3.0.6/libpeony-qt/vfs/peony-search-vfs-file-enumerator.cpp:360: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). file.open(QIODevice::Text | QIODevice::ReadOnly); data/peony-3.0.6/libpeony-qt/vfs/recent-vfs-manager.cpp:49: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(QIODevice::WriteOnly | QIODevice::Text); data/peony-3.0.6/libpeony-qt/vfs/recent-vfs-manager.cpp:91: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(QIODevice::ReadOnly | QIODevice::Text); data/peony-3.0.6/libpeony-qt/vfs/recent-vfs-manager.cpp:113: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(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Truncate); data/peony-3.0.6/libpeony-qt/windows/format_dialog.cpp:70:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dev_name[256] ={0}; data/peony-3.0.6/libpeony-qt/windows/format_dialog.cpp:131:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rom_size[1024] ={0},rom_type[1024]={0},rom_name[1024]={0},dev_name[1024]={0}; data/peony-3.0.6/libpeony-qt/windows/format_dialog.cpp:247:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char name_dev[256] ={0}; data/peony-3.0.6/libpeony-qt/windows/format_dialog.cpp:248:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char prestr[10] = {0}; data/peony-3.0.6/libpeony-qt/windows/format_dialog.cpp:265: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(prestr,"%.1f",pre); data/peony-3.0.6/libpeony-qt/windows/format_dialog.cpp:530:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ch[10]={0}; data/peony-3.0.6/peony-qt-desktop/desktop-icon-view.h:106: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). void open(const QStringList &uris, bool newWindow) {} data/peony-3.0.6/peony-qt-desktop/main.cpp:48: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). log_file = fopen(logFilePath.toLocal8Bit().constData(), "a+"); data/peony-3.0.6/peony-qt-desktop/peony-desktop-application.cpp:133: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). file.open(QFile::ReadOnly); data/peony-3.0.6/peony-qt-desktop/peony-json-operation.cpp:57:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!jsonFile.open(QIODevice::ReadOnly)){ data/peony-3.0.6/plugin-iface/directory-view-plugin-iface.h:179:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). virtual void open(const QStringList &uris, bool newWindow) = 0; data/peony-3.0.6/plugin-iface/directory-view-plugin-iface.h:261:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). virtual void open(const QStringList &uris, bool newWindow) = 0; data/peony-3.0.6/src/peony-application.cpp:119: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(QFile::ReadOnly); data/peony-3.0.6/src/peony-main.cpp:51: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). log_file = fopen(logFilePath.toLocal8Bit().constData(), "a+"); data/peony-3.0.6/3rd-parties/SingleApplication/singleapplication_p.cpp:346:33: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QByteArray msgBytes = sock->read(info.msgLen); data/peony-3.0.6/libpeony-qt/file-utils.cpp:567:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read && !write && !execute) { data/peony-3.0.6/libpeony-qt/model/file-item-model.cpp:162:13: [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 (equal) { data/peony-3.0.6/libpeony-qt/vfs/recent-vfs-manager.cpp:80:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool RecentVFSManager::read() data/peony-3.0.6/libpeony-qt/vfs/recent-vfs-manager.cpp:125:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (!read()) { data/peony-3.0.6/libpeony-qt/vfs/recent-vfs-manager.h:41:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool read (); data/peony-3.0.6/libpeony-qt/windows/format_dialog.cpp:76:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dev_name,devName.toUtf8().constData(),sizeof(devName.toUtf8().constData()-1)); data/peony-3.0.6/libpeony-qt/windows/format_dialog.cpp:136:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(rom_size,ui->comboBox_rom_size->itemText(0).toUtf8().constData(),sizeof(ui->comboBox_rom_size->itemText(0).toUtf8().constData())-1); data/peony-3.0.6/libpeony-qt/windows/format_dialog.cpp:137:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(rom_type,ui->comboBox_system->currentText().toUtf8().constData(),sizeof(ui->comboBox_system->currentText().toUtf8().constData())-1); data/peony-3.0.6/libpeony-qt/windows/format_dialog.cpp:266:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(prestr,"%"); ANALYSIS SUMMARY: Hits = 53 Lines analyzed = 58582 in approximately 1.31 seconds (44702 lines/second) Physical Source Lines of Code (SLOC) = 38163 Hits@level = [0] 10 [1] 10 [2] 25 [3] 0 [4] 18 [5] 0 Hits@level+ = [0+] 63 [1+] 53 [2+] 43 [3+] 18 [4+] 18 [5+] 0 Hits/KSLOC@level+ = [0+] 1.65081 [1+] 1.38878 [2+] 1.12675 [3+] 0.471661 [4+] 0.471661 [5+] 0 Dot directories skipped = 2 (--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.