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/lzo2-2.10/asm/i386/src/lzo_asm.h Examining data/lzo2-2.10/examples/dict.c Examining data/lzo2-2.10/examples/lzopack.c Examining data/lzo2-2.10/examples/overlap.c Examining data/lzo2-2.10/examples/portab.h Examining data/lzo2-2.10/examples/portab_a.h Examining data/lzo2-2.10/examples/precomp.c Examining data/lzo2-2.10/examples/precomp2.c Examining data/lzo2-2.10/examples/simple.c Examining data/lzo2-2.10/include/lzo/lzo1.h Examining data/lzo2-2.10/include/lzo/lzo1a.h Examining data/lzo2-2.10/include/lzo/lzo1b.h Examining data/lzo2-2.10/include/lzo/lzo1c.h Examining data/lzo2-2.10/include/lzo/lzo1f.h Examining data/lzo2-2.10/include/lzo/lzo1x.h Examining data/lzo2-2.10/include/lzo/lzo1y.h Examining data/lzo2-2.10/include/lzo/lzo1z.h Examining data/lzo2-2.10/include/lzo/lzo2a.h Examining data/lzo2-2.10/include/lzo/lzo_asm.h Examining data/lzo2-2.10/include/lzo/lzoconf.h Examining data/lzo2-2.10/include/lzo/lzodefs.h Examining data/lzo2-2.10/include/lzo/lzoutil.h Examining data/lzo2-2.10/lzotest/asm.h Examining data/lzo2-2.10/lzotest/db.h Examining data/lzo2-2.10/lzotest/lzotest.c Examining data/lzo2-2.10/lzotest/wrap.h Examining data/lzo2-2.10/lzotest/wrapmisc.h Examining data/lzo2-2.10/minilzo/minilzo.h Examining data/lzo2-2.10/minilzo/testmini.c Examining data/lzo2-2.10/minilzo/minilzo.c Examining data/lzo2-2.10/src/compr1b.h Examining data/lzo2-2.10/src/compr1c.h Examining data/lzo2-2.10/src/config1.h Examining data/lzo2-2.10/src/config1a.h Examining data/lzo2-2.10/src/config1b.h Examining data/lzo2-2.10/src/config1c.h Examining data/lzo2-2.10/src/config1f.h Examining data/lzo2-2.10/src/config1x.h Examining data/lzo2-2.10/src/config1y.h Examining data/lzo2-2.10/src/config1z.h Examining data/lzo2-2.10/src/config2a.h Examining data/lzo2-2.10/src/lzo1.c Examining data/lzo2-2.10/src/lzo1_99.c Examining data/lzo2-2.10/src/lzo1a.c Examining data/lzo2-2.10/src/lzo1a_99.c Examining data/lzo2-2.10/src/lzo1a_de.h Examining data/lzo2-2.10/src/lzo1b_1.c Examining data/lzo2-2.10/src/lzo1b_2.c Examining data/lzo2-2.10/src/lzo1b_3.c Examining data/lzo2-2.10/src/lzo1b_4.c Examining data/lzo2-2.10/src/lzo1b_5.c Examining data/lzo2-2.10/src/lzo1b_6.c Examining data/lzo2-2.10/src/lzo1b_7.c Examining data/lzo2-2.10/src/lzo1b_8.c Examining data/lzo2-2.10/src/lzo1b_9.c Examining data/lzo2-2.10/src/lzo1b_99.c Examining data/lzo2-2.10/src/lzo1b_9x.c Examining data/lzo2-2.10/src/lzo1b_cc.c Examining data/lzo2-2.10/src/lzo1b_cc.h Examining data/lzo2-2.10/src/lzo1b_d1.c Examining data/lzo2-2.10/src/lzo1b_d2.c Examining data/lzo2-2.10/src/lzo1b_de.h Examining data/lzo2-2.10/src/lzo1b_rr.c Examining data/lzo2-2.10/src/lzo1b_xx.c Examining data/lzo2-2.10/src/lzo1c_1.c Examining data/lzo2-2.10/src/lzo1c_2.c Examining data/lzo2-2.10/src/lzo1c_3.c Examining data/lzo2-2.10/src/lzo1c_4.c Examining data/lzo2-2.10/src/lzo1c_5.c Examining data/lzo2-2.10/src/lzo1c_6.c Examining data/lzo2-2.10/src/lzo1c_7.c Examining data/lzo2-2.10/src/lzo1c_8.c Examining data/lzo2-2.10/src/lzo1c_9.c Examining data/lzo2-2.10/src/lzo1c_99.c Examining data/lzo2-2.10/src/lzo1c_9x.c Examining data/lzo2-2.10/src/lzo1c_cc.c Examining data/lzo2-2.10/src/lzo1c_cc.h Examining data/lzo2-2.10/src/lzo1c_d1.c Examining data/lzo2-2.10/src/lzo1c_d2.c Examining data/lzo2-2.10/src/lzo1c_rr.c Examining data/lzo2-2.10/src/lzo1c_xx.c Examining data/lzo2-2.10/src/lzo1f_1.c Examining data/lzo2-2.10/src/lzo1f_9x.c Examining data/lzo2-2.10/src/lzo1f_d1.c Examining data/lzo2-2.10/src/lzo1f_d2.c Examining data/lzo2-2.10/src/lzo1x_1.c Examining data/lzo2-2.10/src/lzo1x_1k.c Examining data/lzo2-2.10/src/lzo1x_1l.c Examining data/lzo2-2.10/src/lzo1x_1o.c Examining data/lzo2-2.10/src/lzo1x_9x.c Examining data/lzo2-2.10/src/lzo1x_d1.c Examining data/lzo2-2.10/src/lzo1x_d2.c Examining data/lzo2-2.10/src/lzo1x_d3.c Examining data/lzo2-2.10/src/lzo1x_o.c Examining data/lzo2-2.10/src/lzo1y_1.c Examining data/lzo2-2.10/src/lzo1y_9x.c Examining data/lzo2-2.10/src/lzo1y_d1.c Examining data/lzo2-2.10/src/lzo1y_d2.c Examining data/lzo2-2.10/src/lzo1y_d3.c Examining data/lzo2-2.10/src/lzo1y_o.c Examining data/lzo2-2.10/src/lzo1z_9x.c Examining data/lzo2-2.10/src/lzo1z_d1.c Examining data/lzo2-2.10/src/lzo1z_d2.c Examining data/lzo2-2.10/src/lzo1z_d3.c Examining data/lzo2-2.10/src/lzo2a_9x.c Examining data/lzo2-2.10/src/lzo2a_d1.c Examining data/lzo2-2.10/src/lzo2a_d2.c Examining data/lzo2-2.10/src/lzo_crc.c Examining data/lzo2-2.10/src/lzo_dict.h Examining data/lzo2-2.10/src/lzo_init.c Examining data/lzo2-2.10/src/lzo_ptr.c Examining data/lzo2-2.10/src/lzo_ptr.h Examining data/lzo2-2.10/src/lzo_str.c Examining data/lzo2-2.10/src/lzo_supp.h Examining data/lzo2-2.10/src/lzo_util.c Examining data/lzo2-2.10/src/stats1a.h Examining data/lzo2-2.10/src/stats1b.h Examining data/lzo2-2.10/src/stats1c.h Examining data/lzo2-2.10/src/lzo_conf.h Examining data/lzo2-2.10/src/lzo_func.h Examining data/lzo2-2.10/tests/align.c Examining data/lzo2-2.10/tests/chksum.c Examining data/lzo2-2.10/tests/promote.c Examining data/lzo2-2.10/tests/sizes.c FINAL RESULTS: data/lzo2-2.10/lzotest/lzotest.c:1246:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(method_name,c->name); data/lzo2-2.10/lzotest/lzotest.c:1247:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(method_name,n); data/lzo2-2.10/lzotest/lzotest.c:1346:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(name,path); data/lzo2-2.10/lzotest/lzotest.c:1361:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(name+n,corpus[i].name); data/lzo2-2.10/lzotest/lzotest.c:1858:9: [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, f, a->ap); data/lzo2-2.10/src/lzo_supp.h:432:11: [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. # define snprintf _snprintf data/lzo2-2.10/src/lzo_supp.h:432:20: [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. # define snprintf _snprintf data/lzo2-2.10/src/lzo_supp.h:433:11: [4] (format) vsnprintf: 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. # define vsnprintf _vsnprintf data/lzo2-2.10/src/lzo_supp.h:442:11: [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. # ifndef snprintf data/lzo2-2.10/src/lzo_supp.h:443:11: [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. # define snprintf _snprintf data/lzo2-2.10/src/lzo_supp.h:443:20: [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. # define snprintf _snprintf data/lzo2-2.10/src/lzo_supp.h:445:11: [4] (format) vsnprintf: 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. # ifndef vsnprintf data/lzo2-2.10/src/lzo_supp.h:446:11: [4] (format) vsnprintf: 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. # define vsnprintf _vsnprintf data/lzo2-2.10/src/lzo_supp.h:452:11: [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. # ifndef snprintf data/lzo2-2.10/src/lzo_supp.h:453:11: [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. # define snprintf _snprintf data/lzo2-2.10/src/lzo_supp.h:453:20: [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. # define snprintf _snprintf data/lzo2-2.10/src/lzo_supp.h:455:11: [4] (format) vsnprintf: 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. # ifndef vsnprintf data/lzo2-2.10/src/lzo_supp.h:456:11: [4] (format) vsnprintf: 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. # define vsnprintf _vsnprintf data/lzo2-2.10/src/lzo_supp.h:468:13: [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. # ifndef snprintf data/lzo2-2.10/src/lzo_supp.h:469:13: [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. # define snprintf _snprintf data/lzo2-2.10/src/lzo_supp.h:469:22: [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. # define snprintf _snprintf data/lzo2-2.10/src/lzo_supp.h:471:13: [4] (format) vsnprintf: 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. # ifndef vsnprintf data/lzo2-2.10/src/lzo_supp.h:472:13: [4] (format) vsnprintf: 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. # define vsnprintf _vsnprintf data/lzo2-2.10/src/lzo_supp.h:475:13: [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. # ifndef snprintf data/lzo2-2.10/src/lzo_supp.h:476:13: [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. # define snprintf _snprintf data/lzo2-2.10/src/lzo_supp.h:476:22: [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. # define snprintf _snprintf data/lzo2-2.10/src/lzo_supp.h:491:13: [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. # define snprintf _snprintf data/lzo2-2.10/src/lzo_supp.h:491:22: [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. # define snprintf _snprintf data/lzo2-2.10/src/lzo_supp.h:492:13: [4] (format) vsnprintf: 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. # define vsnprintf _vsnprintf data/lzo2-2.10/src/lzo_supp.h:525:11: [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. # define snprintf _snprintf data/lzo2-2.10/src/lzo_supp.h:525:20: [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. # define snprintf _snprintf data/lzo2-2.10/src/lzo_supp.h:526:11: [4] (format) vsnprintf: 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. # define vsnprintf _vsnprintf data/lzo2-2.10/src/lzo_supp.h:538:13: [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. # define snprintf _snprintf data/lzo2-2.10/src/lzo_supp.h:538:22: [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. # define snprintf _snprintf data/lzo2-2.10/src/lzo_supp.h:539:13: [4] (format) vsnprintf: 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. # define vsnprintf _vsnprintf data/lzo2-2.10/src/lzo_supp.h:568:13: [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. # define snprintf _snprintf data/lzo2-2.10/src/lzo_supp.h:568:22: [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. # define snprintf _snprintf data/lzo2-2.10/src/lzo_supp.h:569:13: [4] (format) vsnprintf: 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. # define vsnprintf _vsnprintf data/lzo2-2.10/tests/sizes.c:93:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(s,"sizeof(%s)",#type); \ data/lzo2-2.10/tests/sizes.c:97:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(s,"sizeof(%s)",#type); \ data/lzo2-2.10/tests/sizes.c:101:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(s,"sizeof(%s)",#type); \ data/lzo2-2.10/src/lzo_supp.h:3314:12: [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. return getenv(s); data/lzo2-2.10/examples/dict.c:95: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). fp = fopen(in_name,"rb"); data/lzo2-2.10/examples/dict.c:200:29: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). compression_level = atoi(&argv[i++][1]); data/lzo2-2.10/examples/dict.c:236:14: [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). fp = fopen(dict_name,"rb"); data/lzo2-2.10/examples/lzopack.c:56:23: [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 unsigned char magic[7] = data/lzo2-2.10/examples/lzopack.c:112:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char b[4]; data/lzo2-2.10/examples/lzopack.c:125:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char b[4]; data/lzo2-2.10/examples/lzopack.c:265:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char m [ sizeof(magic) ]; data/lzo2-2.10/examples/lzopack.c:418: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). fp = fopen(name, "rb"); data/lzo2-2.10/examples/lzopack.c:449: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). fp = fopen(name, "rb"); data/lzo2-2.10/examples/lzopack.c:457: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). fp = fopen(name, "wb"); data/lzo2-2.10/examples/lzopack.c:561:22: [2] (integer) atol: 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 b = atol(&argv[i][2]); data/lzo2-2.10/examples/overlap.c:92: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). fp = fopen(in_name, "rb"); data/lzo2-2.10/examples/overlap.c:266:24: [2] (integer) atol: 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). opt_overhead = atol(&argv[i++][1]); data/lzo2-2.10/examples/precomp.c:133: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). fp = fopen(in_name,"rb"); data/lzo2-2.10/examples/precomp.c:277:14: [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). fp = fopen(out_name,"wb"); data/lzo2-2.10/examples/precomp2.c:167: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). fp = fopen(in_name,"rb"); data/lzo2-2.10/examples/precomp2.c:329:14: [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). fp = fopen(out_name,"wb"); data/lzo2-2.10/include/lzo/lzodefs.h:1789:73: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. # define __lzo_byte_struct(s,n) __lzo_struct_packed(s) unsigned char a[n]; __lzo_struct_packed_end() data/lzo2-2.10/include/lzo/lzodefs.h:1790:76: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. # define __lzo_byte_struct_ma(s,n) __lzo_struct_packed_ma(s) unsigned char a[n]; __lzo_struct_packed_ma_end() data/lzo2-2.10/include/lzo/lzodefs.h:1792:61: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. # define __lzo_byte_struct(s,n) struct s { unsigned char a[n]; } __attribute__((__packed__)); data/lzo2-2.10/include/lzo/lzodefs.h:1793:61: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. # define __lzo_byte_struct_ma(s,n) struct s { unsigned char a[n]; } __lzo_may_alias __attribute__((__packed__)); data/lzo2-2.10/lzotest/lzotest.c:448: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). fp = fopen(file_name, "rb"); data/lzo2-2.10/lzotest/lzotest.c:772: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). fp = fopen(file_name, "rb"); data/lzo2-2.10/lzotest/lzotest.c:842:9: [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(s, "0.0"); data/lzo2-2.10/lzotest/lzotest.c:846:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(s, "%4.1f", perc); data/lzo2-2.10/lzotest/lzotest.c:851:13: [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(s, "???"); data/lzo2-2.10/lzotest/lzotest.c:853:13: [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(s, "9999"); data/lzo2-2.10/lzotest/lzotest.c:855:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(s, "%ld", p); data/lzo2-2.10/lzotest/lzotest.c:880: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 perc_str[4+1]; data/lzo2-2.10/lzotest/lzotest.c:956: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 perc_str[4+1]; data/lzo2-2.10/lzotest/lzotest.c:964:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pclock_mode[32+1]; data/lzo2-2.10/lzotest/lzotest.c:965:9: [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(pclock_mode, "[clock=%d]", pch.mode); data/lzo2-2.10/lzotest/lzotest.c:1006:19: [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). fp_dump = fopen(opt_dump_compressed_data,"wb"); data/lzo2-2.10/lzotest/lzotest.c:1229: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 method_name[256+1]; data/lzo2-2.10/lzotest/lzotest.c:1341: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 name[256]; data/lzo2-2.10/lzotest/lzotest.c:1435: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. char n[16]; data/lzo2-2.10/lzotest/lzotest.c:1439:17: [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(n,"-m%d",i); data/lzo2-2.10/lzotest/lzotest.c:1633:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). add_method(atoi(p)); data/lzo2-2.10/lzotest/lzotest.c:1713:30: [2] (integer) atol: 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). opt_block_size = atol(mfx_optarg); data/lzo2-2.10/lzotest/lzotest.c:1720:23: [2] (integer) atol: 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). opt_c_loops = atol(mfx_optarg); data/lzo2-2.10/lzotest/lzotest.c:1726:23: [2] (integer) atol: 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). opt_d_loops = atol(mfx_optarg); data/lzo2-2.10/lzotest/lzotest.c:1746:37: [2] (integer) atol: 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). opt_c_loops = opt_d_loops = atol(mfx_optarg); data/lzo2-2.10/lzotest/lzotest.c:1791:13: [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 m[2]; m[0] = (char) optc; m[1] = 0; data/lzo2-2.10/lzotest/lzotest.c:1822:28: [2] (integer) atol: 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). opt_max_data_len = atol(mfx_optarg); data/lzo2-2.10/lzotest/lzotest.c:1827:28: [2] (integer) atol: 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). opt_max_dict_len = atol(mfx_optarg); data/lzo2-2.10/lzotest/lzotest.c:1832: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). opt_pclock = atoi(mfx_optarg); data/lzo2-2.10/lzotest/lzotest.c:2032: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. char buf[512], *p; data/lzo2-2.10/minilzo/minilzo.c:1809:73: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. # define __lzo_byte_struct(s,n) __lzo_struct_packed(s) unsigned char a[n]; __lzo_struct_packed_end() data/lzo2-2.10/minilzo/minilzo.c:1810:76: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. # define __lzo_byte_struct_ma(s,n) __lzo_struct_packed_ma(s) unsigned char a[n]; __lzo_struct_packed_ma_end() data/lzo2-2.10/minilzo/minilzo.c:1812:61: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. # define __lzo_byte_struct(s,n) struct s { unsigned char a[n]; } __attribute__((__packed__)); data/lzo2-2.10/minilzo/minilzo.c:1813:61: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. # define __lzo_byte_struct_ma(s,n) struct s { unsigned char a[n]; } __lzo_may_alias __attribute__((__packed__)); data/lzo2-2.10/minilzo/minilzo.c:3450:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # undef memcpy data/lzo2-2.10/minilzo/minilzo.c:3451:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define memcpy(a,b,c) lzo_memcpy(a,b,c) data/lzo2-2.10/minilzo/minilzo.c:3454:33: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define lzo_memcpy(a,b,c) memcpy(a,b,c) data/lzo2-2.10/minilzo/minilzo.c:3691:33: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define LZO_MEMOPS_MOVE1(dd,ss) memcpy(dd, ss, 1) data/lzo2-2.10/minilzo/minilzo.c:3692:33: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define LZO_MEMOPS_MOVE2(dd,ss) memcpy(dd, ss, 2) data/lzo2-2.10/minilzo/minilzo.c:3693:33: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define LZO_MEMOPS_MOVE3(dd,ss) memcpy(dd, ss, 3) data/lzo2-2.10/minilzo/minilzo.c:3694:33: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define LZO_MEMOPS_MOVE4(dd,ss) memcpy(dd, ss, 4) data/lzo2-2.10/minilzo/minilzo.c:3695:33: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define LZO_MEMOPS_MOVE8(dd,ss) memcpy(dd, ss, 8) data/lzo2-2.10/minilzo/minilzo.c:3696:33: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define LZO_MEMOPS_COPY1(dd,ss) memcpy(dd, ss, 1) data/lzo2-2.10/minilzo/minilzo.c:3697:33: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define LZO_MEMOPS_COPY2(dd,ss) memcpy(dd, ss, 2) data/lzo2-2.10/minilzo/minilzo.c:3698:33: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define LZO_MEMOPS_COPY4(dd,ss) memcpy(dd, ss, 4) data/lzo2-2.10/minilzo/minilzo.c:3699:33: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define LZO_MEMOPS_COPY8(dd,ss) memcpy(dd, ss, 8) data/lzo2-2.10/minilzo/minilzo.c:3700:36: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define LZO_MEMOPS_COPYN(dd,ss,nn) memcpy(dd, ss, nn) data/lzo2-2.10/minilzo/minilzo.c:3726:41: [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 lzo_memops_TU2_struct { unsigned char a[2]; } __lzo_may_alias; data/lzo2-2.10/minilzo/minilzo.c:3741:41: [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 lzo_memops_TU4_struct { unsigned char a[4]; } __lzo_may_alias; data/lzo2-2.10/minilzo/minilzo.c:3756:41: [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 lzo_memops_TU8_struct { unsigned char a[8]; } __lzo_may_alias; data/lzo2-2.10/minilzo/minilzo.c:4418:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. return memcpy(dest, src, len); data/lzo2-2.10/minilzo/minilzo.c:4483:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char b[2*LZO_MAX(8,sizeof(lzo_uint))]; data/lzo2-2.10/minilzo/testmini.c:57: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. static unsigned char __LZO_MMODEL in [ IN_LEN ]; data/lzo2-2.10/minilzo/testmini.c:58: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. static unsigned char __LZO_MMODEL out [ OUT_LEN ]; data/lzo2-2.10/src/lzo_conf.h:187:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # undef memcpy data/lzo2-2.10/src/lzo_conf.h:188:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define memcpy(a,b,c) lzo_memcpy(a,b,c) data/lzo2-2.10/src/lzo_conf.h:191:33: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define lzo_memcpy(a,b,c) memcpy(a,b,c) data/lzo2-2.10/src/lzo_func.h:192:33: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define LZO_MEMOPS_MOVE1(dd,ss) memcpy(dd, ss, 1) data/lzo2-2.10/src/lzo_func.h:193:33: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define LZO_MEMOPS_MOVE2(dd,ss) memcpy(dd, ss, 2) data/lzo2-2.10/src/lzo_func.h:194:33: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define LZO_MEMOPS_MOVE3(dd,ss) memcpy(dd, ss, 3) data/lzo2-2.10/src/lzo_func.h:195:33: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define LZO_MEMOPS_MOVE4(dd,ss) memcpy(dd, ss, 4) data/lzo2-2.10/src/lzo_func.h:196:33: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define LZO_MEMOPS_MOVE8(dd,ss) memcpy(dd, ss, 8) data/lzo2-2.10/src/lzo_func.h:197:33: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define LZO_MEMOPS_COPY1(dd,ss) memcpy(dd, ss, 1) data/lzo2-2.10/src/lzo_func.h:198:33: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define LZO_MEMOPS_COPY2(dd,ss) memcpy(dd, ss, 2) data/lzo2-2.10/src/lzo_func.h:199:33: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define LZO_MEMOPS_COPY4(dd,ss) memcpy(dd, ss, 4) data/lzo2-2.10/src/lzo_func.h:200:33: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define LZO_MEMOPS_COPY8(dd,ss) memcpy(dd, ss, 8) data/lzo2-2.10/src/lzo_func.h:201:36: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define LZO_MEMOPS_COPYN(dd,ss,nn) memcpy(dd, ss, nn) data/lzo2-2.10/src/lzo_func.h:225:41: [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 lzo_memops_TU2_struct { unsigned char a[2]; } __lzo_may_alias; data/lzo2-2.10/src/lzo_func.h:240:41: [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 lzo_memops_TU4_struct { unsigned char a[4]; } __lzo_may_alias; data/lzo2-2.10/src/lzo_func.h:255:41: [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 lzo_memops_TU8_struct { unsigned char a[8]; } __lzo_may_alias; data/lzo2-2.10/src/lzo_init.c:70:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char b[2*LZO_MAX(8,sizeof(lzo_uint))]; data/lzo2-2.10/src/lzo_supp.h:1121: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 f_name[LZO_FN_NAME_MAX+1]; data/lzo2-2.10/src/lzo_supp.h:1127: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 f_name[LZO_FN_NAME_MAX+1]; data/lzo2-2.10/src/lzo_supp.h:1129: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 u_dta[21]; data/lzo2-2.10/src/lzo_supp.h:1135: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 f_name[LZO_FN_NAME_MAX+1]; data/lzo2-2.10/src/lzo_supp.h:1139: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 f_name[LZO_FN_NAME_MAX+1]; data/lzo2-2.10/src/lzo_supp.h:2076:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. return memcpy(dest, src, len); data/lzo2-2.10/src/lzo_supp.h:2718:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char tmp[512]; data/lzo2-2.10/src/lzo_supp.h:2758:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char tmp[512]; data/lzo2-2.10/tests/sizes.c:107:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char s[80]; data/lzo2-2.10/lzotest/lzotest.c:584: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_t n = strlen(db->name); data/lzo2-2.10/lzotest/lzotest.c:1343: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). if (path == NULL || strlen(path) >= sizeof(name) - 12) data/lzo2-2.10/lzotest/lzotest.c:1347: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). n = strlen(name); data/lzo2-2.10/lzotest/lzotest.c:1350:9: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(name,"/"); data/lzo2-2.10/lzotest/lzotest.c:1571: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). n = strlen(b); data/lzo2-2.10/lzotest/lzotest.c:2037:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p = buf + strlen(buf); data/lzo2-2.10/src/lzo_supp.h:2814:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). errno = 0; n = read(fd, b, n); ANALYSIS SUMMARY: Hits = 146 Lines analyzed = 32027 in approximately 0.89 seconds (36149 lines/second) Physical Source Lines of Code (SLOC) = 23763 Hits@level = [0] 269 [1] 7 [2] 97 [3] 1 [4] 41 [5] 0 Hits@level+ = [0+] 415 [1+] 146 [2+] 139 [3+] 42 [4+] 41 [5+] 0 Hits/KSLOC@level+ = [0+] 17.4641 [1+] 6.14401 [2+] 5.84943 [3+] 1.76745 [4+] 1.72537 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.