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/evince-3.38.0/backend/comics/comics-document.c
Examining data/evince-3.38.0/backend/comics/comics-document.h
Examining data/evince-3.38.0/backend/comics/ev-archive.c
Examining data/evince-3.38.0/backend/comics/ev-archive.h
Examining data/evince-3.38.0/backend/comics/test-ev-archive.c
Examining data/evince-3.38.0/backend/djvu/djvu-document-private.h
Examining data/evince-3.38.0/backend/djvu/djvu-document.c
Examining data/evince-3.38.0/backend/djvu/djvu-document.h
Examining data/evince-3.38.0/backend/djvu/djvu-links.c
Examining data/evince-3.38.0/backend/djvu/djvu-links.h
Examining data/evince-3.38.0/backend/djvu/djvu-text-page.c
Examining data/evince-3.38.0/backend/djvu/djvu-text-page.h
Examining data/evince-3.38.0/backend/dvi/cairo-device.c
Examining data/evince-3.38.0/backend/dvi/cairo-device.h
Examining data/evince-3.38.0/backend/dvi/dvi-document.c
Examining data/evince-3.38.0/backend/dvi/dvi-document.h
Examining data/evince-3.38.0/backend/dvi/fonts.c
Examining data/evince-3.38.0/backend/dvi/fonts.h
Examining data/evince-3.38.0/backend/dvi/mdvi-lib/afmparse.c
Examining data/evince-3.38.0/backend/dvi/mdvi-lib/afmparse.h
Examining data/evince-3.38.0/backend/dvi/mdvi-lib/bitmap.c
Examining data/evince-3.38.0/backend/dvi/mdvi-lib/bitmap.h
Examining data/evince-3.38.0/backend/dvi/mdvi-lib/color.c
Examining data/evince-3.38.0/backend/dvi/mdvi-lib/color.h
Examining data/evince-3.38.0/backend/dvi/mdvi-lib/common.c
Examining data/evince-3.38.0/backend/dvi/mdvi-lib/common.h
Examining data/evince-3.38.0/backend/dvi/mdvi-lib/defaults.h
Examining data/evince-3.38.0/backend/dvi/mdvi-lib/dvimisc.c
Examining data/evince-3.38.0/backend/dvi/mdvi-lib/dviopcodes.h
Examining data/evince-3.38.0/backend/dvi/mdvi-lib/dviread.c
Examining data/evince-3.38.0/backend/dvi/mdvi-lib/files.c
Examining data/evince-3.38.0/backend/dvi/mdvi-lib/font.c
Examining data/evince-3.38.0/backend/dvi/mdvi-lib/fontmap.c
Examining data/evince-3.38.0/backend/dvi/mdvi-lib/fontmap.h
Examining data/evince-3.38.0/backend/dvi/mdvi-lib/fontsrch.c
Examining data/evince-3.38.0/backend/dvi/mdvi-lib/gf.c
Examining data/evince-3.38.0/backend/dvi/mdvi-lib/hash.c
Examining data/evince-3.38.0/backend/dvi/mdvi-lib/hash.h
Examining data/evince-3.38.0/backend/dvi/mdvi-lib/list.c
Examining data/evince-3.38.0/backend/dvi/mdvi-lib/mdvi.h
Examining data/evince-3.38.0/backend/dvi/mdvi-lib/pagesel.c
Examining data/evince-3.38.0/backend/dvi/mdvi-lib/paper.c
Examining data/evince-3.38.0/backend/dvi/mdvi-lib/paper.h
Examining data/evince-3.38.0/backend/dvi/mdvi-lib/pk.c
Examining data/evince-3.38.0/backend/dvi/mdvi-lib/private.h
Examining data/evince-3.38.0/backend/dvi/mdvi-lib/setup.c
Examining data/evince-3.38.0/backend/dvi/mdvi-lib/sp-epsf.c
Examining data/evince-3.38.0/backend/dvi/mdvi-lib/special.c
Examining data/evince-3.38.0/backend/dvi/mdvi-lib/sysdeps.h
Examining data/evince-3.38.0/backend/dvi/mdvi-lib/t1.c
Examining data/evince-3.38.0/backend/dvi/mdvi-lib/tfm.c
Examining data/evince-3.38.0/backend/dvi/mdvi-lib/tfmfile.c
Examining data/evince-3.38.0/backend/dvi/mdvi-lib/tt.c
Examining data/evince-3.38.0/backend/dvi/mdvi-lib/util.c
Examining data/evince-3.38.0/backend/dvi/mdvi-lib/vf.c
Examining data/evince-3.38.0/backend/dvi/texmfcnf.c
Examining data/evince-3.38.0/backend/dvi/texmfcnf.h
Examining data/evince-3.38.0/backend/pdf/ev-poppler.cc
Examining data/evince-3.38.0/backend/pdf/ev-poppler.h
Examining data/evince-3.38.0/backend/ps/ev-spectre.c
Examining data/evince-3.38.0/backend/ps/ev-spectre.h
Examining data/evince-3.38.0/backend/tiff/tiff-document.c
Examining data/evince-3.38.0/backend/tiff/tiff-document.h
Examining data/evince-3.38.0/backend/tiff/tiff2ps.c
Examining data/evince-3.38.0/backend/tiff/tiff2ps.h
Examining data/evince-3.38.0/backend/xps/xps-document.c
Examining data/evince-3.38.0/backend/xps/xps-document.h
Examining data/evince-3.38.0/browser-plugin/EvBrowserPlugin.cpp
Examining data/evince-3.38.0/browser-plugin/EvBrowserPlugin.h
Examining data/evince-3.38.0/browser-plugin/EvBrowserPluginMain.cpp
Examining data/evince-3.38.0/browser-plugin/EvBrowserPluginToolbar.cpp
Examining data/evince-3.38.0/browser-plugin/EvBrowserPluginToolbar.h
Examining data/evince-3.38.0/browser-plugin/EvMemoryUtils.h
Examining data/evince-3.38.0/browser-plugin/npapi/npapi.h
Examining data/evince-3.38.0/browser-plugin/npapi/npfunctions.h
Examining data/evince-3.38.0/browser-plugin/npapi/npruntime.h
Examining data/evince-3.38.0/browser-plugin/npapi/nptypes.h
Examining data/evince-3.38.0/cut-n-paste/gimpcellrenderertoggle/gimpcellrenderertoggle.c
Examining data/evince-3.38.0/cut-n-paste/gimpcellrenderertoggle/gimpcellrenderertoggle.h
Examining data/evince-3.38.0/cut-n-paste/libdazzle/dzl-file-manager.c
Examining data/evince-3.38.0/cut-n-paste/libdazzle/dzl-file-manager.h
Examining data/evince-3.38.0/cut-n-paste/libdazzle/dzl-version-macros.h
Examining data/evince-3.38.0/cut-n-paste/libgd/gd-icon-utils.c
Examining data/evince-3.38.0/cut-n-paste/libgd/gd-icon-utils.h
Examining data/evince-3.38.0/cut-n-paste/libgd/gd-two-lines-renderer.c
Examining data/evince-3.38.0/cut-n-paste/libgd/gd-two-lines-renderer.h
Examining data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c
Examining data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.h
Examining data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_advanced.h
Examining data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_local.h
Examining data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_utils.c
Examining data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_utils.h
Examining data/evince-3.38.0/cut-n-paste/synctex/synctex_version.h
Examining data/evince-3.38.0/cut-n-paste/unarr/common/allocator.h
Examining data/evince-3.38.0/cut-n-paste/unarr/common/conv.c
Examining data/evince-3.38.0/cut-n-paste/unarr/common/crc32.c
Examining data/evince-3.38.0/cut-n-paste/unarr/common/stream.c
Examining data/evince-3.38.0/cut-n-paste/unarr/common/unarr-imp.h
Examining data/evince-3.38.0/cut-n-paste/unarr/common/unarr.c
Examining data/evince-3.38.0/cut-n-paste/unarr/lzmasdk/7zTypes.h
Examining data/evince-3.38.0/cut-n-paste/unarr/lzmasdk/CpuArch.c
Examining data/evince-3.38.0/cut-n-paste/unarr/lzmasdk/CpuArch.h
Examining data/evince-3.38.0/cut-n-paste/unarr/lzmasdk/Ppmd.h
Examining data/evince-3.38.0/cut-n-paste/unarr/lzmasdk/Ppmd7.c
Examining data/evince-3.38.0/cut-n-paste/unarr/lzmasdk/Ppmd7.h
Examining data/evince-3.38.0/cut-n-paste/unarr/lzmasdk/Ppmd7Dec.c
Examining data/evince-3.38.0/cut-n-paste/unarr/lzmasdk/Precomp.h
Examining data/evince-3.38.0/cut-n-paste/unarr/rar/filter-rar.c
Examining data/evince-3.38.0/cut-n-paste/unarr/rar/huffman-rar.c
Examining data/evince-3.38.0/cut-n-paste/unarr/rar/lzss.h
Examining data/evince-3.38.0/cut-n-paste/unarr/rar/parse-rar.c
Examining data/evince-3.38.0/cut-n-paste/unarr/rar/rar.c
Examining data/evince-3.38.0/cut-n-paste/unarr/rar/rar.h
Examining data/evince-3.38.0/cut-n-paste/unarr/rar/rarvm.c
Examining data/evince-3.38.0/cut-n-paste/unarr/rar/rarvm.h
Examining data/evince-3.38.0/cut-n-paste/unarr/rar/uncompress-rar.c
Examining data/evince-3.38.0/cut-n-paste/unarr/unarr.h
Examining data/evince-3.38.0/evince-document.h
Examining data/evince-3.38.0/evince-view.h
Examining data/evince-3.38.0/libdocument/ev-annotation.c
Examining data/evince-3.38.0/libdocument/ev-annotation.h
Examining data/evince-3.38.0/libdocument/ev-async-renderer.c
Examining data/evince-3.38.0/libdocument/ev-async-renderer.h
Examining data/evince-3.38.0/libdocument/ev-attachment.c
Examining data/evince-3.38.0/libdocument/ev-attachment.h
Examining data/evince-3.38.0/libdocument/ev-backend-info.c
Examining data/evince-3.38.0/libdocument/ev-backend-info.h
Examining data/evince-3.38.0/libdocument/ev-backends-manager.h
Examining data/evince-3.38.0/libdocument/ev-debug.c
Examining data/evince-3.38.0/libdocument/ev-debug.h
Examining data/evince-3.38.0/libdocument/ev-document-annotations.c
Examining data/evince-3.38.0/libdocument/ev-document-annotations.h
Examining data/evince-3.38.0/libdocument/ev-document-attachments.c
Examining data/evince-3.38.0/libdocument/ev-document-attachments.h
Examining data/evince-3.38.0/libdocument/ev-document-factory.c
Examining data/evince-3.38.0/libdocument/ev-document-factory.h
Examining data/evince-3.38.0/libdocument/ev-document-find.c
Examining data/evince-3.38.0/libdocument/ev-document-find.h
Examining data/evince-3.38.0/libdocument/ev-document-fonts.c
Examining data/evince-3.38.0/libdocument/ev-document-fonts.h
Examining data/evince-3.38.0/libdocument/ev-document-forms.c
Examining data/evince-3.38.0/libdocument/ev-document-forms.h
Examining data/evince-3.38.0/libdocument/ev-document-images.c
Examining data/evince-3.38.0/libdocument/ev-document-images.h
Examining data/evince-3.38.0/libdocument/ev-document-info.h
Examining data/evince-3.38.0/libdocument/ev-document-layers.c
Examining data/evince-3.38.0/libdocument/ev-document-layers.h
Examining data/evince-3.38.0/libdocument/ev-document-links.c
Examining data/evince-3.38.0/libdocument/ev-document-links.h
Examining data/evince-3.38.0/libdocument/ev-document-media.c
Examining data/evince-3.38.0/libdocument/ev-document-media.h
Examining data/evince-3.38.0/libdocument/ev-document-misc.c
Examining data/evince-3.38.0/libdocument/ev-document-misc.h
Examining data/evince-3.38.0/libdocument/ev-document-print.c
Examining data/evince-3.38.0/libdocument/ev-document-print.h
Examining data/evince-3.38.0/libdocument/ev-document-security.c
Examining data/evince-3.38.0/libdocument/ev-document-security.h
Examining data/evince-3.38.0/libdocument/ev-document-text.c
Examining data/evince-3.38.0/libdocument/ev-document-text.h
Examining data/evince-3.38.0/libdocument/ev-document-transition.c
Examining data/evince-3.38.0/libdocument/ev-document-transition.h
Examining data/evince-3.38.0/libdocument/ev-document.c
Examining data/evince-3.38.0/libdocument/ev-document.h
Examining data/evince-3.38.0/libdocument/ev-file-exporter.c
Examining data/evince-3.38.0/libdocument/ev-file-exporter.h
Examining data/evince-3.38.0/libdocument/ev-file-helpers.c
Examining data/evince-3.38.0/libdocument/ev-file-helpers.h
Examining data/evince-3.38.0/libdocument/ev-form-field-private.h
Examining data/evince-3.38.0/libdocument/ev-form-field.c
Examining data/evince-3.38.0/libdocument/ev-form-field.h
Examining data/evince-3.38.0/libdocument/ev-image.c
Examining data/evince-3.38.0/libdocument/ev-image.h
Examining data/evince-3.38.0/libdocument/ev-init.c
Examining data/evince-3.38.0/libdocument/ev-init.h
Examining data/evince-3.38.0/libdocument/ev-layer.c
Examining data/evince-3.38.0/libdocument/ev-layer.h
Examining data/evince-3.38.0/libdocument/ev-link-action.c
Examining data/evince-3.38.0/libdocument/ev-link-action.h
Examining data/evince-3.38.0/libdocument/ev-link-dest.c
Examining data/evince-3.38.0/libdocument/ev-link-dest.h
Examining data/evince-3.38.0/libdocument/ev-link.c
Examining data/evince-3.38.0/libdocument/ev-link.h
Examining data/evince-3.38.0/libdocument/ev-macros.h
Examining data/evince-3.38.0/libdocument/ev-mapping-list.c
Examining data/evince-3.38.0/libdocument/ev-mapping-list.h
Examining data/evince-3.38.0/libdocument/ev-media.c
Examining data/evince-3.38.0/libdocument/ev-media.h
Examining data/evince-3.38.0/libdocument/ev-module.c
Examining data/evince-3.38.0/libdocument/ev-module.h
Examining data/evince-3.38.0/libdocument/ev-page.c
Examining data/evince-3.38.0/libdocument/ev-page.h
Examining data/evince-3.38.0/libdocument/ev-render-context.c
Examining data/evince-3.38.0/libdocument/ev-render-context.h
Examining data/evince-3.38.0/libdocument/ev-selection.c
Examining data/evince-3.38.0/libdocument/ev-selection.h
Examining data/evince-3.38.0/libdocument/ev-transition-effect.c
Examining data/evince-3.38.0/libdocument/ev-transition-effect.h
Examining data/evince-3.38.0/libmisc/ev-page-action-widget.c
Examining data/evince-3.38.0/libmisc/ev-page-action-widget.h
Examining data/evince-3.38.0/libmisc/ev-search-box.c
Examining data/evince-3.38.0/libmisc/ev-search-box.h
Examining data/evince-3.38.0/libview/ev-annotation-window.c
Examining data/evince-3.38.0/libview/ev-annotation-window.h
Examining data/evince-3.38.0/libview/ev-color-contrast.c
Examining data/evince-3.38.0/libview/ev-color-contrast.h
Examining data/evince-3.38.0/libview/ev-document-model.c
Examining data/evince-3.38.0/libview/ev-document-model.h
Examining data/evince-3.38.0/libview/ev-form-field-accessible.c
Examining data/evince-3.38.0/libview/ev-form-field-accessible.h
Examining data/evince-3.38.0/libview/ev-image-accessible.c
Examining data/evince-3.38.0/libview/ev-image-accessible.h
Examining data/evince-3.38.0/libview/ev-job-scheduler.c
Examining data/evince-3.38.0/libview/ev-job-scheduler.h
Examining data/evince-3.38.0/libview/ev-jobs.c
Examining data/evince-3.38.0/libview/ev-jobs.h
Examining data/evince-3.38.0/libview/ev-link-accessible.c
Examining data/evince-3.38.0/libview/ev-link-accessible.h
Examining data/evince-3.38.0/libview/ev-media-player.c
Examining data/evince-3.38.0/libview/ev-media-player.h
Examining data/evince-3.38.0/libview/ev-page-accessible.c
Examining data/evince-3.38.0/libview/ev-page-accessible.h
Examining data/evince-3.38.0/libview/ev-page-cache.c
Examining data/evince-3.38.0/libview/ev-page-cache.h
Examining data/evince-3.38.0/libview/ev-pixbuf-cache.c
Examining data/evince-3.38.0/libview/ev-pixbuf-cache.h
Examining data/evince-3.38.0/libview/ev-print-operation.c
Examining data/evince-3.38.0/libview/ev-print-operation.h
Examining data/evince-3.38.0/libview/ev-stock-icons.c
Examining data/evince-3.38.0/libview/ev-stock-icons.h
Examining data/evince-3.38.0/libview/ev-timeline.c
Examining data/evince-3.38.0/libview/ev-timeline.h
Examining data/evince-3.38.0/libview/ev-transition-animation.c
Examining data/evince-3.38.0/libview/ev-transition-animation.h
Examining data/evince-3.38.0/libview/ev-view-accessible.c
Examining data/evince-3.38.0/libview/ev-view-accessible.h
Examining data/evince-3.38.0/libview/ev-view-cursor.c
Examining data/evince-3.38.0/libview/ev-view-cursor.h
Examining data/evince-3.38.0/libview/ev-view-presentation.c
Examining data/evince-3.38.0/libview/ev-view-presentation.h
Examining data/evince-3.38.0/libview/ev-view-private.h
Examining data/evince-3.38.0/libview/ev-view.c
Examining data/evince-3.38.0/libview/ev-view.h
Examining data/evince-3.38.0/previewer/ev-previewer-toolbar.c
Examining data/evince-3.38.0/previewer/ev-previewer-toolbar.h
Examining data/evince-3.38.0/previewer/ev-previewer-window.c
Examining data/evince-3.38.0/previewer/ev-previewer-window.h
Examining data/evince-3.38.0/previewer/ev-previewer.c
Examining data/evince-3.38.0/properties/ev-properties-main.c
Examining data/evince-3.38.0/properties/ev-properties-view.c
Examining data/evince-3.38.0/properties/ev-properties-view.h
Examining data/evince-3.38.0/shell/ev-annotation-properties-dialog.c
Examining data/evince-3.38.0/shell/ev-annotation-properties-dialog.h
Examining data/evince-3.38.0/shell/ev-annotations-toolbar.c
Examining data/evince-3.38.0/shell/ev-annotations-toolbar.h
Examining data/evince-3.38.0/shell/ev-application.c
Examining data/evince-3.38.0/shell/ev-application.h
Examining data/evince-3.38.0/shell/ev-bookmarks.c
Examining data/evince-3.38.0/shell/ev-bookmarks.h
Examining data/evince-3.38.0/shell/ev-daemon.c
Examining data/evince-3.38.0/shell/ev-file-monitor.c
Examining data/evince-3.38.0/shell/ev-file-monitor.h
Examining data/evince-3.38.0/shell/ev-find-sidebar.c
Examining data/evince-3.38.0/shell/ev-find-sidebar.h
Examining data/evince-3.38.0/shell/ev-history.c
Examining data/evince-3.38.0/shell/ev-history.h
Examining data/evince-3.38.0/shell/ev-keyring.c
Examining data/evince-3.38.0/shell/ev-keyring.h
Examining data/evince-3.38.0/shell/ev-loading-message.c
Examining data/evince-3.38.0/shell/ev-loading-message.h
Examining data/evince-3.38.0/shell/ev-media-player-keys.c
Examining data/evince-3.38.0/shell/ev-media-player-keys.h
Examining data/evince-3.38.0/shell/ev-message-area.c
Examining data/evince-3.38.0/shell/ev-message-area.h
Examining data/evince-3.38.0/shell/ev-metadata.c
Examining data/evince-3.38.0/shell/ev-metadata.h
Examining data/evince-3.38.0/shell/ev-password-view.c
Examining data/evince-3.38.0/shell/ev-password-view.h
Examining data/evince-3.38.0/shell/ev-progress-message-area.c
Examining data/evince-3.38.0/shell/ev-progress-message-area.h
Examining data/evince-3.38.0/shell/ev-properties-dialog.c
Examining data/evince-3.38.0/shell/ev-properties-dialog.h
Examining data/evince-3.38.0/shell/ev-properties-fonts.c
Examining data/evince-3.38.0/shell/ev-properties-fonts.h
Examining data/evince-3.38.0/shell/ev-properties-license.c
Examining data/evince-3.38.0/shell/ev-properties-license.h
Examining data/evince-3.38.0/shell/ev-recent-view.c
Examining data/evince-3.38.0/shell/ev-recent-view.h
Examining data/evince-3.38.0/shell/ev-sidebar-annotations.c
Examining data/evince-3.38.0/shell/ev-sidebar-annotations.h
Examining data/evince-3.38.0/shell/ev-sidebar-attachments.c
Examining data/evince-3.38.0/shell/ev-sidebar-attachments.h
Examining data/evince-3.38.0/shell/ev-sidebar-bookmarks.c
Examining data/evince-3.38.0/shell/ev-sidebar-bookmarks.h
Examining data/evince-3.38.0/shell/ev-sidebar-layers.c
Examining data/evince-3.38.0/shell/ev-sidebar-layers.h
Examining data/evince-3.38.0/shell/ev-sidebar-links.c
Examining data/evince-3.38.0/shell/ev-sidebar-links.h
Examining data/evince-3.38.0/shell/ev-sidebar-page.c
Examining data/evince-3.38.0/shell/ev-sidebar-page.h
Examining data/evince-3.38.0/shell/ev-sidebar-thumbnails.c
Examining data/evince-3.38.0/shell/ev-sidebar-thumbnails.h
Examining data/evince-3.38.0/shell/ev-sidebar.c
Examining data/evince-3.38.0/shell/ev-sidebar.h
Examining data/evince-3.38.0/shell/ev-toolbar.c
Examining data/evince-3.38.0/shell/ev-toolbar.h
Examining data/evince-3.38.0/shell/ev-utils.c
Examining data/evince-3.38.0/shell/ev-utils.h
Examining data/evince-3.38.0/shell/ev-window-title.c
Examining data/evince-3.38.0/shell/ev-window-title.h
Examining data/evince-3.38.0/shell/ev-window.h
Examining data/evince-3.38.0/shell/ev-zoom-action.c
Examining data/evince-3.38.0/shell/ev-zoom-action.h
Examining data/evince-3.38.0/shell/main.c
Examining data/evince-3.38.0/shell/ev-window.c
Examining data/evince-3.38.0/thumbnailer/evince-thumbnailer.c

FINAL RESULTS:

data/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.0/backend/dvi/mdvi-lib/dviread.c:180: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/evince-3.38.0/backend/dvi/mdvi-lib/dviread.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/evince-3.38.0/backend/dvi/mdvi-lib/dviread.c:335: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/evince-3.38.0/backend/dvi/mdvi-lib/dviread.c:450: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/evince-3.38.0/backend/dvi/mdvi-lib/dviread.c:456: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/evince-3.38.0/backend/dvi/mdvi-lib/dviread.c:459: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/evince-3.38.0/backend/dvi/mdvi-lib/dviread.c:464: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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.0/backend/dvi/mdvi-lib/util.c:57: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/evince-3.38.0/backend/dvi/mdvi-lib/util.c:106: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/evince-3.38.0/backend/dvi/mdvi-lib/util.c:128: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/evince-3.38.0/backend/dvi/mdvi-lib/util.c:147: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/evince-3.38.0/backend/dvi/mdvi-lib/util.c:165: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/evince-3.38.0/backend/dvi/mdvi-lib/util.c:182: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/evince-3.38.0/backend/dvi/mdvi-lib/util.c:199: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/evince-3.38.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/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:318:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            printf(SYNCTEX_PRINT_CHARINDEX_FMT SYNCTEX_PRINT_CHARINDEX_WHAT)
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:322:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            printf(SYNCTEX_PRINT_LINEINDEX_FMT SYNCTEX_PRINT_LINEINDEX_WHAT)
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:324:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            printf(SYNCTEX_PRINT_CHARINDEX_FMT "\n" SYNCTEX_PRINT_CHARINDEX_WHAT)
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:326:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            printf(SYNCTEX_PRINT_CHARINDEX_FMT "\n"SYNCTEX_PRINT_LINEINDEX_WHAT)
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:563: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).
    if (open.synctex != strcpy(open.synctex,output)) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:587:25:  [4] (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).
    if (open.synctex != strcat(open.synctex,synctex_suffix)){
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:592:62:  [4] (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).
    if (quoteless_synctex_name && (quoteless_synctex_name != strcat(quoteless_synctex_name,synctex_suffix))){
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:604:29:  [4] (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).
        if (open.synctex != strcat(open.synctex,synctex_suffix_gz)){
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:611:66:  [4] (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).
        if (quoteless_synctex_name && (quoteless_synctex_name != strcat(quoteless_synctex_name,synctex_suffix_gz))){
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:689:37:  [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).
                if (build_output != strcpy(build_output,output)) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:695:33:  [4] (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).
            if (build_output == strcat(build_output,build_directory)) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:704:37:  [4] (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).
                if (build_output != strcat(build_output,lpc)) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:743:38:  [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).
        } else if (reader->output != strcpy(reader->output,output)) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:3176:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        snprintf(abstract,SYNCTEX_ABSTRACT_MAX,"Input:%i:%s(%i)" SYNCTEX_PRINT_CHARINDEX_FMT,
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:3201:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        snprintf(abstract,SYNCTEX_ABSTRACT_MAX,"{%i...}" SYNCTEX_PRINT_CHARINDEX_FMT,
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:3225:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        snprintf(abstract,SYNCTEX_ABSTRACT_MAX,"<%i...>" SYNCTEX_PRINT_CHARINDEX_FMT,
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:3250:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        snprintf(abstract,SYNCTEX_ABSTRACT_MAX,"[%i,%i:%i,%i:%i,%i,%i...]"
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:3290:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        snprintf(abstract,SYNCTEX_ABSTRACT_MAX,"(%i,%i~%i*%i:%i,%i:%i,%i,%i...)"
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:3370:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        snprintf(abstract,SYNCTEX_ABSTRACT_MAX,"h%i,%i:%i,%i:%i,%i,%i"
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:3405:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        snprintf(abstract,SYNCTEX_ABSTRACT_MAX,"glue:%i,%i:%i,%i"
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:3434:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        snprintf(abstract,SYNCTEX_ABSTRACT_MAX,"rule:%i,%i:%i,%i:%i,%i,%i"
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:3469:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        snprintf(abstract,SYNCTEX_ABSTRACT_MAX,"math:%i,%i:%i,%i"
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:3498:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        snprintf(abstract,SYNCTEX_ABSTRACT_MAX,"kern:%i,%i:%i,%i:%i"
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:3529:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        snprintf(abstract,SYNCTEX_ABSTRACT_MAX,"boundary:%i,%i:%i,%i"
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:3558:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        snprintf(abstract,SYNCTEX_ABSTRACT_MAX,"box bdry:%i,%i:%i,%i" SYNCTEX_PRINT_CHARINDEX_FMT,
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:3584:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        snprintf(abstract,SYNCTEX_ABSTRACT_MAX,"form ref:%i:%i,%i" SYNCTEX_PRINT_CHARINDEX_FMT,
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:3646:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        snprintf(abstract,SYNCTEX_ABSTRACT_MAX,
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:3687:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        snprintf(abstract,SYNCTEX_ABSTRACT_MAX,"(*%i,%i~%i*%i:%i,%i:%i,%i,%i...*)/%p"
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:8402:18:  [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.
        result = vfprintf(updater->file.as_FILE_p,
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_advanced.h:530:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            printf((desc), ##__VA_ARGS__); \
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_utils.c:106:12:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
		result = vsprintf(buff, reason, arg) +strlen(prompt);
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_utils.c:130:15:  [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.
    result += vfprintf(where, reason, arg);
data/evince-3.38.0/cut-n-paste/unarr/common/unarr.c:107:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, msg, args);
data/evince-3.38.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/evince-3.38.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/evince-3.38.0/backend/dvi/texmfcnf.c:32:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *env = getenv("TEXMFCNF");
data/evince-3.38.0/libdocument/ev-file-helpers.c:98: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/evince-3.38.0/libdocument/ev-file-helpers.c:307: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/evince-3.38.0/previewer/ev-previewer.c:56:40:  [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/evince-3.38.0/shell/ev-application.c:865:49:  [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.
                old_dot_dir = g_build_filename (g_get_home_dir (),
data/evince-3.38.0/shell/ev-application.c:869:48:  [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.
                old_accels = g_build_filename (g_get_home_dir (),
data/evince-3.38.0/shell/ev-window.c:2802: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/evince-3.38.0/shell/ev-window.c:3197: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/evince-3.38.0/shell/ev-window.c:3201: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/evince-3.38.0/shell/main.c:314: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/evince-3.38.0/backend/comics/comics-document.c:428:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[BLOCK_SIZE];
data/evince-3.38.0/backend/djvu/djvu-document.c:794: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/evince-3.38.0/backend/djvu/djvu-document.c:799: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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.0/backend/dvi/mdvi-lib/dviread.c:279: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/evince-3.38.0/backend/dvi/mdvi-lib/dviread.c:457: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/evince-3.38.0/backend/dvi/mdvi-lib/dviread.c:690: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/evince-3.38.0/backend/dvi/mdvi-lib/dviread.c:867: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/evince-3.38.0/backend/dvi/mdvi-lib/dviread.c:1014: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/evince-3.38.0/backend/dvi/mdvi-lib/dviread.c:1348: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/evince-3.38.0/backend/dvi/mdvi-lib/dviread.c:1364: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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.0/backend/dvi/mdvi-lib/util.c:65: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/evince-3.38.0/backend/dvi/mdvi-lib/util.c:266: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/evince-3.38.0/backend/dvi/mdvi-lib/util.c:287: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/evince-3.38.0/backend/dvi/mdvi-lib/util.c:295: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/evince-3.38.0/backend/dvi/mdvi-lib/util.c:420: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/evince-3.38.0/backend/dvi/mdvi-lib/util.c:488: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/evince-3.38.0/backend/dvi/mdvi-lib/util.c:511: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/evince-3.38.0/backend/dvi/mdvi-lib/util.c:531: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/evince-3.38.0/backend/dvi/mdvi-lib/util.c:545: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/evince-3.38.0/backend/dvi/texmfcnf.c:38:2:  [2] (buffer) TCHAR:
  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.
	TCHAR path[_MAX_PATH];
data/evince-3.38.0/backend/pdf/ev-poppler.cc:1361:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const char *base_14_subst_fonts[14] = {
data/evince-3.38.0/backend/pdf/ev-poppler.cc:4256: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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.0/backend/tiff/tiff2ps.c:1693: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/evince-3.38.0/backend/tiff/tiff2ps.c:1716: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/evince-3.38.0/backend/tiff/tiff2ps.c:1771: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/evince-3.38.0/browser-plugin/EvBrowserPlugin.cpp:642:17:  [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(result, zoomMode, zoomModeLength);
data/evince-3.38.0/cut-n-paste/libdazzle/dzl-file-manager.c:93:9:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    n = MultiByteToWideChar (CP_UTF8, MB_ERR_INVALID_CHARS,
data/evince-3.38.0/cut-n-paste/libdazzle/dzl-file-manager.c:103:9:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    n = MultiByteToWideChar (CP_UTF8, MB_ERR_INVALID_CHARS,
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:555:51:  [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).
    const char * mode = _synctex_get_io_mode_name(open.io_mode);
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:557:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (NULL == (open.synctex = (char *)malloc(size))) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:559:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        return open;
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:563:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (open.synctex != strcpy(open.synctex,output)) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:563:32:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (open.synctex != strcpy(open.synctex,output)) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:566:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        free(open.synctex);
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:567:9:  [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).
        open.synctex = NULL;
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:569:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        return open;
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:572:40:  [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).
    _synctex_strip_last_path_extension(open.synctex);
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:573:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!strlen(open.synctex)) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:579:60:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (_synctex_copy_with_quoting_last_path_component(open.synctex,&quoted,size) || quoted == NULL) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:583:34:  [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).
        quoteless_synctex_name = open.synctex;
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:584:9:  [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).
        open.synctex = quoted;
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:587:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (open.synctex != strcat(open.synctex,synctex_suffix)){
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:587:32:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (open.synctex != strcat(open.synctex,synctex_suffix)){
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:596:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (NULL == (open.file = gzopen(open.synctex,mode))) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:596:37:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (NULL == (open.file = gzopen(open.synctex,mode))) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:600:60:  [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).
            _synctex_error("could not open %s, error %i\n",open.synctex,errno);
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:604:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (open.synctex != strcat(open.synctex,synctex_suffix_gz)){
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:604:36:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (open.synctex != strcat(open.synctex,synctex_suffix_gz)){
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:608:9:  [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).
        open.io_mode |= synctex_io_gz_mask;
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:609:42:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        mode = _synctex_get_io_mode_name(open.io_mode); /* the file is a compressed and is a binary file, this caused errors on Windows */
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:615:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (NULL == (open.file = gzopen(open.synctex,mode))) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:615:41:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (NULL == (open.file = gzopen(open.synctex,mode))) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:619:64:  [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).
                _synctex_error("Could not open %s, error %i\n",open.synctex,errno);
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:627:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        gzclose(open.file);
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:628:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (rename(open.synctex,quoteless_synctex_name)) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:629:68:  [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).
            _synctex_error("Could not rename %s to %s, error %i\n",open.synctex,quoteless_synctex_name,errno);
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:631:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            if (NULL == (open.file = gzopen(open.synctex,mode))) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:631:45:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            if (NULL == (open.file = gzopen(open.synctex,mode))) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:636:74:  [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).
                    _synctex_error("Could not open again %s, error %i\n",open.synctex,errno);
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:642:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            if (NULL == (open.file = gzopen(quoteless_synctex_name,mode))) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:651:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            free(open.synctex);
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:652:13:  [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).
            open.synctex = quoteless_synctex_name;
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:657:5:  [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).
    open.status = SYNCTEX_STATUS_OK;
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:658: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).
    return open;
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:670:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (open.status == SYNCTEX_STATUS_OK) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:671:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        return open;
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:691:28:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                    return open;
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:700:32:  [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).
                        return open;
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:706:28:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                    return open;
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:713: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).
    return open;
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:732:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (open.status<SYNCTEX_STATUS_OK) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:734:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            if (open.status<SYNCTEX_STATUS_OK) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:738:27:  [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).
        reader->synctex = open.synctex;
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:739:24:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        reader->file = open.file;
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:2881:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const char * isa[synctex_node_number_of_types] =
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:3174:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char abstract[SYNCTEX_ABSTRACT_MAX] = "none";
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:3199:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char abstract[SYNCTEX_ABSTRACT_MAX] = "none";
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:3223:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char abstract[SYNCTEX_ABSTRACT_MAX] = "none";
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:3248:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char abstract[SYNCTEX_ABSTRACT_MAX] = "none";
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:3288:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char abstract[SYNCTEX_ABSTRACT_MAX] = "none";
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:3332:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char abstract[SYNCTEX_ABSTRACT_MAX] = "none";
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:3368:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char abstract[SYNCTEX_ABSTRACT_MAX] = "none";
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:3403:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char abstract[SYNCTEX_ABSTRACT_MAX] = "none";
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:3432:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char abstract[SYNCTEX_ABSTRACT_MAX] = "none";
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:3467:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char abstract[SYNCTEX_ABSTRACT_MAX] = "none";
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:3496:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char abstract[SYNCTEX_ABSTRACT_MAX] = "none";
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:3527:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char abstract[SYNCTEX_ABSTRACT_MAX] = "none";
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:3556:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char abstract[SYNCTEX_ABSTRACT_MAX] = "none";
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:3582:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char abstract[SYNCTEX_ABSTRACT_MAX] = "none";
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:3605:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char abstract[SYNCTEX_ABSTRACT_MAX] = "none";
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:3644:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char abstract[SYNCTEX_ABSTRACT_MAX] = "none";
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:3685:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char abstract[SYNCTEX_ABSTRACT_MAX] = "none";
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:3730:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char abstract[SYNCTEX_ABSTRACT_MAX] = "none";
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:4165:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            if (memcpy(string+already_len,SYNCTEX_CUR,len)) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:8466:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    synctex_open_s open;
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:8474:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (open.status < SYNCTEX_STATUS_OK) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:8476:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (open.status < SYNCTEX_STATUS_OK) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:8484:13:  [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).
    gzclose(open.file);
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:8486:38:  [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).
    mode = _synctex_get_io_mode_name(open.io_mode|synctex_io_append_mask);/* either "a" or "ab", depending on the file extension */
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:8487:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (open.io_mode&synctex_io_gz_mask) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:8488:48:  [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 (NULL == (updater->file.as_FILE_p = fopen(open.synctex,mode))) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:8488:54:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (NULL == (updater->file.as_FILE_p = fopen(open.synctex,mode))) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:8490:83:  [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).
            _synctex_error("!  synctex_updater_new_with_file: Can't append to %s",open.synctex);
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:8491:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            free(open.synctex);
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:8497:55:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (NULL == (updater->file.as_gzFile = gzopen(open.synctex,mode))) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:8503:38:  [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).
    printf("SyncTeX: updating %s...",open.synctex);
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:8504:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    _synctex_free(open.synctex);
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:8571: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(copy,name,strlen(name)+1);
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:8765: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 n[25]; /* name */
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_utils.c:552:24:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            FILE * F = fopen(synctex_name, "r");
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_utils.c:571:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const char * synctex_io_modes[4] = {"r","rb","a","ab"}; 
data/evince-3.38.0/cut-n-paste/unarr/common/conv.c:9:14:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const wchar_t gCp437[256] = {
data/evince-3.38.0/cut-n-paste/unarr/common/conv.c:61: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 buf[4];
data/evince-3.38.0/cut-n-paste/unarr/common/stream.c:88: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).
    FILE *f = path ? fopen(path, "rb") : NULL;
data/evince-3.38.0/cut-n-paste/unarr/common/stream.c:123: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(buffer, stm->data + stm->offset, count);
data/evince-3.38.0/cut-n-paste/unarr/lzmasdk/Ppmd7Dec.c:81:28:  [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.
#define MASK(sym) ((signed char *)charMask)[sym]
data/evince-3.38.0/cut-n-paste/unarr/rar/filter-rar.c:231: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(&vm->memory[RARProgramSystemGlobalAddress], filter->globaldata, globallength);
data/evince-3.38.0/cut-n-paste/unarr/rar/filter-rar.c:236:9:  [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(&vm->memory[RARProgramUserGlobalAddress], filter->prog->staticdata, staticlength);
data/evince-3.38.0/cut-n-paste/unarr/rar/filter-rar.c:258:9:  [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(filter->globaldata, &vm->memory[RARProgramSystemGlobalAddress], filter->globaldatalen);
data/evince-3.38.0/cut-n-paste/unarr/rar/filter-rar.c:279:9:  [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(filter->globaldata, globaldata, globaldatalen);
data/evince-3.38.0/cut-n-paste/unarr/rar/filter-rar.c:466: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.
            memcpy(filter->globaldata, filter->prog->globalbackup, filter->prog->globalbackuplen);
data/evince-3.38.0/cut-n-paste/unarr/rar/filter-rar.c:490: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.
            memcpy(filter->prog->globalbackup, filter->globaldata, filter->globaldatalen);
data/evince-3.38.0/cut-n-paste/unarr/rar/huffman-rar.c:22:9:  [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(new_tree, code->tree, code->capacity * sizeof(*code->tree));
data/evince-3.38.0/cut-n-paste/unarr/rar/lzss.h:66:9:  [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, &self->window[windowoffs], length);
data/evince-3.38.0/cut-n-paste/unarr/rar/lzss.h:70:9:  [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, &self->window[windowoffs], firstpart);
data/evince-3.38.0/cut-n-paste/unarr/rar/lzss.h:71:9:  [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 + firstpart, &self->window[0], length - firstpart);
data/evince-3.38.0/cut-n-paste/unarr/rar/parse-rar.c:14:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char header_data[7];
data/evince-3.38.0/cut-n-paste/unarr/rar/parse-rar.c:30:18:  [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 size_data[4];
data/evince-3.38.0/cut-n-paste/unarr/rar/parse-rar.c:49:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buffer[256];
data/evince-3.38.0/cut-n-paste/unarr/rar/parse-rar.c:76:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char data[21];
data/evince-3.38.0/cut-n-paste/unarr/rar/parse-rar.c:89:18:  [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 more_data[8];
data/evince-3.38.0/cut-n-paste/unarr/rar/parse-rar.c:128:9:  [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(str, data, len);
data/evince-3.38.0/cut-n-paste/unarr/rar/parse-rar.c:191:18:  [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 data[21];
data/evince-3.38.0/cut-n-paste/unarr/rar/rar.c:148:22:  [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 buffer[1024];
data/evince-3.38.0/cut-n-paste/unarr/rar/rar.c:207: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 signature[FILE_SIGNATURE_SIZE];
data/evince-3.38.0/cut-n-paste/unarr/rar/rarvm.c:55:9:  [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(newCodes, prog->opcodes, prog->capacity * sizeof(*prog->opcodes));
data/evince-3.38.0/cut-n-paste/unarr/rar/rarvm.c:591:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const char *instructionNames[RARNumberOfInstructions] = {
data/evince-3.38.0/cut-n-paste/unarr/rar/uncompress-rar.c:992: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.
            memcpy(buffer, uncomp_v3->filters.bytes, count);
data/evince-3.38.0/libview/ev-view-presentation.c:699: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/evince-3.38.0/backend/comics/comics-document.c:429:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			gssize read;
data/evince-3.38.0/backend/comics/comics-document.c:435:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			while (read > 0 && !info.got_info) {
data/evince-3.38.0/backend/comics/comics-document.c:436:59:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				if (!gdk_pixbuf_loader_write (loader, (guchar *) buf, read, &error)) {
data/evince-3.38.0/backend/comics/comics-document.c:440:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				left -= read;
data/evince-3.38.0/backend/comics/comics-document.c:444:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (read < 0) {
data/evince-3.38.0/backend/comics/comics-document.c:517:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ssize_t read;
data/evince-3.38.0/backend/comics/comics-document.c:521:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (read <= 0) {
data/evince-3.38.0/backend/comics/comics-document.c:522:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				if (read < 0) {
data/evince-3.38.0/backend/djvu/djvu-text-page.c:419: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/evince-3.38.0/backend/djvu/djvu-text-page.c:464: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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.0/backend/dvi/mdvi-lib/dviread.c:446: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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.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/evince-3.38.0/backend/dvi/mdvi-lib/util.c:264: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/evince-3.38.0/backend/dvi/mdvi-lib/util.c:273: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/evince-3.38.0/backend/dvi/mdvi-lib/util.c:283: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/evince-3.38.0/backend/dvi/mdvi-lib/util.c:306: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/evince-3.38.0/backend/dvi/mdvi-lib/util.c:307: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/evince-3.38.0/backend/dvi/mdvi-lib/util.c:346: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/evince-3.38.0/backend/dvi/mdvi-lib/util.c:346: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/evince-3.38.0/backend/dvi/mdvi-lib/util.c:347: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/evince-3.38.0/backend/dvi/mdvi-lib/util.c:348: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/evince-3.38.0/backend/dvi/mdvi-lib/util.c:348: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/evince-3.38.0/backend/dvi/mdvi-lib/util.c:415: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/evince-3.38.0/backend/dvi/mdvi-lib/util.c:482: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/evince-3.38.0/backend/dvi/mdvi-lib/util.c:505: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/evince-3.38.0/backend/dvi/mdvi-lib/util.c:522: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/evince-3.38.0/backend/dvi/mdvi-lib/util.c:541: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/evince-3.38.0/backend/pdf/ev-poppler.cc:980: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/evince-3.38.0/backend/pdf/ev-poppler.cc:1763: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/evince-3.38.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/evince-3.38.0/browser-plugin/EvBrowserPlugin.cpp:640:41:  [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).
                size_t zoomModeLength = strlen(zoomMode);
data/evince-3.38.0/browser-plugin/npapi/npruntime.h:170:39:  [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).
    NPString str = { _val, (uint32_t)(strlen(_val)) };                        \
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:556: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).
    size_t size = strlen(output)+strlen(synctex_suffix)+strlen(synctex_suffix_gz)+1;
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:556: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).
    size_t size = strlen(output)+strlen(synctex_suffix)+strlen(synctex_suffix_gz)+1;
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:556:57:  [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).
    size_t size = strlen(output)+strlen(synctex_suffix)+strlen(synctex_suffix_gz)+1;
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:573:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!strlen(open.synctex)) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:673:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (build_directory && strlen(build_directory)) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:680: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).
        size = strlen(build_directory)+strlen(lpc)+2;   /*  One for the '/' and one for the '\0'.   */
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:680: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).
        size = strlen(build_directory)+strlen(lpc)+2;   /*  One for the '/' and one for the '\0'.   */
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:683: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).
            size += strlen(output);
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:697:61:  [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 (!SYNCTEX_IS_PATH_SEPARATOR(build_output[strlen(build_directory)-1])) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:698:41:  [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.
                    if (build_output != strcat(build_output,"/")) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:741:63:  [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 (NULL == (reader->output = (char *)_synctex_malloc(strlen(output)+1))){
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:3133:57:  [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 (scanR->display_prompt+1<_synctex_display_prompt+strlen(_synctex_display_prompt)) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:3923: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_len = strlen(the_string); /*  All the_string should match */
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:6003:67:  [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).
        scanner->display_prompt = (char *)_synctex_display_prompt+strlen(_synctex_display_prompt)-1;
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:6230: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).
                        && (strlen(_synctex_data_name(input))!=strlen(_synctex_data_name(other_input))
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:6230:64:  [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(_synctex_data_name(input))!=strlen(_synctex_data_name(other_input))
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:6231:98:  [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).
                            || strncmp(_synctex_data_name(other_input),_synctex_data_name(input),strlen(_synctex_data_name(input))))) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:6244:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t char_index = strlen(name);
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:6258:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                while((strlen(relative) > 0) && (strlen(ptr) > 0) && (*relative == *ptr))
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:6258:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                while((strlen(relative) > 0) && (strlen(ptr) > 0) && (*relative == *ptr))
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:8442: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).
        } else if ((result = (int)strlen(buffer))) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:8512: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 (magnification && strlen(magnification)) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:8522: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).
    if (x_offset && strlen(x_offset)) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:8531: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).
    if (y_offset && strlen(y_offset)) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:8570:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char * copy = _synctex_malloc(strlen(name)+1);
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser.c:8571: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).
    memcpy(copy,name,strlen(name)+1);
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_utils.c:106:41:  [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).
		result = vsprintf(buff, reason, arg) +strlen(prompt);
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_utils.c:118:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        result = (int)strlen(buffer2);
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_utils.c:122:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        result = (int)strlen(prompt);
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_utils.c:272: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).
	if(!strlen(name)) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_utils.c:276:5:  [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(name)>2) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_utils.c:287:24:  [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 char * c = name+strlen(name);
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_utils.c:308: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).
		if(strlen(lpc)) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_utils.c:309:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if(strchr(lpc,' ') && lpc[0]!='"' && lpc[strlen(lpc)-1]!='"') {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_utils.c:314: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).
				if(strlen(src)<size) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_utils.c:317:18:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
						if(dest != strncpy(dest,src,size)) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_utils.c:323:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						memmove(dpc+1,dpc,strlen(dpc)+1);	/*	Also move the null terminating character. */
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_utils.c:325: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).
						dpc[strlen(dpc)+1]='\0';/*	Consistency test */
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_utils.c:326: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).
						dpc[strlen(dpc)]='"';
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_utils.c:353: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).
		size_t len = strlen(temp);
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_utils.c:371: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((size = strlen(temp))>0) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_utils.c:373:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					if(dest != strncpy(dest,temp,size)) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_utils.c:406: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).
		if(strlen(base_name)>0) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_utils.c:431:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				if(core_name != strncpy(core_name,base_name,size)) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_utils.c:445: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).
			size = strlen(output)-strlen(base_name);
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_utils.c:445: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).
			size = strlen(output)-strlen(base_name);
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_utils.c:453:20:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				if(dir_name != strncpy(dir_name,output,size)) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_utils.c:469: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).
			if(dir_name &&strlen(dir_name)>0) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_utils.c:471:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if(quoted_core_name && strlen(quoted_core_name)>0) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_utils.c:476:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if(quoted_core_name && strlen(quoted_core_name)>0) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_utils.c:480:72:  [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(!_synctex_path_is_absolute(output) && build_directory && (size = strlen(build_directory))) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_utils.c:484: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).
					if(quoted_core_name && strlen(quoted_core_name)>0) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_utils.c:489: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).
					if(quoted_core_name && strlen(quoted_core_name)>0) {
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_utils.c:555:26:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                && 31 == fgetc(F)
data/evince-3.38.0/cut-n-paste/synctex/synctex_parser_utils.c:557:27:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                && 139 == fgetc(F)) {
data/evince-3.38.0/cut-n-paste/unarr/common/stream.c:6:83:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
ar_stream *ar_open_stream(void *data, ar_stream_close_fn close, ar_stream_read_fn read, ar_stream_seek_fn seek, ar_stream_tell_fn tell)
data/evince-3.38.0/cut-n-paste/unarr/common/stream.c:15:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    stream->read = read;
data/evince-3.38.0/cut-n-paste/unarr/common/stream.c:30:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return stream->read(stream->data, buffer, count);
data/evince-3.38.0/cut-n-paste/unarr/common/stream.c:178:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            return read;
data/evince-3.38.0/cut-n-paste/unarr/common/stream.c:187:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return read;
data/evince-3.38.0/cut-n-paste/unarr/common/unarr-imp.h:37:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ar_stream_read_fn read;
data/evince-3.38.0/cut-n-paste/unarr/common/unarr-imp.h:43:83:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
ar_stream *ar_open_stream(void *data, ar_stream_close_fn close, ar_stream_read_fn read, ar_stream_seek_fn seek, ar_stream_tell_fn tell);
data/evince-3.38.0/cut-n-paste/unarr/rar/parse-rar.c:20:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read < sizeof(header_data))
data/evince-3.38.0/cut-n-paste/unarr/rar/parse-rar.c:34:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (read < sizeof(header_data) + sizeof(size_data))
data/evince-3.38.0/cut-n-paste/unarr/rar/parse-rar.c:39:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (header->size < read) {
data/evince-3.38.0/cut-n-paste/unarr/rar/parse-rar.c:119: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).
    const uint8_t *in = (uint8_t *)data + strlen(data) + 1;
data/evince-3.38.0/cut-n-paste/unarr/rar/parse-rar.c:217: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).
        else if (namelen == strlen(name)) {
data/evince-3.38.0/libdocument/ev-document-factory.c:160: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/evince-3.38.0/libmisc/ev-page-action-widget.c:139:58:  [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).
                                   CLAMP (max_label_len, strlen (max_page_numeric_label) + 1, 12));
data/evince-3.38.0/libview/ev-annotation-window.c:139:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	gtk_css_provider_load_from_data (css_provider, css_data, strlen (css_data), &error);
data/evince-3.38.0/libview/ev-page-accessible.c:490: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/evince-3.38.0/libview/ev-view.c:5750: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/evince-3.38.0/properties/ev-properties-view.c:126: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/evince-3.38.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/evince-3.38.0/shell/ev-find-sidebar.c:315:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                        strncpy (retval + len, p, next - p);
data/evince-3.38.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/evince-3.38.0/shell/ev-sidebar-attachments.c:432: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).
		                     (const guchar *) value, strlen (value));
data/evince-3.38.0/shell/ev-utils.c:360:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	gstr = g_string_sized_new (2 * strlen (str));
data/evince-3.38.0/shell/ev-utils.c:365: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).
			cur += strlen (substr) - 1;
data/evince-3.38.0/shell/ev-window-title.c:78: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/evince-3.38.0/shell/ev-window-title.c:78: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/evince-3.38.0/shell/ev-window-title.c:87: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);

ANALYSIS SUMMARY:

Hits = 457
Lines analyzed = 117817 in approximately 2.68 seconds (43973 lines/second)
Physical Source Lines of Code (SLOC) = 87299
Hits@level = [0] 359 [1] 151 [2] 226 [3]  12 [4]  68 [5]   0
Hits@level+ = [0+] 816 [1+] 457 [2+] 306 [3+]  80 [4+]  68 [5+]   0
Hits/KSLOC@level+ = [0+] 9.34719 [1+] 5.23488 [2+] 3.50519 [3+] 0.916391 [4+] 0.778932 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.