messages listlengths 3 3 | metadata dict |
|---|---|
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Process and extract DNG metadata fields for raw image decoding.\n *\n * Copies DNG color matrices, calibration... | {
"cve": "CVE-2020-24870",
"cve_desc": "Libraw before 0.20.1 has a stack buffer overflow via LibRaw::identify_process_dng_fields in identify.cpp.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "fedfe570-7d39-43f1-9d7e-d493772e8f7c"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Read a file from an Oberthur smart card.\n *\n * Selects and reads the contents of a file from an Oberthur sma... | {
"cve": "CVE-2020-26570",
"cve_desc": "The Oberthur smart card software driver in OpenSC before 0.21.0-rc1 has a heap-based buffer overflow in sc_oberthur_read_file.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "ccb01e75-c18b-43da-98cf-8f5f6beb9059"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Initialize a GreenAsia 0x12 force feedback HID device.\n *\n * This function sets up force feedback support fo... | {
"cve": "CVE-2019-19532",
"cve_desc": "In the Linux kernel before 5.3.9, there are multiple out-of-bounds write bugs that can be caused by a malicious USB device in the Linux kernel HID drivers, aka CID-d9d4b1e46d95. This affects drivers/hid/hid-axff.c, drivers/hid/hid-dr.c, drivers/hid/hid-emsff.c, drivers/hid/hi... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Handles error page redirection by redirecting to a specified URI or setting Location header.\n *\n * Processes... | {
"cve": "CVE-2019-20372",
"cve_desc": "NGINX before 1.17.7, with certain error_page configurations, allows HTTP request smuggling, as demonstrated by the ability of an attacker to read unauthorized web pages in environments where NGINX is being fronted by a load balancer.",
"cwe": "['CWE-787']",
"target": 0,
... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Initialize force feedback for DragonRise Inc. game controllers.\n *\n * This function sets up force feedback (... | {
"cve": "CVE-2019-19532",
"cve_desc": "In the Linux kernel before 5.3.9, there are multiple out-of-bounds write bugs that can be caused by a malicious USB device in the Linux kernel HID drivers, aka CID-d9d4b1e46d95. This affects drivers/hid/hid-axff.c, drivers/hid/hid-dr.c, drivers/hid/hid-emsff.c, drivers/hid/hi... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Pre-allocate elements and initialize the freelist for a BPF stack map.\n *\n * Allocates memory for all stack ... | {
"cve": "CVE-2021-41864",
"cve_desc": "prealloc_elems_and_freelist in kernel/bpf/stackmap.c in the Linux kernel before 5.14.12 allows unprivileged users to trigger an eBPF multiplication integer overflow with a resultant out-of-bounds write.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "6229e609-b742-4e57-be... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Writes the encoded bitbuffer data to the output stream.\n *\n * Retrieves the encoded data from the bitwriter ... | {
"cve": "CVE-2021-0561",
"cve_desc": "In append_to_verify_fifo_interleaved_ of stream_encoder.c, there is a possible out of bounds write due to a missing bounds check. This could lead to local information disclosure with no additional execution privileges needed. User interaction is not needed for exploitation.Pro... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Initialize a ThrustMaster force feedback device.\n *\n * Allocates and configures a tmff_device structure for ... | {
"cve": "CVE-2019-19532",
"cve_desc": "In the Linux kernel before 5.3.9, there are multiple out-of-bounds write bugs that can be caused by a malicious USB device in the Linux kernel HID drivers, aka CID-d9d4b1e46d95. This affects drivers/hid/hid-axff.c, drivers/hid/hid-dr.c, drivers/hid/hid-emsff.c, drivers/hid/hi... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Starts a floppy disk transfer operation by configuring transfer parameters and initiating the transfer.\n *\n ... | {
"cve": "CVE-2021-3507",
"cve_desc": "A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use thi... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Decodes a TIFF image from a buffer into an Imaging structure.\n *\n * This function processes the entire TIFF ... | {
"cve": "CVE-2016-0740",
"cve_desc": "Buffer overflow in the ImagingLibTiffDecode function in libImaging/TiffDecode.c in Pillow before 3.1.1 allows remote attackers to overwrite memory via a crafted TIFF file.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "28685413-e751-47ca-afbb-2861f4553823"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Display spelling suggestions and optionally replace the bad word.\n *\n * This function is part of Vim's spell... | {
"cve": "CVE-2022-0943",
"cve_desc": "Heap-based Buffer Overflow occurs in vim in GitHub repository vim/vim prior to 8.2.4563.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "5cda169b-5577-4767-8da9-5bede4f0c722"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Parse and extract EXIF metadata from TIFF/EXIF structure.\n *\n * Reads EXIF IFD entries and populates image m... | {
"cve": "CVE-2020-15365",
"cve_desc": "LibRaw before 0.20-Beta3 has an out-of-bounds write in parse_exif() in metadata\\exif_gps.cpp via an unrecognized AtomName and a zero value of tiff_nifds.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "1299e60b-15e5-43c8-9ea7-f0fe22af53aa"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Loads an XM module file and parses its contents into an XModule structure.\n *\n * Parses the XM file header, ... | {
"cve": "CVE-2022-34927",
"cve_desc": "MilkyTracker v1.03.00 was discovered to contain a stack overflow via the component LoaderXM::load. This vulnerability is triggered when the program is supplied a crafted XM module file.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "f5e6beb0-93ac-4f90-9e6f-499d2fb8c547"
... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Read and decode WebSocket data frames using the hybi protocol.\n *\n * Reads incoming WebSocket data from the ... | {
"cve": "CVE-2019-20840",
"cve_desc": "An issue was discovered in LibVNCServer before 0.9.13. libvncserver/ws_decode.c can lead to a crash because of unaligned accesses in hybiReadAndDecode.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "46cb9003-47f0-4d28-8f47-42d494c67b11"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Create and initialize a new ALG cipher object from Python arguments.\n *\n * Parses and validates cryptographi... | {
"cve": "CVE-2013-7459",
"cve_desc": "Heap-based buffer overflow in the ALGnew function in block_templace.c in Python Cryptography Toolkit (aka pycrypto) allows remote attackers to execute arbitrary code as demonstrated by a crafted iv parameter to cryptmsg.py.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "3... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Flush any pending ASCII hex encoded data to the output stream.\n *\n * Processes any buffered ASCII hex charac... | {
"cve": "CVE-2021-36978",
"cve_desc": "QPDF 9.x through 9.1.1 and 10.x through 10.0.4 has a heap-based buffer overflow in Pl_ASCII85Decoder::write (called from Pl_AES_PDF::flush and Pl_AES_PDF::finish) when a certain downstream write fails.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "15f8c315-61b2-46ea-bc0... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Initialize force feedback support for Logitech variant 2 rumble devices.\n *\n * Validates the HID output repo... | {
"cve": "CVE-2019-19532",
"cve_desc": "In the Linux kernel before 5.3.9, there are multiple out-of-bounds write bugs that can be caused by a malicious USB device in the Linux kernel HID drivers, aka CID-d9d4b1e46d95. This affects drivers/hid/hid-axff.c, drivers/hid/hid-dr.c, drivers/hid/hid-emsff.c, drivers/hid/hi... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Handle a graphics command to add or load an image.\n *\n * Processes an image loading command with support for... | {
"cve": "CVE-2020-35605",
"cve_desc": "The Graphics Protocol feature in graphics.c in kitty before 0.19.3 allows remote attackers to execute arbitrary code because a filename containing special characters can be included in an error message.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "41d5b6ee-1a8e-485e-b1... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Updates a scaled rectangle from source screen to destination screen.\n *\n * Copies pixel data from a source f... | {
"cve": "CVE-2020-14401",
"cve_desc": "An issue was discovered in LibVNCServer before 0.9.13. libvncserver/scale.c has a pixel_value integer overflow.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "5ba369eb-96ad-4a09-b343-b8f82d914112"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Constructor for AP4_AvccAtom that parses AVCC configuration data from a byte stream.\n *\n * Initializes the A... | {
"cve": "CVE-2017-14646",
"cve_desc": "The AP4_AvccAtom and AP4_HvccAtom classes in Bento4 version 1.5.0-617 do not properly validate data sizes, leading to a heap-based buffer over-read and application crash in AP4_DataBuffer::SetData in Core/Ap4DataBuffer.cpp.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Creates a wait queue in an untrusted environment.\n *\n * Allocates and initializes a wait queue using a syste... | {
"cve": "CVE-2020-8937",
"cve_desc": "An arbitrary memory overwrite vulnerability in Asylo versions up to 0.6.0 allows an attacker to make a host call to enc_untrusted_create_wait_queue that uses a pointer queue that relies on UntrustedLocalMemcpy, which fails to validate where the pointer is located. This allows ... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Write an image to a DIB (Device Independent Bitmap) file.\n *\n * Converts an image from Magick's internal MIF... | {
"cve": "CVE-2018-12600",
"cve_desc": "In ImageMagick 7.0.8-3 Q16, ReadDIBImage and WriteDIBImage in coders/dib.c allow attackers to cause an out of bounds write via a crafted file.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "5c566abc-c3f0-4df5-a9fb-3e1d57d99d09"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Read channel data from a PSP image file.\n *\n * Reads pixel data from a Paint Shop Pro image file, handling d... | {
"cve": "CVE-2011-1782",
"cve_desc": "Heap-based buffer overflow in the read_channel_data function in file-psp.c in the Paint Shop Pro (PSP) plugin in GIMP 2.6.11 allows remote attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a PSP_COMP_RLE (aka RLE compression) ima... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Process TLS/QUIC Client or Server Hello handshake messages.\n *\n * This function analyzes TLS and QUIC handsh... | {
"cve": "CVE-2021-36082",
"cve_desc": "ntop nDPI 3.4 has a stack-based buffer overflow in processClientServerHello.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "c06679f2-4baf-4298-bd82-986ae743d127"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Display memory contents from an I2C device in hex and ASCII format.\n *\n * Reads and prints data from an I2C ... | {
"cve": "CVE-2022-34835",
"cve_desc": "In Das U-Boot through 2022.07-rc5, an integer signedness error and resultant stack-based buffer overflow in the \"i2c md\" command enables the corruption of the return address pointer of the do_i2c_md function.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "bd29c5e6-3dbb... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Append a wide character string to an archive_string structure.\n *\n * Converts the wide character string to m... | {
"cve": "CVE-2020-21674",
"cve_desc": "Heap-based buffer overflow in archive_string_append_from_wcs() (archive_string.c) in libarchive-3.4.1dev allows remote attackers to cause a denial of service (out-of-bounds write in heap memory resulting into a crash) via a crafted archive file. NOTE: this only affects users ... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Retrieves a list of extension names supported by the X server.\n *\n * Queries the X display connection for av... | {
"cve": "CVE-2018-14600",
"cve_desc": "An issue was discovered in libX11 through 1.6.5. The function XListExtensions in ListExt.c interprets a variable as signed instead of unsigned, resulting in an out-of-bounds write (of up to 128 bytes), leading to DoS or remote code execution.",
"cwe": "['CWE-787']",
"targ... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Process WMM status response and update queue status information.\n *\n * This function parses the response fro... | {
"cve": "CVE-2020-12654",
"cve_desc": "An issue was found in Linux kernel before 5.5.4. mwifiex_ret_wmm_get_status() in drivers/net/wireless/marvell/mwifiex/wmm.c allows a remote AP to trigger a heap-based buffer overflow because of an incorrect memcpy, aka CID-3a9b153c5591.",
"cwe": "['CWE-787']",
"target": 0... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Counts the size of an identity string for a key-value pair.\n *\n * This function is designed to be used as a ... | {
"cve": "CVE-2021-26691",
"cve_desc": "In Apache HTTP Server versions 2.4.0 to 2.4.46 a specially crafted SessionHeader sent by an origin server could cause a heap overflow",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "453e70f4-3172-4100-beaa-7d3cc82d8a61"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Generate PSKc (Pre-Shared Key for Commissioner) from passphrase and network parameters.\n *\n * This function ... | {
"cve": "CVE-2019-20791",
"cve_desc": "OpenThread before 2019-12-13 has a stack-based buffer overflow in MeshCoP::Commissioner::GeneratePskc.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "d276be8f-89c0-4b62-8418-d9f38617a3c5"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Read an XPM format image file and return an Image structure.\n *\n * Parses an XPM (X PixMap) image file by re... | {
"cve": "CVE-2020-19667",
"cve_desc": "Stack-based buffer overflow and unconditional jump in ReadXPMImage in coders/xpm.c in ImageMagick 7.0.10-7.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "e2994bfb-bbbd-45ff-a506-ad698a4930f4"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Filter and convert Unicode characters to the specified case mode.\n *\n * Processes an input character code fo... | {
"cve": "CVE-2020-7065",
"cve_desc": "In PHP versions 7.3.x below 7.3.16 and 7.4.x below 7.4.4, while using mb_strtolower() function with UTF-32LE encoding, certain invalid strings could cause PHP to overwrite stack-allocated buffer. This could lead to memory corruption, crashes and potentially code execution.",
... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Parse lp= kernel command line parameter to configure the parallel port driver.\n *\n * Handles various configu... | {
"cve": "CVE-2017-1000363",
"cve_desc": "Linux drivers/char/lp.c Out-of-Bounds Write. Due to a missing bounds check, and the fact that parport_ptr integer is static, a 'secure boot' kernel command line adversary (can happen due to bootloader vulns, e.g. Google Nexus 6's CVE-2016-10277, where due to a vulnerability... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Read and parse an Adobe Fragment Random Access (AFRA) box from a bitstream.\n *\n * Parses the AFRA box struct... | {
"cve": "CVE-2021-33361",
"cve_desc": "Memory leak in the afra_box_read function in MP4Box in GPAC 1.0.1 allows attackers to read memory via a crafted file.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "e607324f-c26d-4a13-b2e9-06acf84756f7"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Set up a lookup table at the specified index.\n *\n * Initializes the lookup table at the given index with the... | {
"cve": "CVE-2018-25017",
"cve_desc": "RawSpeed (aka librawspeed) 3.1 has a heap-based buffer overflow in TableLookUp::setTable.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "e9d7f630-3b89-4c72-a62d-d59d9b436d10"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Display a '$' character at the specified column position.\n *\n * Temporarily moves the cursor to the given co... | {
"cve": "CVE-2022-2845",
"cve_desc": "Improper Validation of Specified Quantity in Input in GitHub repository vim/vim prior to 9.0.0218.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "dcc008fd-8ef8-414c-ac6b-119e898474d3"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Build the next RTSP message from a connection stream using a state machine.\n *\n * Progressively reads bytes ... | {
"cve": "CVE-2019-9928",
"cve_desc": "GStreamer before 1.16.0 has a heap-based buffer overflow in the RTSP connection parser via a crafted response from a server, potentially allowing remote code execution.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "d9e532b2-be58-4441-8b09-ca3a23b96043"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Get the next word or line for insert mode completion.\n *\n * Retrieves text from the specified buffer positio... | {
"cve": "CVE-2022-2571",
"cve_desc": "Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.0101.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "c5d1ee14-1ee2-4a09-978a-6140f39ff665"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Process a SCSI I/O request from the MPI interface.\n *\n * Handles incoming SCSI I/O requests by validating th... | {
"cve": "CVE-2016-7423",
"cve_desc": "The mptsas_process_scsi_io_request function in QEMU (aka Quick Emulator), when built with LSI SAS1068 Host Bus emulation support, allows local guest OS administrators to cause a denial of service (out-of-bounds write and QEMU process crash) via vectors involving MPTSASRequest ... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Convert an XpmImage structure into XPM format data.\n *\n * Allocates and populates a character array containi... | {
"cve": "CVE-2016-10164",
"cve_desc": "Multiple integer overflows in libXpm before 3.5.12, when a program requests parsing XPM extensions on a 64-bit platform, allow remote attackers to cause a denial of service (out-of-bounds write) or execute arbitrary code via (1) the number of extensions or (2) their concatena... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Read data from a bzip2 compressed stream.\n *\n * Reads up to 'count' bytes from the given bzip2 stream into t... | {
"cve": "CVE-2016-5399",
"cve_desc": "The bzread function in ext/bz2/bz2.c in PHP before 5.5.38, 5.6.x before 5.6.24, and 7.x before 7.0.9 allows remote attackers to cause a denial of service (out-of-bounds write) or execute arbitrary code via a crafted bz2 archive.",
"cwe": "['CWE-787']",
"target": 0,
"uuid... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Parse CFF font data from a byte stream.\n *\n * Processes a CFF (Compact Font Format) data stream, interpretin... | {
"cve": "CVE-2016-10328",
"cve_desc": "FreeType 2 before 2016-12-16 has an out-of-bounds write caused by a heap-based buffer overflow related to the cff_parser_run function in cff/cffparse.c.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "1f559f90-355d-4a81-a9ca-0b1007671434"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Find help tags matching the given argument.\n *\n * Processes a help tag argument and searches for matching he... | {
"cve": "CVE-2021-4019",
"cve_desc": "vim is vulnerable to Heap-based Buffer Overflow",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "078a5d42-d328-4079-8239-f74a1e8bd1c7"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Initialize and configure a TFTP connection.\n *\n * Sets up the TFTP connection state by allocating necessary ... | {
"cve": "CVE-2019-5482",
"cve_desc": "Heap buffer overflow in the TFTP protocol handler in cURL 7.19.4 to 7.65.3.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "0189c3ec-b2d8-4ad1-99db-2b9ec68c735c"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Check if a given size is valid within the current GPMF stream structure.\n *\n * This function validates wheth... | {
"cve": "CVE-2019-15148",
"cve_desc": "GoPro GPMF-parser 1.2.2 has an out-of-bounds write in OpenMP4Source in demo/GPMF_mp4reader.c.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "4ff043c9-3538-48a9-bd89-6a1d51c8d9ff"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Convert a printer device's bitmap data to CIF format and output to a stream.\n *\n * This function processes t... | {
"cve": "CVE-2020-16289",
"cve_desc": "A buffer overflow vulnerability in cif_print_page() in devices/gdevcif.c of Artifex Software GhostScript v9.50 allows a remote attacker to cause a denial of service via a crafted PDF file. This is fixed in v9.51.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "5a4abf1e-e8... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief List available X fonts matching a specified pattern.\n *\n * Queries the X server for font names that match th... | {
"cve": "CVE-2016-7943",
"cve_desc": "The XListFonts function in X.org libX11 before 1.6.4 might allow remote X servers to gain privileges via vectors involving length fields, which trigger out-of-bounds write operations.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "e9e8556d-66fd-434f-8e19-26c8a7549573"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Split a JPEG bitstream fragment into individual marker units.\n *\n * Parses JPEG data to identify and extract... | {
"cve": "CVE-2020-12284",
"cve_desc": "cbs_jpeg_split_fragment in libavcodec/cbs_jpeg.c in FFmpeg 4.1 and 4.2.2 has a heap-based buffer overflow during JPEG_MARKER_SOS handling because of a missing length check.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "549e7b08-e4a4-4f86-8a4c-f553b9e47d10"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Initialize PKCS#15 structure for GemSAFE GPK smart card.\n *\n * This function initializes a sc_pkcs15_card_t ... | {
"cve": "CVE-2020-26571",
"cve_desc": "The gemsafe GPK smart card software driver in OpenSC before 0.21.0-rc1 has a stack-based buffer overflow in sc_pkcs15emu_gemsafeGPK_init.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "a0e816d5-f52d-4ba0-988f-578af82cea12"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Decrypts data using the FIPS-compliant cipher.\n *\n * This function decrypts the provided data buffer in-plac... | {
"cve": "CVE-2020-13397",
"cve_desc": "An issue was discovered in FreeRDP before 2.1.1. An out-of-bounds (OOB) read vulnerability has been detected in security_fips_decrypt in libfreerdp/core/security.c due to an uninitialized value.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "97e500c8-0dfb-4a7b-97b2-fe161... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Sets the shape of a specified output port to an unknown shape.\n *\n * Retrieves the unknown shape handle and ... | {
"cve": "CVE-2022-23566",
"cve_desc": "Tensorflow is an Open Source Machine Learning Framework. TensorFlow is vulnerable to a heap OOB write in `Grappler`. The `set_output` function writes to an array at the specified index. Hence, this gives a malicious user a write primitive. The fix will be included in TensorFl... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Initialize force feedback for Logitech HID devices.\n *\n * Sets up force feedback support by matching the dev... | {
"cve": "CVE-2019-19532",
"cve_desc": "In the Linux kernel before 5.3.9, there are multiple out-of-bounds write bugs that can be caused by a malicious USB device in the Linux kernel HID drivers, aka CID-d9d4b1e46d95. This affects drivers/hid/hid-axff.c, drivers/hid/hid-dr.c, drivers/hid/hid-emsff.c, drivers/hid/hi... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Copy and decompress DNS resource record data from a packet.\n *\n * Extracts TTL from the record, applying RFC... | {
"cve": "CVE-2019-25042",
"cve_desc": "Unbound before 1.9.5 allows an out-of-bounds write via a compressed name in rdata_copy. NOTE: The vendor disputes that this is a vulnerability. Although the code may be vulnerable, a running Unbound installation cannot be remotely or locally exploited",
"cwe": "['CWE-787']"... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Start an Ad-Hoc (IBSS) network by preparing the command structure.\n *\n * Configures the Ad-Hoc network param... | {
"cve": "CVE-2020-36158",
"cve_desc": "mwifiex_cmd_802_11_ad_hoc_start in drivers/net/wireless/marvell/mwifiex/join.c in the Linux kernel through 5.10.4 might allow remote attackers to execute arbitrary code via a long SSID value, aka CID-5c455c5ab332.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "5d9b6e2f-3... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Quote a string for IMAP protocol usage.\n *\n * Wraps the source string in double quotes and escapes special c... | {
"cve": "CVE-2018-14352",
"cve_desc": "An issue was discovered in Mutt before 1.10.1 and NeoMutt before 2018-07-16. imap_quote_string in imap/util.c does not leave room for quote characters, leading to a stack-based buffer overflow.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "191c2e54-fced-482d-a7a2-0cd8d2... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Compute bidirectional text embedding levels for a string.\n *\n * Analyzes the input text to determine Unicode... | {
"cve": "CVE-2019-1010238",
"cve_desc": "Gnome Pango 1.42 and later is affected by: Buffer Overflow. The impact is: The heap based buffer overflow can be used to get code execution. The component is: function name: pango_log2vis_get_embedding_levels, assignment of nchars and the loop condition. The attack vector i... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Converts a ragged tensor of Unicode code points to a ragged tensor of encoded strings.\n *\n * This OpKernel p... | {
"cve": "CVE-2021-29559",
"cve_desc": "TensorFlow is an end-to-end open source platform for machine learning. An attacker can access data outside of bounds of heap allocated array in `tf.raw_ops.UnicodeEncode`. This is because the implementation(https://github.com/tensorflow/tensorflow/blob/472c1f12ad9063405737679... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Process commands from the SVGA FIFO.\n *\n * This function reads and executes commands from the SVGA FIFO. It ... | {
"cve": "CVE-2016-7170",
"cve_desc": "The vmsvga_fifo_run function in hw/display/vmware_vga.c in QEMU (aka Quick Emulator) allows local guest OS administrators to cause a denial of service (out-of-bounds write and QEMU process crash) via vectors related to cursor.mask[] and cursor.image[] array sizes when processi... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Format an SDP media description into a buffer.\n *\n * Serializes the media description structure into SDP for... | {
"cve": "CVE-2022-24764",
"cve_desc": "PJSIP is a free and open source multimedia communication library written in C. Versions 2.12 and prior contain a stack buffer overflow vulnerability that affects PJSUA2 users or users that call the API `pjmedia_sdp_print(), pjmedia_sdp_media_print()`. Applications that do not... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Initialize force feedback for Logitech Flight System G940.\n *\n * Sets up force feedback support for the Logi... | {
"cve": "CVE-2019-19532",
"cve_desc": "In the Linux kernel before 5.3.9, there are multiple out-of-bounds write bugs that can be caused by a malicious USB device in the Linux kernel HID drivers, aka CID-d9d4b1e46d95. This affects drivers/hid/hid-axff.c, drivers/hid/hid-dr.c, drivers/hid/hid-emsff.c, drivers/hid/hi... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Read and parse an SVG image file, converting it to a raster Image.\n *\n * Opens the specified SVG file and pr... | {
"cve": "CVE-2019-18853",
"cve_desc": "ImageMagick before 7.0.9-0 allows remote attackers to cause a denial of service because XML_PARSE_HUGE is not properly restricted in coders/svg.c, related to SVG and libxml2.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "06c5ce66-4975-4988-a15b-5ef6ccbe6970"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Process a HID report and forward it to the input subsystem.\n *\n * This function processes an incoming HID re... | {
"cve": "CVE-2018-9363",
"cve_desc": "In the hidp_process_report in bluetooth, there is an integer overflow. This could lead to an out of bounds write with no additional execution privileges needed. User interaction is not needed for exploitation. Product: Android Versions: Android kernel Android ID: A-65853588 Re... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Write data to a file using PCX run-length encoding.\n *\n * Encodes byte sequences using PCX RLE format, which... | {
"cve": "CVE-2020-16305",
"cve_desc": "A buffer overflow vulnerability in pcx_write_rle() in contrib/japanese/gdev10v.c of Artifex Software GhostScript v9.50 allows a remote attacker to cause a denial of service via a crafted PDF file. This is fixed in v9.51.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "d08... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Starts writing an XML element to the output stream.\n *\n * Writes the opening tag with the element name, decl... | {
"cve": "CVE-2017-18926",
"cve_desc": "raptor_xml_writer_start_element_common in raptor_xml_writer.c in Raptor RDF Syntax Library 2.0.15 miscalculates the maximum nspace declarations for the XML writer, leading to heap-based buffer overflows (sometimes seen in raptor_qname_format_as_xml).",
"cwe": "['CWE-787']",... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Create a new inner classes attribute structure from binary data.\n *\n * Parses the InnerClasses attribute fro... | {
"cve": "CVE-2022-0518",
"cve_desc": "Heap-based Buffer Overflow in GitHub repository radareorg/radare2 prior to 5.6.2.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "1c9d14e2-69f3-41d6-b1ab-1abd7270f766"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Check if FPU register state is valid for a given CPU.\n *\n * Validates whether the FPU state associated with ... | {
"cve": "CVE-2019-19602",
"cve_desc": "fpregs_state_valid in arch/x86/include/asm/fpu/internal.h in the Linux kernel before 5.4.2, when GCC 9 is used, allows context-dependent attackers to cause a denial of service (memory corruption) or possibly have unspecified other impact because of incorrect fpu_fpregs_owner_... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Gather and reassemble IPv6 fragments into a complete packet.\n *\n * Processes an incoming IPv6 fragment by lo... | {
"cve": "CVE-2016-9755",
"cve_desc": "The netfilter subsystem in the Linux kernel before 4.9 mishandles IPv6 reassembly, which allows local users to cause a denial of service (integer overflow, out-of-bounds write, and GPF) or possibly have unspecified other impact via a crafted application that makes socket, conn... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Decode an EXR image frame from an AVPacket.\n *\n * Decodes a single EXR (OpenEXR) image frame by first parsin... | {
"cve": "CVE-2020-35965",
"cve_desc": "decode_frame in libavcodec/exr.c in FFmpeg 4.3.1 has an out-of-bounds write because of errors in calculations of when to perform memset zero operations.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "f948ee9b-780f-4a43-8ffa-ce30da774304"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Convert a PNG file to an OpenJPEG image structure.\n *\n * Reads a PNG file from disk and converts it to an op... | {
"cve": "CVE-2020-27823",
"cve_desc": "A flaw was found in OpenJPEG’s encoder. This flaw allows an attacker to pass specially crafted x,y offset input to OpenJPEG to use during encoding. The highest threat from this vulnerability is to confidentiality, integrity, as well as system availability.",
"cwe": "['CWE-7... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Compute quantized element-wise multiplication with broadcasting.\n *\n * This function performs element-wise m... | {
"cve": "CVE-2021-29535",
"cve_desc": "TensorFlow is an end-to-end open source platform for machine learning. An attacker can cause a heap buffer overflow in `QuantizedMul` by passing in invalid thresholds for the quantization. This is because the implementation(https://github.com/tensorflow/tensorflow/blob/87cf4d... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Walk the trie to find spelling suggestions for a bad word.\n *\n * Performs a state-machine based traversal of... | {
"cve": "CVE-2022-0408",
"cve_desc": "Stack-based Buffer Overflow in GitHub repository vim/vim prior to 8.2.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "70e035ca-8d86-446a-858f-af8bc19d1716"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Create and queue a bus message from the socket receive buffer.\n *\n * Extracts a message of the specified siz... | {
"cve": "CVE-2019-6454",
"cve_desc": "An issue was discovered in sd-bus in systemd 239. bus_process_object() in libsystemd/sd-bus/bus-objects.c allocates a variable-length stack buffer for temporarily storing the object path of incoming D-Bus messages. An unprivileged local user can exploit this by sending a speci... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Convert a BIGNUM to its decimal string representation.\n *\n * Converts a big integer to a null-terminated dec... | {
"cve": "CVE-2016-2182",
"cve_desc": "The BN_bn2dec function in crypto/bn/bn_print.c in OpenSSL before 1.1.0 does not properly validate division results, which allows remote attackers to cause a denial of service (out-of-bounds write and application crash) or possibly have unspecified other impact via unknown vect... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Encodes a picture into a block_t chain using the Schro encoder.\n *\n * This function processes an input pictu... | {
"cve": "CVE-2014-9629",
"cve_desc": "Integer overflow in the Encode function in modules/codec/schroedinger.c in VideoLAN VLC media player before 2.1.6 and 2.2.x before 2.2.1 allows remote attackers to conduct buffer overflow attacks and execute arbitrary code via a crafted length value.",
"cwe": "['CWE-787']",
... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Transmit a network packet on the TEMAC device.\n *\n * Queues a socket buffer for transmission by mapping it t... | {
"cve": "CVE-2021-38207",
"cve_desc": "drivers/net/ethernet/xilinx/ll_temac_main.c in the Linux kernel before 5.12.13 allows remote attackers to cause a denial of service (buffer overflow and lockup) by sending heavy network traffic for about ten minutes.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "3e164bc... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Read and parse an OpenPGP packet from a stream.\n *\n * Reads a single OpenPGP packet from the given input str... | {
"cve": "CVE-2017-7869",
"cve_desc": "GnuTLS before 2017-02-20 has an out-of-bounds write caused by an integer overflow and heap-based buffer overflow related to the cdk_pkt_read function in opencdk/read-packet.c. This issue (which is a subset of the vendor's GNUTLS-SA-2017-3 report) is fixed in 3.5.10.",
"cwe":... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Initialize EMS force feedback device.\n *\n * Initializes an EMS-based HID device for force feedback support. ... | {
"cve": "CVE-2019-19532",
"cve_desc": "In the Linux kernel before 5.3.9, there are multiple out-of-bounds write bugs that can be caused by a malicious USB device in the Linux kernel HID drivers, aka CID-d9d4b1e46d95. This affects drivers/hid/hid-axff.c, drivers/hid/hid-dr.c, drivers/hid/hid-emsff.c, drivers/hid/hi... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Set the page base for an XDR stream.\n *\n * Configures the XDR stream's page pointers to reference a specific... | {
"cve": "CVE-2021-38201",
"cve_desc": "net/sunrpc/xdr.c in the Linux kernel before 5.13.4 allows remote attackers to cause a denial of service (xdr_set_page_base slab-out-of-bounds access) by performing many NFS 4.2 READ_PLUS operations.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "7ddcbb10-7ed3-4098-8557-4... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Read and parse a CIN/DPX image file.\n *\n * Parses the header and metadata from a CIN format image file, extr... | {
"cve": "CVE-2022-28463",
"cve_desc": "ImageMagick 7.1.0-27 is vulnerable to Buffer Overflow.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "d22c383e-b019-4127-b3a8-db24b42433cf"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Print a page to a TIFF 1.2 format file.\n *\n * Handles the complete process of writing a single page to a TIF... | {
"cve": "CVE-2020-16300",
"cve_desc": "A buffer overflow vulnerability in tiff12_print_page() in devices/gdevtfnx.c of Artifex Software GhostScript v9.50 allows a remote attacker to cause a denial of service via a crafted PDF file. This is fixed in v9.51.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "81c03e9... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Deciphers data using the TCOS card's cryptographic capabilities.\n *\n * Sends a decipher command to a TCOS sm... | {
"cve": "CVE-2020-26572",
"cve_desc": "The TCOS smart card software driver in OpenSC before 0.21.0-rc1 has a stack-based buffer overflow in tcos_decipher.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "73fcdf53-685b-45a9-8f04-f6409504d6b2"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Parse a character class expression in a regular expression.\n *\n * Parses character class syntax including in... | {
"cve": "CVE-2017-9228",
"cve_desc": "An issue was discovered in Oniguruma 6.2.0, as used in Oniguruma-mod in Ruby through 2.4.1 and mbstring in PHP through 7.1.5. A heap out-of-bounds write occurs in bitset_set_range() during regular expression compilation due to an uninitialized variable from an incorrect state ... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Wait for firmware RPC operation to complete with timeout and polling.\n *\n * This function polls the firmware... | {
"cve": "CVE-2021-43975",
"cve_desc": "In the Linux kernel through 5.15.2, hw_atl_utils_fw_rpc_wait in drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c allows an attacker (who can introduce a crafted device) to trigger an out-of-bounds write via a crafted length value.",
"cwe": "['CWE-787']",
"targ... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Decompress JPEG image data with optional tiling and YUV conversion.\n *\n * Initializes a TurboJPEG decompress... | {
"cve": "CVE-2019-2201",
"cve_desc": "In generate_jsimd_ycc_rgb_convert_neon of jsimd_arm64_neon.S, there is a possible out of bounds write due to a missing bounds check. This could lead to remote code execution in an unprivileged process with no additional execution privileges needed. User interaction is needed f... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Connects to a Unix domain socket.\n *\n * Establishes a stream socket connection to a Unix domain socket at th... | {
"cve": "CVE-2019-20839",
"cve_desc": "libvncclient/sockets.c in LibVNCServer before 0.9.13 has a buffer overflow via a long socket filename.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "0bd48d37-2e03-4a3a-badb-336842a65c9c"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Read and validate TIFF image data for PDF conversion.\n *\n * Initializes the T2P structure with TIFF image me... | {
"cve": "CVE-2017-11335",
"cve_desc": "There is a heap based buffer overflow in tools/tiff2pdf.c of LibTIFF 4.0.8 via a PlanarConfig=Contig image, which causes a more than one hundred bytes out-of-bounds write (related to the ZIPDecode function in tif_zip.c). A crafted input may lead to a remote denial of service ... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Creates a new SkIcoCodec from an ICO file stream.\n *\n * Parses the ICO directory and directory entries from ... | {
"cve": "CVE-2018-9498",
"cve_desc": "In SkSampler::Fill of SkSampler.cpp, there is a possible out of bounds write due to an integer overflow. This could lead to remote code execution with no additional execution privileges needed. User interaction is needed for exploitation. Product: Android Versions: Android-7.0... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Extracts and decodes a PKCS#11 attribute from an RPC buffer.\n *\n * Reads an attribute from the buffer at the... | {
"cve": "CVE-2020-29363",
"cve_desc": "An issue was discovered in p11-kit 0.23.6 through 0.23.21. A heap-based buffer overflow has been discovered in the RPC protocol used by p11-kit server/remote commands and the client library. When the remote entity supplies a serialized byte array in a CK_ATTRIBUTE, the receiv... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Remove a method from a class.\n *\n * Attempts to remove the specified method from the given class.\n * If the... | {
"cve": "CVE-2022-1286",
"cve_desc": "heap-buffer-overflow in mrb_vm_exec in mruby/mruby in GitHub repository mruby/mruby prior to 3.2. Possible arbitrary code execution if being exploited.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "6bd008b3-31ca-4423-8de0-6ac141f892c8"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Defragment IPv6 packets in a netfilter hook.\n *\n * This function is a netfilter hook for handling IPv6 fragm... | {
"cve": "CVE-2016-9755",
"cve_desc": "The netfilter subsystem in the Linux kernel before 4.9 mishandles IPv6 reassembly, which allows local users to cause a denial of service (integer overflow, out-of-bounds write, and GPF) or possibly have unspecified other impact via a crafted application that makes socket, conn... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Reads and parses a quoted string from IMAP data.\n *\n * Parses a double-quoted string starting at the parser'... | {
"cve": "CVE-2019-11500",
"cve_desc": "In Dovecot before 2.2.36.4 and 2.3.x before 2.3.7.2 (and Pigeonhole before 0.5.7.2), protocol processing can fail for quoted strings. This occurs because '\\0' characters are mishandled, and can lead to out-of-bounds writes and remote code execution.",
"cwe": "['CWE-787']",... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Parse and transform character sequences from a token string.\n *\n * Processes escape sequences (e.g., \\n, \\... | {
"cve": "CVE-2018-12085",
"cve_desc": "Liblouis 3.6.0 has a stack-based Buffer Overflow in the function parseChars in compileTranslationTable.c, a different vulnerability than CVE-2018-11440.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "75cf6a3d-fd73-41d8-b4ae-f82c96f16178"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Parse a binary plist node from the given data stream.\n *\n * Reads and parses a single node from a binary pli... | {
"cve": "CVE-2017-6436",
"cve_desc": "The parse_string_node function in bplist.c in libimobiledevice libplist 1.12 allows local users to cause a denial of service (memory allocation error) via a crafted plist file.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "959846d3-9ae0-498d-8d3d-bf8f424fcfe0"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Initialize force feedback support for a HID++ device.\n *\n * Sets up the force feedback subsystem by querying... | {
"cve": "CVE-2019-19532",
"cve_desc": "In the Linux kernel before 5.3.9, there are multiple out-of-bounds write bugs that can be caused by a malicious USB device in the Linux kernel HID drivers, aka CID-d9d4b1e46d95. This affects drivers/hid/hid-axff.c, drivers/hid/hid-dr.c, drivers/hid/hid-emsff.c, drivers/hid/hi... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Convert a UTF-32 encoded domain name to ASCII (Punycode) format.\n *\n * Takes a UTF-32 encoded internationali... | {
"cve": "CVE-2019-18224",
"cve_desc": "idn2_to_ascii_4i in lib/lookup.c in GNU libidn2 before 2.1.1 has a heap-based buffer overflow via a long domain string.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "161ed1d4-17d5-4c18-a861-1061157243ee"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Perform a video-to-video bit blit copy operation.\n *\n * Copies a rectangular region of video memory from sou... | {
"cve": "CVE-2007-1320",
"cve_desc": "Multiple heap-based buffer overflows in the cirrus_invalidate_region function in the Cirrus VGA extension in QEMU 0.8.2, as used in Xen and possibly other products, might allow local users to execute arbitrary code via unspecified vectors related to \"attempting to mark non-ex... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Restore a bntseq_t structure from a set of files with the given prefix.\n *\n * Reads the .ann, .amb, and .pac... | {
"cve": "CVE-2019-10269",
"cve_desc": "BWA (aka Burrow-Wheeler Aligner) before 2019-01-23 has a stack-based buffer overflow in the bns_restore function in bntseq.c via a long sequence name in a .alt file.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "86a535e2-c9d6-4afa-8f9c-c4606455825b"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Parse a STUN message from a buffer.\n *\n * Validates the STUN message header by checking the message type aga... | {
"cve": "CVE-2022-31031",
"cve_desc": "PJSIP is a free and open source multimedia communication library written in C language implementing standard based protocols such as SIP, SDP, RTP, STUN, TURN, and ICE. In versions prior to and including 2.12.1 a stack buffer overflow vulnerability affects PJSIP users that us... |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Parse the MP4 stsz (sample size) atom and build frame offset table.\n *\n * Reads version/flags, sample size, ... | {
"cve": "CVE-2021-32272",
"cve_desc": "An issue was discovered in faad2 before 2.10.0. A heap-buffer-overflow exists in the function stszin located in mp4read.c. It allows an attacker to cause Code Execution.",
"cwe": "['CWE-787']",
"target": 0,
"uuid": "27ae2c68-c8be-4aa2-a085-c93837daa418"
} |
[
{
"content": "You are a helpful coding assistant. Carefully follow the user's instructions to generate correct and fully functional code. ",
"role": "system"
},
{
"content": "/**\n * @brief Initialize force feedback (rumble) functionality for a Sony controller.\n *\n * Retrieves the input device fro... | {
"cve": "CVE-2019-19532",
"cve_desc": "In the Linux kernel before 5.3.9, there are multiple out-of-bounds write bugs that can be caused by a malicious USB device in the Linux kernel HID drivers, aka CID-d9d4b1e46d95. This affects drivers/hid/hid-axff.c, drivers/hid/hid-dr.c, drivers/hid/hid-emsff.c, drivers/hid/hi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.