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/atril-1.24.0/atril-document.h
Examining data/atril-1.24.0/atril-view.h
Examining data/atril-1.24.0/backend/comics/comics-document.c
Examining data/atril-1.24.0/backend/comics/comics-document.h
Examining data/atril-1.24.0/backend/djvu/djvu-document-private.h
Examining data/atril-1.24.0/backend/djvu/djvu-document.c
Examining data/atril-1.24.0/backend/djvu/djvu-document.h
Examining data/atril-1.24.0/backend/djvu/djvu-links.c
Examining data/atril-1.24.0/backend/djvu/djvu-links.h
Examining data/atril-1.24.0/backend/djvu/djvu-text-page.c
Examining data/atril-1.24.0/backend/djvu/djvu-text-page.h
Examining data/atril-1.24.0/backend/dvi/cairo-device.c
Examining data/atril-1.24.0/backend/dvi/cairo-device.h
Examining data/atril-1.24.0/backend/dvi/dvi-document.c
Examining data/atril-1.24.0/backend/dvi/dvi-document.h
Examining data/atril-1.24.0/backend/dvi/fonts.c
Examining data/atril-1.24.0/backend/dvi/fonts.h
Examining data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c
Examining data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.h
Examining data/atril-1.24.0/backend/dvi/mdvi-lib/bitmap.c
Examining data/atril-1.24.0/backend/dvi/mdvi-lib/bitmap.h
Examining data/atril-1.24.0/backend/dvi/mdvi-lib/color.c
Examining data/atril-1.24.0/backend/dvi/mdvi-lib/color.h
Examining data/atril-1.24.0/backend/dvi/mdvi-lib/common.c
Examining data/atril-1.24.0/backend/dvi/mdvi-lib/common.h
Examining data/atril-1.24.0/backend/dvi/mdvi-lib/defaults.h
Examining data/atril-1.24.0/backend/dvi/mdvi-lib/dviopcodes.h
Examining data/atril-1.24.0/backend/dvi/mdvi-lib/dviread.c
Examining data/atril-1.24.0/backend/dvi/mdvi-lib/files.c
Examining data/atril-1.24.0/backend/dvi/mdvi-lib/font.c
Examining data/atril-1.24.0/backend/dvi/mdvi-lib/fontmap.c
Examining data/atril-1.24.0/backend/dvi/mdvi-lib/fontmap.h
Examining data/atril-1.24.0/backend/dvi/mdvi-lib/fontsrch.c
Examining data/atril-1.24.0/backend/dvi/mdvi-lib/gf.c
Examining data/atril-1.24.0/backend/dvi/mdvi-lib/hash.c
Examining data/atril-1.24.0/backend/dvi/mdvi-lib/hash.h
Examining data/atril-1.24.0/backend/dvi/mdvi-lib/list.c
Examining data/atril-1.24.0/backend/dvi/mdvi-lib/mdvi.h
Examining data/atril-1.24.0/backend/dvi/mdvi-lib/pagesel.c
Examining data/atril-1.24.0/backend/dvi/mdvi-lib/paper.c
Examining data/atril-1.24.0/backend/dvi/mdvi-lib/paper.h
Examining data/atril-1.24.0/backend/dvi/mdvi-lib/pk.c
Examining data/atril-1.24.0/backend/dvi/mdvi-lib/private.h
Examining data/atril-1.24.0/backend/dvi/mdvi-lib/setup.c
Examining data/atril-1.24.0/backend/dvi/mdvi-lib/sp-epsf.c
Examining data/atril-1.24.0/backend/dvi/mdvi-lib/special.c
Examining data/atril-1.24.0/backend/dvi/mdvi-lib/sysdeps.h
Examining data/atril-1.24.0/backend/dvi/mdvi-lib/t1.c
Examining data/atril-1.24.0/backend/dvi/mdvi-lib/tfm.c
Examining data/atril-1.24.0/backend/dvi/mdvi-lib/tfmfile.c
Examining data/atril-1.24.0/backend/dvi/mdvi-lib/tt.c
Examining data/atril-1.24.0/backend/dvi/mdvi-lib/util.c
Examining data/atril-1.24.0/backend/dvi/mdvi-lib/vf.c
Examining data/atril-1.24.0/backend/epub/epub-document.c
Examining data/atril-1.24.0/backend/epub/epub-document.h
Examining data/atril-1.24.0/backend/epub/minizip/ioapi.c
Examining data/atril-1.24.0/backend/epub/minizip/ioapi.h
Examining data/atril-1.24.0/backend/epub/minizip/unzip.c
Examining data/atril-1.24.0/backend/epub/minizip/unzip.h
Examining data/atril-1.24.0/backend/pdf/ev-poppler.cc
Examining data/atril-1.24.0/backend/pdf/ev-poppler.h
Examining data/atril-1.24.0/backend/pixbuf/pixbuf-document.c
Examining data/atril-1.24.0/backend/pixbuf/pixbuf-document.h
Examining data/atril-1.24.0/backend/ps/ev-spectre.c
Examining data/atril-1.24.0/backend/ps/ev-spectre.h
Examining data/atril-1.24.0/backend/tiff/tiff-document.c
Examining data/atril-1.24.0/backend/tiff/tiff-document.h
Examining data/atril-1.24.0/backend/tiff/tiff2ps.c
Examining data/atril-1.24.0/backend/tiff/tiff2ps.h
Examining data/atril-1.24.0/backend/xps/xps-document.c
Examining data/atril-1.24.0/backend/xps/xps-document.h
Examining data/atril-1.24.0/cut-n-paste/smclient/eggdesktopfile.c
Examining data/atril-1.24.0/cut-n-paste/smclient/eggdesktopfile.h
Examining data/atril-1.24.0/cut-n-paste/smclient/eggsmclient-private.h
Examining data/atril-1.24.0/cut-n-paste/smclient/eggsmclient-xsmp.c
Examining data/atril-1.24.0/cut-n-paste/smclient/eggsmclient.c
Examining data/atril-1.24.0/cut-n-paste/smclient/eggsmclient.h
Examining data/atril-1.24.0/cut-n-paste/toolbar-editor/egg-editable-toolbar.c
Examining data/atril-1.24.0/cut-n-paste/toolbar-editor/egg-editable-toolbar.h
Examining data/atril-1.24.0/cut-n-paste/toolbar-editor/egg-toolbar-editor.c
Examining data/atril-1.24.0/cut-n-paste/toolbar-editor/egg-toolbar-editor.h
Examining data/atril-1.24.0/cut-n-paste/toolbar-editor/egg-toolbars-model.c
Examining data/atril-1.24.0/cut-n-paste/toolbar-editor/egg-toolbars-model.h
Examining data/atril-1.24.0/cut-n-paste/zoom-control/ephy-zoom-action.c
Examining data/atril-1.24.0/cut-n-paste/zoom-control/ephy-zoom-action.h
Examining data/atril-1.24.0/cut-n-paste/zoom-control/ephy-zoom-control.c
Examining data/atril-1.24.0/cut-n-paste/zoom-control/ephy-zoom-control.h
Examining data/atril-1.24.0/cut-n-paste/zoom-control/ephy-zoom.c
Examining data/atril-1.24.0/cut-n-paste/zoom-control/ephy-zoom.h
Examining data/atril-1.24.0/libdocument/ev-annotation.c
Examining data/atril-1.24.0/libdocument/ev-annotation.h
Examining data/atril-1.24.0/libdocument/ev-async-renderer.c
Examining data/atril-1.24.0/libdocument/ev-async-renderer.h
Examining data/atril-1.24.0/libdocument/ev-attachment.c
Examining data/atril-1.24.0/libdocument/ev-attachment.h
Examining data/atril-1.24.0/libdocument/ev-backends-manager.c
Examining data/atril-1.24.0/libdocument/ev-backends-manager.h
Examining data/atril-1.24.0/libdocument/ev-debug.c
Examining data/atril-1.24.0/libdocument/ev-debug.h
Examining data/atril-1.24.0/libdocument/ev-document-annotations.c
Examining data/atril-1.24.0/libdocument/ev-document-annotations.h
Examining data/atril-1.24.0/libdocument/ev-document-attachments.c
Examining data/atril-1.24.0/libdocument/ev-document-attachments.h
Examining data/atril-1.24.0/libdocument/ev-document-factory.c
Examining data/atril-1.24.0/libdocument/ev-document-factory.h
Examining data/atril-1.24.0/libdocument/ev-document-find.c
Examining data/atril-1.24.0/libdocument/ev-document-find.h
Examining data/atril-1.24.0/libdocument/ev-document-fonts.c
Examining data/atril-1.24.0/libdocument/ev-document-fonts.h
Examining data/atril-1.24.0/libdocument/ev-document-forms.c
Examining data/atril-1.24.0/libdocument/ev-document-forms.h
Examining data/atril-1.24.0/libdocument/ev-document-images.c
Examining data/atril-1.24.0/libdocument/ev-document-images.h
Examining data/atril-1.24.0/libdocument/ev-document-info.h
Examining data/atril-1.24.0/libdocument/ev-document-layers.c
Examining data/atril-1.24.0/libdocument/ev-document-layers.h
Examining data/atril-1.24.0/libdocument/ev-document-links.c
Examining data/atril-1.24.0/libdocument/ev-document-links.h
Examining data/atril-1.24.0/libdocument/ev-document-misc.c
Examining data/atril-1.24.0/libdocument/ev-document-misc.h
Examining data/atril-1.24.0/libdocument/ev-document-print.c
Examining data/atril-1.24.0/libdocument/ev-document-print.h
Examining data/atril-1.24.0/libdocument/ev-document-security.c
Examining data/atril-1.24.0/libdocument/ev-document-security.h
Examining data/atril-1.24.0/libdocument/ev-document-text.c
Examining data/atril-1.24.0/libdocument/ev-document-text.h
Examining data/atril-1.24.0/libdocument/ev-document-thumbnails.c
Examining data/atril-1.24.0/libdocument/ev-document-thumbnails.h
Examining data/atril-1.24.0/libdocument/ev-document-transition.c
Examining data/atril-1.24.0/libdocument/ev-document-transition.h
Examining data/atril-1.24.0/libdocument/ev-document.c
Examining data/atril-1.24.0/libdocument/ev-document.h
Examining data/atril-1.24.0/libdocument/ev-file-exporter.c
Examining data/atril-1.24.0/libdocument/ev-file-exporter.h
Examining data/atril-1.24.0/libdocument/ev-file-helpers.c
Examining data/atril-1.24.0/libdocument/ev-file-helpers.h
Examining data/atril-1.24.0/libdocument/ev-form-field.c
Examining data/atril-1.24.0/libdocument/ev-form-field.h
Examining data/atril-1.24.0/libdocument/ev-image.c
Examining data/atril-1.24.0/libdocument/ev-image.h
Examining data/atril-1.24.0/libdocument/ev-init.c
Examining data/atril-1.24.0/libdocument/ev-init.h
Examining data/atril-1.24.0/libdocument/ev-layer.c
Examining data/atril-1.24.0/libdocument/ev-layer.h
Examining data/atril-1.24.0/libdocument/ev-link-action.c
Examining data/atril-1.24.0/libdocument/ev-link-action.h
Examining data/atril-1.24.0/libdocument/ev-link-dest.c
Examining data/atril-1.24.0/libdocument/ev-link-dest.h
Examining data/atril-1.24.0/libdocument/ev-link.c
Examining data/atril-1.24.0/libdocument/ev-link.h
Examining data/atril-1.24.0/libdocument/ev-macros.h
Examining data/atril-1.24.0/libdocument/ev-mapping-list.c
Examining data/atril-1.24.0/libdocument/ev-mapping-list.h
Examining data/atril-1.24.0/libdocument/ev-module.c
Examining data/atril-1.24.0/libdocument/ev-module.h
Examining data/atril-1.24.0/libdocument/ev-page.c
Examining data/atril-1.24.0/libdocument/ev-page.h
Examining data/atril-1.24.0/libdocument/ev-render-context.c
Examining data/atril-1.24.0/libdocument/ev-render-context.h
Examining data/atril-1.24.0/libdocument/ev-selection.c
Examining data/atril-1.24.0/libdocument/ev-selection.h
Examining data/atril-1.24.0/libdocument/ev-transition-effect.c
Examining data/atril-1.24.0/libdocument/ev-transition-effect.h
Examining data/atril-1.24.0/libmisc/ev-page-action-widget.c
Examining data/atril-1.24.0/libmisc/ev-page-action-widget.h
Examining data/atril-1.24.0/libmisc/ev-page-action.c
Examining data/atril-1.24.0/libmisc/ev-page-action.h
Examining data/atril-1.24.0/libview/ev-annotation-window.c
Examining data/atril-1.24.0/libview/ev-annotation-window.h
Examining data/atril-1.24.0/libview/ev-document-model.c
Examining data/atril-1.24.0/libview/ev-document-model.h
Examining data/atril-1.24.0/libview/ev-form-field-accessible.c
Examining data/atril-1.24.0/libview/ev-form-field-accessible.h
Examining data/atril-1.24.0/libview/ev-image-accessible.c
Examining data/atril-1.24.0/libview/ev-image-accessible.h
Examining data/atril-1.24.0/libview/ev-job-scheduler.c
Examining data/atril-1.24.0/libview/ev-job-scheduler.h
Examining data/atril-1.24.0/libview/ev-jobs.c
Examining data/atril-1.24.0/libview/ev-jobs.h
Examining data/atril-1.24.0/libview/ev-link-accessible.c
Examining data/atril-1.24.0/libview/ev-link-accessible.h
Examining data/atril-1.24.0/libview/ev-page-accessible.c
Examining data/atril-1.24.0/libview/ev-page-accessible.h
Examining data/atril-1.24.0/libview/ev-page-cache.c
Examining data/atril-1.24.0/libview/ev-page-cache.h
Examining data/atril-1.24.0/libview/ev-pixbuf-cache.c
Examining data/atril-1.24.0/libview/ev-pixbuf-cache.h
Examining data/atril-1.24.0/libview/ev-print-operation.c
Examining data/atril-1.24.0/libview/ev-print-operation.h
Examining data/atril-1.24.0/libview/ev-stock-icons.c
Examining data/atril-1.24.0/libview/ev-stock-icons.h
Examining data/atril-1.24.0/libview/ev-timeline.c
Examining data/atril-1.24.0/libview/ev-timeline.h
Examining data/atril-1.24.0/libview/ev-transition-animation.c
Examining data/atril-1.24.0/libview/ev-transition-animation.h
Examining data/atril-1.24.0/libview/ev-view-accessible.c
Examining data/atril-1.24.0/libview/ev-view-accessible.h
Examining data/atril-1.24.0/libview/ev-view-cursor.c
Examining data/atril-1.24.0/libview/ev-view-cursor.h
Examining data/atril-1.24.0/libview/ev-view-presentation.c
Examining data/atril-1.24.0/libview/ev-view-presentation.h
Examining data/atril-1.24.0/libview/ev-view-private.h
Examining data/atril-1.24.0/libview/ev-view.c
Examining data/atril-1.24.0/libview/ev-view.h
Examining data/atril-1.24.0/libview/ev-web-view.c
Examining data/atril-1.24.0/libview/ev-web-view.h
Examining data/atril-1.24.0/previewer/ev-previewer-window.c
Examining data/atril-1.24.0/previewer/ev-previewer-window.h
Examining data/atril-1.24.0/previewer/ev-previewer.c
Examining data/atril-1.24.0/properties/ev-properties-main.c
Examining data/atril-1.24.0/properties/ev-properties-view.c
Examining data/atril-1.24.0/properties/ev-properties-view.h
Examining data/atril-1.24.0/shell/eggfindbar.c
Examining data/atril-1.24.0/shell/eggfindbar.h
Examining data/atril-1.24.0/shell/ev-annotation-properties-dialog.c
Examining data/atril-1.24.0/shell/ev-annotation-properties-dialog.h
Examining data/atril-1.24.0/shell/ev-application.c
Examining data/atril-1.24.0/shell/ev-application.h
Examining data/atril-1.24.0/shell/ev-bookmark-action.c
Examining data/atril-1.24.0/shell/ev-bookmark-action.h
Examining data/atril-1.24.0/shell/ev-bookmarks.c
Examining data/atril-1.24.0/shell/ev-bookmarks.h
Examining data/atril-1.24.0/shell/ev-daemon.c
Examining data/atril-1.24.0/shell/ev-file-monitor.c
Examining data/atril-1.24.0/shell/ev-file-monitor.h
Examining data/atril-1.24.0/shell/ev-history.c
Examining data/atril-1.24.0/shell/ev-history.h
Examining data/atril-1.24.0/shell/ev-keyring.c
Examining data/atril-1.24.0/shell/ev-keyring.h
Examining data/atril-1.24.0/shell/ev-loading-message.c
Examining data/atril-1.24.0/shell/ev-loading-message.h
Examining data/atril-1.24.0/shell/ev-media-player-keys.c
Examining data/atril-1.24.0/shell/ev-media-player-keys.h
Examining data/atril-1.24.0/shell/ev-message-area.c
Examining data/atril-1.24.0/shell/ev-message-area.h
Examining data/atril-1.24.0/shell/ev-metadata.c
Examining data/atril-1.24.0/shell/ev-metadata.h
Examining data/atril-1.24.0/shell/ev-navigation-action-widget.c
Examining data/atril-1.24.0/shell/ev-navigation-action-widget.h
Examining data/atril-1.24.0/shell/ev-navigation-action.c
Examining data/atril-1.24.0/shell/ev-navigation-action.h
Examining data/atril-1.24.0/shell/ev-open-recent-action.c
Examining data/atril-1.24.0/shell/ev-open-recent-action.h
Examining data/atril-1.24.0/shell/ev-password-view.c
Examining data/atril-1.24.0/shell/ev-password-view.h
Examining data/atril-1.24.0/shell/ev-progress-message-area.c
Examining data/atril-1.24.0/shell/ev-progress-message-area.h
Examining data/atril-1.24.0/shell/ev-properties-dialog.c
Examining data/atril-1.24.0/shell/ev-properties-dialog.h
Examining data/atril-1.24.0/shell/ev-properties-fonts.c
Examining data/atril-1.24.0/shell/ev-properties-fonts.h
Examining data/atril-1.24.0/shell/ev-properties-license.c
Examining data/atril-1.24.0/shell/ev-properties-license.h
Examining data/atril-1.24.0/shell/ev-sidebar-annotations.c
Examining data/atril-1.24.0/shell/ev-sidebar-annotations.h
Examining data/atril-1.24.0/shell/ev-sidebar-attachments.c
Examining data/atril-1.24.0/shell/ev-sidebar-attachments.h
Examining data/atril-1.24.0/shell/ev-sidebar-bookmarks.c
Examining data/atril-1.24.0/shell/ev-sidebar-bookmarks.h
Examining data/atril-1.24.0/shell/ev-sidebar-layers.c
Examining data/atril-1.24.0/shell/ev-sidebar-layers.h
Examining data/atril-1.24.0/shell/ev-sidebar-links.c
Examining data/atril-1.24.0/shell/ev-sidebar-links.h
Examining data/atril-1.24.0/shell/ev-sidebar-page.c
Examining data/atril-1.24.0/shell/ev-sidebar-page.h
Examining data/atril-1.24.0/shell/ev-sidebar-thumbnails.c
Examining data/atril-1.24.0/shell/ev-sidebar-thumbnails.h
Examining data/atril-1.24.0/shell/ev-sidebar.c
Examining data/atril-1.24.0/shell/ev-sidebar.h
Examining data/atril-1.24.0/shell/ev-utils.c
Examining data/atril-1.24.0/shell/ev-utils.h
Examining data/atril-1.24.0/shell/ev-window-title.c
Examining data/atril-1.24.0/shell/ev-window-title.h
Examining data/atril-1.24.0/shell/ev-window.c
Examining data/atril-1.24.0/shell/ev-window.h
Examining data/atril-1.24.0/shell/main.c
Examining data/atril-1.24.0/thumbnailer/atril-thumbnailer.c

FINAL RESULTS:

data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:299:21:  [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(gfi->afmVersion, keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:307:21:  [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(gfi->fontName, keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:313:21:  [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(gfi->encodingScheme, keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:318:21:  [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(gfi->fullName, keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:323:21:  [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(gfi->familyName, keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:328:21:  [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(gfi->weight, keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:353:21:  [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(gfi->version, keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:358:21:  [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(gfi->notice, keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:649:17:  [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(temp->name, keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:671:17:  [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((*tail)->succ, keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:674:17:  [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((*tail)->lig, keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:861:25:  [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(fi->pkd[pos].name1, keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:865:25:  [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(fi->pkd[pos].name2, keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:884:25:  [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(fi->pkd[pos].name1, keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:888:25:  [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(fi->pkd[pos].name2, keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:995:25:  [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(fi->ccd[pos].ccName, keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:1015:25:  [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(fi->ccd[pos].pieces[j].pccName, keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/dviread.c:179:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, format, ap);
data/atril-1.24.0/backend/dvi/mdvi-lib/dviread.c:190:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, format, ap);
data/atril-1.24.0/backend/dvi/mdvi-lib/dviread.c:332:2:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vprintf(fmt, ap);
data/atril-1.24.0/backend/dvi/mdvi-lib/dviread.c:447:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if(access(name, R_OK) == 0)
data/atril-1.24.0/backend/dvi/mdvi-lib/dviread.c:453:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(file, name);
data/atril-1.24.0/backend/dvi/mdvi-lib/dviread.c:456:5:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if(access(file, R_OK) == 0)
data/atril-1.24.0/backend/dvi/mdvi-lib/dviread.c:461:5:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if(access(file, R_OK) == 0)
data/atril-1.24.0/backend/dvi/mdvi-lib/files.c:65:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	int	status = (access(filename, R_OK) == 0);
data/atril-1.24.0/backend/dvi/mdvi-lib/files.c:74:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	int	status = (access(filename, F_OK) == 0);
data/atril-1.24.0/backend/dvi/mdvi-lib/fontmap.c:1124:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(afmfile, basefile);
data/atril-1.24.0/backend/dvi/mdvi-lib/util.c:56:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vfprintf(logfile, format, ap);
data/atril-1.24.0/backend/dvi/mdvi-lib/util.c:104:4:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			vfprintf(stderr, format, ap);
data/atril-1.24.0/backend/dvi/mdvi-lib/util.c:125:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vfprintf(stderr, format, ap);
data/atril-1.24.0/backend/dvi/mdvi-lib/util.c:143:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, format, ap);
data/atril-1.24.0/backend/dvi/mdvi-lib/util.c:160:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, format, ap);
data/atril-1.24.0/backend/dvi/mdvi-lib/util.c:176:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, format, ap);
data/atril-1.24.0/backend/dvi/mdvi-lib/util.c:192:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, format, ap);
data/atril-1.24.0/backend/tiff/tiff2ps.c:309:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(ctx->fd, startline, args);
data/atril-1.24.0/backend/dvi/dvi-document.c:246:74:  [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.
	mdvi_init_kpathsea ("atril", MDVI_MFMODE, MDVI_FALLBACK_FONT, MDVI_DPI, getenv("TEXMFCNF"));
data/atril-1.24.0/backend/dvi/mdvi-lib/fontmap.c:887:11:  [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.
	kppath = getenv("GS_LIB");
data/atril-1.24.0/backend/dvi/mdvi-lib/fontmap.c:888:11:  [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.
	kfpath = getenv("GS_FONTPATH");
data/atril-1.24.0/libdocument/ev-file-helpers.c:92:45:  [3] (buffer) g_get_tmp_dir:
  This function is synonymous with 'getenv("TMP")';it returns untrustable
  input if the environment can beset by an attacker. It can have any content
  and length, and the same variable can be set more than once (CWE-807,
  CWE-20). Check environment variables carefully before using them.
                tmp_dir = g_build_filename (g_get_tmp_dir (), dirname, NULL);
data/atril-1.24.0/libdocument/ev-file-helpers.c:386:35:  [3] (buffer) g_get_tmp_dir:
  This function is synonymous with 'getenv("TMP")';it returns untrustable
  input if the environment can beset by an attacker. It can have any content
  and length, and the same variable can be set more than once (CWE-807,
  CWE-20). Check environment variables carefully before using them.
	retval = g_str_has_prefix (path, g_get_tmp_dir ());
data/atril-1.24.0/previewer/ev-previewer.c:47:33:  [3] (buffer) g_get_tmp_dir:
  This function is synonymous with 'getenv("TMP")';it returns untrustable
  input if the environment can beset by an attacker. It can have any content
  and length, and the same variable can be set more than once (CWE-807,
  CWE-20). Check environment variables carefully before using them.
	tempdir = g_file_new_for_path (g_get_tmp_dir ());
data/atril-1.24.0/shell/ev-window.c:2719:66:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It can have any content
  and length, and the same variable can be set more than once (CWE-807,
  CWE-20). Check environment variables carefully before using them.
                                                     dir ? dir : g_get_home_dir ());
data/atril-1.24.0/shell/ev-window.c:3280:32:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It can have any content
  and length, and the same variable can be set more than once (CWE-807,
  CWE-20). Check environment variables carefully before using them.
	              documents_dir : g_get_home_dir ();
data/atril-1.24.0/shell/ev-window.c:3284:54:  [3] (buffer) g_get_tmp_dir:
  This function is synonymous with 'getenv("TMP")';it returns untrustable
  input if the environment can beset by an attacker. It can have any content
  and length, and the same variable can be set more than once (CWE-807,
  CWE-20). Check environment variables carefully before using them.
	dest_dir = dir_name && !g_str_has_prefix (dir_name, g_get_tmp_dir ()) &&
data/atril-1.24.0/shell/main.c:285:11:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It can have any content
  and length, and the same variable can be set more than once (CWE-807,
  CWE-20). Check environment variables carefully before using them.
	g_chdir (g_get_home_dir ());
data/atril-1.24.0/backend/djvu/djvu-document.c:577:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *d_optv[d_optc];
data/atril-1.24.0/backend/djvu/djvu-document.c:581:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *fn = fopen (djvu_document->ps_filename, "w");
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:344:43:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	                gfi->underlinePosition = atoi(keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:348:47:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    gfi->underlineThickness = atoi(keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:362:41:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    gfi->fontBBox.llx = atoi(keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:364:41:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    gfi->fontBBox.lly = atoi(keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:366:41:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    gfi->fontBBox.urx = atoi(keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:368:41:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    gfi->fontBBox.ury = atoi(keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:372:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    gfi->capHeight = atoi(keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:376:36:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    gfi->xHeight = atoi(keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:380:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    gfi->descender = atoi(keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:384:37:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    gfi->ascender = atoi(keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:446:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                code = atoi(token(fp));
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:449:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                width = atoi(token(fp));
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:547:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    pos = atoi(keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:557:36:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                        cwi[pos] = atoi(keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:630:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    temp->code = atoi(token(fp));
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:640:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                temp->wx = atoi(token(fp));
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:641:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                temp->wy = atoi(token(fp));
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:644:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                temp->wx = atoi(token(fp));
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:652:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                temp->charBBox.llx = atoi(token(fp));
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:653:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                temp->charBBox.lly = atoi(token(fp));
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:654:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                temp->charBBox.urx = atoi(token(fp));
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:655:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                temp->charBBox.ury = atoi(token(fp));
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:757:47:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                        fi->tkd[pos].degree = atoi(keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:867:45:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                        fi->pkd[pos].xamt = atoi(keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:869:47:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                        fi->pkd[pos++].yamt = atoi(keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:890:47:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                        fi->pkd[pos++].xamt = atoi(keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:997:52:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                        fi->ccd[pos].numOfPieces = atoi(keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:1017:57:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                        fi->ccd[pos].pieces[j].deltax = atoi(keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:1019:59:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                        fi->ccd[pos].pieces[j++].deltay = atoi(keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:1111:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        (*fi)->numOfChars = atoi(token(fp));
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:1163:42:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    (*fi)->numOfTracks = atoi(keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:1178:41:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    (*fi)->numOfPairs = atoi(keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:1193:41:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    (*fi)->numOfComps = atoi(keyword);
data/atril-1.24.0/backend/dvi/mdvi-lib/bitmap.c:147: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(unit, curr, bytes);
data/atril-1.24.0/backend/dvi/mdvi-lib/bitmap.c:184: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(unit, curr, bytes);
data/atril-1.24.0/backend/dvi/mdvi-lib/bitmap.c:201: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(nb->data, bm->data, bm->height * bm->stride);
data/atril-1.24.0/backend/dvi/mdvi-lib/common.c:142:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf->data + buf->length, data, len);
data/atril-1.24.0/backend/dvi/mdvi-lib/common.c:160: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(ret, buf->data, len);
data/atril-1.24.0/backend/dvi/mdvi-lib/common.h:37:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#    define memcpy(a,b,n)  bcopy((b), (a), (n))
data/atril-1.24.0/backend/dvi/mdvi-lib/common.h:37:28:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#    define memcpy(a,b,n)  bcopy((b), (a), (n))
data/atril-1.24.0/backend/dvi/mdvi-lib/common.h:38:28:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#    define memmove(a,b,n) bcopy((b), (a), (n))
data/atril-1.24.0/backend/dvi/mdvi-lib/dviread.c:277:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buffer, dvi->buffer.data + dvi->buffer.pos, len);
data/atril-1.24.0/backend/dvi/mdvi-lib/dviread.c:454:2:  [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(file+len, ".dvi");
data/atril-1.24.0/backend/dvi/mdvi-lib/dviread.c:687:6:  [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 = fopen(filename, "rb");
data/atril-1.24.0/backend/dvi/mdvi-lib/dviread.c:864:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&dvi->pagemap[pagecount], page, sizeof(PageNum));
data/atril-1.24.0/backend/dvi/mdvi-lib/dviread.c:1011:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		dvi->in = fopen(dvi->filename, "rb");
data/atril-1.24.0/backend/dvi/mdvi-lib/dviread.c:1345: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(&dvi->stack[dvi->stacktop], &dvi->pos, sizeof(DviState));
data/atril-1.24.0/backend/dvi/mdvi-lib/dviread.c:1361: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(&dvi->pos, &dvi->stack[dvi->stacktop-1], sizeof(DviState));
data/atril-1.24.0/backend/dvi/mdvi-lib/files.c:28:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	buffer[256];
data/atril-1.24.0/backend/dvi/mdvi-lib/font.c:39:22:  [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).
	else if((font->in = fopen(font->filename, "rb")) == NULL) {
data/atril-1.24.0/backend/dvi/mdvi-lib/fontmap.c:78: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 *tex_text_vector[256] = {
data/atril-1.24.0/backend/dvi/mdvi-lib/fontmap.c:122:7:  [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).
	in = fopen(enc->filename, "rb");
data/atril-1.24.0/backend/dvi/mdvi-lib/fontmap.c:270:7:  [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).
	in = fopen(filename, "rb");
data/atril-1.24.0/backend/dvi/mdvi-lib/fontmap.c:481:8:  [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).
		in = fopen(file, "rb");
data/atril-1.24.0/backend/dvi/mdvi-lib/fontmap.c:483:8:  [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).
		in = fopen(ptr, "rb");
data/atril-1.24.0/backend/dvi/mdvi-lib/fontmap.c:731:8:  [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).
		in = fopen(config, "rb");
data/atril-1.24.0/backend/dvi/mdvi-lib/fontmap.c:733:8:  [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).
		in = fopen(file, "rb");
data/atril-1.24.0/backend/dvi/mdvi-lib/fontmap.c:914:7:  [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).
	in = fopen(fullname, "rb");
data/atril-1.24.0/backend/dvi/mdvi-lib/fontmap.c:1086:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	buffer[64]; /* to avoid mallocs */
data/atril-1.24.0/backend/dvi/mdvi-lib/fontmap.c:1125:2:  [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(afmfile + baselen, ".afm");
data/atril-1.24.0/backend/dvi/mdvi-lib/gf.c:246: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	s[256];
data/atril-1.24.0/backend/dvi/mdvi-lib/mdvi.h:147: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	coding[64];
data/atril-1.24.0/backend/dvi/mdvi-lib/mdvi.h:148: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	family[64];
data/atril-1.24.0/backend/dvi/mdvi-lib/pagesel.c:173: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(&range[curr++], &one, sizeof(DviRange));
data/atril-1.24.0/backend/dvi/mdvi-lib/pagesel.c:396:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	buf[256];
data/atril-1.24.0/backend/dvi/mdvi-lib/pagesel.c:443:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			v = atoi(buf);
data/atril-1.24.0/backend/dvi/mdvi-lib/pagesel.c:457:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	buf[256];
data/atril-1.24.0/backend/dvi/mdvi-lib/paper.c:96:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	buf[32];
data/atril-1.24.0/backend/dvi/mdvi-lib/paper.c:100: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, "%12.16f%c%c", a, c, d);
data/atril-1.24.0/backend/dvi/mdvi-lib/paper.c: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(buf, "%12.16f%c%c", b, c, d);
data/atril-1.24.0/backend/dvi/mdvi-lib/paper.c:107: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, "%12.16f%c%c", a, c, d);
data/atril-1.24.0/backend/dvi/mdvi-lib/paper.c:109: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, "%12.16f%c%c", b, e, f);
data/atril-1.24.0/backend/dvi/mdvi-lib/pk.c:277: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(t, r, bm->stride);
data/atril-1.24.0/backend/dvi/mdvi-lib/pk.c:335: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	s[256];
data/atril-1.24.0/backend/dvi/mdvi-lib/tfmfile.c:84:7:  [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).
	in = fopen(filename, "rb");
data/atril-1.24.0/backend/dvi/mdvi-lib/tfmfile.c:165:7:  [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).
	in = fopen(filename, "rb");
data/atril-1.24.0/backend/dvi/mdvi-lib/tfmfile.c:236: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(info->coding, ptr, n);
data/atril-1.24.0/backend/dvi/mdvi-lib/tfmfile.c:240: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(info->coding, "FontSpecific");
data/atril-1.24.0/backend/dvi/mdvi-lib/tfmfile.c:246:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(info->family, ptr, i);
data/atril-1.24.0/backend/dvi/mdvi-lib/tfmfile.c:249:4:  [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(info->family, "unspecified");
data/atril-1.24.0/backend/dvi/mdvi-lib/tfmfile.c:342: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(info->coding, "FontSpecific");
data/atril-1.24.0/backend/dvi/mdvi-lib/tfmfile.c:351:4:  [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(info->family, "unspecified");
data/atril-1.24.0/backend/dvi/mdvi-lib/tfmfile.c:383:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(tch++, &ch, sizeof(TFMChar));
data/atril-1.24.0/backend/dvi/mdvi-lib/tfmfile.c:448:7:  [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).
	in = fopen(filename, "rb");
data/atril-1.24.0/backend/dvi/mdvi-lib/tfmfile.c:519: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(info->coding, "FontSpecific");
data/atril-1.24.0/backend/dvi/mdvi-lib/tfmfile.c:528:4:  [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(info->family, "unspecified");
data/atril-1.24.0/backend/dvi/mdvi-lib/util.c:64:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if(filename && (f = fopen(filename, "w")) == NULL)
data/atril-1.24.0/backend/dvi/mdvi-lib/util.c:259: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(ptr, string, length);
data/atril-1.24.0/backend/dvi/mdvi-lib/util.c:280: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(ptr, string, n);
data/atril-1.24.0/backend/dvi/mdvi-lib/util.c:288: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(ptr, data, length);
data/atril-1.24.0/backend/dvi/mdvi-lib/util.c:413: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(dest + n, src, m);
data/atril-1.24.0/backend/dvi/mdvi-lib/util.c:481: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(dstr->data + dstr->length, string, len);
data/atril-1.24.0/backend/dvi/mdvi-lib/util.c:504: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(dstr->data + pos, string, len);
data/atril-1.24.0/backend/dvi/mdvi-lib/util.c:524: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(dstr->data + pos, string, len);
data/atril-1.24.0/backend/dvi/mdvi-lib/util.c:538: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(dstr->data, string, len);
data/atril-1.24.0/backend/epub/minizip/ioapi.c:19:36:  [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).
#define FOPEN_FUNC(filename, mode) fopen(filename, mode)
data/atril-1.24.0/backend/epub/minizip/ioapi.c:109: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 = fopen(filename, mode_fopen);
data/atril-1.24.0/backend/epub/minizip/ioapi.h:49: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).
#define fopen64 fopen
data/atril-1.24.0/backend/epub/minizip/ioapi.h:54: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).
#define fopen64 fopen
data/atril-1.24.0/backend/epub/minizip/ioapi.h:59: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).
 #define fopen64 fopen
data/atril-1.24.0/backend/epub/minizip/unzip.c:1266: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 szCurrentFileName[UNZ_MAXFILENAMEINZIP+1];
data/atril-1.24.0/backend/epub/minizip/unzip.c:1482: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 source[12];
data/atril-1.24.0/backend/pdf/ev-poppler.cc:3113: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 (sdata->buffer + sdata->len, buf, count);
data/atril-1.24.0/backend/tiff/tiff2ps.c:139:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char ascii85buf[10];
data/atril-1.24.0/backend/tiff/tiff2ps.c:768: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 im_h[64], im_x[64], im_y[64];
data/atril-1.24.0/backend/tiff/tiff2ps.c:771: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.
	(void)sprintf(im_y, "%lu", (long) h);
data/atril-1.24.0/backend/tiff/tiff2ps.c:772: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.
	(void)sprintf(im_h, "%lu", (long) h);
data/atril-1.24.0/backend/tiff/tiff2ps.c:789:10:  [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.
			(void)strcpy(im_x, "im_x neg");
data/atril-1.24.0/backend/tiff/tiff2ps.c:793: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.
			(void)sprintf(im_y, "%lu im_y sub", (unsigned long) h);
data/atril-1.24.0/backend/tiff/tiff2ps.c:804:10:  [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.
			(void)strcpy(im_h, "im_h");
data/atril-1.24.0/backend/tiff/tiff2ps.c:805: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.
			(void)sprintf(im_y, "%lu im_y sub", (unsigned long) h);
data/atril-1.24.0/backend/tiff/tiff2ps.c:1694: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[6];
data/atril-1.24.0/backend/tiff/tiff2ps.c:1717: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 res[6];
data/atril-1.24.0/backend/tiff/tiff2ps.c:1772: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                        ascii85[5];     /* Encoded 5 tuple */
data/atril-1.24.0/cut-n-paste/smclient/eggsmclient-xsmp.c:209:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char pid_str[64];
data/atril-1.24.0/cut-n-paste/smclient/eggsmclient-xsmp.c:320:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char error_string_ret[256];
data/atril-1.24.0/cut-n-paste/smclient/eggsmclient-xsmp.c:870:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      fd = open (state_file_path, O_WRONLY | O_CREAT | O_EXCL, 0644);
data/atril-1.24.0/cut-n-paste/toolbar-editor/egg-editable-toolbar.c:897: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 action_name[40];
data/atril-1.24.0/cut-n-paste/toolbar-editor/egg-editable-toolbar.c:987: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(action_name, "ToolbarToggle%d", i);
data/atril-1.24.0/libview/ev-view-presentation.c:676:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	page = atoi (text) - 1;
data/atril-1.24.0/libview/ev-web-view.c:415:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			gint page = atoi(text);
data/atril-1.24.0/backend/comics/comics-document.c:686:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			bytes = read (outpipe, buf, 1024);
data/atril-1.24.0/backend/comics/comics-document.c:762:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			bytes = read (outpipe, buf, 4096);
data/atril-1.24.0/backend/djvu/djvu-text-page.c:337:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			    strlen (page->text);
data/atril-1.24.0/backend/djvu/djvu-text-page.c:385: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).
	search_len = strlen (text);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:158:18:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((ch = fgetc(stream)) == ' ' || ch == lineterm ||
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:166:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ch = fgetc(stream);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:190:18:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((ch = fgetc(stream)) == ' ' || ch == '\t' );
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:196:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ch = fgetc(stream);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:298:55:  [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).
                    gfi->afmVersion = (char *) malloc(strlen(keyword) + 1);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:306:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    gfi->fontName = (char *) malloc(strlen(keyword) + 1);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:312: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).
                    	malloc(strlen(keyword) + 1);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:317:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    gfi->fullName = (char *) malloc(strlen(keyword) + 1);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:322:55:  [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).
                    gfi->familyName = (char *) malloc(strlen(keyword) + 1);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:327:51:  [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).
                    gfi->weight = (char *) malloc(strlen(keyword) + 1);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:352:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    gfi->version = (char *) malloc(strlen(keyword) + 1);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:357:51:  [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).
                    gfi->notice = (char *) malloc(strlen(keyword) + 1);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:648:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                temp->name = (char *) malloc(strlen(keyword) + 1);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:670:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                (*tail)->succ = (char *) malloc(strlen(keyword) + 1);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:673:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                (*tail)->lig = (char *) malloc(strlen(keyword) + 1);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:860:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            malloc(strlen(keyword) + 1);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:864:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            malloc(strlen(keyword) + 1);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:883:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            malloc(strlen(keyword) + 1);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:887:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            malloc(strlen(keyword) + 1);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:994:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            malloc(strlen(keyword) + 1);
data/atril-1.24.0/backend/dvi/mdvi-lib/afmparse.c:1014:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                malloc(strlen(keyword) + 1);
data/atril-1.24.0/backend/dvi/mdvi-lib/common.c:94:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		(void)fgetc(in);
data/atril-1.24.0/backend/dvi/mdvi-lib/common.c:137:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(data);
data/atril-1.24.0/backend/dvi/mdvi-lib/common.h:75:32:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define fgetbyte(p)	((unsigned)getc(p))
data/atril-1.24.0/backend/dvi/mdvi-lib/dviread.c:443:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(name);
data/atril-1.24.0/backend/dvi/mdvi-lib/files.c:34:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int	len = strlen(buffer);
data/atril-1.24.0/backend/dvi/mdvi-lib/fontmap.c:1116:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	baselen = strlen(basefile);
data/atril-1.24.0/backend/dvi/mdvi-lib/pagesel.c:412:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if(buf[strlen(buf)-1] == '\n')
data/atril-1.24.0/backend/dvi/mdvi-lib/pagesel.c:413:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			buf[strlen(buf)-1] = 0;
data/atril-1.24.0/backend/dvi/mdvi-lib/pagesel.c:439: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).
			if(buf[strlen(buf)-1] == '\n')
data/atril-1.24.0/backend/dvi/mdvi-lib/pagesel.c:440:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				buf[strlen(buf)-1] = 0;
data/atril-1.24.0/backend/dvi/mdvi-lib/pagesel.c:463:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if(buf[strlen(buf)-1] == '\n')
data/atril-1.24.0/backend/dvi/mdvi-lib/pagesel.c:464:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			buf[strlen(buf)-1] = 0;
data/atril-1.24.0/backend/dvi/mdvi-lib/sp-epsf.c:273:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int path_len = strlen (dvi->filename) - strlen (tmp + 1);
data/atril-1.24.0/backend/dvi/mdvi-lib/sp-epsf.c:273:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int path_len = strlen (dvi->filename) - strlen (tmp + 1);
data/atril-1.24.0/backend/dvi/mdvi-lib/sp-epsf.c:274:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int file_len = strlen (file);
data/atril-1.24.0/backend/dvi/mdvi-lib/sp-epsf.c:278:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat (psfile, dvi->filename, path_len);
data/atril-1.24.0/backend/dvi/mdvi-lib/sp-epsf.c:279:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat (psfile, file, file_len);
data/atril-1.24.0/backend/dvi/mdvi-lib/special.c:128:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	sp->plen = strlen(prefix);
data/atril-1.24.0/backend/dvi/mdvi-lib/util.c:257:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	length = strlen(string) + 1;
data/atril-1.24.0/backend/dvi/mdvi-lib/util.c:266:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(to, from, length);
data/atril-1.24.0/backend/dvi/mdvi-lib/util.c:276:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	n = strlen(string);
data/atril-1.24.0/backend/dvi/mdvi-lib/util.c:299: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).
	needle_len = strlen (needle);
data/atril-1.24.0/backend/dvi/mdvi-lib/util.c:300:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	haystack_len = strlen (haystack);
data/atril-1.24.0/backend/dvi/mdvi-lib/util.c:339:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	buf = mdvi_realloc (buf, strlen (buf) + strlen (path) + 2);
data/atril-1.24.0/backend/dvi/mdvi-lib/util.c:339:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	buf = mdvi_realloc (buf, strlen (buf) + strlen (path) + 2);
data/atril-1.24.0/backend/dvi/mdvi-lib/util.c:340:2:  [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 (buf, "/");
data/atril-1.24.0/backend/dvi/mdvi-lib/util.c:341:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat (buf, path, strlen (path));
data/atril-1.24.0/backend/dvi/mdvi-lib/util.c:341:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	strncat (buf, path, strlen (path));
data/atril-1.24.0/backend/dvi/mdvi-lib/util.c:408:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		m = strlen(src);
data/atril-1.24.0/backend/dvi/mdvi-lib/util.c:475:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(string);
data/atril-1.24.0/backend/dvi/mdvi-lib/util.c:498:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(string);
data/atril-1.24.0/backend/dvi/mdvi-lib/util.c:515:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(string);
data/atril-1.24.0/backend/dvi/mdvi-lib/util.c:534:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(string);
data/atril-1.24.0/backend/epub/epub-document.c:170:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        tmp = tmp + strlen(needle);
data/atril-1.24.0/backend/epub/epub-document.c:692:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        gchar *createdirname = g_malloc0(strlen(currentfilename));
data/atril-1.24.0/backend/epub/epub-document.c:1209:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	gchar *navdir = g_malloc0(strlen(tocpath));
data/atril-1.24.0/backend/epub/epub-document.c:1554:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ( g_output_stream_write((GOutputStream*)outstream,style,strlen(style),NULL,NULL) == -1 )
data/atril-1.24.0/backend/epub/minizip/unzip.c:1249:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(szFileName)>=UNZ_MAXFILENAMEINZIP)
data/atril-1.24.0/backend/pdf/ev-poppler.cc:603:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	doc = xmlParseMemory (metadata, strlen (metadata));
data/atril-1.24.0/backend/pdf/ev-poppler.cc:1210:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (!link || strlen (ev_link_get_title (link)) <= 0) {
data/atril-1.24.0/backend/tiff/tiff2ps.c:770:8:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	(void)strcpy(im_x, "0");
data/atril-1.24.0/cut-n-paste/smclient/eggsmclient-xsmp.c:1148:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      pv.length = strlen (value);
data/atril-1.24.0/cut-n-paste/smclient/eggsmclient-xsmp.c:1182:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      pv.length = strlen (values->pdata[i]);
data/atril-1.24.0/cut-n-paste/smclient/eggsmclient-xsmp.c:1211:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  prop->vals[0].length = strlen (value);
data/atril-1.24.0/cut-n-paste/toolbar-editor/egg-editable-toolbar.c:282:81:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      gtk_selection_data_set (selection_data, target, 8, (unsigned char *)data, strlen (data));
data/atril-1.24.0/cut-n-paste/toolbar-editor/egg-toolbar-editor.c:328:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                          (const guchar *) target, strlen (target));
data/atril-1.24.0/cut-n-paste/toolbar-editor/egg-toolbar-editor.c:338:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  q = result = g_malloc (strlen (original) + 1);
data/atril-1.24.0/libdocument/ev-document-factory.c:97:6:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	if (sscanf (++p, "x-%2s%*s", type) == 1) {
data/atril-1.24.0/libview/ev-page-accessible.c:492:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		end_offset = strlen (page_text);
data/atril-1.24.0/libview/ev-view.c:4588:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
							     strlen (text));
data/atril-1.24.0/properties/ev-properties-view.c:124:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  remaining_bytes = strlen (name);
data/atril-1.24.0/shell/ev-bookmarks.c:146:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (bm->title && strlen (bm->title) > 0)
data/atril-1.24.0/shell/ev-metadata.c:113:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		key = attrs[i] + strlen (EV_METADATA_NAMESPACE"::");
data/atril-1.24.0/shell/ev-window-title.c:100:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			new_title = g_strndup (*title, strlen(*title) - strlen(bad_extensions[i].text));
data/atril-1.24.0/shell/ev-window-title.c:100:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			new_title = g_strndup (*title, strlen(*title) - strlen(bad_extensions[i].text));
data/atril-1.24.0/shell/ev-window-title.c:111: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).
			int len = strlen(bad_prefixes[i].text);
data/atril-1.24.0/shell/ev-window.c:2893:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	length = strlen (filename);
data/atril-1.24.0/shell/ev-window.c:7056:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!g_strstr_len (uri, strlen (uri), "://") &&

ANALYSIS SUMMARY:

Hits = 251
Lines analyzed = 98668 in approximately 2.19 seconds (45120 lines/second)
Physical Source Lines of Code (SLOC) = 72407
Hits@level = [0] 154 [1]  83 [2] 123 [3]  10 [4]  35 [5]   0
Hits@level+ = [0+] 405 [1+] 251 [2+] 168 [3+]  45 [4+]  35 [5+]   0
Hits/KSLOC@level+ = [0+] 5.59338 [1+] 3.46652 [2+] 2.32022 [3+] 0.621487 [4+] 0.483379 [5+]   0
Dot directories skipped = 3 (--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.