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/seabios-1.14.0/scripts/kconfig/conf.c
Examining data/seabios-1.14.0/scripts/kconfig/confdata.c
Examining data/seabios-1.14.0/scripts/kconfig/expr.c
Examining data/seabios-1.14.0/scripts/kconfig/expr.h
Examining data/seabios-1.14.0/scripts/kconfig/gconf.c
Examining data/seabios-1.14.0/scripts/kconfig/images.c
Examining data/seabios-1.14.0/scripts/kconfig/kxgettext.c
Examining data/seabios-1.14.0/scripts/kconfig/lex.zconf.c
Examining data/seabios-1.14.0/scripts/kconfig/list.h
Examining data/seabios-1.14.0/scripts/kconfig/lkc.h
Examining data/seabios-1.14.0/scripts/kconfig/lkc_proto.h
Examining data/seabios-1.14.0/scripts/kconfig/lxdialog/checklist.c
Examining data/seabios-1.14.0/scripts/kconfig/lxdialog/dialog.h
Examining data/seabios-1.14.0/scripts/kconfig/lxdialog/inputbox.c
Examining data/seabios-1.14.0/scripts/kconfig/lxdialog/menubox.c
Examining data/seabios-1.14.0/scripts/kconfig/lxdialog/textbox.c
Examining data/seabios-1.14.0/scripts/kconfig/lxdialog/util.c
Examining data/seabios-1.14.0/scripts/kconfig/lxdialog/yesno.c
Examining data/seabios-1.14.0/scripts/kconfig/mconf.c
Examining data/seabios-1.14.0/scripts/kconfig/menu.c
Examining data/seabios-1.14.0/scripts/kconfig/nconf.c
Examining data/seabios-1.14.0/scripts/kconfig/nconf.gui.c
Examining data/seabios-1.14.0/scripts/kconfig/nconf.h
Examining data/seabios-1.14.0/scripts/kconfig/qconf.cc
Examining data/seabios-1.14.0/scripts/kconfig/qconf.h
Examining data/seabios-1.14.0/scripts/kconfig/symbol.c
Examining data/seabios-1.14.0/scripts/kconfig/util.c
Examining data/seabios-1.14.0/src/apm.c
Examining data/seabios-1.14.0/src/asm-offsets.c
Examining data/seabios-1.14.0/src/biosvar.h
Examining data/seabios-1.14.0/src/block.c
Examining data/seabios-1.14.0/src/block.h
Examining data/seabios-1.14.0/src/bmp.c
Examining data/seabios-1.14.0/src/boot.c
Examining data/seabios-1.14.0/src/bootsplash.c
Examining data/seabios-1.14.0/src/bregs.h
Examining data/seabios-1.14.0/src/byteorder.h
Examining data/seabios-1.14.0/src/cdrom.c
Examining data/seabios-1.14.0/src/clock.c
Examining data/seabios-1.14.0/src/config.h
Examining data/seabios-1.14.0/src/cp437.c
Examining data/seabios-1.14.0/src/cp437.h
Examining data/seabios-1.14.0/src/disk.c
Examining data/seabios-1.14.0/src/e820map.c
Examining data/seabios-1.14.0/src/e820map.h
Examining data/seabios-1.14.0/src/farptr.h
Examining data/seabios-1.14.0/src/font.c
Examining data/seabios-1.14.0/src/fw/acpi.c
Examining data/seabios-1.14.0/src/fw/biostables.c
Examining data/seabios-1.14.0/src/fw/coreboot.c
Examining data/seabios-1.14.0/src/fw/csm.c
Examining data/seabios-1.14.0/src/fw/dev-pci.h
Examining data/seabios-1.14.0/src/fw/dev-piix.h
Examining data/seabios-1.14.0/src/fw/dev-q35.h
Examining data/seabios-1.14.0/src/fw/dsdt_parser.c
Examining data/seabios-1.14.0/src/fw/lzmadecode.c
Examining data/seabios-1.14.0/src/fw/lzmadecode.h
Examining data/seabios-1.14.0/src/fw/mptable.c
Examining data/seabios-1.14.0/src/fw/mtrr.c
Examining data/seabios-1.14.0/src/fw/multiboot.c
Examining data/seabios-1.14.0/src/fw/paravirt.c
Examining data/seabios-1.14.0/src/fw/paravirt.h
Examining data/seabios-1.14.0/src/fw/pciinit.c
Examining data/seabios-1.14.0/src/fw/pirtable.c
Examining data/seabios-1.14.0/src/fw/romfile_loader.c
Examining data/seabios-1.14.0/src/fw/romfile_loader.h
Examining data/seabios-1.14.0/src/fw/shadow.c
Examining data/seabios-1.14.0/src/fw/smbios.c
Examining data/seabios-1.14.0/src/fw/smm.c
Examining data/seabios-1.14.0/src/fw/smp.c
Examining data/seabios-1.14.0/src/fw/xen.c
Examining data/seabios-1.14.0/src/fw/xen.h
Examining data/seabios-1.14.0/src/gen-defs.h
Examining data/seabios-1.14.0/src/hw/ahci.c
Examining data/seabios-1.14.0/src/hw/ahci.h
Examining data/seabios-1.14.0/src/hw/ata.c
Examining data/seabios-1.14.0/src/hw/ata.h
Examining data/seabios-1.14.0/src/hw/blockcmd.c
Examining data/seabios-1.14.0/src/hw/blockcmd.h
Examining data/seabios-1.14.0/src/hw/dma.c
Examining data/seabios-1.14.0/src/hw/esp-scsi.c
Examining data/seabios-1.14.0/src/hw/esp-scsi.h
Examining data/seabios-1.14.0/src/hw/floppy.c
Examining data/seabios-1.14.0/src/hw/lsi-scsi.c
Examining data/seabios-1.14.0/src/hw/lsi-scsi.h
Examining data/seabios-1.14.0/src/hw/megasas.c
Examining data/seabios-1.14.0/src/hw/megasas.h
Examining data/seabios-1.14.0/src/hw/mpt-scsi.c
Examining data/seabios-1.14.0/src/hw/mpt-scsi.h
Examining data/seabios-1.14.0/src/hw/nvme-int.h
Examining data/seabios-1.14.0/src/hw/nvme.c
Examining data/seabios-1.14.0/src/hw/nvme.h
Examining data/seabios-1.14.0/src/hw/pci.c
Examining data/seabios-1.14.0/src/hw/pci.h
Examining data/seabios-1.14.0/src/hw/pci_ids.h
Examining data/seabios-1.14.0/src/hw/pci_regs.h
Examining data/seabios-1.14.0/src/hw/pcidevice.c
Examining data/seabios-1.14.0/src/hw/pcidevice.h
Examining data/seabios-1.14.0/src/hw/pic.c
Examining data/seabios-1.14.0/src/hw/pic.h
Examining data/seabios-1.14.0/src/hw/ps2port.c
Examining data/seabios-1.14.0/src/hw/ps2port.h
Examining data/seabios-1.14.0/src/hw/pvscsi.c
Examining data/seabios-1.14.0/src/hw/pvscsi.h
Examining data/seabios-1.14.0/src/hw/ramdisk.c
Examining data/seabios-1.14.0/src/hw/rtc.c
Examining data/seabios-1.14.0/src/hw/rtc.h
Examining data/seabios-1.14.0/src/hw/sdcard.c
Examining data/seabios-1.14.0/src/hw/serialio.c
Examining data/seabios-1.14.0/src/hw/serialio.h
Examining data/seabios-1.14.0/src/hw/timer.c
Examining data/seabios-1.14.0/src/hw/tpm_drivers.c
Examining data/seabios-1.14.0/src/hw/tpm_drivers.h
Examining data/seabios-1.14.0/src/hw/usb-ehci.c
Examining data/seabios-1.14.0/src/hw/usb-ehci.h
Examining data/seabios-1.14.0/src/hw/usb-hid.c
Examining data/seabios-1.14.0/src/hw/usb-hid.h
Examining data/seabios-1.14.0/src/hw/usb-hub.c
Examining data/seabios-1.14.0/src/hw/usb-hub.h
Examining data/seabios-1.14.0/src/hw/usb-msc.c
Examining data/seabios-1.14.0/src/hw/usb-msc.h
Examining data/seabios-1.14.0/src/hw/usb-ohci.c
Examining data/seabios-1.14.0/src/hw/usb-ohci.h
Examining data/seabios-1.14.0/src/hw/usb-uas.c
Examining data/seabios-1.14.0/src/hw/usb-uas.h
Examining data/seabios-1.14.0/src/hw/usb-uhci.c
Examining data/seabios-1.14.0/src/hw/usb-uhci.h
Examining data/seabios-1.14.0/src/hw/usb-xhci.c
Examining data/seabios-1.14.0/src/hw/usb-xhci.h
Examining data/seabios-1.14.0/src/hw/usb.c
Examining data/seabios-1.14.0/src/hw/usb.h
Examining data/seabios-1.14.0/src/hw/virtio-blk.c
Examining data/seabios-1.14.0/src/hw/virtio-blk.h
Examining data/seabios-1.14.0/src/hw/virtio-mmio.c
Examining data/seabios-1.14.0/src/hw/virtio-mmio.h
Examining data/seabios-1.14.0/src/hw/virtio-pci.c
Examining data/seabios-1.14.0/src/hw/virtio-pci.h
Examining data/seabios-1.14.0/src/hw/virtio-ring.c
Examining data/seabios-1.14.0/src/hw/virtio-ring.h
Examining data/seabios-1.14.0/src/hw/virtio-scsi.c
Examining data/seabios-1.14.0/src/hw/virtio-scsi.h
Examining data/seabios-1.14.0/src/jpeg.c
Examining data/seabios-1.14.0/src/kbd.c
Examining data/seabios-1.14.0/src/list.h
Examining data/seabios-1.14.0/src/malloc.c
Examining data/seabios-1.14.0/src/malloc.h
Examining data/seabios-1.14.0/src/memmap.h
Examining data/seabios-1.14.0/src/misc.c
Examining data/seabios-1.14.0/src/mouse.c
Examining data/seabios-1.14.0/src/optionroms.c
Examining data/seabios-1.14.0/src/output.c
Examining data/seabios-1.14.0/src/output.h
Examining data/seabios-1.14.0/src/pcibios.c
Examining data/seabios-1.14.0/src/pmm.c
Examining data/seabios-1.14.0/src/pnpbios.c
Examining data/seabios-1.14.0/src/post.c
Examining data/seabios-1.14.0/src/resume.c
Examining data/seabios-1.14.0/src/romfile.c
Examining data/seabios-1.14.0/src/romfile.h
Examining data/seabios-1.14.0/src/sercon.c
Examining data/seabios-1.14.0/src/serial.c
Examining data/seabios-1.14.0/src/sha1.c
Examining data/seabios-1.14.0/src/sha1.h
Examining data/seabios-1.14.0/src/stacks.c
Examining data/seabios-1.14.0/src/stacks.h
Examining data/seabios-1.14.0/src/std/LegacyBios.h
Examining data/seabios-1.14.0/src/std/acpi.h
Examining data/seabios-1.14.0/src/std/bda.h
Examining data/seabios-1.14.0/src/std/disk.h
Examining data/seabios-1.14.0/src/std/mptable.h
Examining data/seabios-1.14.0/src/std/multiboot.h
Examining data/seabios-1.14.0/src/std/optionrom.h
Examining data/seabios-1.14.0/src/std/pirtable.h
Examining data/seabios-1.14.0/src/std/pmm.h
Examining data/seabios-1.14.0/src/std/pnpbios.h
Examining data/seabios-1.14.0/src/std/smbios.h
Examining data/seabios-1.14.0/src/std/tcg.h
Examining data/seabios-1.14.0/src/std/vbe.h
Examining data/seabios-1.14.0/src/std/vga.h
Examining data/seabios-1.14.0/src/string.c
Examining data/seabios-1.14.0/src/string.h
Examining data/seabios-1.14.0/src/system.c
Examining data/seabios-1.14.0/src/tcgbios.c
Examining data/seabios-1.14.0/src/tcgbios.h
Examining data/seabios-1.14.0/src/types.h
Examining data/seabios-1.14.0/src/util.h
Examining data/seabios-1.14.0/src/version.c
Examining data/seabios-1.14.0/src/vgahooks.c
Examining data/seabios-1.14.0/src/x86.c
Examining data/seabios-1.14.0/src/x86.h
Examining data/seabios-1.14.0/vgasrc/atiext.c
Examining data/seabios-1.14.0/vgasrc/bochsdisplay.c
Examining data/seabios-1.14.0/vgasrc/bochsvga.c
Examining data/seabios-1.14.0/vgasrc/bochsvga.h
Examining data/seabios-1.14.0/vgasrc/cbvga.c
Examining data/seabios-1.14.0/vgasrc/clext.c
Examining data/seabios-1.14.0/vgasrc/geodevga.c
Examining data/seabios-1.14.0/vgasrc/geodevga.h
Examining data/seabios-1.14.0/vgasrc/ramfb.c
Examining data/seabios-1.14.0/vgasrc/stdvga.c
Examining data/seabios-1.14.0/vgasrc/stdvga.h
Examining data/seabios-1.14.0/vgasrc/stdvgaio.c
Examining data/seabios-1.14.0/vgasrc/stdvgamodes.c
Examining data/seabios-1.14.0/vgasrc/svgamodes.c
Examining data/seabios-1.14.0/vgasrc/svgamodes.h
Examining data/seabios-1.14.0/vgasrc/swcursor.c
Examining data/seabios-1.14.0/vgasrc/vbe.c
Examining data/seabios-1.14.0/vgasrc/vgabios.c
Examining data/seabios-1.14.0/vgasrc/vgabios.h
Examining data/seabios-1.14.0/vgasrc/vgafb.c
Examining data/seabios-1.14.0/vgasrc/vgafb.h
Examining data/seabios-1.14.0/vgasrc/vgafonts.c
Examining data/seabios-1.14.0/vgasrc/vgahw.h
Examining data/seabios-1.14.0/vgasrc/vgainit.c
Examining data/seabios-1.14.0/vgasrc/vgautil.h
Examining data/seabios-1.14.0/vgasrc/vgaversion.c
Examining data/seabios-1.14.0/debian/optionrom/fw_cfg_keys.h
Examining data/seabios-1.14.0/debian/optionrom/linuxboot_dma.c
Examining data/seabios-1.14.0/debian/optionrom/optionrom.h

FINAL RESULTS:

data/seabios-1.14.0/debian/optionrom/linuxboot_dma.c:156:20:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    FWCfgDmaAccess access;
data/seabios-1.14.0/debian/optionrom/linuxboot_dma.c:160:5:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    access.address = cpu_to_be64((uint64_t)(uint32_t)buf);
data/seabios-1.14.0/debian/optionrom/linuxboot_dma.c:161:5:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    access.length = cpu_to_be32(len);
data/seabios-1.14.0/debian/optionrom/linuxboot_dma.c:162:5:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    access.control = cpu_to_be32(control);
data/seabios-1.14.0/debian/optionrom/linuxboot_dma.c:166:33:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    outl(cpu_to_be32((uint32_t)&access), BIOS_CFG_DMA_ADDR_LOW);
data/seabios-1.14.0/debian/optionrom/linuxboot_dma.c:168:24:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    while (be32_to_cpu(access.control) & ~BIOS_CFG_DMA_CTL_ERROR) {
data/seabios-1.14.0/scripts/kconfig/confdata.c:20:26:  [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.
	__attribute__ ((format (printf, 1, 2)));
data/seabios-1.14.0/scripts/kconfig/confdata.c:23:26:  [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.
	__attribute__ ((format (printf, 1, 2)));
data/seabios-1.14.0/scripts/kconfig/confdata.c:35:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, fmt, ap);
data/seabios-1.14.0/scripts/kconfig/confdata.c:44:2:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vprintf(fmt, ap);
data/seabios-1.14.0/scripts/kconfig/confdata.c:96:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(res_value, sym_get_string_value(sym));
data/seabios-1.14.0/scripts/kconfig/confdata.c:99:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(res_value, in);
data/seabios-1.14.0/scripts/kconfig/confdata.c:113:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(fullname, "%s/%s", env, name);
data/seabios-1.14.0/scripts/kconfig/confdata.c:755:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(dirname, name);
data/seabios-1.14.0/scripts/kconfig/confdata.c:771:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(newname, "%s%s", dirname, basename);
data/seabios-1.14.0/scripts/kconfig/confdata.c:774:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(tmpname, "%s.tmpconfig.%d", dirname, (int)getpid());
data/seabios-1.14.0/scripts/kconfig/confdata.c:825:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(dirname, basename);
data/seabios-1.14.0/scripts/kconfig/lex.zconf.c:2346:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(fullname, "%s/%s", env, name);
data/seabios-1.14.0/scripts/kconfig/lxdialog/inputbox.c:56:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(instr, init);
data/seabios-1.14.0/scripts/kconfig/lxdialog/util.c:388:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(tempstr, prompt);
data/seabios-1.14.0/scripts/kconfig/lxdialog/util.c:619:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(item_cur->node.str, sizeof(item_cur->node.str), fmt, ap);
data/seabios-1.14.0/scripts/kconfig/lxdialog/util.c:631:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(item_cur->node.str + strlen(item_cur->node.str),
data/seabios-1.14.0/scripts/kconfig/mconf.c:779:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(buf, sizeof(buf), fmt, ap);
data/seabios-1.14.0/scripts/kconfig/mconf.c:1023: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, N_("Your display is too small to run Menuconfig!\n"));
data/seabios-1.14.0/scripts/kconfig/mconf.c:1024: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, N_("It must be at least 19 lines by 80 columns.\n"));
data/seabios-1.14.0/scripts/kconfig/menu.c:26:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, fmt, ap);
data/seabios-1.14.0/scripts/kconfig/menu.c:36:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, fmt, ap);
data/seabios-1.14.0/scripts/kconfig/nconf.c:540:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(k_menu_items[items_num].str,
data/seabios-1.14.0/scripts/kconfig/nconf.c:574:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(new_str, sizeof(new_str), fmt, ap);
data/seabios-1.14.0/scripts/kconfig/nconf.c:1215:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(buf, sizeof(buf), fmt, ap);
data/seabios-1.14.0/scripts/kconfig/qconf.cc:1030:24:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
					head += QString().sprintf("<a href=\"s%p\">", sym);
data/seabios-1.14.0/scripts/kconfig/qconf.cc:1039:23:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
				head += QString().sprintf("<a href=\"s%p\">", sym);
data/seabios-1.14.0/scripts/kconfig/qconf.cc:1067:22:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		debug += QString().sprintf("defined at %s:%d<br><br>", _menu->file->name, _menu->lineno);
data/seabios-1.14.0/scripts/kconfig/qconf.cc:1090:23:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			debug += QString().sprintf("prompt: <a href=\"m%p\">", prop->menu);
data/seabios-1.14.0/scripts/kconfig/qconf.cc:1163:22:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		*text += QString().sprintf("<a href=\"s%p\">", sym);
data/seabios-1.14.0/scripts/kconfig/symbol.c:679:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(val, newval);
data/seabios-1.14.0/scripts/kconfig/symbol.c:907:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(res, symval);
data/seabios-1.14.0/scripts/kconfig/symbol.c:910:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(res, in);
data/seabios-1.14.0/scripts/kconfig/util.c:120:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(gs->s, s);
data/seabios-1.14.0/scripts/kconfig/util.c:130:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(s, sizeof(s), fmt, ap);
data/seabios-1.14.0/src/fw/paravirt.c:288:22:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    QemuCfgDmaAccess access;
data/seabios-1.14.0/src/fw/paravirt.c:290:5:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    access.address = cpu_to_be64((u64)(u32)address);
data/seabios-1.14.0/src/fw/paravirt.c:291:5:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    access.length = cpu_to_be32(length);
data/seabios-1.14.0/src/fw/paravirt.c:292:5:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    access.control = cpu_to_be32(control);
data/seabios-1.14.0/src/fw/paravirt.c:296:28:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    outl(cpu_to_be32((u32)&access), PORT_QEMU_CFG_DMA_ADDR_LOW);
data/seabios-1.14.0/src/fw/paravirt.c:298:23:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    while(be32_to_cpu(access.control) & ~QEMU_CFG_DMA_CTL_ERROR) {
data/seabios-1.14.0/src/output.c:365:1:  [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(const char *fmt, ...)
data/seabios-1.14.0/src/output.c:400:1:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
snprintf(char *str, size_t size, const char *fmt, ...)
data/seabios-1.14.0/src/output.h:10:29:  [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.
    __attribute__ ((format (printf, 1, 2))) __noreturn;
data/seabios-1.14.0/src/output.h:11: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.
void printf(const char *fmt, ...)
data/seabios-1.14.0/src/output.h:12:29:  [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.
    __attribute__ ((format (printf, 1, 2)));
data/seabios-1.14.0/src/output.h:13:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
int snprintf(char *str, size_t size, const char *fmt, ...)
data/seabios-1.14.0/src/output.h:14:29:  [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.
    __attribute__ ((format (printf, 3, 4)));
data/seabios-1.14.0/src/output.h:16:29:  [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.
    __attribute__ ((format (printf, 2, 3)));
data/seabios-1.14.0/src/output.h:18:29:  [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.
    __attribute__ ((format (printf, 1, 2)));
data/seabios-1.14.0/vgasrc/ramfb.c:30:22:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    QemuCfgDmaAccess access;
data/seabios-1.14.0/vgasrc/ramfb.c:36:5:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    access.address = cpu_to_be64((u64)(u32)address);
data/seabios-1.14.0/vgasrc/ramfb.c:37:5:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    access.length = cpu_to_be32(length);
data/seabios-1.14.0/vgasrc/ramfb.c:38:5:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    access.control = cpu_to_be32(control);
data/seabios-1.14.0/vgasrc/ramfb.c:42:28:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    outl(cpu_to_be32((u32)&access), PORT_QEMU_CFG_DMA_ADDR_LOW);
data/seabios-1.14.0/vgasrc/ramfb.c:44:23:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    while(be32_to_cpu(access.control) & ~QEMU_CFG_DMA_CTL_ERROR)
data/seabios-1.14.0/scripts/kconfig/conf.c:504:16:  [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 ((opt = getopt_long(ac, av, "", long_opts, NULL)) != -1) {
data/seabios-1.14.0/scripts/kconfig/conf.c:527:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
			seed_env = getenv("KCONFIG_SEED");
data/seabios-1.14.0/scripts/kconfig/conf.c:536:4:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			srand(seed);
data/seabios-1.14.0/scripts/kconfig/conf.c:599:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		name = getenv("KCONFIG_ALLCONFIG");
data/seabios-1.14.0/scripts/kconfig/conf.c:633:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
			name = getenv("KCONFIG_NOSILENTUPDATE");
data/seabios-1.14.0/scripts/kconfig/confdata.c:66:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *name = getenv("KCONFIG_CONFIG");
data/seabios-1.14.0/scripts/kconfig/confdata.c:73:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *name = getenv("KCONFIG_AUTOCONFIG");
data/seabios-1.14.0/scripts/kconfig/confdata.c:111:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env = getenv(SRCTREE);
data/seabios-1.14.0/scripts/kconfig/confdata.c:772:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env = getenv("KCONFIG_OVERWRITECONFIG");
data/seabios-1.14.0/scripts/kconfig/confdata.c:1008:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	name = getenv("KCONFIG_AUTOHEADER");
data/seabios-1.14.0/scripts/kconfig/confdata.c:1013:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	name = getenv("KCONFIG_TRISTATE");
data/seabios-1.14.0/scripts/kconfig/confdata.c:1137:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		char *env = getenv("KCONFIG_PROBABILITY");
data/seabios-1.14.0/scripts/kconfig/gconf.c:1487:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env = getenv(SRCTREE);
data/seabios-1.14.0/scripts/kconfig/lex.zconf.c:2344:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		env = getenv(SRCTREE);
data/seabios-1.14.0/scripts/kconfig/lkc.h:44:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	return getenv( "CONFIG_" ) ?: CONFIG_;
data/seabios-1.14.0/scripts/kconfig/lxdialog/util.c:331:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	color_setup(getenv("MENUCONFIG_COLOR"));
data/seabios-1.14.0/scripts/kconfig/mconf.c:1016:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	mode = getenv("MENUCONFIG_MODE");
data/seabios-1.14.0/scripts/kconfig/nconf.c:1488:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	mode = getenv("NCONFIG_MODE");
data/seabios-1.14.0/scripts/kconfig/symbol.c:1368:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	p = getenv(env);
data/seabios-1.14.0/scripts/kconfig/util.c:65:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		value = getenv(env_sym->name);
data/seabios-1.14.0/scripts/kconfig/conf.c:44: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 line[128];
data/seabios-1.14.0/scripts/kconfig/conf.c:323:11:  [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).
				cnt = atoi(line);
data/seabios-1.14.0/scripts/kconfig/confdata.c:82:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char res_value[SYMBOL_MAXLENGTH];
data/seabios-1.14.0/scripts/kconfig/confdata.c:83: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 *dst, name[SYMBOL_MAXLENGTH];
data/seabios-1.14.0/scripts/kconfig/confdata.c:107:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char fullname[PATH_MAX+1];
data/seabios-1.14.0/scripts/kconfig/confdata.c:651:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/seabios-1.14.0/scripts/kconfig/confdata.c:672:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	out = fopen(filename, "w");
data/seabios-1.14.0/scripts/kconfig/confdata.c:746: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 dirname[PATH_MAX+1], tmpname[PATH_MAX+1], newname[PATH_MAX+1];
data/seabios-1.14.0/scripts/kconfig/confdata.c:760: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(dirname, name, size);
data/seabios-1.14.0/scripts/kconfig/confdata.c:775:9:  [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).
		out = fopen(tmpname, "w");
data/seabios-1.14.0/scripts/kconfig/confdata.c:778:9:  [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).
		out = fopen(newname, "w");
data/seabios-1.14.0/scripts/kconfig/confdata.c:826:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(dirname, ".old");
data/seabios-1.14.0/scripts/kconfig/confdata.c:842:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX+1];
data/seabios-1.14.0/scripts/kconfig/confdata.c:913:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(d, ".h");
data/seabios-1.14.0/scripts/kconfig/confdata.c:916:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644);
data/seabios-1.14.0/scripts/kconfig/confdata.c:936:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644);
data/seabios-1.14.0/scripts/kconfig/confdata.c:965:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	out = fopen(".tmpconfig", "w");
data/seabios-1.14.0/scripts/kconfig/confdata.c:969: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).
	tristate = fopen(".tmpconfig_tristate", "w");
data/seabios-1.14.0/scripts/kconfig/confdata.c:975:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	out_h = fopen(".tmpconfig.h", "w");
data/seabios-1.14.0/scripts/kconfig/expr.c:70: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(e, org, sizeof(*org));
data/seabios-1.14.0/scripts/kconfig/expr.c:1115:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[32];
data/seabios-1.14.0/scripts/kconfig/expr.c:1116:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "<unknown type %d>", e->type);
data/seabios-1.14.0/scripts/kconfig/gconf.c:84:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[256];
data/seabios-1.14.0/scripts/kconfig/gconf.c:89:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(buf, "const/");
data/seabios-1.14.0/scripts/kconfig/gconf.c:91:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(buf, "check/");
data/seabios-1.14.0/scripts/kconfig/gconf.c:93:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(buf, "choice/");
data/seabios-1.14.0/scripts/kconfig/gconf.c:95:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(buf, "choiceval/");
data/seabios-1.14.0/scripts/kconfig/gconf.c:97:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(buf, "valid/");
data/seabios-1.14.0/scripts/kconfig/gconf.c:99:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(buf, "optional/");
data/seabios-1.14.0/scripts/kconfig/gconf.c:101:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(buf, "write/");
data/seabios-1.14.0/scripts/kconfig/gconf.c:103:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(buf, "changed/");
data/seabios-1.14.0/scripts/kconfig/gconf.c:105:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(buf, "auto/");
data/seabios-1.14.0/scripts/kconfig/gconf.c:1192:44:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	pix = gdk_pixbuf_new_from_xpm_data((const char **)
data/seabios-1.14.0/scripts/kconfig/gconf.c:1253: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(&found, child, sizeof(GtkTreeIter));
data/seabios-1.14.0/scripts/kconfig/gconf.c:1310: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(&tmp, child2, sizeof(GtkTreeIter));
data/seabios-1.14.0/scripts/kconfig/gconf.c:1335: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(&tmp, child2, sizeof(GtkTreeIter));
data/seabios-1.14.0/scripts/kconfig/kxgettext.c:153: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 bf[16384];
data/seabios-1.14.0/scripts/kconfig/lex.zconf.c:830: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(text + text_size, str, size);
data/seabios-1.14.0/scripts/kconfig/lex.zconf.c:838: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(text, str, size);
data/seabios-1.14.0/scripts/kconfig/lex.zconf.c:2339: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 *env, fullname[PATH_MAX+1];
data/seabios-1.14.0/scripts/kconfig/lex.zconf.c:2342:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(name, "r");
data/seabios-1.14.0/scripts/kconfig/lex.zconf.c:2347:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			f = fopen(fullname, "r");
data/seabios-1.14.0/scripts/kconfig/lxdialog/dialog.h:173: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 str[MAXITEMSTR];	/* promtp displayed */
data/seabios-1.14.0/scripts/kconfig/lxdialog/inputbox.c:24:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char dialog_input_result[MAX_LEN + 1];
data/seabios-1.14.0/scripts/kconfig/lxdialog/textbox.c:372:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char line[MAX_LEN + 1];
data/seabios-1.14.0/scripts/kconfig/lxdialog/util.c:386: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 tempstr[MAX_LEN + 1], *word, *sp, *sp2, *newline_separator = 0;
data/seabios-1.14.0/scripts/kconfig/mconf.c:295: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 filename[PATH_MAX+1];
data/seabios-1.14.0/scripts/kconfig/mconf.c:298:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char menu_backtitle[PATH_MAX+128];
data/seabios-1.14.0/scripts/kconfig/mconf.c:371: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 header[4];
data/seabios-1.14.0/scripts/kconfig/mconf.c:376:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				sprintf(header, "(%c)", key);
data/seabios-1.14.0/scripts/kconfig/mconf.c:381:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				sprintf(header, "   ");
data/seabios-1.14.0/scripts/kconfig/mconf.c:384:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(buf + pos->offset, header, sizeof(header) - 1);
data/seabios-1.14.0/scripts/kconfig/mconf.c:777:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[PATH_MAX+1];
data/seabios-1.14.0/scripts/kconfig/nconf.c:248: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 str[256];
data/seabios-1.14.0/scripts/kconfig/nconf.c:546: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(k_menu_items[items_num].str, "XXX", 3);
data/seabios-1.14.0/scripts/kconfig/nconf.c:567: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 new_str[256];
data/seabios-1.14.0/scripts/kconfig/nconf.c:568: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 tmp_str[256];
data/seabios-1.14.0/scripts/kconfig/nconf.c:626: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 filename[PATH_MAX+1];
data/seabios-1.14.0/scripts/kconfig/nconf.c:627: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 menu_backtitle[PATH_MAX+128];
data/seabios-1.14.0/scripts/kconfig/nconf.c:1012: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 pattern[256];
data/seabios-1.14.0/scripts/kconfig/nconf.c:1213:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/seabios-1.14.0/scripts/kconfig/nconf.gui.c:224: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 tmp[x+10];
data/seabios-1.14.0/scripts/kconfig/qconf.cc:932:34:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void ConfigList::setAllOpen(bool open)
data/seabios-1.14.0/scripts/kconfig/qconf.cc:937:25:  [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).
		it.current()->setOpen(open);
data/seabios-1.14.0/scripts/kconfig/qconf.cc:1280: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 title[256];
data/seabios-1.14.0/scripts/kconfig/qconf.h:117:23:  [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).
	void setAllOpen(bool open);
data/seabios-1.14.0/scripts/kconfig/symbol.c:160: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 str[64];
data/seabios-1.14.0/scripts/kconfig/symbol.c:183:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(str, "%lld", val2);
data/seabios-1.14.0/scripts/kconfig/symbol.c:185:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(str, "0x%llx", val2);
data/seabios-1.14.0/scripts/kconfig/symbol.c:882: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 *p, name[SYMBOL_MAXLENGTH];
data/seabios-1.14.0/scripts/kconfig/util.c:44:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	out = fopen("..config.tmp", "w");
data/seabios-1.14.0/scripts/kconfig/util.c:128:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char s[10000]; /* big enough... */
data/seabios-1.14.0/src/bmp.c:64:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(dest + i * bytes_per_line_dest,
data/seabios-1.14.0/src/boot.c:189:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char desc[256];
data/seabios-1.14.0/src/boot.c:209:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char desc[256];
data/seabios-1.14.0/src/boot.c:229:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char desc[256];
data/seabios-1.14.0/src/boot.c:314:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char desc[256];
data/seabios-1.14.0/src/boot.c:323:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char desc[256];
data/seabios-1.14.0/src/boot.c:335:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char desc[256];
data/seabios-1.14.0/src/boot.c:344:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char desc[256];
data/seabios-1.14.0/src/boot.c:359:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char desc[256];
data/seabios-1.14.0/src/boot.c:374:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char desc[256], *p;
data/seabios-1.14.0/src/boot.c:385:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char desc[256], *p;
data/seabios-1.14.0/src/boot.c:397:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char desc[256], *p;
data/seabios-1.14.0/src/boot.c:427:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char desc[256], *p;
data/seabios-1.14.0/src/boot.c:726:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char desc[77];
data/seabios-1.14.0/src/fw/acpi.c:33: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(h->oem_id, BUILD_APPNAME6, 6);
data/seabios-1.14.0/src/fw/acpi.c:34: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(h->oem_table_id, BUILD_APPNAME4, 4);
data/seabios-1.14.0/src/fw/acpi.c:35: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(h->oem_table_id + 4, (void*)&sig, 4);
data/seabios-1.14.0/src/fw/acpi.c:37: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(h->asl_compiler_id, BUILD_APPNAME4, 4);
data/seabios-1.14.0/src/fw/acpi.c:272: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(ssdt_ptr, name, 4);
data/seabios-1.14.0/src/fw/acpi.c:285:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ssdt_ptr, target, 4);
data/seabios-1.14.0/src/fw/acpi.c:308:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ssdt_ptr + PCIHP_OFFSET_EJ0, "EJ0_", 4);
data/seabios-1.14.0/src/fw/acpi.c:337: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(ssdt_ptr, ssdp_misc_aml, sizeof(ssdp_misc_aml));
data/seabios-1.14.0/src/fw/acpi.c:374:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ssdt_ptr, PROC_AML, PROC_SIZEOF);
data/seabios-1.14.0/src/fw/acpi.c:410:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ssdt_ptr, PCIHP_AML, PCIHP_SIZEOF);
data/seabios-1.14.0/src/fw/acpi.c:658:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(dsdt, AmlCode, sizeof(AmlCode));
data/seabios-1.14.0/src/fw/acpi.c:674: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(rsdt->table_offset_entry, tables, sizeof(u32) * tbl_idx);
data/seabios-1.14.0/src/fw/acpi.c:681: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(rsdp.oem_id, BUILD_APPNAME6, 6);
data/seabios-1.14.0/src/fw/biostables.c:42: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(newpos, pos, p->size);
data/seabios-1.14.0/src/fw/biostables.c:72: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(newpos, pos, length);
data/seabios-1.14.0/src/fw/biostables.c:75: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((void*)newpos + length, (void*)p->physaddr, mpclength);
data/seabios-1.14.0/src/fw/biostables.c:120: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(newpos, pos, length);
data/seabios-1.14.0/src/fw/biostables.c:314: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(newpos, pos, p->length);
data/seabios-1.14.0/src/fw/biostables.c:374:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(end, value, size);                                   \
data/seabios-1.14.0/src/fw/biostables.c:486: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(tables, qtables, qtables_len);
data/seabios-1.14.0/src/fw/coreboot.c:61:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  strings[0];
data/seabios-1.14.0/src/fw/coreboot.c:341:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char filename[0];
data/seabios-1.14.0/src/fw/coreboot.c:419:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(cfile, cufile, sizeof(*cfile));
data/seabios-1.14.0/src/fw/coreboot.c:532:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(dest, src, src_len);
data/seabios-1.14.0/src/fw/dsdt_parser.c:21:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[16];
data/seabios-1.14.0/src/fw/dsdt_parser.c:31:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[32];
data/seabios-1.14.0/src/fw/dsdt_parser.c:391:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char item[8];
data/seabios-1.14.0/src/fw/multiboot.c:92:47:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        dprintf(1, "module %s, size 0x%x\n", (char *)mod[i].cmdline, len);
data/seabios-1.14.0/src/fw/multiboot.c:93:50:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        if (!extract_filename(cfile->file.name, (char *)mod[i].cmdline,
data/seabios-1.14.0/src/fw/multiboot.c:106:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(copy, (void *)mod[i].mod_start, len);
data/seabios-1.14.0/src/fw/paravirt.c:60:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char signature[13];
data/seabios-1.14.0/src/fw/paravirt.c:63: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(signature + 0, &ebx, 4);
data/seabios-1.14.0/src/fw/paravirt.c:64: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(signature + 4, &ecx, 4);
data/seabios-1.14.0/src/fw/paravirt.c:65: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(signature + 8, &edx, 4);
data/seabios-1.14.0/src/fw/paravirt.c:551:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[128];
data/seabios-1.14.0/src/fw/paravirt.c:592:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[56];
data/seabios-1.14.0/src/fw/romfile_loader.c:121: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(&pointer, dest_file->data + offset, entry->pointer.size);
data/seabios-1.14.0/src/fw/romfile_loader.c:125: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(dest_file->data + offset, &pointer, entry->pointer.size);
data/seabios-1.14.0/src/fw/romfile_loader.h:22:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char file[ROMFILE_LOADER_FILESZ];
data/seabios-1.14.0/src/fw/romfile_loader.h:34:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char dest_file[ROMFILE_LOADER_FILESZ];
data/seabios-1.14.0/src/fw/romfile_loader.h:35:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char src_file[ROMFILE_LOADER_FILESZ];
data/seabios-1.14.0/src/fw/romfile_loader.h:48:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char file[ROMFILE_LOADER_FILESZ];
data/seabios-1.14.0/src/fw/romfile_loader.h:63:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char dest_file[ROMFILE_LOADER_FILESZ];
data/seabios-1.14.0/src/fw/romfile_loader.h:64:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char src_file[ROMFILE_LOADER_FILESZ];
data/seabios-1.14.0/src/fw/romfile_loader.h:71:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char pad[124];
data/seabios-1.14.0/src/fw/shadow.c:54:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(VSYMBOL(code32flat_start)
data/seabios-1.14.0/src/fw/shadow.c:191:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy((void*)cstart, flash + cstart, hrp - cstart);
data/seabios-1.14.0/src/fw/shadow.c:192:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy((void*)hrp + 4, flash + hrp + 4, cend - (hrp + 4));
data/seabios-1.14.0/src/fw/smbios.c:36: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(finaltable, structure_table_address, structure_table_length);
data/seabios-1.14.0/src/fw/smbios.c:45: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(ep.intermediate_anchor_string, "_DMI_", 5);
data/seabios-1.14.0/src/fw/smbios.c:62:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[128];
data/seabios-1.14.0/src/fw/smbios.c:86:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char prefix[128];
data/seabios-1.14.0/src/fw/smbios.c:137:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(end, def, sizeof(def));                              \
data/seabios-1.14.0/src/fw/smbios.c:300:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[1024];
data/seabios-1.14.0/src/fw/smbios.c:313:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(end, name, strlen(name) + 1);
data/seabios-1.14.0/src/fw/smbios.c:389:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[1024];
data/seabios-1.14.0/src/fw/smbios.c:410: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(end, name, strlen(name) + 1);
data/seabios-1.14.0/src/fw/smm.c:104:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(&smm->cpu.i32.eax, regs, sizeof(regs));
data/seabios-1.14.0/src/fw/smm.c:111:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(&smm->cpu.i32.eax, regs, sizeof(regs));
data/seabios-1.14.0/src/fw/smm.c:122:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(&smm->cpu.i64.rdi, regs, sizeof(regs));
data/seabios-1.14.0/src/fw/smm.c:128:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(&smm->cpu.i64.rdi, regs, sizeof(regs));
data/seabios-1.14.0/src/fw/xen.c:25:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char signature[14]; /* XenHVMSeaBIOS\0 */
data/seabios-1.14.0/src/fw/xen.c:58:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char signature[13];
data/seabios-1.14.0/src/fw/xen.c:65:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(signature + 0, &ebx, 4);
data/seabios-1.14.0/src/fw/xen.c:66:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(signature + 4, &ecx, 4);
data/seabios-1.14.0/src/fw/xen.c:67:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(signature + 8, &edx, 4);
data/seabios-1.14.0/src/fw/xen.h:122:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef char xen_extraversion_t[16];
data/seabios-1.14.0/src/hw/ahci.c:430:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char model[MAXMODEL+1];
data/seabios-1.14.0/src/hw/ata.c:744:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char model[MAXMODEL+1];
data/seabios-1.14.0/src/hw/ata.c:800:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char model[MAXMODEL+1];
data/seabios-1.14.0/src/hw/blockcmd.c:124:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(cdbcmd, op->cdbcmd, maxcdb);
data/seabios-1.14.0/src/hw/blockcmd.c:292:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vendor[sizeof(data.vendor)+1], product[sizeof(data.product)+1];
data/seabios-1.14.0/src/hw/blockcmd.c:293:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char rev[sizeof(data.rev)+1];
data/seabios-1.14.0/src/hw/blockcmd.h:69:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char vendor[8];
data/seabios-1.14.0/src/hw/blockcmd.h:70:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char product[16];
data/seabios-1.14.0/src/hw/blockcmd.h:71:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char rev[4];
data/seabios-1.14.0/src/hw/floppy.c:129: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(&drive->lchs, &FloppyInfo[ftype].chs
data/seabios-1.14.0/src/hw/mpt-scsi.c:146: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(req.scsi_io.CDB, cdb, 16);
data/seabios-1.14.0/src/hw/nvme-int.h:130:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sn[20];
data/seabios-1.14.0/src/hw/nvme-int.h:131:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char mn[40];
data/seabios-1.14.0/src/hw/nvme-int.h:132:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fr[8];
data/seabios-1.14.0/src/hw/nvme-int.h:134:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char _boring[516 - 72];
data/seabios-1.14.0/src/hw/nvme-int.h:158:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char _boring[128 - 27];
data/seabios-1.14.0/src/hw/nvme.c:668:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(ns->dma_buffer, op_buf, blocks * ns->block_size);
data/seabios-1.14.0/src/hw/nvme.c:677:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(op_buf, ns->dma_buffer, blocks * ns->block_size);
data/seabios-1.14.0/src/hw/sdcard.c:205: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(param, regs->response, sizeof(regs->response));
data/seabios-1.14.0/src/hw/sdcard.c:468:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pnm[7] = {};
data/seabios-1.14.0/src/hw/tpm_drivers.c:169:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(durations, tpm_default_durations,
data/seabios-1.14.0/src/hw/tpm_drivers.c:176:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(timeouts, tis_default_timeouts,
data/seabios-1.14.0/src/hw/tpm_drivers.c:204:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(tos, timeouts, 4 * sizeof(u32));
data/seabios-1.14.0/src/hw/tpm_drivers.c:206:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(dus, durations, 3 * sizeof(u32));
data/seabios-1.14.0/src/hw/tpm_drivers.c:487: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(crb_cmd, data, len);
data/seabios-1.14.0/src/hw/tpm_drivers.c:505:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer, crb_resp, 6);
data/seabios-1.14.0/src/hw/tpm_drivers.c:512:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer + 6, crb_resp + 6, *len - 6);
data/seabios-1.14.0/src/hw/usb-xhci.c:272: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 *speed_name[16] = {
data/seabios-1.14.0/src/hw/usb-xhci.c:680:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(evt, etrb, sizeof(*etrb));
data/seabios-1.14.0/src/hw/usb-xhci.c:753:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&dst->ptr_low, data, xferlen);
data/seabios-1.14.0/src/hw/usb-xhci.c:1158:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data, buf, len);
data/seabios-1.14.0/src/hw/virtio-ring.h:72:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef unsigned char virtio_queue_t[vring_size(MAX_QUEUE_NUM)];
data/seabios-1.14.0/src/hw/virtio-scsi.c:31:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[16];
data/seabios-1.14.0/src/hw/virtio-scsi.h:28:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cdb[VIRTIO_SCSI_CDB_SIZE];
data/seabios-1.14.0/src/jpeg.c:98:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char vals[256];
data/seabios-1.14.0/src/jpeg.c:179:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char quant[4][64];
data/seabios-1.14.0/src/jpeg.c:234:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                unsigned char huffvals[256];
data/seabios-1.14.0/src/jpeg.c:715: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 zig2[64] = {
data/seabios-1.14.0/src/jpeg.c:792: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 zig[64] = {
data/seabios-1.14.0/src/malloc.c:89: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(detail, temp, sizeof(*detail));
data/seabios-1.14.0/src/optionroms.c:332:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fname[17];
data/seabios-1.14.0/src/output.c:148:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[12];
data/seabios-1.14.0/src/post.c:273: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(codedest, codesrc, initsize);
data/seabios-1.14.0/src/romfile.c:116: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(dst, cfile->data, maxlen);
data/seabios-1.14.0/src/romfile.h:9:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[128];
data/seabios-1.14.0/src/sercon.c:555:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char seq[4];
data/seabios-1.14.0/src/sha1.c:97:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(w, data32 + offset, 64);
data/seabios-1.14.0/src/sha1.c:106: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(w, data32 + offset, num);
data/seabios-1.14.0/src/sha1.c:119: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(&w[14], &tmp, 8);
data/seabios-1.14.0/src/sha1.c:144: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(hash, &ctx.h[0], 20);
data/seabios-1.14.0/src/std/mptable.h:26:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char oemid[8];
data/seabios-1.14.0/src/std/mptable.h:27:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char productid[12];
data/seabios-1.14.0/src/std/mptable.h:56:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char bustype[6];
data/seabios-1.14.0/src/std/smbios.h:20:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char intermediate_anchor_string[5];
data/seabios-1.14.0/src/string.c:113: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.
        ((char *)s)[--n] = c;
data/seabios-1.14.0/src/string.c:149:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(d_fl, s_fl, len);
data/seabios-1.14.0/src/string.c:153:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#undef memcpy
data/seabios-1.14.0/src/string.c:154:1:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
memcpy(void *d1, const void *s1, size_t len)
data/seabios-1.14.0/src/string.c:156:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define memcpy __builtin_memcpy
data/seabios-1.14.0/src/string.c:199:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(d, s, len);
data/seabios-1.14.0/src/string.c:206:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        return memcpy(d, s, len);
data/seabios-1.14.0/src/string.h:21:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
void *memcpy(void *d1, const void *s1, size_t len);
data/seabios-1.14.0/src/string.h:23:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define memcpy __builtin_memcpy
data/seabios-1.14.0/src/tcgbios.c:131: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(dest, entry, sizeof(*entry) + digest_len);
data/seabios-1.14.0/src/tcgbios.c:134:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(t->event, event, event_len);
data/seabios-1.14.0/src/tcgbios.c:395:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(v->hash, sha1, hsize > SHA1_BUFSIZE ? SHA1_BUFSIZE : hsize);
data/seabios-1.14.0/src/tcgbios.c:421: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(le->hdr.digest, sha1, SHA1_BUFSIZE);
data/seabios-1.14.0/src/tcgbios.c:527:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(tpm20_pcr_selection, &trg->data, size);
data/seabios-1.14.0/src/tcgbios.c:620: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(trpa.tpms_pcr_selections, tps, i * sizeof(tps[0]));
data/seabios-1.14.0/src/tcgbios.c:677:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf, &pf.perm_flags, buf_len);
data/seabios-1.14.0/src/tcgbios.c:777: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(tre, &tmp_tre, sizeof(tmp_tre));
data/seabios-1.14.0/src/tcgbios.c:778: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(&tre->digest[0], le->hdr.digest, digest_len);
data/seabios-1.14.0/src/tcgbios.c:851:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buf, rsp.rnd.buffer, buf_len);
data/seabios-1.14.0/vgasrc/ramfb.c:24:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[56];
data/seabios-1.14.0/scripts/kconfig/conf.c:64:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	l = strlen(p);
data/seabios-1.14.0/scripts/kconfig/conf.c:158:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			line[strlen(line)-1] = 0;
data/seabios-1.14.0/scripts/kconfig/conf.c:340:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (line[0] && line[strlen(line) - 1] == '?') {
data/seabios-1.14.0/scripts/kconfig/confdata.c:88:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(res_value, in, src - in);
data/seabios-1.14.0/scripts/kconfig/confdata.c:163:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			memmove(p2, p2 + 1, strlen(p2));
data/seabios-1.14.0/scripts/kconfig/confdata.c:217:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int c = getc(stream);
data/seabios-1.14.0/scripts/kconfig/confdata.c:315:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (memcmp(line + 2, CONFIG_, strlen(CONFIG_)))
data/seabios-1.14.0/scripts/kconfig/confdata.c:317:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			p = strchr(line + 2 + strlen(CONFIG_), ' ');
data/seabios-1.14.0/scripts/kconfig/confdata.c:324:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				sym = sym_find(line + 2 + strlen(CONFIG_));
data/seabios-1.14.0/scripts/kconfig/confdata.c:330:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				sym = sym_lookup(line + 2 + strlen(CONFIG_), 0);
data/seabios-1.14.0/scripts/kconfig/confdata.c:346:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		} else if (memcmp(line, CONFIG_, strlen(CONFIG_)) == 0) {
data/seabios-1.14.0/scripts/kconfig/confdata.c:347:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			p = strchr(line + strlen(CONFIG_), '=');
data/seabios-1.14.0/scripts/kconfig/confdata.c:358:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				sym = sym_find(line + strlen(CONFIG_));
data/seabios-1.14.0/scripts/kconfig/confdata.c:364:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				sym = sym_lookup(line + strlen(CONFIG_), 0);
data/seabios-1.14.0/scripts/kconfig/confdata.c:756:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
			strcat(dirname, "/");
data/seabios-1.14.0/scripts/kconfig/expr.c:1127:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	xfwrite(str, strlen(str), 1, data);
data/seabios-1.14.0/scripts/kconfig/expr.c:1144:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		unsigned extra_length = strlen(str);
data/seabios-1.14.0/scripts/kconfig/expr.c:1149:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			extra_length += 4 + strlen(sym_str);
data/seabios-1.14.0/scripts/kconfig/expr.c:1154:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		last_line_length = strlen(gs->s) - (last_cr - gs->s);
data/seabios-1.14.0/scripts/kconfig/gconf.c:107:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	buf[strlen(buf) - 1] = '\0';
data/seabios-1.14.0/scripts/kconfig/kxgettext.c:17:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int textlen = strlen(text);
data/seabios-1.14.0/scripts/kconfig/kxgettext.c:222:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(m->msg) > sizeof("\"\""))
data/seabios-1.14.0/scripts/kconfig/lex.zconf.c:947:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ( (result = read( fileno(zconfin), (char *) buf, max_size )) < 0 ) \
data/seabios-1.14.0/scripts/kconfig/lex.zconf.c:2071:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return zconf_scan_bytes(yystr,strlen(yystr) );
data/seabios-1.14.0/scripts/kconfig/lxdialog/checklist.c:36:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(list_item, item_str(), list_width - item_x);
data/seabios-1.14.0/scripts/kconfig/lxdialog/checklist.c:182:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		check_x = MAX(check_x, strlen(item_str()) + 4);
data/seabios-1.14.0/scripts/kconfig/lxdialog/inputbox.c:101:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(instr);
data/seabios-1.14.0/scripts/kconfig/lxdialog/menubox.c:72:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(menu_item, item, menu_width - item_x);
data/seabios-1.14.0/scripts/kconfig/lxdialog/textbox.c:167:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			page = buf + strlen(buf);
data/seabios-1.14.0/scripts/kconfig/lxdialog/textbox.c:346:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	line += MIN(strlen(line), hscroll);	/* Scroll horizontally */
data/seabios-1.14.0/scripts/kconfig/lxdialog/textbox.c:349:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	waddnstr(win, line, MIN(strlen(line), width - 2));
data/seabios-1.14.0/scripts/kconfig/lxdialog/textbox.c:405:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	percent = (page - buf) * 100 / strlen(buf);
data/seabios-1.14.0/scripts/kconfig/lxdialog/util.c:273:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len += strlen(pos->text) + 3;
data/seabios-1.14.0/scripts/kconfig/lxdialog/util.c:280:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			skip = len - (columns - 2 - strlen(ellipsis));
data/seabios-1.14.0/scripts/kconfig/lxdialog/util.c:294:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (skip < strlen(pos->text)) {
data/seabios-1.14.0/scripts/kconfig/lxdialog/util.c:298:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				skip -= strlen(pos->text);
data/seabios-1.14.0/scripts/kconfig/lxdialog/util.c:368:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int tlen = MIN(width - 2, strlen(title));
data/seabios-1.14.0/scripts/kconfig/lxdialog/util.c:390:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	prompt_len = strlen(tempstr);
data/seabios-1.14.0/scripts/kconfig/lxdialog/util.c:412:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			wlen = strlen(word);
data/seabios-1.14.0/scripts/kconfig/lxdialog/util.c:415:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			     && wlen + 1 + strlen(sp) > room
data/seabios-1.14.0/scripts/kconfig/lxdialog/util.c:536:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for (i = 0; i < strlen(string); i++) {
data/seabios-1.14.0/scripts/kconfig/lxdialog/util.c:628:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	avail = sizeof(item_cur->node.str) - strlen(item_cur->node.str);
data/seabios-1.14.0/scripts/kconfig/lxdialog/util.c:631:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	vsnprintf(item_cur->node.str + strlen(item_cur->node.str),
data/seabios-1.14.0/scripts/kconfig/mconf.c:423:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strncasecmp(dialog_input_result, CONFIG_, strlen(CONFIG_)) == 0)
data/seabios-1.14.0/scripts/kconfig/mconf.c:424:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		dialog_input += strlen(CONFIG_);
data/seabios-1.14.0/scripts/kconfig/mconf.c:615:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				tmp = 2 + strlen(sym_get_string_value(sym)); /* () = 2 */
data/seabios-1.14.0/scripts/kconfig/menu.c:590:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				jump->offset = strlen(r->s);
data/seabios-1.14.0/scripts/kconfig/nconf.c:376:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		offset += strlen(function_keys[i].key_str);
data/seabios-1.14.0/scripts/kconfig/nconf.c:380:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		offset += strlen(function_keys[i].func) + skip;
data/seabios-1.14.0/scripts/kconfig/nconf.c:578:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(k_menu_items[index].str,
data/seabios-1.14.0/scripts/kconfig/nconf.c:720:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strncasecmp(dialog_input_result, CONFIG_, strlen(CONFIG_)) == 0)
data/seabios-1.14.0/scripts/kconfig/nconf.c:721:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		dialog_input += strlen(CONFIG_);
data/seabios-1.14.0/scripts/kconfig/nconf.c:888:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				tmp = 2 + strlen(sym_get_string_value(sym));
data/seabios-1.14.0/scripts/kconfig/nconf.c:1036:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		state->pattern[strlen(state->pattern)] = c;
data/seabios-1.14.0/scripts/kconfig/nconf.c:1037:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		state->pattern[strlen(state->pattern)] = '\0';
data/seabios-1.14.0/scripts/kconfig/nconf.c:1050:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		state->pattern[strlen(state->pattern)-1] = '\0';
data/seabios-1.14.0/scripts/kconfig/nconf.gui.c:167:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	length = strlen(string);
data/seabios-1.14.0/scripts/kconfig/nconf.gui.c:227:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(tmp, line, min(len, x));
data/seabios-1.14.0/scripts/kconfig/nconf.gui.c:263:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		btns_width += strlen(btn)+1;
data/seabios-1.14.0/scripts/kconfig/nconf.gui.c:369:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int cursor_position = strlen(init);
data/seabios-1.14.0/scripts/kconfig/nconf.gui.c:373:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(init)+1 > *result_len) {
data/seabios-1.14.0/scripts/kconfig/nconf.gui.c:374:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		*result_len = strlen(init)+1;
data/seabios-1.14.0/scripts/kconfig/nconf.gui.c:387:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		prompt_width = max(prompt_width, strlen(title));
data/seabios-1.14.0/scripts/kconfig/nconf.gui.c:393:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(result, init, *result_len);
data/seabios-1.14.0/scripts/kconfig/nconf.gui.c:427:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int len = strlen(result);
data/seabios-1.14.0/scripts/kconfig/symbol.c:668:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size = strlen(newval) + 1;
data/seabios-1.14.0/scripts/kconfig/symbol.c:877:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	reslen = strlen(in) + 1;
data/seabios-1.14.0/scripts/kconfig/symbol.c:887:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(res, in, src - in);
data/seabios-1.14.0/scripts/kconfig/symbol.c:901:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		newlen = strlen(res) + strlen(symval) + strlen(src) + 1;
data/seabios-1.14.0/scripts/kconfig/symbol.c:901:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		newlen = strlen(res) + strlen(symval) + strlen(src) + 1;
data/seabios-1.14.0/scripts/kconfig/symbol.c:901:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		newlen = strlen(res) + strlen(symval) + strlen(src) + 1;
data/seabios-1.14.0/scripts/kconfig/symbol.c:922:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	reslen = strlen(in) + strlen("\"\"") + 1;
data/seabios-1.14.0/scripts/kconfig/symbol.c:922:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	reslen = strlen(in) + strlen("\"\"") + 1;
data/seabios-1.14.0/scripts/kconfig/symbol.c:939:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(res, "\"");
data/seabios-1.14.0/scripts/kconfig/symbol.c:944:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(res, p, l);
data/seabios-1.14.0/scripts/kconfig/symbol.c:950:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		strcat(res, "\\");
data/seabios-1.14.0/scripts/kconfig/symbol.c:951:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(res, p++, 1);
data/seabios-1.14.0/scripts/kconfig/symbol.c:954:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(res, "\"");
data/seabios-1.14.0/scripts/kconfig/symbol.c:982:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	exact1 = (s1->eo - s1->so) == strlen(s1->sym->name);
data/seabios-1.14.0/scripts/kconfig/symbol.c:983:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	exact2 = (s2->eo - s2->so) == strlen(s2->sym->name);
data/seabios-1.14.0/scripts/kconfig/symbol.c:1003:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(pattern) == 0)
data/seabios-1.14.0/scripts/kconfig/util.c:87:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(gs.s, "\0");
data/seabios-1.14.0/scripts/kconfig/util.c:96:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	gs.len = strlen(s) + 1;
data/seabios-1.14.0/scripts/kconfig/util.c:115:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		l = strlen(gs->s) + strlen(s) + 1;
data/seabios-1.14.0/scripts/kconfig/util.c:115:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		l = strlen(gs->s) + strlen(s) + 1;
data/seabios-1.14.0/src/fw/biostables.c:372:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        int size = (value != NULL) ? strlen(value) + 1 : 0;             \
data/seabios-1.14.0/src/fw/biostables.c:463:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        u16 t0_len = sizeof(struct smbios_type_0) + strlen(BIOS_NAME) +
data/seabios-1.14.0/src/fw/biostables.c:464:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                     strlen(VERSION) + strlen(BIOS_DATE) + 4;
data/seabios-1.14.0/src/fw/biostables.c:464:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                     strlen(VERSION) + strlen(BIOS_DATE) + 4;
data/seabios-1.14.0/src/fw/coreboot.c:467:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        int len = strlen(cfile->file.name);
data/seabios-1.14.0/src/fw/smbios.c:313:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    memcpy(end, name, strlen(name) + 1);
data/seabios-1.14.0/src/fw/smbios.c:314:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    end += strlen(name) + 1;
data/seabios-1.14.0/src/fw/smbios.c:410:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    memcpy(end, name, strlen(name) + 1);
data/seabios-1.14.0/src/fw/smbios.c:411:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    end += strlen(name) + 1;
data/seabios-1.14.0/src/hw/esp-scsi.c:70:48:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
esp_scsi_dma(u32 iobase, u32 buf, u32 len, int read)
data/seabios-1.14.0/src/hw/esp-scsi.c:77:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    outb(read ? 0x83 : 0x03, iobase + ESP_DMA_CMD);
data/seabios-1.14.0/src/hw/esp-scsi.c:146:9:  [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(5);
data/seabios-1.14.0/src/hw/floppy.c:336:5:  [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(4);
data/seabios-1.14.0/src/hw/lsi-scsi.c:124:9:  [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(5);
data/seabios-1.14.0/src/hw/mpt-scsi.c:175:9:  [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(50);
data/seabios-1.14.0/src/hw/pvscsi.c:161:9:  [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(5);
data/seabios-1.14.0/src/hw/timer.c:243:6:  [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.
void usleep(u32 count) {
data/seabios-1.14.0/src/hw/virtio-blk.c:69:9:  [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(5);
data/seabios-1.14.0/src/hw/virtio-scsi.c:83:9:  [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(5);
data/seabios-1.14.0/src/romfile.c:41:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return __romfile_findprefix(prefix, strlen(prefix), prev);
data/seabios-1.14.0/src/romfile.c:47:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return __romfile_findprefix(name, strlen(name) + 1, NULL);
data/seabios-1.14.0/src/string.c:35:1:  [1] (buffer) strlen:
  Does not handle 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(const char *s)
data/seabios-1.14.0/src/string.c:244:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(buf);
data/seabios-1.14.0/src/string.h:10:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
size_t strlen(const char *s);
data/seabios-1.14.0/src/tcgbios.c:1004:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    u32 len = strlen(string);
data/seabios-1.14.0/src/tcgbios.c:1293:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                               string, strlen(string),
data/seabios-1.14.0/src/tcgbios.c:1299:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                               string, strlen(string),
data/seabios-1.14.0/src/tcgbios.c:1314:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                               string, strlen(string),
data/seabios-1.14.0/src/tcgbios.c:1329:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                               string, strlen(string),
data/seabios-1.14.0/src/util.h:195:6:  [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.
void usleep(u32 count);

ANALYSIS SUMMARY:

Hits = 423
Lines analyzed = 73939 in approximately 1.67 seconds (44272 lines/second)
Physical Source Lines of Code (SLOC) = 58126
Hits@level = [0] 249 [1] 115 [2] 227 [3]  20 [4]  61 [5]   0
Hits@level+ = [0+] 672 [1+] 423 [2+] 308 [3+]  81 [4+]  61 [5+]   0
Hits/KSLOC@level+ = [0+] 11.5611 [1+] 7.27729 [2+] 5.29883 [3+] 1.39352 [4+] 1.04944 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.