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/nictools-pci-1.3.8/libmii.c Examining data/nictools-pci-1.3.8/ne2k-pci-diag.c Examining data/nictools-pci-1.3.8/rtl8139-diag.c Examining data/nictools-pci-1.3.8/vortex-diag.c Examining data/nictools-pci-1.3.8/alta-diag.c Examining data/nictools-pci-1.3.8/eepro100-diag.c Examining data/nictools-pci-1.3.8/epic-diag.c Examining data/nictools-pci-1.3.8/libflash.c Examining data/nictools-pci-1.3.8/myson-diag.c Examining data/nictools-pci-1.3.8/natsemi-diag.c Examining data/nictools-pci-1.3.8/ns820-diag.c Examining data/nictools-pci-1.3.8/pci-config.c Examining data/nictools-pci-1.3.8/pcnet-diag.c Examining data/nictools-pci-1.3.8/starfire-diag.c Examining data/nictools-pci-1.3.8/tulip-diag.c Examining data/nictools-pci-1.3.8/unaligned.h Examining data/nictools-pci-1.3.8/via-diag.c Examining data/nictools-pci-1.3.8/winbond-diag.c Examining data/nictools-pci-1.3.8/yellowfin-diag.c FINAL RESULTS: data/nictools-pci-1.3.8/alta-diag.c:205:13: [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. case 'h': fprintf(stderr, long_usage_msg, argv[0]); return 0; data/nictools-pci-1.3.8/alta-diag.c:238:3: [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. fprintf(stderr, usage_msg); data/nictools-pci-1.3.8/alta-diag.c:243:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(version_msg); data/nictools-pci-1.3.8/alta-diag.c:331:6: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_irq); data/nictools-pci-1.3.8/alta-diag.c:335:6: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_iobase); data/nictools-pci-1.3.8/alta-diag.c:419:8: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_iobase); data/nictools-pci-1.3.8/eepro100-diag.c:223:13: [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. case 'h': fprintf(stderr, long_usage_msg, argv[0]); return 0; data/nictools-pci-1.3.8/eepro100-diag.c:256:3: [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. fprintf(stderr, usage_msg); data/nictools-pci-1.3.8/eepro100-diag.c:261:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(version_msg); data/nictools-pci-1.3.8/eepro100-diag.c:349:6: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_irq); data/nictools-pci-1.3.8/eepro100-diag.c:353:6: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_iobase); data/nictools-pci-1.3.8/eepro100-diag.c:437:8: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_iobase); data/nictools-pci-1.3.8/eepro100-diag.c:1006:4: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(connectors[i]); data/nictools-pci-1.3.8/eepro100-diag.c:1016:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(no_xcvr_msg); data/nictools-pci-1.3.8/eepro100-diag.c:1018:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(sleep_mode_msg); data/nictools-pci-1.3.8/epic-diag.c:204:13: [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. case 'h': fprintf(stderr, long_usage_msg, argv[0]); return 0; data/nictools-pci-1.3.8/epic-diag.c:237:3: [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. fprintf(stderr, usage_msg); data/nictools-pci-1.3.8/epic-diag.c:242:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(version_msg); data/nictools-pci-1.3.8/epic-diag.c:330:6: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_irq); data/nictools-pci-1.3.8/epic-diag.c:334:6: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_iobase); data/nictools-pci-1.3.8/epic-diag.c:418:8: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_iobase); data/nictools-pci-1.3.8/libmii.c:331:4: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(fmt, msg_tbl[i].msg); data/nictools-pci-1.3.8/myson-diag.c:210:13: [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. case 'h': fprintf(stderr, long_usage_msg, argv[0]); return 0; data/nictools-pci-1.3.8/myson-diag.c:243:3: [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. fprintf(stderr, usage_msg); data/nictools-pci-1.3.8/myson-diag.c:248:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(version_msg); data/nictools-pci-1.3.8/myson-diag.c:336:6: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_irq); data/nictools-pci-1.3.8/myson-diag.c:340:6: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_iobase); data/nictools-pci-1.3.8/myson-diag.c:424:8: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_iobase); data/nictools-pci-1.3.8/myson-diag.c:850:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(davicom_msg); data/nictools-pci-1.3.8/natsemi-diag.c:212:13: [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. case 'h': fprintf(stderr, long_usage_msg, argv[0]); return 0; data/nictools-pci-1.3.8/natsemi-diag.c:246:3: [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. fprintf(stderr, usage_msg); data/nictools-pci-1.3.8/natsemi-diag.c:251:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(version_msg); data/nictools-pci-1.3.8/natsemi-diag.c:339:6: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_irq); data/nictools-pci-1.3.8/natsemi-diag.c:343:6: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_iobase); data/nictools-pci-1.3.8/natsemi-diag.c:427:8: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_iobase); data/nictools-pci-1.3.8/ne2k-pci-diag.c:194:3: [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. fprintf(stderr, usage_msg); data/nictools-pci-1.3.8/ne2k-pci-diag.c:199:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(version_msg); data/nictools-pci-1.3.8/ne2k-pci-diag.c:287:6: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_irq); data/nictools-pci-1.3.8/ne2k-pci-diag.c:291:6: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_iobase); data/nictools-pci-1.3.8/ne2k-pci-diag.c:375:8: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_iobase); data/nictools-pci-1.3.8/ne2k-pci-diag.c:836:4: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(unknown_eeprom_message); data/nictools-pci-1.3.8/ne2k-pci-diag.c:841:3: [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. fprintf(stderr, no_rewrite_msg); data/nictools-pci-1.3.8/ne2k-pci-diag.c:892:3: [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. fprintf(stderr "Media type %s (index %d) is invalid for this " data/nictools-pci-1.3.8/ns820-diag.c:206:13: [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. case 'h': fprintf(stderr, long_usage_msg, argv[0]); return 0; data/nictools-pci-1.3.8/ns820-diag.c:240:3: [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. fprintf(stderr, usage_msg); data/nictools-pci-1.3.8/ns820-diag.c:245:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(version_msg); data/nictools-pci-1.3.8/ns820-diag.c:333:6: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_irq); data/nictools-pci-1.3.8/ns820-diag.c:337:6: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_iobase); data/nictools-pci-1.3.8/ns820-diag.c:421:8: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_iobase); data/nictools-pci-1.3.8/pci-config.c:175:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(version_msg); data/nictools-pci-1.3.8/pcnet-diag.c:212:13: [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. case 'h': fprintf(stderr, long_usage_msg, argv[0]); return 0; data/nictools-pci-1.3.8/pcnet-diag.c:245:3: [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. fprintf(stderr, usage_msg); data/nictools-pci-1.3.8/pcnet-diag.c:250:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(version_msg); data/nictools-pci-1.3.8/pcnet-diag.c:338:6: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_irq); data/nictools-pci-1.3.8/pcnet-diag.c:342:6: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_iobase); data/nictools-pci-1.3.8/pcnet-diag.c:426:8: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_iobase); data/nictools-pci-1.3.8/rtl8139-diag.c:230:13: [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. case 'h': fprintf(stderr, long_usage_msg, argv[0]); return 0; data/nictools-pci-1.3.8/rtl8139-diag.c:263:3: [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. fprintf(stderr, usage_msg); data/nictools-pci-1.3.8/rtl8139-diag.c:268:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(version_msg); data/nictools-pci-1.3.8/rtl8139-diag.c:356:6: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_irq); data/nictools-pci-1.3.8/rtl8139-diag.c:360:6: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_iobase); data/nictools-pci-1.3.8/rtl8139-diag.c:444:8: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_iobase); data/nictools-pci-1.3.8/starfire-diag.c:206:13: [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. case 'h': fprintf(stderr, long_usage_msg, argv[0]); return 0; data/nictools-pci-1.3.8/starfire-diag.c:239:3: [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. fprintf(stderr, usage_msg); data/nictools-pci-1.3.8/starfire-diag.c:244:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(version_msg); data/nictools-pci-1.3.8/starfire-diag.c:332:6: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_irq); data/nictools-pci-1.3.8/starfire-diag.c:336:6: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_iobase); data/nictools-pci-1.3.8/starfire-diag.c:420:8: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_iobase); data/nictools-pci-1.3.8/tulip-diag.c:278:13: [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. case 'h': fprintf(stderr, long_usage_msg, argv[0]); return 0; data/nictools-pci-1.3.8/tulip-diag.c:311:3: [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. fprintf(stderr, usage_msg); data/nictools-pci-1.3.8/tulip-diag.c:316:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(version_msg); data/nictools-pci-1.3.8/tulip-diag.c:404:6: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_irq); data/nictools-pci-1.3.8/tulip-diag.c:408:6: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_iobase); data/nictools-pci-1.3.8/tulip-diag.c:492:8: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_iobase); data/nictools-pci-1.3.8/tulip-diag.c:1769:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(msg_bogus_intel_eeprom); data/nictools-pci-1.3.8/tulip-diag.c:1773:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(msg_no_station_addr); data/nictools-pci-1.3.8/via-diag.c:225:13: [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. case 'h': fprintf(stderr, long_usage_msg, argv[0]); return 0; data/nictools-pci-1.3.8/via-diag.c:258:3: [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. fprintf(stderr, usage_msg); data/nictools-pci-1.3.8/via-diag.c:263:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(version_msg); data/nictools-pci-1.3.8/via-diag.c:351:6: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_irq); data/nictools-pci-1.3.8/via-diag.c:355:6: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_iobase); data/nictools-pci-1.3.8/via-diag.c:439:8: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_iobase); data/nictools-pci-1.3.8/via-diag.c:934:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(decode_ee_fmt, data/nictools-pci-1.3.8/vortex-diag.c:284:13: [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. case 'h': fprintf(stderr, long_usage_msg, argv[0]); return 0; data/nictools-pci-1.3.8/vortex-diag.c:318:3: [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. fprintf(stderr, usage_msg); data/nictools-pci-1.3.8/vortex-diag.c:323:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(version_msg); data/nictools-pci-1.3.8/vortex-diag.c:411:6: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_irq); data/nictools-pci-1.3.8/vortex-diag.c:415:6: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_iobase); data/nictools-pci-1.3.8/vortex-diag.c:499:8: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_iobase); data/nictools-pci-1.3.8/winbond-diag.c:210:13: [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. case 'h': fprintf(stderr, long_usage_msg, argv[0]); return 0; data/nictools-pci-1.3.8/winbond-diag.c:243:3: [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. fprintf(stderr, usage_msg); data/nictools-pci-1.3.8/winbond-diag.c:248:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(version_msg); data/nictools-pci-1.3.8/winbond-diag.c:336:6: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_irq); data/nictools-pci-1.3.8/winbond-diag.c:340:6: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_iobase); data/nictools-pci-1.3.8/winbond-diag.c:424:8: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_iobase); data/nictools-pci-1.3.8/yellowfin-diag.c:205:13: [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. case 'h': fprintf(stderr, long_usage_msg, argv[0]); return 0; data/nictools-pci-1.3.8/yellowfin-diag.c:238:3: [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. fprintf(stderr, usage_msg); data/nictools-pci-1.3.8/yellowfin-diag.c:243:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(version_msg); data/nictools-pci-1.3.8/yellowfin-diag.c:331:6: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_irq); data/nictools-pci-1.3.8/yellowfin-diag.c:335:6: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_iobase); data/nictools-pci-1.3.8/yellowfin-diag.c:419:8: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(bogus_iobase); data/nictools-pci-1.3.8/alta-diag.c:189:14: [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. while ((c = getopt_long(argc, argv, "#:aA:DeEfF:G:hH:mp:qrRt:vVwWBL:S:", data/nictools-pci-1.3.8/eepro100-diag.c:207:14: [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. while ((c = getopt_long(argc, argv, "#:aA:DeEfF:G:hH:mp:qrRt:vVwWBL:S:", data/nictools-pci-1.3.8/epic-diag.c:188:14: [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. while ((c = getopt_long(argc, argv, "#:aA:DeEfF:G:hH:mp:qrRst:vVwWBL:S:", data/nictools-pci-1.3.8/myson-diag.c:194:14: [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. while ((c = getopt_long(argc, argv, "#:aA:DeEfF:G:hH:mp:qrRt:vVwWBL:S:", data/nictools-pci-1.3.8/natsemi-diag.c:196:14: [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. while ((c = getopt_long(argc, argv, "#:aA:DeEfF:G:hH:mp:qrRt:TvVwWBL:S:", data/nictools-pci-1.3.8/ne2k-pci-diag.c:151:14: [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. while ((c = getopt_long(argc, argv, "#:aA:DeEfF:G:mp:qrRst:TvVwH:", data/nictools-pci-1.3.8/ns820-diag.c:190:14: [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. while ((c = getopt_long(argc, argv, "#:aA:DeEfF:G:hH:mp:qrRt:TvVwWBL:S:", data/nictools-pci-1.3.8/pci-config.c:134:14: [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. while ((c = getopt_long(argc, argv, "#:aA:b:B:DfMs:SuvVW", data/nictools-pci-1.3.8/pcnet-diag.c:196:14: [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. while ((c = getopt_long(argc, argv, "#:aA:DeEfF:G:hH:mp:qrRst:vVwWBL:S:", data/nictools-pci-1.3.8/rtl8139-diag.c:214:14: [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. while ((c = getopt_long(argc, argv, "#:aA:DeEfF:G:hH:mp:qrRt:vVwWBL:S:", data/nictools-pci-1.3.8/starfire-diag.c:190:14: [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. while ((c = getopt_long(argc, argv, "#:aA:DeEfF:G:hH:mp:qrRst:vVwWBL:S:", data/nictools-pci-1.3.8/tulip-diag.c:262:14: [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. while ((c = getopt_long(argc, argv, "#:aA:DeEfF:G:hH:mp:qrRt:vVwWBL:S:", data/nictools-pci-1.3.8/via-diag.c:209:14: [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. while ((c = getopt_long(argc, argv, "#:aA:DeEfF:G:hH:mp:qrRt:vVwWBL:S:", data/nictools-pci-1.3.8/vortex-diag.c:267:14: [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. while ((c = getopt_long(argc, argv, "#:aA:DeEfF:gG:hH:mp:PqrRt:vVwWBL:S:", data/nictools-pci-1.3.8/winbond-diag.c:194:14: [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. while ((c = getopt_long(argc, argv, "#:aA:DeEfF:G:hH:mp:qrRt:vVwWBL:S:", data/nictools-pci-1.3.8/yellowfin-diag.c:189:14: [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. while ((c = getopt_long(argc, argv, "#:aA:DeEfF:G:hH:mp:qrRst:vVwWBL:S:", data/nictools-pci-1.3.8/alta-diag.c:171: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 new_hwaddr[6], set_hwaddr = 0; data/nictools-pci-1.3.8/alta-diag.c:193: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). case '#': card_num = atoi(optarg); break; data/nictools-pci-1.3.8/alta-diag.c:226:25: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 't': chip_type = atoi(optarg); break; data/nictools-pci-1.3.8/alta-diag.c:302:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[514]; data/nictools-pci-1.3.8/alta-diag.c:305:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen("/proc/bus/pci/devices", "r"); data/nictools-pci-1.3.8/alta-diag.c:347: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 chip_name[40]; data/nictools-pci-1.3.8/alta-diag.c:355:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen("/proc/pci", "r"); data/nictools-pci-1.3.8/alta-diag.c:359: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 buffer[514]; data/nictools-pci-1.3.8/alta-diag.c:478:16: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (name && atoi(name) >= 00) data/nictools-pci-1.3.8/alta-diag.c:479: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). return atoi(name); data/nictools-pci-1.3.8/alta-diag.c:520: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 *intr_names[16] ={ data/nictools-pci-1.3.8/alta-diag.c:644: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(new_ee_contents, eeprom_contents, eeprom_size << 1); data/nictools-pci-1.3.8/alta-diag.c:646: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_ee_contents, backup_ee_contents, data/nictools-pci-1.3.8/eepro100-diag.c:190: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 new_hwaddr[6], set_hwaddr = 0; data/nictools-pci-1.3.8/eepro100-diag.c:211: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). case '#': card_num = atoi(optarg); break; data/nictools-pci-1.3.8/eepro100-diag.c:244:25: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 't': chip_type = atoi(optarg); break; data/nictools-pci-1.3.8/eepro100-diag.c:320:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[514]; data/nictools-pci-1.3.8/eepro100-diag.c:323:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen("/proc/bus/pci/devices", "r"); data/nictools-pci-1.3.8/eepro100-diag.c:365: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 chip_name[40]; data/nictools-pci-1.3.8/eepro100-diag.c:373:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen("/proc/pci", "r"); data/nictools-pci-1.3.8/eepro100-diag.c:377: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 buffer[514]; data/nictools-pci-1.3.8/eepro100-diag.c:640: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(new_ee_contents, eeprom_contents, eeprom_size << 1); data/nictools-pci-1.3.8/eepro100-diag.c:713: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_ee_contents, djb_eepro100_eeprom, data/nictools-pci-1.3.8/eepro100-diag.c:985: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 dev_addr[6]; data/nictools-pci-1.3.8/epic-diag.c:169: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 new_hwaddr[6], set_hwaddr = 0; data/nictools-pci-1.3.8/epic-diag.c:192: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). case '#': card_num = atoi(optarg); break; data/nictools-pci-1.3.8/epic-diag.c:225:25: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 't': chip_type = atoi(optarg); break; data/nictools-pci-1.3.8/epic-diag.c:301:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[514]; data/nictools-pci-1.3.8/epic-diag.c:304:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen("/proc/bus/pci/devices", "r"); data/nictools-pci-1.3.8/epic-diag.c:346: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 chip_name[40]; data/nictools-pci-1.3.8/epic-diag.c:354:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen("/proc/pci", "r"); data/nictools-pci-1.3.8/epic-diag.c:358: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 buffer[514]; data/nictools-pci-1.3.8/epic-diag.c:525:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *intr_names[28] ={ data/nictools-pci-1.3.8/epic-diag.c:537:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *event_names[16] = { data/nictools-pci-1.3.8/epic-diag.c:621:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dont_read[8] = {0x00, 0x00, 0x00, 0xce, data/nictools-pci-1.3.8/epic-diag.c:649:20: [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 *tx_mode[4] = { data/nictools-pci-1.3.8/epic-diag.c:697: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(new_ee_contents, eeprom_contents, 64 << 1); data/nictools-pci-1.3.8/libflash.c:141: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 vendor_id, device_id[3]; data/nictools-pci-1.3.8/libflash.c:273: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 old_inval[16], inval[16]; data/nictools-pci-1.3.8/libflash.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 wbuf[4096]; data/nictools-pci-1.3.8/libflash.c:311: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). if ((fd = open(filename, O_WRONLY|O_CREAT|O_TRUNC, 0444)) < 0) { data/nictools-pci-1.3.8/libflash.c:370: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). if ((fd = open(filename, O_RDONLY)) < 0) { data/nictools-pci-1.3.8/libflash.c:376: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 rbuf[RD_PAGE_SIZE]; data/nictools-pci-1.3.8/libflash.c:415: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 rbuf[MAX_PAGE_SIZE]; data/nictools-pci-1.3.8/libmii.c:71: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 ieee_oui[3]; /* IEEE-assigned organizationally unique ID */ data/nictools-pci-1.3.8/libmii.c:245: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 timebuf[12]; data/nictools-pci-1.3.8/libmii.c:383: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 *tdk_events[8] = { data/nictools-pci-1.3.8/myson-diag.c:176: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 new_hwaddr[6], set_hwaddr = 0; data/nictools-pci-1.3.8/myson-diag.c:198: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). case '#': card_num = atoi(optarg); break; data/nictools-pci-1.3.8/myson-diag.c:231:25: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 't': chip_type = atoi(optarg); break; data/nictools-pci-1.3.8/myson-diag.c:307:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[514]; data/nictools-pci-1.3.8/myson-diag.c:310:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen("/proc/bus/pci/devices", "r"); data/nictools-pci-1.3.8/myson-diag.c:352: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 chip_name[40]; data/nictools-pci-1.3.8/myson-diag.c:360:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen("/proc/pci", "r"); data/nictools-pci-1.3.8/myson-diag.c:364: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 buffer[514]; data/nictools-pci-1.3.8/myson-diag.c:600:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dont_read[8] = {0x00,0x00,0x06,0x00,0x00,0x00,0x00,0x00}; data/nictools-pci-1.3.8/myson-diag.c:655: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(new_ee_contents, eeprom_contents, eeprom_size << 1); data/nictools-pci-1.3.8/myson-diag.c:657: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_ee_contents, backup_ee_contents, data/nictools-pci-1.3.8/natsemi-diag.c:179: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 new_hwaddr[6], set_hwaddr = 0; data/nictools-pci-1.3.8/natsemi-diag.c:200: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). case '#': card_num = atoi(optarg); break; data/nictools-pci-1.3.8/natsemi-diag.c:233:25: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 't': chip_type = atoi(optarg); break; data/nictools-pci-1.3.8/natsemi-diag.c:310:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[514]; data/nictools-pci-1.3.8/natsemi-diag.c:313:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen("/proc/bus/pci/devices", "r"); data/nictools-pci-1.3.8/natsemi-diag.c:355: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 chip_name[40]; data/nictools-pci-1.3.8/natsemi-diag.c:363:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen("/proc/pci", "r"); data/nictools-pci-1.3.8/natsemi-diag.c:367: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 buffer[514]; data/nictools-pci-1.3.8/natsemi-diag.c:540: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 *aneg_sel[8] = { data/nictools-pci-1.3.8/natsemi-diag.c:722: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 dont_read[8] = {0x10,0x00,0x01,0xff,0x00,0xff,0x00,0x00}; data/nictools-pci-1.3.8/natsemi-diag.c:817: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(new_ee_contents, eeprom_contents, sizeof eeprom_contents); data/nictools-pci-1.3.8/natsemi-diag.c:829: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_ee_contents, backup_ee_contents, data/nictools-pci-1.3.8/ne2k-pci-diag.c:135: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 new_hwaddr[6], set_hwaddr = 0; data/nictools-pci-1.3.8/ne2k-pci-diag.c:155: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). case '#': card_num = atoi(optarg); break; data/nictools-pci-1.3.8/ne2k-pci-diag.c:185:25: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 't': chip_type = atoi(optarg); break; data/nictools-pci-1.3.8/ne2k-pci-diag.c:258:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[514]; data/nictools-pci-1.3.8/ne2k-pci-diag.c:261:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen("/proc/bus/pci/devices", "r"); data/nictools-pci-1.3.8/ne2k-pci-diag.c:303: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 chip_name[40]; data/nictools-pci-1.3.8/ne2k-pci-diag.c:311:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen("/proc/pci", "r"); data/nictools-pci-1.3.8/ne2k-pci-diag.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 buffer[514]; data/nictools-pci-1.3.8/ne2k-pci-diag.c:414:16: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (name && atoi(name) >= 00) data/nictools-pci-1.3.8/ne2k-pci-diag.c:415: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). return atoi(name); data/nictools-pci-1.3.8/ne2k-pci-diag.c:492: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 rtl_xcvr[4] = { data/nictools-pci-1.3.8/ne2k-pci-diag.c:743: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 winbond_xcvr[4] = data/nictools-pci-1.3.8/ne2k-pci-diag.c:746: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 winbond_rom[8] = data/nictools-pci-1.3.8/ne2k-pci-diag.c:851: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(new_ee_contents, eeprom_contents, sizeof(eeprom_contents)); data/nictools-pci-1.3.8/ne2k-pci-diag.c:854: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(new_ee_contents, winbond_default_eeprom, data/nictools-pci-1.3.8/ne2k-pci-diag.c:857: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(new_ee_contents, via_default_eeprom, data/nictools-pci-1.3.8/ns820-diag.c:172: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 new_hwaddr[6], set_hwaddr = 0; data/nictools-pci-1.3.8/ns820-diag.c:194: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). case '#': card_num = atoi(optarg); break; data/nictools-pci-1.3.8/ns820-diag.c:227:25: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 't': chip_type = atoi(optarg); break; data/nictools-pci-1.3.8/ns820-diag.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 buffer[514]; data/nictools-pci-1.3.8/ns820-diag.c:307:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen("/proc/bus/pci/devices", "r"); data/nictools-pci-1.3.8/ns820-diag.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 chip_name[40]; data/nictools-pci-1.3.8/ns820-diag.c:357:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen("/proc/pci", "r"); data/nictools-pci-1.3.8/ns820-diag.c:361: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 buffer[514]; data/nictools-pci-1.3.8/ns820-diag.c:607: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 dont_read[8] = {0x10,0x00,0x01,0x00,0x00,0x00,0x00,0x00}; data/nictools-pci-1.3.8/ns820-diag.c:707: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(new_ee_contents, eeprom_contents, sizeof eeprom_contents); data/nictools-pci-1.3.8/ns820-diag.c:719: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_ee_contents, backup_ee_contents, data/nictools-pci-1.3.8/pci-config.c:165: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). case '#': card_num = atoi(optarg); show_all_devs = 0; break; data/nictools-pci-1.3.8/pci-config.c:465:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int memfd = open("/dev/kmem", O_RDWR); data/nictools-pci-1.3.8/pcnet-diag.c:179: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 new_hwaddr[6], set_hwaddr = 0; data/nictools-pci-1.3.8/pcnet-diag.c:200: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). case '#': card_num = atoi(optarg); break; data/nictools-pci-1.3.8/pcnet-diag.c:233:25: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 't': chip_type = atoi(optarg); break; data/nictools-pci-1.3.8/pcnet-diag.c:309:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[514]; data/nictools-pci-1.3.8/pcnet-diag.c:312:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen("/proc/bus/pci/devices", "r"); data/nictools-pci-1.3.8/pcnet-diag.c:354: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 chip_name[40]; data/nictools-pci-1.3.8/pcnet-diag.c:362:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen("/proc/pci", "r"); data/nictools-pci-1.3.8/pcnet-diag.c:366: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 buffer[514]; data/nictools-pci-1.3.8/pcnet-diag.c:535: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 *pcnet_intr_names[16] ={ data/nictools-pci-1.3.8/pcnet-diag.c:541: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 *pcnet_xcvrs[4] = { data/nictools-pci-1.3.8/rtl8139-diag.c:197: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 new_hwaddr[6], set_hwaddr = 0; data/nictools-pci-1.3.8/rtl8139-diag.c:218: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). case '#': card_num = atoi(optarg); break; data/nictools-pci-1.3.8/rtl8139-diag.c:251:25: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 't': chip_type = atoi(optarg); break; data/nictools-pci-1.3.8/rtl8139-diag.c:327:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[514]; data/nictools-pci-1.3.8/rtl8139-diag.c:330:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen("/proc/bus/pci/devices", "r"); data/nictools-pci-1.3.8/rtl8139-diag.c: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 chip_name[40]; data/nictools-pci-1.3.8/rtl8139-diag.c:380:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen("/proc/pci", "r"); data/nictools-pci-1.3.8/rtl8139-diag.c:384: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 buffer[514]; data/nictools-pci-1.3.8/rtl8139-diag.c:532:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *intr_names[16] ={ data/nictools-pci-1.3.8/rtl8139-diag.c:860: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(new_ee_contents, eeprom_contents, eeprom_size << 1); data/nictools-pci-1.3.8/rtl8139-diag.c:908: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_ee_contents, backup_ee_contents, data/nictools-pci-1.3.8/rtl8139-diag.c:1128: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 mii_2_8139_map[8] = { data/nictools-pci-1.3.8/starfire-diag.c:173: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 new_hwaddr[6], set_hwaddr = 0; data/nictools-pci-1.3.8/starfire-diag.c:194: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). case '#': card_num = atoi(optarg); break; data/nictools-pci-1.3.8/starfire-diag.c:227:25: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 't': chip_type = atoi(optarg); break; data/nictools-pci-1.3.8/starfire-diag.c:303:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[514]; data/nictools-pci-1.3.8/starfire-diag.c:306:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen("/proc/bus/pci/devices", "r"); data/nictools-pci-1.3.8/starfire-diag.c:348: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 chip_name[40]; data/nictools-pci-1.3.8/starfire-diag.c:356:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen("/proc/pci", "r"); data/nictools-pci-1.3.8/starfire-diag.c:360: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 buffer[514]; data/nictools-pci-1.3.8/starfire-diag.c:516:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *event_names[16] = { data/nictools-pci-1.3.8/tulip-diag.c:246: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 new_hwaddr[6], set_hwaddr = 0; data/nictools-pci-1.3.8/tulip-diag.c:266: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). case '#': card_num = atoi(optarg); break; data/nictools-pci-1.3.8/tulip-diag.c:299:25: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 't': chip_type = atoi(optarg); break; data/nictools-pci-1.3.8/tulip-diag.c:375:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[514]; data/nictools-pci-1.3.8/tulip-diag.c:378:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen("/proc/bus/pci/devices", "r"); data/nictools-pci-1.3.8/tulip-diag.c:420: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 chip_name[40]; data/nictools-pci-1.3.8/tulip-diag.c:428:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen("/proc/pci", "r"); data/nictools-pci-1.3.8/tulip-diag.c:432: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 buffer[514]; data/nictools-pci-1.3.8/tulip-diag.c:602: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 *tx_state[8] = { data/nictools-pci-1.3.8/tulip-diag.c:606: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 *rx_state[8] = { data/nictools-pci-1.3.8/tulip-diag.c:612: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 *bus_error[8] = { data/nictools-pci-1.3.8/tulip-diag.c:615:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *intr_names[16] ={ data/nictools-pci-1.3.8/tulip-diag.c:897:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)eeprom_contents)[i] = value; data/nictools-pci-1.3.8/tulip-diag.c:995: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(new_ee_contents, backup_ee_contents, data/nictools-pci-1.3.8/tulip-diag.c:1278:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *nway_state[8] = { data/nictools-pci-1.3.8/tulip-diag.c:1430: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 medianame[32] = { data/nictools-pci-1.3.8/tulip-diag.c:1519: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 const char * const blockname[8] = { data/nictools-pci-1.3.8/tulip-diag.c:1759: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. unsigned const char cis_addr_prefix[4] = {0x22, 0x08, 0x04, 0x06}; data/nictools-pci-1.3.8/tulip-diag.c:1764: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 cis_addr_tuple[10]; data/nictools-pci-1.3.8/tulip-diag.c:1780: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(new_ee_contents, eeprom_contents, 18); data/nictools-pci-1.3.8/tulip-diag.c:1781: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(new_ee_contents + 9, media_ctrl_tbl, sizeof(media_ctrl_tbl)); data/nictools-pci-1.3.8/tulip-diag.c:1782: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(new_ee_contents + 10, cis_addr_tuple + 4, 6); data/nictools-pci-1.3.8/via-diag.c:191: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 new_hwaddr[6], set_hwaddr = 0; data/nictools-pci-1.3.8/via-diag.c:213: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). case '#': card_num = atoi(optarg); break; data/nictools-pci-1.3.8/via-diag.c:246:25: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 't': chip_type = atoi(optarg); break; data/nictools-pci-1.3.8/via-diag.c:322:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[514]; data/nictools-pci-1.3.8/via-diag.c:325:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen("/proc/bus/pci/devices", "r"); data/nictools-pci-1.3.8/via-diag.c:367: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 chip_name[40]; data/nictools-pci-1.3.8/via-diag.c:375:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen("/proc/pci", "r"); data/nictools-pci-1.3.8/via-diag.c:379: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 buffer[514]; data/nictools-pci-1.3.8/via-diag.c:553: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 *intr_names[16] ={ data/nictools-pci-1.3.8/via-diag.c:649:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dont_read[8] = {0x00,0x00,0x00,0xce,0xfd,0xed,0x7d,0xff}; data/nictools-pci-1.3.8/via-diag.c:707: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(new_ee_contents, eeprom_contents, eeprom_size << 1); data/nictools-pci-1.3.8/via-diag.c:933:16: [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. checksum = ((char *)ee_data)[i]; data/nictools-pci-1.3.8/vortex-diag.c:248: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 new_hwaddr[6], set_hwaddr = 0; data/nictools-pci-1.3.8/vortex-diag.c:271: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). case '#': card_num = atoi(optarg); break; data/nictools-pci-1.3.8/vortex-diag.c:306:25: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 't': chip_type = atoi(optarg); break; data/nictools-pci-1.3.8/vortex-diag.c:382:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[514]; data/nictools-pci-1.3.8/vortex-diag.c:385:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen("/proc/bus/pci/devices", "r"); data/nictools-pci-1.3.8/vortex-diag.c:427: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 chip_name[40]; data/nictools-pci-1.3.8/vortex-diag.c:435:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen("/proc/pci", "r"); data/nictools-pci-1.3.8/vortex-diag.c:439: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 buffer[514]; data/nictools-pci-1.3.8/vortex-diag.c:605:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *intr_names[13] ={ data/nictools-pci-1.3.8/vortex-diag.c:639:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *el_medianames[16] ={ data/nictools-pci-1.3.8/vortex-diag.c:1085:21: [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. sum ^= ((unsigned char *)ee)[i]; data/nictools-pci-1.3.8/vortex-diag.c:1130: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(new_ee_contents, eeprom_contents, eesize << 1); data/nictools-pci-1.3.8/winbond-diag.c:176: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 new_hwaddr[6], set_hwaddr = 0; data/nictools-pci-1.3.8/winbond-diag.c:198: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). case '#': card_num = atoi(optarg); break; data/nictools-pci-1.3.8/winbond-diag.c:231:25: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 't': chip_type = atoi(optarg); break; data/nictools-pci-1.3.8/winbond-diag.c:307:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[514]; data/nictools-pci-1.3.8/winbond-diag.c:310:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen("/proc/bus/pci/devices", "r"); data/nictools-pci-1.3.8/winbond-diag.c:352: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 chip_name[40]; data/nictools-pci-1.3.8/winbond-diag.c:360:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen("/proc/pci", "r"); data/nictools-pci-1.3.8/winbond-diag.c:364: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 buffer[514]; data/nictools-pci-1.3.8/winbond-diag.c:531: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 *tx_state[8] = { data/nictools-pci-1.3.8/winbond-diag.c:535: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 *rx_state[8] = { data/nictools-pci-1.3.8/winbond-diag.c:541: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 *bus_error[8] = { data/nictools-pci-1.3.8/winbond-diag.c:544: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 *intr_names[16] ={ data/nictools-pci-1.3.8/yellowfin-diag.c:172: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 new_hwaddr[6], set_hwaddr = 0; data/nictools-pci-1.3.8/yellowfin-diag.c:193: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). case '#': card_num = atoi(optarg); break; data/nictools-pci-1.3.8/yellowfin-diag.c:226:25: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 't': chip_type = atoi(optarg); break; data/nictools-pci-1.3.8/yellowfin-diag.c:302:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[514]; data/nictools-pci-1.3.8/yellowfin-diag.c:305:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen("/proc/bus/pci/devices", "r"); data/nictools-pci-1.3.8/yellowfin-diag.c:347: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 chip_name[40]; data/nictools-pci-1.3.8/yellowfin-diag.c:355:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen("/proc/pci", "r"); data/nictools-pci-1.3.8/yellowfin-diag.c:359: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 buffer[514]; data/nictools-pci-1.3.8/yellowfin-diag.c:526: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 *intr_names[16] ={ data/nictools-pci-1.3.8/yellowfin-diag.c:534:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *event_names[16] = { data/nictools-pci-1.3.8/yellowfin-diag.c:538: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 eeprom_contents[EEPROM_SIZE]; data/nictools-pci-1.3.8/alta-diag.c:381: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). strlen(pcidev_tbl[i].proc_pci_name)) data/nictools-pci-1.3.8/eepro100-diag.c:399: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). strlen(pcidev_tbl[i].proc_pci_name)) data/nictools-pci-1.3.8/epic-diag.c:380: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). strlen(pcidev_tbl[i].proc_pci_name)) data/nictools-pci-1.3.8/libflash.c:236:3: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(10); data/nictools-pci-1.3.8/libflash.c:256:2: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(10); data/nictools-pci-1.3.8/libflash.c:382:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int rcnt = read(fd, rbuf, sizeof(rbuf)); data/nictools-pci-1.3.8/libflash.c:421:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). rcnt = read(fd, rbuf + cnt, page_size - cnt); data/nictools-pci-1.3.8/libflash.c:453:3: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(200); data/nictools-pci-1.3.8/myson-diag.c:386: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). strlen(pcidev_tbl[i].proc_pci_name)) data/nictools-pci-1.3.8/natsemi-diag.c:389: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). strlen(pcidev_tbl[i].proc_pci_name)) data/nictools-pci-1.3.8/ne2k-pci-diag.c:337: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). strlen(pcidev_tbl[i].proc_pci_name)) data/nictools-pci-1.3.8/ns820-diag.c:383: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). strlen(pcidev_tbl[i].proc_pci_name)) data/nictools-pci-1.3.8/pcnet-diag.c:388: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). strlen(pcidev_tbl[i].proc_pci_name)) data/nictools-pci-1.3.8/rtl8139-diag.c:406: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). strlen(pcidev_tbl[i].proc_pci_name)) data/nictools-pci-1.3.8/starfire-diag.c:382: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). strlen(pcidev_tbl[i].proc_pci_name)) data/nictools-pci-1.3.8/tulip-diag.c:454: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). strlen(pcidev_tbl[i].proc_pci_name)) data/nictools-pci-1.3.8/via-diag.c:401: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). strlen(pcidev_tbl[i].proc_pci_name)) data/nictools-pci-1.3.8/vortex-diag.c:461: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). strlen(pcidev_tbl[i].proc_pci_name)) data/nictools-pci-1.3.8/winbond-diag.c:386: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). strlen(pcidev_tbl[i].proc_pci_name)) data/nictools-pci-1.3.8/yellowfin-diag.c:381: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). strlen(pcidev_tbl[i].proc_pci_name)) ANALYSIS SUMMARY: Hits = 336 Lines analyzed = 17208 in approximately 0.68 seconds (25257 lines/second) Physical Source Lines of Code (SLOC) = 13713 Hits@level = [0] 1354 [1] 20 [2] 199 [3] 16 [4] 101 [5] 0 Hits@level+ = [0+] 1690 [1+] 336 [2+] 316 [3+] 117 [4+] 101 [5+] 0 Hits/KSLOC@level+ = [0+] 123.241 [1+] 24.5023 [2+] 23.0438 [3+] 8.53205 [4+] 7.36527 [5+] 0 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.