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/umview-0.8.2/xmview/um_time.c Examining data/umview-0.8.2/xmview/defs_i386_um.h Examining data/umview-0.8.2/xmview/pcb.00.mainpoll.h Examining data/umview-0.8.2/xmview/capture_um.c Examining data/umview-0.8.2/xmview/utils.h Examining data/umview-0.8.2/xmview/ptrace2.h Examining data/umview-0.8.2/xmview/um_uname.c Examining data/umview-0.8.2/xmview/capture_um.h Examining data/umview-0.8.2/xmview/um_ioctl.c Examining data/umview-0.8.2/xmview/um_signal.c Examining data/umview-0.8.2/xmview/services.c Examining data/umview-0.8.2/xmview/siglist.h Examining data/umview-0.8.2/xmview/um_exec.c Examining data/umview-0.8.2/xmview/ptrace_multi_test.c Examining data/umview-0.8.2/xmview/services.h Examining data/umview-0.8.2/xmview/um_wdm.c Examining data/umview-0.8.2/xmview/um_socket.c Examining data/umview-0.8.2/xmview/defs_ppc_um.h Examining data/umview-0.8.2/xmview/kmview-main.h Examining data/umview-0.8.2/xmview/ptrace_multi_test.h Examining data/umview-0.8.2/xmview/gdebug.c Examining data/umview-0.8.2/xmview/loginshell.c Examining data/umview-0.8.2/xmview/kmview.c Examining data/umview-0.8.2/xmview/pcb.c Examining data/umview-0.8.2/xmview/umbinwrap.c Examining data/umview-0.8.2/xmview/uid16to32.h Examining data/umview-0.8.2/xmview/defs_x86_64_um.h Examining data/umview-0.8.2/xmview/loginshell.h Examining data/umview-0.8.2/xmview/kmview.h Examining data/umview-0.8.2/xmview/capture.h Examining data/umview-0.8.2/xmview/pcb.h Examining data/umview-0.8.2/xmview/mainpoll.c Examining data/umview-0.8.2/xmview/hashtab.h Examining data/umview-0.8.2/xmview/mainpoll.h Examining data/umview-0.8.2/xmview/defs_i386_km.h Examining data/umview-0.8.2/xmview/capture_km.c Examining data/umview-0.8.2/xmview/pcb.02.umproc.h Examining data/umview-0.8.2/xmview/canonicalize.c Examining data/umview-0.8.2/xmview/capture_km.h Examining data/umview-0.8.2/xmview/utils_um.c Examining data/umview-0.8.2/xmview/canonicalize.h Examining data/umview-0.8.2/xmview/capture_nested.c Examining data/umview-0.8.2/xmview/capture_nested.h Examining data/umview-0.8.2/xmview/um_basicio.c Examining data/umview-0.8.2/xmview/defs_ppc_km.h Examining data/umview-0.8.2/xmview/pcb.01.sctab.h Examining data/umview-0.8.2/xmview/pcb.00.capture.h Examining data/umview-0.8.2/xmview/defs_x86_64_km.h Examining data/umview-0.8.2/xmview/um_mmap.c Examining data/umview-0.8.2/xmview/sctab.c Examining data/umview-0.8.2/xmview/um_misc.c Examining data/umview-0.8.2/xmview/modutils.c Examining data/umview-0.8.2/xmview/sctab.h Examining data/umview-0.8.2/xmview/scmap.c Examining data/umview-0.8.2/xmview/umproc.c Examining data/umview-0.8.2/xmview/modutils.h Examining data/umview-0.8.2/xmview/scmap.h Examining data/umview-0.8.2/xmview/pcb.04.select.h Examining data/umview-0.8.2/xmview/treepoch.c Examining data/umview-0.8.2/xmview/umproc.h Examining data/umview-0.8.2/xmview/umview.c Examining data/umview-0.8.2/xmview/treepoch.h Examining data/umview-0.8.2/xmview/umview.h Examining data/umview-0.8.2/xmview/pcb.03.mmap.h Examining data/umview-0.8.2/xmview/um_services.c Examining data/umview-0.8.2/xmview/um_select.h Examining data/umview-0.8.2/xmview/defs.h Examining data/umview-0.8.2/xmview/um_services.h Examining data/umview-0.8.2/xmview/hashtab.c Examining data/umview-0.8.2/xmview/um_plusio.c Examining data/umview-0.8.2/xmview/um_select.c Examining data/umview-0.8.2/umnet_modules/umnetnative.c Examining data/umview-0.8.2/umnet_modules/umnetnull.c Examining data/umview-0.8.2/umnet_modules/umnetlink.c Examining data/umview-0.8.2/umnet_modules/umnetcurrent.c Examining data/umview-0.8.2/umdev/umdev.c Examining data/umview-0.8.2/umdevmbr/mbr.c Examining data/umview-0.8.2/umdevmbr/umdevmbr.c Examining data/umview-0.8.2/umdevmbr/mbr.h Examining data/umview-0.8.2/umdevmbr/umdevvd.c Examining data/umview-0.8.2/umdevmbr/umdevramdisk.c Examining data/umview-0.8.2/umbinfmt/umbinfmt.c Examining data/umview-0.8.2/include/gdebug.h Examining data/umview-0.8.2/include/ummisc.h Examining data/umview-0.8.2/include/gd64helper.h Examining data/umview-0.8.2/include/linux_dirent.h Examining data/umview-0.8.2/include/module.h Examining data/umview-0.8.2/include/msocket.h Examining data/umview-0.8.2/include/um_lib.h Examining data/umview-0.8.2/include/umnet.h Examining data/umview-0.8.2/include/libummod.h Examining data/umview-0.8.2/include/umdev.h Examining data/umview-0.8.2/ummisc_modules/ummiscuname.c Examining data/umview-0.8.2/ummisc_modules/ummisctime.c Examining data/umview-0.8.2/umdevtap/umdevtap.c Examining data/umview-0.8.2/umpyew/umpyew.c Examining data/umview-0.8.2/um_testmodule/testmodul2.c Examining data/umview-0.8.2/um_testmodule/real.c Examining data/umview-0.8.2/um_testmodule/testmodule.c Examining data/umview-0.8.2/um_testmodule/unreal.c Examining data/umview-0.8.2/um_testmodule/sockettest.c Examining data/umview-0.8.2/um_testmodule/sockip.c Examining data/umview-0.8.2/umnet/umnet.c Examining data/umview-0.8.2/um_rsc/module/utils.c Examining data/umview-0.8.2/um_rsc/module/utils.h Examining data/umview-0.8.2/um_rsc/module/parse_args.c Examining data/umview-0.8.2/um_rsc/module/um_rsc.c Examining data/umview-0.8.2/um_rsc/module/handshake.h Examining data/umview-0.8.2/um_rsc/module/parse_args.h Examining data/umview-0.8.2/um_rsc/server/pollfd_info.h Examining data/umview-0.8.2/um_rsc/server/handshake.h Examining data/umview-0.8.2/um_rsc/server/pollfd_info.c Examining data/umview-0.8.2/um_rsc/server/gdebug.c Examining data/umview-0.8.2/um_rsc/server/rsc_server.c Examining data/umview-0.8.2/um_rsc/librsc_templates/input/unistd_files/unistd_x86.h Examining data/umview-0.8.2/um_rsc/librsc_templates/input/unistd_files/unistd_x86_64.h Examining data/umview-0.8.2/um_rsc/librsc_templates/input/unistd_files/unistd_ppc.h Examining data/umview-0.8.2/um_rsc/librsc_templates/input/templates/client_tests.h Examining data/umview-0.8.2/um_rsc/librsc_templates/input/templates/testing_tools_fill_write_pointers.h Examining data/umview-0.8.2/um_rsc/librsc_templates/input/templates/server.c Examining data/umview-0.8.2/um_rsc/librsc_templates/input/templates/server.h Examining data/umview-0.8.2/um_rsc/librsc_templates/input/templates/client.c Examining data/umview-0.8.2/um_rsc/librsc_templates/input/templates/rsc_consts.c Examining data/umview-0.8.2/um_rsc/librsc_templates/input/templates/testing_tools_fill_request.h Examining data/umview-0.8.2/um_rsc/librsc_templates/input/templates/client.h Examining data/umview-0.8.2/um_rsc/librsc_templates/input/templates/req_resp.h Examining data/umview-0.8.2/um_rsc/librsc_templates/input/templates/rsc_consts.h Examining data/umview-0.8.2/um_rsc/librsc_templates/input/templates/test_syscall_execution.c Examining data/umview-0.8.2/um_rsc/librsc_templates/input/templates/nr_to_rsc.h Examining data/umview-0.8.2/um_rsc/librsc_templates/input/templates/rsc_to_nr.h Examining data/umview-0.8.2/um_rsc/librsc_templates/input/templates/server_tests.h Examining data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c Examining data/umview-0.8.2/um_rsc/librsc/tests/tools/type_equality.c Examining data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.h Examining data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_write_pointers.c Examining data/umview-0.8.2/um_rsc/librsc/tests/tools/type_equality.h Examining data/umview-0.8.2/um_rsc/librsc/tests/tools/client_server.c Examining data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_write_pointers.h Examining data/umview-0.8.2/um_rsc/librsc/tests/tools/client_server.h Examining data/umview-0.8.2/um_rsc/librsc/tests/client.c Examining data/umview-0.8.2/um_rsc/librsc/tests/tests.c Examining data/umview-0.8.2/um_rsc/librsc/tests/test_reg_cbs.c Examining data/umview-0.8.2/um_rsc/librsc/tests/server.c Examining data/umview-0.8.2/um_rsc/librsc/tests/tests.h Examining data/umview-0.8.2/um_rsc/librsc/tests/test_list.c Examining data/umview-0.8.2/um_rsc/librsc/tests/test_ioctl_mngmt.c Examining data/umview-0.8.2/um_rsc/librsc/tests/selftests.c Examining data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c Examining data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c Examining data/umview-0.8.2/um_rsc/librsc/tests/test_type_equality.c Examining data/umview-0.8.2/um_rsc/librsc/include/rsc_server.h Examining data/umview-0.8.2/um_rsc/librsc/include/rsc_messages.h Examining data/umview-0.8.2/um_rsc/librsc/include/rsc_consts.h Examining data/umview-0.8.2/um_rsc/librsc/include/rsc_client.h Examining data/umview-0.8.2/um_rsc/librsc/include/aconv.h Examining data/umview-0.8.2/um_rsc/librsc/src/include/event_sub.h Examining data/umview-0.8.2/um_rsc/librsc/src/include/registered_callbacks.h Examining data/umview-0.8.2/um_rsc/librsc/src/include/test_rsc_server.h Examining data/umview-0.8.2/um_rsc/librsc/src/include/utils.h Examining data/umview-0.8.2/um_rsc/librsc/src/include/test_rsc_client.h Examining data/umview-0.8.2/um_rsc/librsc/src/include/debug.h Examining data/umview-0.8.2/um_rsc/librsc/src/include/generic_list.h Examining data/umview-0.8.2/um_rsc/librsc/src/include/nr_to_rsc.h Examining data/umview-0.8.2/um_rsc/librsc/src/include/rsc_to_nr.h Examining data/umview-0.8.2/um_rsc/librsc/src/rsc_consts.c Examining data/umview-0.8.2/um_rsc/librsc/src/utils.c Examining data/umview-0.8.2/um_rsc/librsc/src/event_sub_common.c Examining data/umview-0.8.2/um_rsc/librsc/src/event_subscription.c Examining data/umview-0.8.2/um_rsc/librsc/src/rsc_client.c Examining data/umview-0.8.2/um_rsc/librsc/src/aconv.c Examining data/umview-0.8.2/um_rsc/librsc/src/debug.c Examining data/umview-0.8.2/um_rsc/librsc/src/generic_list.c Examining data/umview-0.8.2/um_rsc/librsc/src/event_monitor.c Examining data/umview-0.8.2/um_rsc/librsc/src/registered_callbacks.c Examining data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c Examining data/umview-0.8.2/umfuse_modules/umfuseramfile.c Examining data/umview-0.8.2/ummisc/umproc.c Examining data/umview-0.8.2/ummisc/ummiscfun.c Examining data/umview-0.8.2/ummisc/ummiscfun.h Examining data/umview-0.8.2/ummisc/ummisc.c Examining data/umview-0.8.2/umnetlwipv6/umnetlwipv6.c Examining data/umview-0.8.2/um_viewfs/oldviewfs/viewfs.c Examining data/umview-0.8.2/um_viewfs/oldviewfs/gd64helper.c Examining data/umview-0.8.2/um_viewfs/oldviewfs/modifshide.c Examining data/umview-0.8.2/um_viewfs/viewfs0args.c Examining data/umview-0.8.2/um_viewfs/viewfs0args.h Examining data/umview-0.8.2/um_viewfs/viewfs.c Examining data/umview-0.8.2/um_cmd/um_ls_service.c Examining data/umview-0.8.2/um_cmd/viewsudo.c Examining data/umview-0.8.2/um_cmd/um_attach.c Examining data/umview-0.8.2/um_cmd/um_add_service.c Examining data/umview-0.8.2/um_cmd/viewname.c Examining data/umview-0.8.2/um_cmd/umshutdown.c Examining data/umview-0.8.2/um_cmd/viewsu.c Examining data/umview-0.8.2/um_cmd/mstack.c Examining data/umview-0.8.2/um_cmd/viewumount.c Examining data/umview-0.8.2/um_cmd/um_fsalias.c Examining data/umview-0.8.2/um_cmd/um_del_service.c Examining data/umview-0.8.2/um_cmd/um_alias.c Examining data/umview-0.8.2/um_cmd/vuname.c Examining data/umview-0.8.2/um_cmd/viewmount.c Examining data/umview-0.8.2/umfuse/umfuse_node.h Examining data/umview-0.8.2/umfuse/umfusestd.c Examining data/umview-0.8.2/umfuse/umfuseargs.c Examining data/umview-0.8.2/umfuse/fuse_opt.c Examining data/umview-0.8.2/umfuse/umfusestd.h Examining data/umview-0.8.2/umfuse/umfuseargs.h Examining data/umview-0.8.2/umfuse/umfuse_node.c Examining data/umview-0.8.2/umfuse/umfuse.c Examining data/umview-0.8.2/um_lib/um_lib.c Examining data/umview-0.8.2/um_lib/libummod.c Examining data/umview-0.8.2/umdev_testmodules/umdevtrivhd.c Examining data/umview-0.8.2/umdev_testmodules/umdevnull.c FINAL RESULTS: data/umview-0.8.2/include/umdev.h:42:8: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. int (*chmod) (char, dev_t, mode_t, struct umdev *devhandle); data/umview-0.8.2/include/umdev.h:43:8: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. int (*chown) (char, dev_t, uid_t, gid_t, struct umdev *devhandle); data/umview-0.8.2/um_rsc/module/um_rsc.c:233:21: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. SERVICESYSCALL(s, chmod, rscc_chmod); data/umview-0.8.2/um_rsc/module/um_rsc.c:234:21: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. SERVICESYSCALL(s, chown, rscc_chown); data/umview-0.8.2/um_rsc/module/um_rsc.c:261:21: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. SERVICESYSCALL(s, readlink, rscc_readlink); data/umview-0.8.2/um_testmodule/real.c:133:20: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. SERVICESYSCALL(s, readlink, readlink); data/umview-0.8.2/um_testmodule/real.c:133:30: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. SERVICESYSCALL(s, readlink, readlink); data/umview-0.8.2/um_testmodule/unreal.c:138:9: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. return readlink(unwrap(path),buf,bufsiz); data/umview-0.8.2/um_testmodule/unreal.c:158:9: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. return chmod(unwrap(path),mode); data/umview-0.8.2/um_testmodule/unreal.c:262:20: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. SERVICESYSCALL(s, readlink, unreal_readlink); data/umview-0.8.2/um_testmodule/unreal.c:278:20: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. SERVICESYSCALL(s, chmod, unreal_chmod); data/umview-0.8.2/um_viewfs/oldviewfs/modifshide.c:694:20: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. SERVICESYSCALL(s, readlink, modifs_noent); data/umview-0.8.2/um_viewfs/oldviewfs/modifshide.c:695:20: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. SERVICESYSCALL(s, chmod, modifs_noent); data/umview-0.8.2/um_viewfs/oldviewfs/modifshide.c:696:20: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. SERVICESYSCALL(s, chown, modifs_noent); data/umview-0.8.2/um_viewfs/oldviewfs/viewfs.c:643:7: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. rv = readlink(path, &lc, 1); data/umview-0.8.2/um_viewfs/oldviewfs/viewfs.c:652:6: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. if (readlink(path, &lc, 1) != 1) data/umview-0.8.2/um_viewfs/viewfs.c:300:11: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. if ((len=readlink(infofile,hexstat,60)) >= 24) { data/umview-0.8.2/um_viewfs/viewfs.c:352:11: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. if ((len=readlink(infofile,hexstat,60)) >= 24) data/umview-0.8.2/um_viewfs/viewfs.c:417:8: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. if (chmod(newpath,stold.st_mode)==0) data/umview-0.8.2/um_viewfs/viewfs.c:421:8: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. if (chown(newpath, data/umview-0.8.2/um_viewfs/viewfs.c:454:7: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. chmod(vfspath,stold.st_mode); data/umview-0.8.2/um_viewfs/viewfs.c:994:10: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. int rv= readlink(vfspath,buf,bufsiz); data/umview-0.8.2/um_viewfs/viewfs.c:998:7: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. rv= readlink(path,buf,bufsiz); data/umview-0.8.2/um_viewfs/viewfs.c:1333:7: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. if (chmod(vfspath,mode) < 0) data/umview-0.8.2/um_viewfs/viewfs.c:1334:4: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. chmod(vfspath,mode&0777); data/umview-0.8.2/um_viewfs/viewfs.c:1343:10: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. return chmod(vfspath,mode); data/umview-0.8.2/um_viewfs/viewfs.c:1362:10: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. rv=chmod(path,mode); data/umview-0.8.2/um_viewfs/viewfs.c:1376:9: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. rv=chmod(vfspath,mode); data/umview-0.8.2/um_viewfs/viewfs.c:1379:9: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. rv=chmod(path,mode); data/umview-0.8.2/um_viewfs/viewfs.c:1383:6: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. rv=chmod(vfspath,mode); data/umview-0.8.2/um_viewfs/viewfs.c:1393:3: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. chown(vfspath,owner,group); data/umview-0.8.2/um_viewfs/viewfs.c:1400:3: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. chown(vfspath,owner,group); data/umview-0.8.2/um_viewfs/viewfs.c:1779:20: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. SERVICESYSCALL(s, readlink, viewfs_readlink); data/umview-0.8.2/um_viewfs/viewfs.c:1792:20: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. SERVICESYSCALL(s, chmod, viewfs_chmod); data/umview-0.8.2/umdev/umdev.c:693:21: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. if (umdev->devops->chmod) data/umview-0.8.2/umdev/umdev.c:694:22: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. rv= umdev->devops->chmod(type,device,mode,umdev); data/umview-0.8.2/umdev/umdev.c:717:21: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. if (umdev->devops->chown) data/umview-0.8.2/umdev/umdev.c:718:22: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. rv= umdev->devops->chown(type,device,owner,group,umdev); data/umview-0.8.2/umdev/umdev.c:958:20: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. SERVICESYSCALL(s, chmod, umdev_chmod); data/umview-0.8.2/umfuse/umfuse.c:389:3: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(opts,"remount,",PATH_MAX); data/umview-0.8.2/umfuse/umfuse.c:391:3: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(opts,"ro,",PATH_MAX); data/umview-0.8.2/umfuse/umfuse.c:393:3: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(opts,"noatime,",PATH_MAX); data/umview-0.8.2/umfuse/umfuse.c:395:3: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(opts,"nodev,",PATH_MAX); data/umview-0.8.2/umfuse/umfuse.c:397:3: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(opts,"noexec,",PATH_MAX); data/umview-0.8.2/umfuse/umfuse.c:399:3: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(opts,"nosuid,",PATH_MAX); data/umview-0.8.2/umfuse/umfuse.c:401:3: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(opts,"sync,",PATH_MAX); data/umview-0.8.2/umfuse/umfuse.c:406:3: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(opts,mountopts,PATH_MAX); data/umview-0.8.2/umfuse/umfuse.c:1276:22: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. rv = fc->fuse->fops.readlink( data/umview-0.8.2/umfuse/umfuse.c:1472:21: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. rv= fc->fuse->fops.chmod(unpath, mode); data/umview-0.8.2/umfuse/umfuse.c:1509:22: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. rv = fc->fuse->fops.chown(unpath, owner, group); data/umview-0.8.2/umfuse/umfuse.c:2062:20: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. SERVICESYSCALL(s, readlink, umfuse_readlink); data/umview-0.8.2/umfuse/umfuse.c:2075:20: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. SERVICESYSCALL(s, chmod, umfuse_chmod); data/umview-0.8.2/umnet/umnet.c:825:20: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. SERVICESYSCALL(s, chmod, umnet_chmod); data/umview-0.8.2/umpyew/umpyew.c:229:10: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. PYINSYS(chmod, 2); data/umview-0.8.2/umpyew/umpyew.c:239:10: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. PYINSYS(chown, 3); data/umview-0.8.2/umpyew/umpyew.c:383:10: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. PYINSYS(readlink, 2); data/umview-0.8.2/umpyew/umpyew.c:753:17: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. PYTHON_SYSCALL(chmod, sysChmod); data/umview-0.8.2/umpyew/umpyew.c:754:17: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. PYTHON_SYSCALL(chown, sysChown); data/umview-0.8.2/umpyew/umpyew.c:764:17: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. PYTHON_SYSCALL(readlink, sysReadlink); data/umview-0.8.2/xmview/hashtab.c:460:4: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(opts,"remount,",PATH_MAX); data/umview-0.8.2/xmview/hashtab.c:462:4: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(opts,"ro,",PATH_MAX); data/umview-0.8.2/xmview/hashtab.c:464:4: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(opts,"noatime,",PATH_MAX); data/umview-0.8.2/xmview/hashtab.c:466:4: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(opts,"nodev,",PATH_MAX); data/umview-0.8.2/xmview/hashtab.c:468:4: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(opts,"noexec,",PATH_MAX); data/umview-0.8.2/xmview/hashtab.c:470:4: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(opts,"nosuid,",PATH_MAX); data/umview-0.8.2/xmview/hashtab.c:472:4: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(opts,"sync,",PATH_MAX); data/umview-0.8.2/xmview/hashtab.c:474:4: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(opts,mountopts,PATH_MAX); data/umview-0.8.2/xmview/sctab.c:365:12: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. if ((rv=readlink(path,path,PATH_MAX)) < 0) { data/umview-0.8.2/xmview/sctab.c:392:13: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. if ((rv=readlink(cwd,cwd,PATH_MAX)) < 0) { data/umview-0.8.2/xmview/um_wdm.c:171:11: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. if ((rv=readlink(path,path,PATH_MAX)) < 0) data/umview-0.8.2/include/umdev.h:51:8: [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 (*access) (char, dev_t, int, struct umdev *devhandle); data/umview-0.8.2/um_cmd/mstack.c:216:3: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp(cmd,argv); data/umview-0.8.2/um_cmd/viewsu.c:118:3: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp("su",argv); data/umview-0.8.2/um_cmd/viewsu.c:195:10: [4] (shell) execl: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execl(shell,arg0,"-c",command,(char *)0); data/umview-0.8.2/um_cmd/viewsu.c:197:10: [4] (shell) execl: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execl(shell,arg0,(char *)0); data/umview-0.8.2/um_cmd/viewsudo.c:74:3: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp("sudo",argv); data/umview-0.8.2/um_cmd/viewsudo.c:145:9: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp(argv[optind],argv+optind); data/umview-0.8.2/um_rsc/librsc/src/debug.c:45: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, fmt, ap); data/umview-0.8.2/um_rsc/librsc_templates/input/templates/client.c:221:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. ### If the system call has some read pointers, I define one auxiliary C variable data/umview-0.8.2/um_rsc/librsc_templates/input/templates/client.c:295:23: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. <%# If it's a network system call the "sys?" methods returns true because a SYS_* constant is defined %> data/umview-0.8.2/um_rsc/librsc_templates/input/templates/client.c:507:45: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. <%# Here ends the iteration of over all the system calls supported by UMView to produce data/umview-0.8.2/um_rsc/librsc_templates/input/templates/client.c:508:41: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. # the definitions of the rscc_create_<system call name>_request() functions %> data/umview-0.8.2/um_rsc/librsc_templates/input/templates/client.c:516:33: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. <%# Here the iteration over the system calls supported by UMView starts again, to produce data/umview-0.8.2/um_rsc/librsc_templates/input/templates/client.c:517:35: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. # the code for the rscc_manage_<system call name>_response() functions %> data/umview-0.8.2/um_rsc/librsc_templates/input/templates/client.c:600:33: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. <%# Here the iteration over the system calls supported by UMView starts again, to produce data/umview-0.8.2/um_rsc/librsc_templates/input/templates/client.c:601:28: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. # the code for the rscc_<system call name>() functions %> data/umview-0.8.2/um_rsc/librsc_templates/input/templates/test_syscall_execution.c:4:50: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. test_syscall_execution.c: template file for system call execution tests. data/umview-0.8.2/um_rsc/module/um_rsc.c:230:21: [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. SERVICESYSCALL(s, access, rscc_access); data/umview-0.8.2/um_rsc/server/gdebug.c:154:18: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. libc_fprintf = fprintf; data/umview-0.8.2/um_rsc/server/gdebug.c:155:19: [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. libc_vfprintf = vfprintf; data/umview-0.8.2/um_rsc/server/gdebug.c:170:19: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. libc_fprintf = fprintf; data/umview-0.8.2/um_rsc/server/gdebug.c:171:20: [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. libc_vfprintf = vfprintf; data/umview-0.8.2/um_testmodule/real.c:135:20: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. SERVICESYSCALL(s, access, access); data/umview-0.8.2/um_testmodule/real.c:135:28: [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. SERVICESYSCALL(s, access, access); data/umview-0.8.2/um_testmodule/unreal.c:143:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. return access(unwrap(path),mode); data/umview-0.8.2/um_testmodule/unreal.c:264:20: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. SERVICESYSCALL(s, access, unreal_access); data/umview-0.8.2/um_viewfs/oldviewfs/gd64helper.c:302: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(new->d_name, d_name); data/umview-0.8.2/um_viewfs/oldviewfs/modifshide.c:692:20: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. SERVICESYSCALL(s, access, modifs_noent); data/umview-0.8.2/um_viewfs/oldviewfs/viewfs.c:160:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. return access(LAYEROF(umpid)->datapath, mode); data/umview-0.8.2/um_viewfs/oldviewfs/viewfs.c:1189:20: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. SERVICESYSCALL(s, access, viewfs_access); data/umview-0.8.2/um_viewfs/viewfs.c:530:11: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. int wok=access(path,W_OK); data/umview-0.8.2/um_viewfs/viewfs.c:558:17: [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. wok_parent=access(path,W_OK); data/umview-0.8.2/um_viewfs/viewfs.c:603:37: [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. rv=S_ISDIR(file_exist(path)) && (access(path,X_OK)==0); data/umview-0.8.2/um_viewfs/viewfs.c:1018:11: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. int rv= access(vfspath,mode); data/umview-0.8.2/um_viewfs/viewfs.c:1022:8: [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. rv= access(path,mode); data/umview-0.8.2/um_viewfs/viewfs.c:1650:7: [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(current->d_name,vfsdir->dirpos->de.d_name); data/umview-0.8.2/um_viewfs/viewfs.c:1781:20: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. SERVICESYSCALL(s, access, viewfs_access); data/umview-0.8.2/umbinfmt/umbinfmt.c:368: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(de->d_name,name); data/umview-0.8.2/umbinfmt/umbinfmt.c:903:20: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. SERVICESYSCALL(s, access, umbinfmt_access); data/umview-0.8.2/umdev/umdev.c:648:18: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (fc->devops->access) data/umview-0.8.2/umdev/umdev.c:649:19: [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. rv= fc->devops->access(type, device, mode, fc); data/umview-0.8.2/umdev/umdev.c:951:20: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. SERVICESYSCALL(s, access, umdev_access); data/umview-0.8.2/umfuse/fuse_opt.c:121:4: [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(newopts + oldlen + 1, opt); data/umview-0.8.2/umfuse/fuse_opt.c:200:7: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. if (sscanf(param, format, var) != 1) { data/umview-0.8.2/umfuse/fuse_opt.c:247: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(newarg + sep, param); data/umview-0.8.2/umfuse/umfuse.c:176: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, fmt, ap); data/umview-0.8.2/umfuse/umfuse.c:899:4: [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(current->d_name,ft->dirpos->de.d_name); data/umview-0.8.2/umfuse/umfuse.c:1321:21: [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 (fc->fuse->fops.access != NULL) data/umview-0.8.2/umfuse/umfuse.c:1322:22: [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. rv= fc->fuse->fops.access(unwrap(fc, path), mode); data/umview-0.8.2/umfuse/umfuse.c:2064:20: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. SERVICESYSCALL(s, access, umfuse_access); data/umview-0.8.2/umfuse/umfusestd.c:31:24: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define PRINTCALL(X,Y) fprintf(stderr,(X),(Y)); data/umview-0.8.2/ummisc/ummisc.c:331:4: [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(this->d_name,fsdir->name); data/umview-0.8.2/ummisc/ummisc.c:470:20: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. SERVICESYSCALL(s, access, ummisc_access); data/umview-0.8.2/ummisc/umproc.c:208:20: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. SERVICESYSCALL(s, access, umproc_access); data/umview-0.8.2/umnet/umnet.c:824:20: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. SERVICESYSCALL(s, access, umnet_access); data/umview-0.8.2/umpyew/umpyew.c:199:10: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. PYINSYS(access, 2); data/umview-0.8.2/umpyew/umpyew.c:750:17: [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. PYTHON_SYSCALL(access, sysAccess); data/umview-0.8.2/xmview/capture_km.c:508: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(path,X_OK)==0) { data/umview-0.8.2/xmview/capture_km.c:513:12: [4] (shell) execl: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. case 0: execl(path,path,(char *)0); data/umview-0.8.2/xmview/capture_um.c:874: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(path,X_OK)==0) { data/umview-0.8.2/xmview/capture_um.c:879:12: [4] (shell) execl: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. case 0: execl(path,path,argv1,(char *)0); data/umview-0.8.2/xmview/capture_um.c:923:4: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp(argv[0], argv); data/umview-0.8.2/xmview/gdebug.c:156:18: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. libc_fprintf = fprintf; data/umview-0.8.2/xmview/gdebug.c:157:19: [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. libc_vfprintf = vfprintf; data/umview-0.8.2/xmview/gdebug.c:172:19: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. libc_fprintf = fprintf; data/umview-0.8.2/xmview/gdebug.c:173:20: [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. libc_vfprintf = vfprintf; data/umview-0.8.2/xmview/kmview.c:254:4: [4] (shell) execv: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execv(path,argv); data/umview-0.8.2/xmview/kmview.c:311:2: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp(*(argv+optind),argv+optind); data/umview-0.8.2/xmview/modutils.c:54:2: [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(testpath, tplen, fmt); \ data/umview-0.8.2/xmview/umbinwrap.c:88:4: [4] (shell) execv: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execv(cmd,argv); data/umview-0.8.2/xmview/umbinwrap.c:136:3: [4] (shell) execv: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execv(cmd,newargv); data/umview-0.8.2/xmview/umproc.c:277: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(um_proc_root,path); data/umview-0.8.2/xmview/umproc.c:299: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(um_tmpfile,path); data/umview-0.8.2/xmview/umproc.c:302: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(um_tmpfile_tail,FAKECWD); data/umview-0.8.2/xmview/umproc.c:348:3: [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(um_tmpfile_tail,FAKECWD); data/umview-0.8.2/xmview/umview.c:257:4: [4] (shell) execv: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execv(path,argv); data/umview-0.8.2/xmview/umview.c:311:2: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp(*(argv+optind),argv+optind); data/umview-0.8.2/um_cmd/um_add_service.c:52:5: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c=getopt_long(argc,argv,"p",long_options,&option_index); data/umview-0.8.2/um_cmd/um_del_service.c:50:5: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c=getopt_long(argc,argv,"",long_options,&option_index); data/umview-0.8.2/um_cmd/viewmount.c:27:10: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. #include<getopt.h> data/umview-0.8.2/um_cmd/viewmount.c:50:16: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((opt = getopt(argc, argv, "hVt:o:r")) != -1) { data/umview-0.8.2/um_cmd/viewname.c:59:5: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c=getopt_long(argc,argv,"pqh",long_options,&option_index); data/umview-0.8.2/um_cmd/viewsu.c:122:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "c:ls:mph", data/umview-0.8.2/um_cmd/viewsudo.c:78:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "u:g:h", data/umview-0.8.2/um_cmd/viewumount.c:27:10: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. #include<getopt.h> data/umview-0.8.2/um_cmd/viewumount.c:46:16: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((opt = getopt(argc, argv, "hfl")) != -1) { data/umview-0.8.2/um_cmd/vuname.c:90:5: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c=getopt_long(argc,argv,"asnrvmpioxqUVN",long_options,&option_index); data/umview-0.8.2/um_rsc/server/rsc_server.c:706:9: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, "a:p:e:h", long_option, &option_index); data/umview-0.8.2/umpyew/umpyew.c:683:104: [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. GERROR("Error loading Python module %s.\nIt has been searched for in the following path:\n%s", name, getenv("PYTHONPATH")); data/umview-0.8.2/xmview/capture_km.c:475:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ((envpath=getenv("PATH")) == NULL) data/umview-0.8.2/xmview/capture_um.c:831:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ((envpath=getenv("PATH")) == NULL) data/umview-0.8.2/xmview/kmview.c:223:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, OPTSTRING, long_options, &option_index); data/umview-0.8.2/xmview/kmview.c:277:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, OPTSTRING, long_options, &option_index); data/umview-0.8.2/xmview/kmview.c:304:28: [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. asprintf(&rcfile,"%s/%s",getenv("HOME"),".viewosrc"); data/umview-0.8.2/xmview/kmview.c:322:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, OPTSTRING, long_options, &option_index); data/umview-0.8.2/xmview/kmview.c:396:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, OPTSTRING, long_options, &option_index); data/umview-0.8.2/xmview/kmview.c:441:28: [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. asprintf(&rcfile,"%s/%s",getenv("HOME"),".viewosrc"); data/umview-0.8.2/xmview/modutils.c:67:18: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *homedir = getenv("HOME"); data/umview-0.8.2/xmview/umview.c:226:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, OPTSTRING, long_options, &option_index); data/umview-0.8.2/xmview/umview.c:277:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, OPTSTRING, long_options, &option_index); data/umview-0.8.2/xmview/umview.c:304:28: [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. asprintf(&rcfile,"%s/%s",getenv("HOME"),".viewosrc"); data/umview-0.8.2/xmview/umview.c:364:7: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long(argc, argv, OPTSTRING, long_options, &option_index); data/umview-0.8.2/xmview/umview.c:449:28: [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. asprintf(&rcfile,"%s/%s",getenv("HOME"),".viewosrc"); data/umview-0.8.2/include/linux_dirent.h:8: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 d_name[256]; /* We must not include limits.h! */ data/umview-0.8.2/include/linux_dirent.h:16: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 d_name[256]; data/umview-0.8.2/include/um_lib.h:61: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 viewname[_UTSNAME_LENGTH]; data/umview-0.8.2/include/umdev.h:44: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). int (*open) (char, dev_t, struct dev_info *); data/umview-0.8.2/um_cmd/mstack.c:39:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char family[AF_MAXMAX]; data/umview-0.8.2/um_cmd/mstack.c:40:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *fname[AF_MAXMAX]={ data/umview-0.8.2/um_cmd/mstack.c:136:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int family=atoi(token+1); data/umview-0.8.2/um_cmd/um_attach.c:43:17: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (um_attach(atoi(argv[1])) < 0) { data/umview-0.8.2/um_cmd/um_ls_service.c:40: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 lsbuf[PATH_MAX]; data/umview-0.8.2/um_cmd/um_ls_service.c:41: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 descr[PATH_MAX]; data/umview-0.8.2/um_cmd/umshutdown.c:57: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). wtime=atoi(argv[1]); data/umview-0.8.2/um_cmd/viewsu.c:79: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[1024]; data/umview-0.8.2/um_cmd/viewsu.c:81:10: [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("/etc/login.defs","r"); data/umview-0.8.2/um_cmd/viewsudo.c:96: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). uid=atoi(user+1); data/umview-0.8.2/um_cmd/viewsudo.c:117: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). gid=atoi(group+1); data/umview-0.8.2/um_cmd/vuname.c:60:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char flags[12]; data/umview-0.8.2/um_rsc/librsc/include/rsc_client.h:156:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. int rscc_utimes(char *filename, struct timeval tv[2]); data/umview-0.8.2/um_rsc/librsc/include/rsc_client.h:296:77: [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. struct iovec *rscc_create_utimes_request(int *total_size, int *iovec_count, char *filename, struct timeval tv[2]); data/umview-0.8.2/um_rsc/librsc/include/rsc_client.h:297:111: [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. struct iovec *rscc_manage_utimes_response(struct sys_resp_header *resp_header, int *iovec_count, int *nbytes, char *filename, struct timeval tv[2]); data/umview-0.8.2/um_rsc/librsc/src/debug.c:63:26: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char c = (char)((char *)text)[i]; data/umview-0.8.2/um_rsc/librsc/src/debug.c:72:50: [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. fprintf(stderr, "%02x", (unsigned char)((char *)text)[i]); data/umview-0.8.2/um_rsc/librsc/src/rsc_client.c:6837:77: [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. struct iovec *rscc_create_utimes_request(int *total_size, int *iovec_count, char *filename, struct timeval tv[2]) { data/umview-0.8.2/um_rsc/librsc/src/rsc_client.c:9429:111: [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. struct iovec *rscc_manage_utimes_response(struct sys_resp_header *resp_header, int *iovec_count, int *nbytes, char *filename, struct timeval tv[2]) { data/umview-0.8.2/um_rsc/librsc/src/rsc_client.c:12720:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. int rscc_utimes(char *filename, struct timeval tv[2]) { data/umview-0.8.2/um_rsc/librsc/src/rsc_client.c:12848: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(&(recvmsg_req.msg), msg, sizeof(recvmsg_req.msg)); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:2305: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(var_data, accept_req->addrlen, sizeof(socklen_t)); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:2332: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(var_data, accept_req->addrlen, sizeof(socklen_t)); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:2366: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(var_data, adjtimex_req->buf, sizeof(struct timex)); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:2381: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(var_data, adjtimex_req->buf, sizeof(struct timex)); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:2642: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(var_data, getpeername_req->namelen, sizeof(socklen_t)); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:2669: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(var_data, getpeername_req->namelen, sizeof(socklen_t)); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:2703: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(var_data, getsockname_req->namelen, sizeof(socklen_t)); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:2730: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(var_data, getsockname_req->namelen, sizeof(socklen_t)); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:2764: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(var_data, getsockopt_req->optlen, sizeof(socklen_t)); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:2791: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(var_data, getsockopt_req->optlen, sizeof(socklen_t)); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:3168: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(var_data, recvfrom_req->fromlen, sizeof(socklen_t)); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:3190: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(var_data, recvfrom_req->fromlen, sizeof(socklen_t)); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:3334:7: [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(var_data, ioctl_req->arg, (size_type & IOCTL_LENMASK)); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:3357: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(var_data, fcntl_req->third.lock, sizeof(struct flock)); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:9656: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(data, recvmsg_req->msg.msg_iov[i].iov_base, recvmsg_req->msg.msg_iov[i].iov_len); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:9661: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(data, recvmsg_req->msg.msg_control, recvmsg_req->msg.msg_controllen); data/umview-0.8.2/um_rsc/librsc/tests/server.c:45:19: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). server_port = atoi(argv[1]); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:80:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, &c[i], size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:124:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, &c[i], size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:168:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, &num[i], size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:213:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, &num[i], size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:257:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, &num[i], size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:301:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, &num[i], size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:365:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, &num[i], size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:475:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, &num[i], size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:560:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, &num[i], size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:604:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, &num[i], size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:659:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, &ps[i], size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:703:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, str[i], size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:746:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, &num[i], size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:790:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, &num[i], size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:834:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, &num[i], size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:878:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, &num[i], size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:922:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, &num[i], size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:966:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, &num[i], size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:1010:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, &num[i], size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:1063:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, &num[i], size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:1136:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, &num[i], size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:1228:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, in, size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:1328:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, &d, size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:1384:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, s, size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:1436:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, &t, size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:1467:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, &t, size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:1497:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, &t, size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:1528:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, &t, size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:1569:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, &t, size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:1641:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, &t, size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:1724:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, &s, size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:1814:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, &s, size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:1935:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[256]; data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:1943:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, str, size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:1951:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[256]; data/umview-0.8.2/um_rsc/librsc/tests/test_type_equality.c:120: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(d.sun_path, "/tmp/"); data/umview-0.8.2/um_rsc/librsc/tests/test_type_equality.c:721: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(a.sysname, "sysname"); data/umview-0.8.2/um_rsc/librsc/tests/test_type_equality.c:722: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(a.nodename, "nodename"); data/umview-0.8.2/um_rsc/librsc/tests/test_type_equality.c:723: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(a.release, "release"); data/umview-0.8.2/um_rsc/librsc/tests/test_type_equality.c:725: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(a.machine, "x86"); data/umview-0.8.2/um_rsc/librsc/tests/test_type_equality.c:727: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(b.sysname, "sysname"); data/umview-0.8.2/um_rsc/librsc/tests/test_type_equality.c:728: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(b.nodename, "nodename"); data/umview-0.8.2/um_rsc/librsc/tests/test_type_equality.c:729: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(b.release, "release"); data/umview-0.8.2/um_rsc/librsc/tests/test_type_equality.c:731: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(b.machine, "x86"); data/umview-0.8.2/um_rsc/librsc/tests/test_type_equality.c:742:5: [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(c.sysname, "different"); data/umview-0.8.2/um_rsc/librsc/tests/test_type_equality.c:743: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(c.nodename, "nodename"); data/umview-0.8.2/um_rsc/librsc/tests/test_type_equality.c:744: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(c.release, "release"); data/umview-0.8.2/um_rsc/librsc/tests/test_type_equality.c:746: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(c.machine, "x86"); data/umview-0.8.2/um_rsc/librsc/tests/test_type_equality.c:753:5: [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(c.sysname, "sysname"); data/umview-0.8.2/um_rsc/librsc/tests/test_type_equality.c:754: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(c.nodename, "different"); data/umview-0.8.2/um_rsc/librsc/tests/test_type_equality.c:755: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(c.release, "release"); data/umview-0.8.2/um_rsc/librsc/tests/test_type_equality.c:757: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(c.machine, "x86"); data/umview-0.8.2/um_rsc/librsc/tests/test_type_equality.c:764:5: [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(c.sysname, "sysname"); data/umview-0.8.2/um_rsc/librsc/tests/test_type_equality.c:765: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(c.nodename, "nodename"); data/umview-0.8.2/um_rsc/librsc/tests/test_type_equality.c:766: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(c.release, "different"); data/umview-0.8.2/um_rsc/librsc/tests/test_type_equality.c:768: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(c.machine, "x86"); data/umview-0.8.2/um_rsc/librsc/tests/test_type_equality.c:775:5: [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(c.sysname, "sysname"); data/umview-0.8.2/um_rsc/librsc/tests/test_type_equality.c:776: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(c.nodename, "nodename"); data/umview-0.8.2/um_rsc/librsc/tests/test_type_equality.c:777: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(c.release, "release"); data/umview-0.8.2/um_rsc/librsc/tests/test_type_equality.c:778: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(c.version, "100"); data/umview-0.8.2/um_rsc/librsc/tests/test_type_equality.c:779: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(c.machine, "x86"); data/umview-0.8.2/um_rsc/librsc/tests/test_type_equality.c:786:5: [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(c.sysname, "sysname"); data/umview-0.8.2/um_rsc/librsc/tests/test_type_equality.c:787: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(c.nodename, "nodename"); data/umview-0.8.2/um_rsc/librsc/tests/test_type_equality.c:788: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(c.release, "release"); data/umview-0.8.2/um_rsc/librsc/tests/test_type_equality.c:790: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(c.machine, "x86_64"); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_write_pointers.c:71:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(addr, a, sizeof(struct sockaddr_in)); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_write_pointers.c:175: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(name, a, sizeof(struct sockaddr_in)); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_write_pointers.c:189: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(name, a, sizeof(struct sockaddr_in)); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_write_pointers.c:281: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(buf, str, str_len > bufsiz ? bufsiz : str_len ); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_write_pointers.c:342:5: [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(buf->sysname, "sysname"); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_write_pointers.c:343:5: [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(buf->nodename, "nodename"); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_write_pointers.c:344:5: [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(buf->release, "release"); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_write_pointers.c:346:5: [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(buf->machine, "x86"); data/umview-0.8.2/um_rsc/librsc_templates/input/templates/client.c:683: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(&(recvmsg_req.msg), msg, sizeof(recvmsg_req.msg)); data/umview-0.8.2/um_rsc/librsc_templates/input/templates/server.c:312: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(var_data, <%= syscall.name %>_req-><%= arg.name %>, <%= arg.size("#{syscall.name}_req->") %>); data/umview-0.8.2/um_rsc/librsc_templates/input/templates/server.c:333: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(var_data, <%= syscall.name %>_req-><%= arg.name %>, <%= arg.size("#{syscall.name}_req->") %>); data/umview-0.8.2/um_rsc/librsc_templates/input/templates/server.c:362:7: [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(var_data, ioctl_req->arg, (size_type & IOCTL_LENMASK)); data/umview-0.8.2/um_rsc/librsc_templates/input/templates/server.c:385: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(var_data, fcntl_req->third.lock, sizeof(struct flock)); data/umview-0.8.2/um_rsc/librsc_templates/input/templates/server.c:796: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(data, recvmsg_req->msg.msg_iov[i].iov_base, recvmsg_req->msg.msg_iov[i].iov_len); data/umview-0.8.2/um_rsc/librsc_templates/input/templates/server.c:801: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(data, recvmsg_req->msg.msg_control, recvmsg_req->msg.msg_controllen); data/umview-0.8.2/um_rsc/librsc_templates/input/unistd_files/unistd_ppc.h:389: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). extern int open(const char *file, int flag, int mode); data/umview-0.8.2/um_rsc/module/um_rsc.c:80: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 str_addr[INET6_ADDRSTRLEN]; data/umview-0.8.2/um_rsc/module/um_rsc.c:257:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). SERVICESYSCALL(s, open, rscc_open); data/umview-0.8.2/um_rsc/server/gdebug.c:156:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). libc_fopen = fopen; data/umview-0.8.2/um_rsc/server/gdebug.c:172:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). libc_fopen = fopen; data/umview-0.8.2/um_rsc/server/rsc_server.c:87: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 str_addr[INET6_ADDRSTRLEN]; data/umview-0.8.2/um_testmodule/real.c:123: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). SERVICESYSCALL(s, open, (sysfun)open); data/umview-0.8.2/um_testmodule/real.c:123: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). SERVICESYSCALL(s, open, (sysfun)open); data/umview-0.8.2/um_testmodule/unreal.c:118: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). return open(unwrap(pathname),flags,mode); data/umview-0.8.2/um_testmodule/unreal.c:193:27: [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 long unreal_utimes(char *filename, struct timeval tv[2]) data/umview-0.8.2/um_testmodule/unreal.c:251: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). SERVICESYSCALL(s, open, unreal_open); data/umview-0.8.2/um_viewfs/oldviewfs/gd64helper.c:154: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(dd->dents[dd->dents_size-1], dents, count); data/umview-0.8.2/um_viewfs/oldviewfs/gd64helper.c:434: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(((char *)dirp) + curcount, cur->cur, cur->cur->d_reclen); data/umview-0.8.2/um_viewfs/oldviewfs/modifshide.c:546:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(pathname, flags, mode); data/umview-0.8.2/um_viewfs/oldviewfs/modifshide.c:708: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). SERVICESYSCALL(s, open, modifs_open); data/umview-0.8.2/um_viewfs/oldviewfs/viewfs.c:107:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char fnbuf[2*PATH_MAX]; data/umview-0.8.2/um_viewfs/oldviewfs/viewfs.c:475:7: [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[nc +1], EP_METAM, EP_METAM_LEN); data/umview-0.8.2/um_viewfs/oldviewfs/viewfs.c:483:7: [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[nc + 1], EP_METAC, EP_METAC_LEN); data/umview-0.8.2/um_viewfs/oldviewfs/viewfs.c:827: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(&(path[pos+2]), N_META, N_LEN - 1); data/umview-0.8.2/um_viewfs/viewfs.c:164:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fdin=open(oldpath,O_RDONLY); data/umview-0.8.2/um_viewfs/viewfs.c:166: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[4096]; data/umview-0.8.2/um_viewfs/viewfs.c:174: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). fdout=open(newpath,O_WRONLY|O_CREAT|O_TRUNC,(oldstat.st_mode & 0777) | 0600); data/umview-0.8.2/um_viewfs/viewfs.c:291: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 hexstat[60]; data/umview-0.8.2/um_viewfs/viewfs.c:297:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd=open(infofile,O_RDONLY))>=0 && (len=read(fd,hexstat,60)) >= 24) { data/umview-0.8.2/um_viewfs/viewfs.c:338: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 hexstat[60]; data/umview-0.8.2/um_viewfs/viewfs.c:344:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd=open(infofile,O_RDWR|O_CREAT,0644))<0 || (len=read(fd,hexstat,60)) < 24) data/umview-0.8.2/um_viewfs/viewfs.c:706:6: [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). rv=open(vfspath,flags,mode); data/umview-0.8.2/um_viewfs/viewfs.c:708:6: [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). rv=open(vfspath,flags,mode); data/umview-0.8.2/um_viewfs/viewfs.c:1210: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). int dirfd=open(path,O_RDONLY|O_DIRECTORY); data/umview-0.8.2/um_viewfs/viewfs.c:1212: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[4096]; data/umview-0.8.2/um_viewfs/viewfs.c:1238: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). int dirfd=open(path,O_RDONLY|O_DIRECTORY); data/umview-0.8.2/um_viewfs/viewfs.c:1240: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[4096]; data/umview-0.8.2/um_viewfs/viewfs.c:1530: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[4096]; data/umview-0.8.2/um_viewfs/viewfs.c:1590:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int mergefd=open(wipedir,O_RDONLY|O_DIRECTORY); data/umview-0.8.2/um_viewfs/viewfs.c:1598:11: [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). mergefd=open(mergepath,O_RDONLY|O_DIRECTORY); data/umview-0.8.2/um_viewfs/viewfs.c:1768: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). SERVICESYSCALL(s, open, viewfs_open); data/umview-0.8.2/um_viewfs/viewfs0args.c:70: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 *sepopts[MAXARGS]; data/umview-0.8.2/um_viewfs/viewfs0args.c:71: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 *exceptions[MAXARGS]; data/umview-0.8.2/umbinfmt/umbinfmt.c:112: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 d_name[0]; data/umview-0.8.2/umbinfmt/umbinfmt.c:182: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 *sepopts[MAXARGS]; data/umview-0.8.2/umbinfmt/umbinfmt.c:430: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 magic[257]; data/umview-0.8.2/umbinfmt/umbinfmt.c:431: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 mask[257]; data/umview-0.8.2/umbinfmt/umbinfmt.c:573: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(buf,(ft->contents)+ft->pos,rv); data/umview-0.8.2/umbinfmt/umbinfmt.c:626: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[128]; data/umview-0.8.2/umbinfmt/umbinfmt.c:651: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(rv,buf,*len); data/umview-0.8.2/umbinfmt/umbinfmt.c:657: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 regstr[256]; data/umview-0.8.2/umbinfmt/umbinfmt.c:661: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 *fields[7]; data/umview-0.8.2/umbinfmt/umbinfmt.c:677:17: [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). new->offset=(atoi(fields[F_OFFSET])); data/umview-0.8.2/umbinfmt/umbinfmt.c:894: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). SERVICESYSCALL(s, open, umbinfmt_open); data/umview-0.8.2/umdev/umdev.c:114:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int sub=atoi(suffix); data/umview-0.8.2/umdev/umdev.c:155:53: [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). *dev=makedev(major(umdev->dev),minor(umdev->dev)+atoi(path+strlen(umdev->path))); data/umview-0.8.2/umdev/umdev.c:196:7: [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). majx=atoi(s); data/umview-0.8.2/umdev/umdev.c:211: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). minx=atoi(s); data/umview-0.8.2/umdev/umdev.c:220:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). fc->nsubdev=atoi(s); data/umview-0.8.2/umdev/umdev.c:238:10: [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). fc->uid=atoi(s); data/umview-0.8.2/umdev/umdev.c:246:10: [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). fc->gid=atoi(s); data/umview-0.8.2/umdev/umdev.c:252: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 *sepopts[MAXARGS]; data/umview-0.8.2/umdev/umdev.c:485: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 (fc->devops->open) data/umview-0.8.2/umdev/umdev.c:486: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). rv = fc->devops->open(ft->type, ft->device, &di); data/umview-0.8.2/umdev/umdev.c:942: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). SERVICESYSCALL(s, open, umdev_open); data/umview-0.8.2/umdev_testmodules/umdevtrivhd.c:31: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,testdisk+pos,rlen); data/umview-0.8.2/umdev_testmodules/umdevtrivhd.c:43: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(testdisk+pos,buf,rlen); data/umview-0.8.2/umdevmbr/mbr.c:34: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 mbrsignature[2]={0x55,0xAA}; data/umview-0.8.2/umdevmbr/mbr.c:37: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 code[IDE_HEADER_OFFSET]; data/umview-0.8.2/umdevmbr/mbr.c:40:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char chs_begin[3]; data/umview-0.8.2/umdevmbr/mbr.c:42:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char chs_end[3]; data/umview-0.8.2/umdevmbr/mbr.c:43:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char lba_begin[4]; data/umview-0.8.2/umdevmbr/mbr.c:44:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char lba_noblocks[4]; data/umview-0.8.2/umdevmbr/mbr.c:46: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 signature[2]; data/umview-0.8.2/umdevmbr/umdevmbr.c:128: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). int fd=open(path,O_RDWR); data/umview-0.8.2/umdevmbr/umdevramdisk.c:39: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(buf,ramdisk->diskdata+pos,rlen); data/umview-0.8.2/umdevmbr/umdevramdisk.c:60: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(ramdisk->diskdata+pos,buf,rlen); data/umview-0.8.2/umdevmbr/umdevramdisk.c:107:18: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). long long size=atoi(s); data/umview-0.8.2/umdevmbr/umdevvd.c:144:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tbuf[STD_SECTORSIZE]; data/umview-0.8.2/umdevmbr/umdevvd.c:152: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(buf,tbuf+toff,tlen); data/umview-0.8.2/umdevmbr/umdevvd.c:168: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(buf,tbuf,llen); data/umview-0.8.2/umdevmbr/umdevvd.c:198:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tbuf[STD_SECTORSIZE]; data/umview-0.8.2/umdevmbr/umdevvd.c:206: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(tbuf+toff,buf,tlen); data/umview-0.8.2/umdevmbr/umdevvd.c:224: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(tbuf,buf,llen); data/umview-0.8.2/umdevmbr/umdevvd.c:278: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[8]; data/umview-0.8.2/umdevmbr/umdevvd.c:279:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open (filename, O_RDONLY); data/umview-0.8.2/umdevtap/umdevtap.c:106:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[IFNAMSIZ+1]; data/umview-0.8.2/umdevtap/umdevtap.c:107:6: [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 comment[80+IFNAMSIZ+1]; data/umview-0.8.2/umdevtap/umdevtap.c:109:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name,"tap%d",tapcount++); data/umview-0.8.2/umfuse/fuse_opt.c:246: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(newarg, arg, sep); data/umview-0.8.2/umfuse/umfuse.c:381: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 opts[PATH_MAX+1]; data/umview-0.8.2/umfuse/umfuse.c:806: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). fd=open(abspath,O_RDONLY|O_DIRECTORY); data/umview-0.8.2/umfuse/umfuse.c:809: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[4096]; data/umview-0.8.2/umfuse/umfuse.c:1040: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). rv = fc->fuse->fops.open(unpath, &ft->ffi); data/umview-0.8.2/umfuse/umfuse.c:1052: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). rv = fc->fuse->fops.open(unpath, &ft->ffi); data/umview-0.8.2/umfuse/umfuse.c:1805:27: [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 long umfuse_utimes(char *path, struct timeval tv[2]) data/umview-0.8.2/umfuse/umfuse.c:2051: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). SERVICESYSCALL(s, open, umfuse_open); data/umview-0.8.2/umfuse/umfuse_node.h:48: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 check[17]; data/umview-0.8.2/umfuse/umfuseargs.c:186: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 *sepopts[MAXARGS]; data/umview-0.8.2/umfuse/umfuseargs.c:187: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 *exceptions[MAXARGS]; data/umview-0.8.2/umfuse/umfuseargs.c:189: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 newopts[PATH_MAX]; data/umview-0.8.2/umfuse/umfuseargs.c:260:13: [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). fc->uid=atoi(sepopts[i]+strlen(fuseargtab[j].arg)); data/umview-0.8.2/umfuse/umfuseargs.c:263:13: [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). fc->gid=atoi(sepopts[i]+strlen(fuseargtab[j].arg)); data/umview-0.8.2/umfuse/umfuseargs.c:304: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 *nargv[MAXARGS]; data/umview-0.8.2/umfuse_modules/umfuseramfile.c:35: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(stbuf, &rf->stat, sizeof(struct stat)); data/umview-0.8.2/umfuse_modules/umfuseramfile.c:86: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(buf, &(rf->buf[offset]), size); data/umview-0.8.2/umfuse_modules/umfuseramfile.c:104: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(&(rf->buf[offset]), buf, size); data/umview-0.8.2/umfuse_modules/umfuseramfile.c:136:35: [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 int ramfile_utimens (const char *path, const struct timespec tv[2]) data/umview-0.8.2/umfuse_modules/umfuseramfile.c:170:18: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). long long size=atoi(s); data/umview-0.8.2/umfuse_modules/umfuseramfile.c:212: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). if ((srcfd = open(source, O_RDONLY)) < 0) { data/umview-0.8.2/ummisc/ummisc.c:362: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((char*) dirp, ft->buf + ft->pos, rv); data/umview-0.8.2/ummisc/ummisc.c:463: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). SERVICESYSCALL(s, open, ummisc_open); data/umview-0.8.2/ummisc/umproc.c:69: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). int fd=open("/proc/mounts",O_RDONLY); data/umview-0.8.2/ummisc/umproc.c:71:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *buf[128]; data/umview-0.8.2/ummisc/umproc.c:202: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). SERVICESYSCALL(s, open, umproc_open); data/umview-0.8.2/ummisc_modules/ummiscuname.c:59: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,ummisc_getprivatedata(mh),sizeof(struct utsname)); data/umview-0.8.2/umnet/umnet.c:159:7: [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,defnet[id],sizeof (struct umnetdefault)); data/umview-0.8.2/umnet/umnet.c:762:22: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int family=atoi(token+1); data/umview-0.8.2/umnet_modules/umnetlink.c:41: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 proto[AF_MAXMAX]; data/umview-0.8.2/umnet_modules/umnetlink.c:173:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int family=atoi(token+1); data/umview-0.8.2/umnetlwipv6/umnetlwipv6.c:192: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 *paramval[PARAMTYPES]; data/umview-0.8.2/umpyew/umpyew.c:179:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). PYINSYS(open, 3); data/umview-0.8.2/umpyew/umpyew.c:424:27: [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 long umpyew_utimes(char *path, struct timeval tv[2]) data/umview-0.8.2/umpyew/umpyew.c:451: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(buf, PyString_AsString(PyTuple_GetItem(pRetVal, 2)), retval); data/umview-0.8.2/umpyew/umpyew.c:477: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(buf, PyString_AsString(PyTuple_GetItem(pRetVal, 2)), retval); data/umview-0.8.2/umpyew/umpyew.c:748: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). PYTHON_SYSCALL(open, sysOpen); data/umview-0.8.2/xmview/canonicalize.c:157:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[PATH_MAX]; data/umview-0.8.2/xmview/canonicalize.c:180:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. cdata->end = memcpy(cdata->ebuf,buf,n); data/umview-0.8.2/xmview/canonicalize.c:264: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(cdata.ebuf,root,cdata.rootlen); data/umview-0.8.2/xmview/canonicalize.c:274: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(cdata.ebuf+cdata.rootlen,name+1,namelen); data/umview-0.8.2/xmview/canonicalize.c:286: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(cdata.ebuf,cwd,cwdlen); data/umview-0.8.2/xmview/canonicalize.c:304: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(cdata.ebuf+cwdlen,name,namelen+1); data/umview-0.8.2/xmview/capture_km.c:102:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char scdnarg[_UM_NR_syscalls]; /*nargs*/ data/umview-0.8.2/xmview/capture_km.c:317:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&pc->event, &(event[i].x), sizeof(struct kmview_event_socketcall)); data/umview-0.8.2/xmview/capture_km.c:319:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&pc->event, &(event[i].x), sizeof(struct kmview_event_ioctl_syscall)); data/umview-0.8.2/xmview/capture_km.c:323:7: [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(&pc->event, &(event[i].x), sizeof(struct kmview_event_ioctl_syscall)); data/umview-0.8.2/xmview/capture_km.c:368:7: [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(&pc->outevent, &(event[i].x), sizeof(struct kmview_event_ioctl_sysreturn)); data/umview-0.8.2/xmview/capture_km.c:474: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[PATH_MAX]; data/umview-0.8.2/xmview/capture_nested.c:107: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 newpath[PATH_MAX]; data/umview-0.8.2/xmview/capture_nested.c:746: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(iovec[i].iov_base,p,qty); data/umview-0.8.2/xmview/capture_nested.c:767:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p,iovec[i].iov_base,qty); data/umview-0.8.2/xmview/capture_nested.c:796: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(iovec[i].iov_base,p,qty); data/umview-0.8.2/xmview/capture_nested.c:823:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p,iovec[i].iov_base,qty); data/umview-0.8.2/xmview/capture_um.c:103:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char scdnarg[_UM_NR_syscalls]; /*nargs*/ data/umview-0.8.2/xmview/capture_um.c:627: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(pc->saved_regs,saved_regs,sizeof(saved_regs)); data/umview-0.8.2/xmview/capture_um.c:830: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[PATH_MAX]; data/umview-0.8.2/xmview/defs.h:372: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 viewname[_UTSNAME_LENGTH]; data/umview-0.8.2/xmview/gdebug.c:158:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). libc_fopen = fopen; data/umview-0.8.2/xmview/gdebug.c:174:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). libc_fopen = fopen; data/umview-0.8.2/xmview/hashtab.c:378: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(new->obj,obj,objlen+ht_is_obj_string(type)); data/umview-0.8.2/xmview/hashtab.c:457: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 opts[PATH_MAX + 1]; data/umview-0.8.2/xmview/kmview.h:106: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 deltalen[GH_SIZE]; data/umview-0.8.2/xmview/loginshell.c:147:10: [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("/etc/viewospasswd","r"); data/umview-0.8.2/xmview/loginshell.c: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 buf[LOGINBUFSIZE],*line; data/umview-0.8.2/xmview/loginshell.c:186: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 *argv[argc+1]; data/umview-0.8.2/xmview/ptrace_multi_test.c:78:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char stack[1024]; data/umview-0.8.2/xmview/sctab.c:66:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char *const _sys_sigabbrev[NSIG] = data/umview-0.8.2/xmview/sctab.c:343: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 path[PATH_MAX]; data/umview-0.8.2/xmview/sctab.c:379: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 path[PATH_MAX]; data/umview-0.8.2/xmview/sctab.c:381: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 newpath[PATH_MAX]; data/umview-0.8.2/xmview/sctab.c:888: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 filesystemtype[PATH_MAX]; data/umview-0.8.2/xmview/sctab.c:1175: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(_laddr,(void *)addr,len); data/umview-0.8.2/xmview/sctab.c:1207: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((void *)addr,_laddr,len); data/umview-0.8.2/xmview/treepoch.c:259: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(&other->bitstr,&parent->bitstr,DEPTH_WORDS*sizeof(long)); data/umview-0.8.2/xmview/treepoch.c:343: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(&par_te->bitstr,&old_te->bitstr,DEPTH_WORDS*sizeof(long)); data/umview-0.8.2/xmview/treepoch.c:344: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(&new_te->bitstr,&old_te->bitstr,DEPTH_WORDS*sizeof(long)); data/umview-0.8.2/xmview/um_basicio.c:859:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[XATTR_NAME_MAX]; data/umview-0.8.2/xmview/um_basicio.c:880:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[XATTR_NAME_MAX]; data/umview-0.8.2/xmview/um_basicio.c:905:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[XATTR_NAME_MAX]; data/umview-0.8.2/xmview/um_basicio.c:927:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[XATTR_NAME_MAX]; data/umview-0.8.2/xmview/um_basicio.c:987:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[XATTR_NAME_MAX]; data/umview-0.8.2/xmview/um_basicio.c:1000:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[XATTR_NAME_MAX]; data/umview-0.8.2/xmview/um_exec.c:63: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[BUFSIZ]; data/umview-0.8.2/xmview/um_exec.c:70:11: [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 ((fdt=open(to,O_CREAT|O_TRUNC|O_WRONLY,0600)) < 0) data/umview-0.8.2/xmview/um_exec.c:152: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 tmparg[PATH_MAX+1]; data/umview-0.8.2/xmview/um_exec.c:188: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[BINFMTBUFLEN+1]; data/umview-0.8.2/xmview/um_exec.c:219: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). int fd=open(req.path,O_RDONLY); data/umview-0.8.2/xmview/um_exec.c:235: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 oldarg0[PATH_MAX+1]; data/umview-0.8.2/xmview/um_mmap.c:321: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[BUFSIZ]; data/umview-0.8.2/xmview/um_mmap.c:349: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[BUFSIZ]; data/umview-0.8.2/xmview/um_plusio.c:709: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 filesystemtype[PATH_MAX]; data/umview-0.8.2/xmview/um_plusio.c:710: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 data[PATH_MAX]; data/umview-0.8.2/xmview/um_services.c:82: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[PATH_MAX]; data/umview-0.8.2/xmview/um_services.c:162:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[_UTSNAME_LENGTH]; data/umview-0.8.2/xmview/um_services.c:194:6: [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 fsalias[256]; data/umview-0.8.2/xmview/um_services.c:195:6: [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 fsname[256]; data/umview-0.8.2/xmview/um_uname.c:51: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(&oldbuf.sysname,&buf.sysname,8); data/umview-0.8.2/xmview/um_uname.c:52: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(&oldbuf.nodename,&buf.nodename,8); data/umview-0.8.2/xmview/um_uname.c:53: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(&oldbuf.release,&buf.release,8); data/umview-0.8.2/xmview/um_uname.c:54: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(&oldbuf.version,&buf.version,8); data/umview-0.8.2/xmview/um_uname.c:55: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(&oldbuf.machine,&buf.machine,8); data/umview-0.8.2/xmview/umbinwrap.c:42: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). int fd=open(path,O_RDONLY); data/umview-0.8.2/xmview/umbinwrap.c:57: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[BUFSIZ]; data/umview-0.8.2/xmview/umbinwrap.c:62:6: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). fdt=mkstemp(tempbin); data/umview-0.8.2/xmview/umbinwrap.c:66:11: [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 ((fdf=open(from,O_RDONLY,0)) < 0) data/umview-0.8.2/xmview/umbinwrap.c:79:13: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). int fdlock=mkstemp(templock); data/umview-0.8.2/xmview/umproc.c:263: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 path[PATH_MAX]; data/umview-0.8.2/xmview/umproc.c:280:2: [2] (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 string. strcat(path,"/lfd.um_mmap"); data/umview-0.8.2/xmview/umproc.c:294:2: [2] (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 string. strcat(path,"/lfd.xxXXXXX"); data/umview-0.8.2/xmview/umproc.c:315: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[1024]; data/umview-0.8.2/xmview/umproc.c:392: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(p->lfdlist,pc->pp->fds->lfdlist,p->nolfd * sizeof(int)); data/umview-0.8.2/xmview/umproc.c:769: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[1024]; data/umview-0.8.2/xmview/utils_um.c:73: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 x[sizeof(long)]; data/umview-0.8.2/xmview/utils_um.c:90: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(laddr, &u.x[n], m = MIN(sizeof(long) - n, len)); data/umview-0.8.2/xmview/utils_um.c:104: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(laddr, u.x, m = MIN(sizeof(long), len)); data/umview-0.8.2/xmview/utils_um.c:145: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 x[sizeof(long)]; data/umview-0.8.2/xmview/utils_um.c:160: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(laddr, &u.x[n], m = MIN(sizeof(long)-n,len)); data/umview-0.8.2/xmview/utils_um.c:177: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(laddr, u.x, m = MIN(sizeof(long), len)); data/umview-0.8.2/xmview/utils_um.c:218: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 x[sizeof(long)]; data/umview-0.8.2/xmview/utils_um.c:235: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(&u.x[n], laddr, m = MIN(sizeof(long) - n, len)); data/umview-0.8.2/xmview/utils_um.c:255: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(u.x, laddr, m = MIN(sizeof(long), len)); data/umview-0.8.2/xmview/utils_um.c:297:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char x[sizeof(long)]; data/umview-0.8.2/xmview/utils_um.c:313: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(&u.x[n], laddr, m = MIN(sizeof(long)-n,len)); data/umview-0.8.2/xmview/utils_um.c:338: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(u.x, laddr, m = MIN(sizeof(long), len)); data/umview-0.8.2/include/umdev.h:45:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int (*read) (char, dev_t, char *, size_t, loff_t, struct dev_info *); data/umview-0.8.2/include/umnet.h:62:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t (*read) (int, void *, size_t); data/umview-0.8.2/um_cmd/viewname.c:84: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 (vi.viewname) > 0) data/umview-0.8.2/um_cmd/viewsu.c:88: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). if (strncmp(tag,s,strlen(tag))!=0) continue; data/umview-0.8.2/um_cmd/viewsu.c:89: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). s+=strlen(tag); data/umview-0.8.2/um_cmd/viewsu.c:94: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). s[strlen(s)-1]=0; data/umview-0.8.2/um_rsc/librsc/src/aconv.c:521: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). return (strlen(s) + 1 ) * aconv_char_size(from, to); data/umview-0.8.2/um_rsc/librsc/src/aconv.c:529:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(p, s, aconv_string_size(s, from, to)); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:1374: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). var_data += (strlen(access_req->pathname) + 1); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:1428: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). var_data += (strlen(chdir_req->path) + 1); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:1446: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). var_data += (strlen(chmod_req->path) + 1); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:1464: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). var_data += (strlen(chown_req->path) + 1); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:1482: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). var_data += (strlen(chown32_req->path) + 1); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:1536: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). var_data += (strlen(fgetxattr_req->name) + 1); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:1608: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). var_data += (strlen(getxattr_req->path) + 1); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:1613: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). var_data += (strlen(getxattr_req->name) + 1); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:1631: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). var_data += (strlen(lchown_req->path) + 1); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:1649: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). var_data += (strlen(lchown32_req->path) + 1); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:1667: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). var_data += (strlen(lgetxattr_req->path) + 1); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:1672: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). var_data += (strlen(lgetxattr_req->name) + 1); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:1690: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). var_data += (strlen(link_req->oldpath) + 1); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:1695: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). var_data += (strlen(link_req->newpath) + 1); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:1713: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). var_data += (strlen(lstat64_req->path) + 1); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:1731: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). var_data += (strlen(mkdir_req->pathname) + 1); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:1749: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). var_data += (strlen(mount_req->source) + 1); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:1754: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). var_data += (strlen(mount_req->target) + 1); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:1759: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). var_data += (strlen(mount_req->filesystemtype) + 1); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:1764: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). var_data += (strlen(mount_req->data) + 1); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:1782: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). var_data += (strlen(open_req->pathname) + 1); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:1818: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). var_data += (strlen(readlink_req->path) + 1); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:1859: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). var_data += (strlen(rename_req->oldpath) + 1); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:1864: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). var_data += (strlen(rename_req->newpath) + 1); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:1882: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). var_data += (strlen(rmdir_req->pathname) + 1); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:2018: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). var_data += (strlen(stat64_req->path) + 1); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:2036: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). var_data += (strlen(statfs64_req->path) + 1); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:2054: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). var_data += (strlen(symlink_req->oldpath) + 1); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:2059: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). var_data += (strlen(symlink_req->newpath) + 1); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:2077: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). var_data += (strlen(truncate64_req->path) + 1); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:2095: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). var_data += (strlen(umount2_req->target) + 1); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:2113: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). var_data += (strlen(unlink_req->pathname) + 1); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:2131: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). var_data += (strlen(utime_req->filename) + 1); data/umview-0.8.2/um_rsc/librsc/src/rsc_server.c:2154: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). var_data += (strlen(utimes_req->filename) + 1); data/umview-0.8.2/um_rsc/librsc/src/utils.c:80:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). n = read(fd, buf, nbytes); data/umview-0.8.2/um_rsc/librsc/tests/test_ioctl_mngmt.c:140:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &req, sizeof(struct ioctl_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:103:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:106:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:147:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:150:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:192:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:195:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:236:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:239:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:280:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:283:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:324:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:327:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:406:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:515:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:583:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:586:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:627:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:630:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:683:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, &in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:698: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). assert(size == strlen(str[i]) + 1); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:723: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). int size = strlen(str[i]) + 1; data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:725:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:728:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:769:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:772:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:813:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:816:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:857:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:860:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:901:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:904:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:945:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:948:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:989:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:992:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:1033:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:1036:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:1092:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, &in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:1105:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, &in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:1165:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, &in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:1178:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, &in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:1267:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:1290:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:1345:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:1396:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:1449:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:1480:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:1510:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:1542:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:1593:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:1673:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:1752:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:1893:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_libaconv.c:1953:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, in, size) == size); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:80:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:114:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:119:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:167:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:195:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:200:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:244:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:265:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:270:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:313:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:339:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:344:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:387:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:409:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:414:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:458:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:478:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:483:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:525:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:546:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:551:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:594:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:616:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:621:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:670:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:698:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:703:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:748:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:775:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:780:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:824:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:851:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:856:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:900:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:921:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:926:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:969:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:989:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:994:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1036:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1058:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1063:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1107:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1127:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1132:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1174:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1195:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1200:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1243:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1263:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1268:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1310:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1331:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1336:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1379:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1401:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1406:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1455:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1483:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1488:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1533:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1553:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1558:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1600:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1629:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1634:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1680:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1707:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1712:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1756:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1783:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1788:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1832:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1852:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1857:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1899:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1920:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1925:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1968:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:1996:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2001:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2046:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2074:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2079:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2123:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2151:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2156:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2200:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2230:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2235:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2281:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2308:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2313:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2356:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2385:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2390:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2436:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2458:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2463:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2512:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2540:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2545:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2590:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2619:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2624:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2670:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2691:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2696:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2739:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2760:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2765:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2808:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2830:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2835:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2879:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2906:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2911:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2955:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2976:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:2981:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3024:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3033: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). assert(compare_mem(local->data, in->data, (strlen(in->data) + 1))); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3048:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3053:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3066:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(compare_mem(req->data, input->data, (strlen(input->data) + 1))); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3099:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3120:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3125:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3168:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3197:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3202:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3248:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3271:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3276:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3321:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3349:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3354:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3399:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3427:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3432:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3480:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3513:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3518:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3565:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3596:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3601:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3648:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3669:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3674:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3717:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3737:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3742:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3787:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3814:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3819:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3865:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3890:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3895:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3942:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3963:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:3968:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4011:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4032:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4037:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4080:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4104:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4109:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4155:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4176:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4181:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4224:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4245:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4250:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4293:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4315:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4320:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4364:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4391:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4396:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4440:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4467:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4472:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4516:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4537:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4542:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4585:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4606:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4611:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4654:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4675:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4680:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4723:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4749:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4754:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4797:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4817:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4822:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4864:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4885:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4890:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4933:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4955:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:4960:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:5004:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:5026:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_syscall_execution.c:5031:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc/tests/test_type_equality.c:724:2: [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. strcpy(a.version, "1"); data/umview-0.8.2/um_rsc/librsc/tests/test_type_equality.c:730:2: [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. strcpy(b.version, "1"); data/umview-0.8.2/um_rsc/librsc/tests/test_type_equality.c:745:4: [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. strcpy(c.version, "1"); data/umview-0.8.2/um_rsc/librsc/tests/test_type_equality.c:756:4: [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. strcpy(c.version, "1"); data/umview-0.8.2/um_rsc/librsc/tests/test_type_equality.c:767:4: [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. strcpy(c.version, "1"); data/umview-0.8.2/um_rsc/librsc/tests/test_type_equality.c:789:4: [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. strcpy(c.version, "1"); data/umview-0.8.2/um_rsc/librsc/tests/tests.c:61:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, &buf, sizeof(sarch)) == sizeof(sarch)); data/umview-0.8.2/um_rsc/librsc/tests/tests.c:88:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read(fd, &buf, sizeof(carch)) == sizeof(carch)); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:78: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). path = calloc(1, strlen(str) + 1); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:81:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(path, str, strlen(str) + 1); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:81: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). strncpy(path, str, strlen(str) + 1); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:159: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). size_pathname = (strlen(pathname) + 1); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:258: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). size_path = (strlen(path) + 1); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:286: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). size_path = (strlen(path) + 1); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:315: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). size_path = (strlen(path) + 1); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:345: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). size_path = (strlen(path) + 1); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:705: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). size_name = (strlen(name) + 1); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:918: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). size_path = (strlen(path) + 1); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:926: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). size_name = (strlen(name) + 1); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:958: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). size_path = (strlen(path) + 1); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:988: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). size_path = (strlen(path) + 1); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:1020: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). size_path = (strlen(path) + 1); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:1028: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). size_name = (strlen(name) + 1); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:1062: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_oldpath = (strlen(oldpath) + 1); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:1070: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_newpath = (strlen(newpath) + 1); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:1137: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). size_path = strlen(path) + 1; data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:1168: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). size_pathname = (strlen(pathname) + 1); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:1202: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). size_source = (strlen(source) + 1); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:1209: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). size_target = (strlen(target) + 1); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:1216: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). size_filesystemtype = (strlen(filesystemtype) + 1); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:1223: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). size_data = (strlen(data) + 1); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:1304: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). size_pathname = (strlen(pathname) + 1); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:1410: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). size_path = (strlen(path) + 1); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:1511: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_oldpath = (strlen(oldpath) + 1); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:1519: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_newpath = (strlen(newpath) + 1); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:1548: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). size_pathname = (strlen(pathname) + 1); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:1656: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). size_name = (strlen(name) + 1); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:1685: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). size_name = strlen(name) + 1; data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:1833: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). size_path = (strlen(path) + 1); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:1863: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). size_path = (strlen(path) + 1); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:1895: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_oldpath = (strlen(oldpath) + 1); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:1903: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_newpath = (strlen(newpath) + 1); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:1931: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). size_target = (strlen(target) + 1); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:1980: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). size_pathname = (strlen(pathname) + 1); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:2010: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). size_filename = (strlen(filename) + 1); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:2051: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). size_filename = (strlen(filename) + 1); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_request.c:2154: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). size_path = (strlen(path) + 1); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_write_pointers.c:280: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). str_len = strlen(str); data/umview-0.8.2/um_rsc/librsc/tests/tools/fill_write_pointers.c:345:5: [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. strcpy(buf->version, "1"); data/umview-0.8.2/um_rsc/librsc_templates/input/templates/client.c:219:43: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). <%# Here there is some code to manage the read pointer arguments, if they exist. %> data/umview-0.8.2/um_rsc/librsc_templates/input/templates/client.c:221:39: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ### If the system call has some read pointers, I define one auxiliary C variable data/umview-0.8.2/um_rsc/librsc_templates/input/templates/client.c:223:77: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ### <original name of the variable containing the size of the pointed read memory>_value data/umview-0.8.2/um_rsc/librsc_templates/input/templates/client.c:224:54: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ### These variables are defined to manage NULL read pointers. data/umview-0.8.2/um_rsc/librsc_templates/input/templates/client.c:226:28: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # I iterate over the read pointers data/umview-0.8.2/um_rsc/librsc_templates/input/templates/client.c:231:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # read pointer argument "arg" a "size variable" data/umview-0.8.2/um_rsc/librsc_templates/input/templates/client.c:326:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # For each read pointer argument "arg" I initialize two variables used some rows below. data/umview-0.8.2/um_rsc/librsc_templates/input/templates/client.c:347:74: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). <%# I create a list of all the size variable. To do so I select only the read arguments data/umview-0.8.2/um_rsc/librsc_templates/input/templates/client.c:349:47: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). <% size_list = syscall.args.select{|arg| arg.read?}.collect do |arg| data/umview-0.8.2/um_rsc/librsc_templates/input/templates/client.c:422:68: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # the right memory area for the iovec structure. If there aren't read pointer data/umview-0.8.2/um_rsc/librsc_templates/input/templates/client.c:423:17: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. # "vcount" is equal to 1 because there is only the request header, otherwise I data/umview-0.8.2/um_rsc/librsc_templates/input/templates/client.c:424:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # have to add the number of read pointers; to do so I select them from the argument data/umview-0.8.2/um_rsc/librsc_templates/input/templates/client.c:428:50: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). vcount = 1 + syscall.args.select{|arg| arg.read?}.length data/umview-0.8.2/um_rsc/librsc_templates/input/templates/client.c:451:40: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). <%# I assign to the iovec elements the read pointers %> data/umview-0.8.2/um_rsc/librsc_templates/input/templates/client.c:542:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). <%#There is more than 1 read argument %> data/umview-0.8.2/um_rsc/librsc_templates/input/templates/client.c:581:51: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read_sizes = syscall.args.select{|arg| arg.read?}.collect{|arg| arg.size} data/umview-0.8.2/um_rsc/librsc_templates/input/templates/server.c:310:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). <% if(arg.read?) %> data/umview-0.8.2/um_rsc/librsc_templates/input/templates/server.c:317:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). <% if(not arg.read?) %> data/umview-0.8.2/um_rsc/librsc_templates/input/templates/server.c:331:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if(arg.read?) %> data/umview-0.8.2/um_rsc/librsc_templates/input/templates/test_syscall_execution.c:100:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, &resp_hd, sizeof(struct sys_resp_header)); data/umview-0.8.2/um_rsc/librsc_templates/input/templates/test_syscall_execution.c:157:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, req_hd, sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc_templates/input/templates/test_syscall_execution.c:162:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(fd, (void *)req_hd + sizeof(struct sys_req_header), req_size - sizeof(struct sys_req_header)); data/umview-0.8.2/um_rsc/librsc_templates/input/templates/test_syscall_execution.c:172:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). <% # Only read pointers and non-pointer args can be checked data/umview-0.8.2/um_rsc/librsc_templates/input/unistd_files/unistd_ppc.h:385:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). extern int read(int fd, char *buf, off_t count); data/umview-0.8.2/um_rsc/module/parse_args.c:61: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). name_len = len - strlen(c); data/umview-0.8.2/um_rsc/module/parse_args.c:83: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). int arg_len = strlen(arg); data/umview-0.8.2/um_rsc/module/parse_args.c:92:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(*(opt[i].var), arg, arg_len); data/umview-0.8.2/um_rsc/module/parse_args.c:98:130: [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). GDEBUG(2, "rsc_parse_opt: Option name = '%s', option argument = '%s' (len = %d, addr = %p)\n", opt[i].name, *(opt[i].var), strlen(*(opt[i].var)), opt[i].var); data/umview-0.8.2/um_rsc/module/parse_args.c:120: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). len_str = strlen(init_args); data/umview-0.8.2/um_rsc/module/parse_args.c:138:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(str, init_args + first, len); data/umview-0.8.2/um_rsc/module/um_rsc.c:260:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). SERVICESYSCALL(s, read, rscc_read); data/umview-0.8.2/um_rsc/module/utils.c:79:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). n = read(fd, buf, nbytes); data/umview-0.8.2/um_rsc/server/rsc_server.c:464:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nread = read(client->fd, buf, size); data/umview-0.8.2/um_testmodule/real.c:124:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). SERVICESYSCALL(s, read, read); data/umview-0.8.2/um_testmodule/real.c:124:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). SERVICESYSCALL(s, read, read); data/umview-0.8.2/um_testmodule/sockettest.c:147:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). SERVICESYSCALL(s, read, read); data/umview-0.8.2/um_testmodule/sockettest.c:147:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). SERVICESYSCALL(s, read, read); data/umview-0.8.2/um_testmodule/sockip.c:183:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). SERVICESYSCALL(s, read, read); data/umview-0.8.2/um_testmodule/sockip.c:183:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). SERVICESYSCALL(s, read, read); data/umview-0.8.2/um_testmodule/unreal.c:252:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). SERVICESYSCALL(s, read, read); data/umview-0.8.2/um_testmodule/unreal.c:252:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). SERVICESYSCALL(s, read, read); data/umview-0.8.2/um_viewfs/oldviewfs/gd64helper.c:294: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). newsize = sizeof(struct dirent64) - NAME_MAX + strlen(d_name); data/umview-0.8.2/um_viewfs/oldviewfs/gd64helper.c:298:71: [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). GDEBUG(10, "sizes: %d %d %d %d", sizeof(struct dirent64) ,NAME_MAX , strlen(d_name), newsize); data/umview-0.8.2/um_viewfs/oldviewfs/modifshide.c:79: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). int l = strlen(path); data/umview-0.8.2/um_viewfs/oldviewfs/modifshide.c:366: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). tmp = new->target_parent + strlen(new->target_parent); // so *tmp == '\0' data/umview-0.8.2/um_viewfs/oldviewfs/modifshide.c:375: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(new->target_parent) == 0) data/umview-0.8.2/um_viewfs/oldviewfs/modifshide.c:502: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). retval = ((strlen((char*) arg) == strlen(FS_TYPE)) && data/umview-0.8.2/um_viewfs/oldviewfs/modifshide.c:502:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). retval = ((strlen((char*) arg) == strlen(FS_TYPE)) && data/umview-0.8.2/um_viewfs/oldviewfs/modifshide.c:503:37: [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((char*) arg, FS_TYPE, strlen(FS_TYPE)) == 0)); data/umview-0.8.2/um_viewfs/oldviewfs/viewfs.c:465:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(new); data/umview-0.8.2/um_viewfs/oldviewfs/viewfs.c:590: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 delta = strlen(layer->mountpoint); data/umview-0.8.2/um_viewfs/oldviewfs/viewfs.c:592: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). assert(strncmp(path, layer->mountpoint, strlen(layer->mountpoint)) == 0); data/umview-0.8.2/um_viewfs/oldviewfs/viewfs.c:603: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). extend_path(tmp, layer->testpath_user, (2 * PATH_MAX) - strlen(layer->vfspath), T_META); data/umview-0.8.2/um_viewfs/oldviewfs/viewfs.c:606:95: [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). GDEBUG(2, "extend_path(\"%s\", \"%s\", %d, 0x%02x)", tmp, layer->testpath_user, (2*PATH_MAX)-strlen(layer->vfspath), T_DATA); data/umview-0.8.2/um_viewfs/oldviewfs/viewfs.c:617: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 delta = strlen(layer->mountpoint); data/umview-0.8.2/um_viewfs/oldviewfs/viewfs.c:618: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). assert(strncmp(path, layer->mountpoint, strlen(layer->mountpoint)) == 0); data/umview-0.8.2/um_viewfs/oldviewfs/viewfs.c:626: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). extend_path(tmp, layer->datapath_user, (2 * PATH_MAX) - strlen(layer->vfspath), T_DATA | T_DIR); data/umview-0.8.2/um_viewfs/oldviewfs/viewfs.c:628: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). extend_path(tmp, layer->datapath_user, (2 * PATH_MAX) - strlen(layer->vfspath), T_DATA); data/umview-0.8.2/um_viewfs/oldviewfs/viewfs.c:783: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). pos = strlen(path) - 1; data/umview-0.8.2/um_viewfs/oldviewfs/viewfs.c:807: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(path) < (N_LEN + 1)) data/umview-0.8.2/um_viewfs/oldviewfs/viewfs.c:809:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(&(path[1]), N_RMETA, N_LEN + 1); data/umview-0.8.2/um_viewfs/oldviewfs/viewfs.c:1018: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). retval = ((strlen((char*) arg) == 6) && data/umview-0.8.2/um_viewfs/oldviewfs/viewfs.c:1069:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(new->testpath, source, 2 * PATH_MAX); data/umview-0.8.2/um_viewfs/oldviewfs/viewfs.c:1070: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). new->testpath_user = &(new->testpath[strlen(source)]); data/umview-0.8.2/um_viewfs/oldviewfs/viewfs.c:1074:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(new->datapath, source, 2 * PATH_MAX); data/umview-0.8.2/um_viewfs/oldviewfs/viewfs.c:1075: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). new->datapath_user = &(new->datapath[strlen(source)]); data/umview-0.8.2/um_viewfs/viewfs.c:115:16: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). mode_t mask = umask( 0 ); data/umview-0.8.2/um_viewfs/viewfs.c:116:2: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(mask); data/umview-0.8.2/um_viewfs/viewfs.c:147: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). char *s=path+(strlen(path)-1); data/umview-0.8.2/um_viewfs/viewfs.c:180:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((nread=read(fdin,buf,4096))>0) { data/umview-0.8.2/um_viewfs/viewfs.c:297:46: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((fd=open(infofile,O_RDONLY))>=0 && (len=read(fd,hexstat,60)) >= 24) { data/umview-0.8.2/um_viewfs/viewfs.c:344:56: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((fd=open(infofile,O_RDWR|O_CREAT,0644))<0 || (len=read(fd,hexstat,60)) < 24) data/umview-0.8.2/um_viewfs/viewfs.c:553: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). for (tmpchp=path+(strlen(path)-1); *tmpchp!='/' && tmpchp>path; tmpchp--) data/umview-0.8.2/um_viewfs/viewfs.c:591: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(*exceptions); data/umview-0.8.2/um_viewfs/viewfs.c:1537: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). offset=head->de.d_off+WORDALIGN(12+strlen(head->de.d_name)); data/umview-0.8.2/um_viewfs/viewfs.c:1555:54: [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->de.d_reclen=WORDALIGN(SIZEDIRENT64NONAME+strlen(de->d_name)+1); data/umview-0.8.2/um_viewfs/viewfs.c:1556: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). new->de.d_off=offset=offset+WORDALIGN(12+strlen(de->d_name)); data/umview-0.8.2/um_viewfs/viewfs.c:1690: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). strlen(target),&s); data/umview-0.8.2/um_viewfs/viewfs.c:1709: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). new->sourcelen = strlen(source); data/umview-0.8.2/um_viewfs/viewfs.c:1713: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). new->pathlen = strlen(target); data/umview-0.8.2/um_viewfs/viewfs.c:1769:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). SERVICESYSCALL(s, read, read); data/umview-0.8.2/um_viewfs/viewfs.c:1769:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). SERVICESYSCALL(s, read, read); data/umview-0.8.2/um_viewfs/viewfs0args.c:113:44: [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(sepopts[i],viewfsargtab[j].arg,strlen(viewfsargtab[j].arg)) != 0; j++) data/umview-0.8.2/um_viewfs/viewfs0args.c:120: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). exceptions[nexceptions]=sepopts[i]+strlen(viewfsargtab[j].arg); data/umview-0.8.2/umbinfmt/umbinfmt.c:141: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). int suffixpos=strlen(req->path)-scan->len; data/umview-0.8.2/umbinfmt/umbinfmt.c:217: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). strncmp(sepopts[i],devargtab[j].arg,strlen(devargtab[j].arg)) != 0; j++) data/umview-0.8.2/umbinfmt/umbinfmt.c:220:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). devargtab[j].fun(sepopts[i]+strlen(devargtab[j].arg),arg); data/umview-0.8.2/umbinfmt/umbinfmt.c:287: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). new->binfmt_ht=ht_tab_add(CHECKBINFMT,source,strlen(source),&s,checkbinfmt,new); data/umview-0.8.2/umbinfmt/umbinfmt.c:335: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). char *reduced=path+strlen(fc->path); data/umview-0.8.2/umbinfmt/umbinfmt.c:365:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). de->d_reclen=SIZEOFPUREDIRENT+strlen(name)+1; data/umview-0.8.2/umbinfmt/umbinfmt.c:382: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). totlen+=SIZEOFPUREDIRENT+strlen(scan->name)+1; data/umview-0.8.2/umbinfmt/umbinfmt.c:426: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(rv); data/umview-0.8.2/umbinfmt/umbinfmt.c:444: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(rv); data/umview-0.8.2/umbinfmt/umbinfmt.c:596:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf,(ft->contents)+ft->pos,rv); data/umview-0.8.2/umbinfmt/umbinfmt.c:664:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(regstr,buf+1,count-1); data/umview-0.8.2/umbinfmt/umbinfmt.c:895:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). SERVICESYSCALL(s, read, umbinfmt_read); data/umview-0.8.2/umdev/umdev.c:112: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). char *suffix=path+strlen(fc->path); data/umview-0.8.2/umdev/umdev.c:154: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). if (strlen(path) > strlen(umdev->path)) data/umview-0.8.2/umdev/umdev.c:154: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). if (strlen(path) > strlen(umdev->path)) data/umview-0.8.2/umdev/umdev.c:155: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). *dev=makedev(major(umdev->dev),minor(umdev->dev)+atoi(path+strlen(umdev->path))); data/umview-0.8.2/umdev/umdev.c:287: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). strncmp(sepopts[i],devargtab[j].arg,strlen(devargtab[j].arg)) != 0; j++) data/umview-0.8.2/umdev/umdev.c:290:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). devargtab[j].fun(sepopts[i]+strlen(devargtab[j].arg),arg); data/umview-0.8.2/umdev/umdev.c:551:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (ft->umdev->devops->read) data/umview-0.8.2/umdev/umdev.c:552:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). rv = ft->umdev->devops->read( data/umview-0.8.2/umdev/umdev.c:943:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). SERVICESYSCALL(s, read, umdev_read); data/umview-0.8.2/umdevmbr/umdevramdisk.c:106:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len=strlen(s); data/umview-0.8.2/umdevmbr/umdevvd.c:280:2: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read (fd, buf, sizeof (buf)); data/umview-0.8.2/umdevtap/umdevtap.c:111:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(name,ifr->ifr_name,IFNAMSIZ); data/umview-0.8.2/umfuse/fuse_opt.c:117: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). unsigned oldlen = strlen(*opts); data/umview-0.8.2/umfuse/fuse_opt.c:118: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). newopts = realloc(*opts, oldlen + 1 + strlen(opt) + 1); data/umview-0.8.2/umfuse/fuse_opt.c:155:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int arglen = strlen(arg); data/umview-0.8.2/umfuse/fuse_opt.c:242: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). newarg = malloc(sep + strlen(param) + 1); data/umview-0.8.2/umfuse/umfuse.c:195: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(*exceptions); data/umview-0.8.2/umfuse/umfuse.c:329: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). int x=strlen (path)-1; data/umview-0.8.2/umfuse/umfuse.c:408: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). opts[strlen(opts)-1]=0; data/umview-0.8.2/umfuse/umfuse.c:410:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(opts,"rw",PATH_MAX); data/umview-0.8.2/umfuse/umfuse.c:637: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). new->fuse->pathlen = strlen(target); data/umview-0.8.2/umfuse/umfuse.c:747: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). new->de.d_reclen=WORDALIGN(SIZEDIRENT64NONAME+strlen(name)+1); data/umview-0.8.2/umfuse/umfuse.c:749: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). new->de.d_off=h->offset=h->offset+WORDALIGN(12+strlen(name)); data/umview-0.8.2/umfuse/umfuse.c:774: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). new->de.d_reclen=WORDALIGN(SIZEDIRENT64NONAME+strlen(name)+1); data/umview-0.8.2/umfuse/umfuse.c:776: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). new->de.d_off=h->offset=h->offset+WORDALIGN(12+strlen(name)); data/umview-0.8.2/umfuse/umfuse.c:822: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->de.d_reclen=WORDALIGN(SIZEDIRENT64NONAME+strlen(de->d_name)+1); data/umview-0.8.2/umfuse/umfuse.c:823: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). new->de.d_off=h->offset=h->offset+WORDALIGN(12+strlen(de->d_name)); data/umview-0.8.2/umfuse/umfuse.c:1140:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). rv = fc->fuse->fops.read( data/umview-0.8.2/umfuse/umfuse.c:1874:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). rv = fc->fuse->fops.read( data/umview-0.8.2/umfuse/umfuse.c:2052:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). SERVICESYSCALL(s, read, umfuse_read); data/umview-0.8.2/umfuse/umfuseargs.c:229: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). strncmp(sepopts[i],fuseargtab[j].arg,strlen(fuseargtab[j].arg)) != 0; j++) data/umview-0.8.2/umfuse/umfuseargs.c:251: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). pre=sepopts[i]+strlen(fuseargtab[j].arg); data/umview-0.8.2/umfuse/umfuseargs.c:254: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). post=sepopts[i]+strlen(fuseargtab[j].arg); data/umview-0.8.2/umfuse/umfuseargs.c:257: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). fmt=sepopts[i]+strlen(fuseargtab[j].arg); data/umview-0.8.2/umfuse/umfuseargs.c:260: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). fc->uid=atoi(sepopts[i]+strlen(fuseargtab[j].arg)); data/umview-0.8.2/umfuse/umfuseargs.c:263: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). fc->gid=atoi(sepopts[i]+strlen(fuseargtab[j].arg)); data/umview-0.8.2/umfuse/umfuseargs.c:266: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). exceptions[nexceptions]=sepopts[i]+strlen(fuseargtab[j].arg); data/umview-0.8.2/umfuse/umfuseargs.c:282: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). int len=PATH_MAX-strlen(newopts); data/umview-0.8.2/umfuse/umfuseargs.c:285:7: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is low because the source is a constant character. strncat(newopts,",",len--); data/umview-0.8.2/umfuse/umfuseargs.c:287:6: [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(newopts,sepopts[i],len); data/umview-0.8.2/umfuse_modules/umfuseramfile.c:228:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((rf->stat.st_size = read(srcfd, rf->buf, rf->maxlen)) < 0) data/umview-0.8.2/ummisc/ummisc.c:126: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). path+=strlen(fse->name); data/umview-0.8.2/ummisc/ummisc.c:296: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). case SEEK_END: ft->pos=strlen(ft->buf)+offset; break; data/umview-0.8.2/ummisc/ummisc.c:308: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). size+=WORDALIGN(SIZEDIRENT64NONAME+strlen(fsdir->name)+1); data/umview-0.8.2/ummisc/ummisc.c:323: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). this->d_reclen=WORDALIGN(SIZEDIRENT64NONAME+strlen(fsdir->name)+1); data/umview-0.8.2/ummisc/ummisc.c:390: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). new->pathlen = strlen(target); data/umview-0.8.2/ummisc/ummisc.c:464:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). SERVICESYSCALL(s, read, ummisc_read); data/umview-0.8.2/ummisc/umproc.c:73:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((n=read(fd,buf,128)) > 0) data/umview-0.8.2/ummisc/umproc.c:175: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). case SEEK_END: ft->pos=strlen(ft->buf)+offset; break; data/umview-0.8.2/ummisc/umproc.c:203:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). SERVICESYSCALL(s, read, umproc_read); data/umview-0.8.2/ummisc_modules/ummisctime.c:155: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). rv=strlen(value); data/umview-0.8.2/ummisc_modules/ummisctime.c:165: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). rv=strlen(value); data/umview-0.8.2/ummisc_modules/ummiscuname.c:69:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(field,name,len); data/umview-0.8.2/ummisc_modules/ummiscuname.c:79:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(field,name,len); data/umview-0.8.2/ummisc_modules/ummiscuname.c:102: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). return strlen(field); data/umview-0.8.2/ummisc_modules/ummiscuname.c:109:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(field,value,_UTSNAME_SYSNAME_LENGTH); data/umview-0.8.2/umnet/umnet.c:189: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). strlen(DEFAULT_NET_PATH),&s); data/umview-0.8.2/umnet/umnet.c:472:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if(ft->umnet->netops->read) { data/umview-0.8.2/umnet/umnet.c:473:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return ft->umnet->netops->read( data/umview-0.8.2/umnet/umnet.c:611: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). new->pathlen = strlen(target); data/umview-0.8.2/umnet/umnet.c:819:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). SERVICESYSCALL(s, read, umnet_read); data/umview-0.8.2/umnet_modules/umnetcurrent.c:126:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). .read=read, data/umview-0.8.2/umnet_modules/umnetlink.c:229:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). .read=read, data/umview-0.8.2/umnet_modules/umnetnative.c:125:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). .read=read, data/umview-0.8.2/umnetlwipv6/umnetlwipv6.c:318:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). UMNETLWIPV6S(read); data/umview-0.8.2/umpyew/umpyew.c:389:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf, PyString_AsString(PyTuple_GetItem(pRetVal, 2)), bufsiz); data/umview-0.8.2/umpyew/umpyew.c:394: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). return strlen(buf); data/umview-0.8.2/umpyew/umpyew.c:445:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PYINSYS(read, 2); data/umview-0.8.2/umpyew/umpyew.c:651: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). if (!strlen(initargs)) data/umview-0.8.2/umpyew/umpyew.c:768:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PYTHON_SYSCALL(read, sysRead); data/umview-0.8.2/xmview/canonicalize.c:172: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(cdata->end); data/umview-0.8.2/xmview/canonicalize.c:245: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). .rootlen=strlen(root), data/umview-0.8.2/xmview/canonicalize.c:263:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int namelen=strlen(name); data/umview-0.8.2/xmview/canonicalize.c:284: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). int namelen=strlen(name); data/umview-0.8.2/xmview/canonicalize.c:285:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int cwdlen=strlen(cwd); data/umview-0.8.2/xmview/capture_km.c:82: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). rv=r_write(2,s,strlen(s)); data/umview-0.8.2/xmview/capture_um.c:83: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). rv=r_write(2,s,strlen(s)); data/umview-0.8.2/xmview/hashtab.c:476: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). opts[strlen(opts)-1]=0; data/umview-0.8.2/xmview/hashtab.c:478:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(opts,"rw",PATH_MAX); data/umview-0.8.2/xmview/hashtab.c:488: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). rv=internal_ht_tab_add(type, addpath, strlen(addpath), data/umview-0.8.2/xmview/loginshell.c:157: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). usernamelen=strlen(username); data/umview-0.8.2/xmview/loginshell.c:173: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). line=loginshell+strlen(loginshell); data/umview-0.8.2/xmview/loginshell.h:10: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). int len=strlen(argv0); data/umview-0.8.2/xmview/modutils.c:79: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). tplen = strlen(modname) + data/umview-0.8.2/xmview/modutils.c:80:3: [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(MODULES_EXT) + 2 + // + 1 is for a '/' and + 1 for \0 data/umview-0.8.2/xmview/modutils.c:81: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). MAX(strlen(MODULES_DIR), data/umview-0.8.2/xmview/modutils.c:82: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). strlen(homedir) + strlen(USER_MODULES_DIR)); data/umview-0.8.2/xmview/modutils.c:82: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). strlen(homedir) + strlen(USER_MODULES_DIR)); data/umview-0.8.2/xmview/sctab.c:215: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). int lastslash=strlen(filename)-1; data/umview-0.8.2/xmview/sctab.c:330: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). int pathlen=WORDALIGN(strlen(path)); data/umview-0.8.2/xmview/sctab.c:714:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). pc->fdfs->cwd=realloc(path,strlen(path)+1); data/umview-0.8.2/xmview/sctab.c:814:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(vi->viewname,viewname,_UTSNAME_LENGTH-1); data/umview-0.8.2/xmview/sctab.c:1191:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((char *)_laddr,(char *)addr, len); data/umview-0.8.2/xmview/sctab.c:1223:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((char *)addr,(char *)_laddr,len); data/umview-0.8.2/xmview/services.c:329: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). hte=ht_tab_add(CHECKMODULE,s->name,strlen(s->name),s,NULL,pinit(args)); data/umview-0.8.2/xmview/services.c:405: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). return(strlen(buf)); data/umview-0.8.2/xmview/um_basicio.c:607: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). memmove(dirp->d_name,dirp64->d_name,strlen(dirp64->d_name)+1); data/umview-0.8.2/xmview/um_exec.c:221:3: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(fd, buf, BINFMTBUFLEN); data/umview-0.8.2/xmview/um_exec.c:248: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). int len=strlen(pc->fdfs->root); data/umview-0.8.2/xmview/um_exec.c:287: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). filenamelen=WORDALIGN(strlen(UMBINWRAP)); data/umview-0.8.2/xmview/um_exec.c:288: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). arg0len=WORDALIGN(strlen(umbinfmtarg0)); data/umview-0.8.2/xmview/um_services.c:60: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). ht_tab_add(type,alias,strlen(alias),NULL,NULL,strdup(fsname)); data/umview-0.8.2/xmview/um_uname.c:82:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(name)+1 > size) { data/umview-0.8.2/xmview/um_wdm.c:66:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int rootlen=strlen(root); data/umview-0.8.2/xmview/um_wdm.c:70: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). len=strlen(cwd)+1; data/umview-0.8.2/xmview/umbinwrap.c:61:17: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). mode_t oldmask=umask(0077); data/umview-0.8.2/xmview/umbinwrap.c:63:2: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(oldmask); data/umview-0.8.2/xmview/umbinwrap.c:68:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((n=read(fdf,buf,BUFSIZ)) > 0) data/umview-0.8.2/xmview/umproc.c:300:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). um_tmpfile_tail=um_tmpfile+(strlen(path)-7); data/umview-0.8.2/xmview/umproc.c:301: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). um_tmpfile_len=strlen(um_tmpfile); ANALYSIS SUMMARY: Hits = 1063 Lines analyzed = 89246 in approximately 2.45 seconds (36375 lines/second) Physical Source Lines of Code (SLOC) = 67154 Hits@level = [0] 786 [1] 559 [2] 331 [3] 26 [4] 77 [5] 70 Hits@level+ = [0+] 1849 [1+] 1063 [2+] 504 [3+] 173 [4+] 147 [5+] 70 Hits/KSLOC@level+ = [0+] 27.5337 [1+] 15.8293 [2+] 7.50514 [3+] 2.57617 [4+] 2.189 [5+] 1.04238 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.