messages
listlengths
3
3
metadata
dict
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Get the algorithm2 value for an SSL connection's cipher.\n *\n * Retrieves the algorithm2 field from the SSL ...
{ "cve": "CVE-2013-6449", "cve_desc": "The ssl_get_algorithm2 function in ssl/s3_lib.c in OpenSSL before 1.0.2 obtains a certain version number from an incorrect data structure, which allows remote attackers to cause a denial of service (daemon crash) via crafted traffic from a TLS 1.2 client.", "cwe": "['CWE-310...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Retrieves the session data for a resumable TLS session.\n *\n * Packs the internal session state into a buffe...
{ "cve": "CVE-2011-4128", "cve_desc": "Buffer overflow in the gnutls_session_get_data function in lib/gnutls_session.c in GnuTLS 2.12.x before 2.12.14 and 3.x before 3.0.7, when used on a client that performs nonstandard session resumption, allows remote TLS servers to cause a denial of service (application crash) ...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Retrieves the session data for a resumable TLS session.\n *\n * Packs the internal session state into a buffe...
{ "cve": "CVE-2011-4128", "cve_desc": "Buffer overflow in the gnutls_session_get_data function in lib/gnutls_session.c in GnuTLS 2.12.x before 2.12.14 and 3.x before 3.0.7, when used on a client that performs nonstandard session resumption, allows remote TLS servers to cause a denial of service (application crash) ...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Handle FTP file retrieval and directory listing operations.\n *\n * Establishes FTP connections, performs aut...
{ "cve": "CVE-2015-7665", "cve_desc": "Tails before 1.7 includes the wget program but does not prevent automatic fallback from passive FTP to active FTP, which allows remote FTP servers to discover the Tor client IP address by reading a (1) PORT or (2) EPRT command. NOTE: within wget itself, the automatic fallback...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Add a range of character codes to a PDF CMap.\n *\n * Maps the input range [low, high] to consecutive output ...
{ "cve": "CVE-2018-1000039", "cve_desc": "In MuPDF 1.12.0 and earlier, multiple heap use after free bugs in the PDF parser could allow an attacker to execute arbitrary code, read memory, or cause a denial of service via a crafted file.", "cwe": "['CWE-416']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Add a range of character codes to a PDF CMap.\n *\n * Maps the input range [low, high] to consecutive output ...
{ "cve": "CVE-2018-1000039", "cve_desc": "In MuPDF 1.12.0 and earlier, multiple heap use after free bugs in the PDF parser could allow an attacker to execute arbitrary code, read memory, or cause a denial of service via a crafted file.", "cwe": "['CWE-416']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Render an image to the PDF output device.\n *\n * Processes and displays an image within the PDF rendering co...
{ "cve": "CVE-2018-1000037", "cve_desc": "In MuPDF 1.12.0 and earlier, multiple reachable assertions in the PDF parser allow an attacker to cause a denial of service (assert crash) via a crafted file.", "cwe": "['CWE-20']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Dumps a sparse file region to the archive.\n *\n * Seeks to the offset specified in the sparse map and reads ...
{ "cve": "CVE-2018-20482", "cve_desc": "GNU Tar through 1.30, when --sparse is used, mishandles file shrinkage during read access, which allows local users to cause a denial of service (infinite read loop in sparse_dump_region in sparse.c) by modifying a file that is supposed to be archived by a different user's pr...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Read a DNS name from a buffer, handling name compression.\n *\n * This function parses a DNS name starting at...
{ "cve": "CVE-2018-20103", "cve_desc": "An issue was discovered in dns.c in HAProxy through 1.8.14. In the case of a compressed pointer, a crafted packet can trigger infinite recursion by making the pointer point to itself, or create a long chain of valid pointers resulting in stack exhaustion.", "cwe": "['CWE-83...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Render an image to the Splash output device.\n *\n * This function processes an image from a PDF stream and r...
{ "cve": "CVE-2009-3605", "cve_desc": "Multiple integer overflows in Poppler 0.10.5 and earlier allow remote attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a crafted PDF file, related to (1) glib/poppler-page.cc; (2) ArthurOutputDev.cc, (3) CairoOutputDev.cc, (4) G...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Render an image to the Splash output device.\n *\n * This function processes an image from a PDF stream and r...
{ "cve": "CVE-2009-3605", "cve_desc": "Multiple integer overflows in Poppler 0.10.5 and earlier allow remote attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a crafted PDF file, related to (1) glib/poppler-page.cc; (2) ArthurOutputDev.cc, (3) CairoOutputDev.cc, (4) G...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Constructor that parses XML configuration for a DynamicMetadataProvider.\n *\n * Initializes the provider fro...
{ "cve": "CVE-2017-16852", "cve_desc": "shibsp/metadata/DynamicMetadataProvider.cpp in the Dynamic MetadataProvider plugin in Shibboleth Service Provider before 2.6.1 fails to properly configure itself with the MetadataFilter plugins and does not perform critical security checks such as signature verification, enfo...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Sends an NFS READLINK request to retrieve the target path of a symlink.\n *\n * This function constructs and ...
{ "cve": "CVE-2019-15938", "cve_desc": "Pengutronix barebox through 2019.08.1 has a remote buffer overflow in nfs_readlink_req in fs/nfs.c because a length field is directly used for a memcpy.", "cwe": "['CWE-119']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Process an NFS readlink reply and extract the symlink target path.\n *\n * Validates the RPC reply packet and...
{ "cve": "CVE-2019-15937", "cve_desc": "Pengutronix barebox through 2019.08.1 has a remote buffer overflow in nfs_readlink_reply in net/nfs.c because a length field is directly used for a memcpy.", "cwe": "['CWE-119']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Update the running checksum state with additional data.\n *\n * Processes input data according to the current...
{ "cve": "CVE-2017-15994", "cve_desc": "rsync 3.1.3-development before 2017-10-24 mishandles archaic checksums, which makes it easier for remote attackers to bypass intended access restrictions. NOTE: the rsync development branch has significant use beyond the rsync developers, e.g., the code has been copied for us...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Authenticates a user by generating and sending a challenge.\n *\n * Retrieves the list of authorized users fo...
{ "cve": "CVE-2017-15994", "cve_desc": "rsync 3.1.3-development before 2017-10-24 mishandles archaic checksums, which makes it easier for remote attackers to bypass intended access restrictions. NOTE: the rsync development branch has significant use beyond the rsync developers, e.g., the code has been copied for us...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Decode and decompress the next bzip2 block.\n *\n * Parses block header including signature validation, CRC c...
{ "cve": "CVE-2017-15873", "cve_desc": "The get_next_block function in archival/libarchive/decompress_bunzip2.c in BusyBox 1.27.2 has an Integer Overflow that may lead to a write access violation.", "cwe": "['CWE-190']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Fill the internal buffer with decompressed data from a compressed file.\n *\n * This function reads compresse...
{ "cve": "CVE-2011-2895", "cve_desc": "The LZW decompressor in (1) the BufCompressedFill function in fontfile/decompress.c in X.Org libXfont before 1.4.4 and (2) compress/compress.c in 4.3BSD, as used in zopen.c in OpenBSD before 3.8, FreeBSD, NetBSD 4.0.x and 5.0.x before 5.0.3 and 5.1.x before 5.1.1, FreeType 2.1...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Parse DNS response resource records in a callback context.\n *\n * This function is invoked as a callback for...
{ "cve": "CVE-2017-15650", "cve_desc": "musl libc before 1.1.17 has a buffer overflow via crafted DNS replies because dns_parse_callback in network/lookup_name.c does not restrict the number of addresses, and thus an attacker can provide an unexpected number by sending A records in a reply to an AAAA query.", "cw...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Extract pages from a PDF file to separate output files.\n *\n * Opens a PDF document and extracts specified p...
{ "cve": "CVE-2013-4474", "cve_desc": "Format string vulnerability in the extractPages function in utils/pdfseparate.cc in poppler before 0.24.3 allows remote attackers to cause a denial of service (crash) via format string specifiers in a destination filename.", "cwe": "['CWE-20']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Extracts one or more pages from a PDF file and saves them to separate files.\n *\n * The function opens the s...
{ "cve": "CVE-2013-4473", "cve_desc": "Stack-based buffer overflow in the extractPages function in utils/pdfseparate.cc in poppler before 0.24.2 allows remote attackers to cause a denial of service (crash) and possibly execute arbitrary code via a source filename.", "cwe": "['CWE-119']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Walk through a UTF-8 string searching for a specific unicode character.\n *\n * Iterates through the string c...
{ "cve": "CVE-2019-14975", "cve_desc": "Artifex MuPDF before 1.16.0 has a heap-based buffer over-read in fz_chartorune in fitz/string.c because pdf/pdf-op-filter.c does not check for a missing string.", "cwe": "['CWE-125']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Add an empty message to all client pipes in a channel.\n *\n * Iterates through all connected clients in the ...
{ "cve": "CVE-2013-4130", "cve_desc": "The (1) red_channel_pipes_add_type and (2) red_channel_pipes_add_empty_msg functions in server/red_channel.c in SPICE before 0.12.4 do not properly perform ring loops, which might allow remote attackers to cause a denial of service (reachable assertion and server exit) by trig...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Adds a pipe item type to all clients of a RedChannel.\n *\n * Iterates through all connected clients in the s...
{ "cve": "CVE-2013-4130", "cve_desc": "The (1) red_channel_pipes_add_type and (2) red_channel_pipes_add_empty_msg functions in server/red_channel.c in SPICE before 0.12.4 do not properly perform ring loops, which might allow remote attackers to cause a denial of service (reachable assertion and server exit) by trig...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Validate and parse an initial X11 packet from a buffer.\n *\n * Checks that the buffer contains at least 12 b...
{ "cve": "CVE-2015-5352", "cve_desc": "The x11_open_helper function in channels.c in ssh in OpenSSH before 6.9, when ForwardX11Trusted mode is not used, lacks a check of the refusal deadline for X connections, which makes it easier for remote attackers to bypass intended access restrictions via a connection outside...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Convert the next character from a UTF-16 encoded string to a Unicode codepoint.\n *\n * Extracts and decodes ...
{ "cve": "CVE-2015-5330", "cve_desc": "ldb before 1.1.24, as used in the AD LDAP server in Samba 4.x before 4.1.22, 4.2.x before 4.2.7, and 4.3.x before 4.3.3, mishandles string lengths, which allows remote attackers to obtain sensitive information from daemon heap memory by sending crafted packets and then reading...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Escape special characters in a string for LDAP Distinguished Name encoding.\n *\n * Processes a string and es...
{ "cve": "CVE-2015-5330", "cve_desc": "ldb before 1.1.24, as used in the AD LDAP server in Samba 4.x before 4.1.22, 4.2.x before 4.2.7, and 4.3.x before 4.3.3, mishandles string lengths, which allows remote attackers to obtain sensitive information from daemon heap memory by sending crafted packets and then reading...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Convert a string to uppercase using talloc memory allocation.\n *\n * Converts the first n characters of the ...
{ "cve": "CVE-2015-5330", "cve_desc": "ldb before 1.1.24, as used in the AD LDAP server in Samba 4.x before 4.1.22, 4.2.x before 4.2.7, and 4.3.x before 4.3.3, mishandles string lengths, which allows remote attackers to obtain sensitive information from daemon heap memory by sending crafted packets and then reading...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Parse and explode a Distinguished Name string into its component parts.\n *\n * Parses a linearized DN string...
{ "cve": "CVE-2015-5330", "cve_desc": "ldb before 1.1.24, as used in the AD LDAP server in Samba 4.x before 4.1.22, 4.2.x before 4.2.7, and 4.3.x before 4.3.3, mishandles string lengths, which allows remote attackers to obtain sensitive information from daemon heap memory by sending crafted packets and then reading...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Call the PostScript interpreter and handle errors.\n *\n * Invokes the interpreter to execute PostScript code...
{ "cve": "CVE-2018-17961", "cve_desc": "Artifex Ghostscript 9.25 and earlier allows attackers to bypass a sandbox protection mechanism via vectors involving errorhandler setup. NOTE: this issue exists because of an incomplete fix for CVE-2018-17183.", "cwe": "['CWE-209']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Validate a filename path with privilege checking and security verification.\n *\n * Performs comprehensive pa...
{ "cve": "CVE-2015-5252", "cve_desc": "vfs.c in smbd in Samba 3.x and 4.x before 4.1.22, 4.2.x before 4.2.7, and 4.3.x before 4.3.3, when share names with certain substring relationships exist, allows remote attackers to bypass intended file-access restrictions via a symlink that points outside of a share.", "cwe...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Read file contents into a dynamically allocated buffer.\n *\n * Opens and reads the specified file, allocatin...
{ "cve": "CVE-2019-13636", "cve_desc": "In GNU patch through 2.7.6, the following of symlinks is mishandled in certain cases other than input files. This affects inp.c and util.c.", "cwe": "['CWE-59']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Swap the byte order of a DBusHeader structure if needed.\n *\n * Checks if the header's current byte order di...
{ "cve": "CVE-2011-2200", "cve_desc": "The _dbus_header_byteswap function in dbus-marshal-header.c in D-Bus (aka DBus) 1.2.x before 1.2.28, 1.4.x before 1.4.12, and 1.5.x before 1.5.4 does not properly handle a non-native byte order, which allows local users to cause a denial of service (connection loss), obtain po...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Set up a null device in the graphics state.\n *\n * Checks if the current device needs to be replaced with a ...
{ "cve": "CVE-2018-16863", "cve_desc": "It was found that RHSA-2018:2918 did not fully fix CVE-2018-16509. An attacker could possibly exploit another variant of the flaw and bypass the -dSAFER protection to, for example, execute arbitrary shell commands via a specially crafted PostScript document. This only affects...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Restore the PostScript virtual memory to a previous saved state.\n *\n * Validates the operand and restores V...
{ "cve": "CVE-2018-16863", "cve_desc": "It was found that RHSA-2018:2918 did not fully fix CVE-2018-16509. An attacker could possibly exploit another variant of the flaw and bypass the -dSAFER protection to, for example, execute arbitrary shell commands via a specially crafted PostScript document. This only affects...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Callback function to securely destroy secret data.\n *\n * This function is typically used as a GDestroyNotif...
{ "cve": "CVE-2011-1943", "cve_desc": "The destroy_one_secret function in nm-setting-vpn.c in libnm-util in the NetworkManager package 0.8.999-3.git20110526 in Fedora 15 creates a log entry containing a certificate password, which allows local users to obtain sensitive information by reading a log file.", "cwe": ...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Perform pattern matching with wildcard support.\n *\n * Matches a pattern string against an input string usin...
{ "cve": "CVE-2017-13720", "cve_desc": "In the PatternMatch function in fontfile/fontdir.c in libXfont through 1.5.2 and 2.x before 2.0.2, an attacker with access to an X connection can cause a buffer over-read during pattern matching of fonts, leading to information disclosure or a crash (denial of service). This ...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Call the PostScript interpreter and handle errors.\n *\n * Invokes the interpreter with the given context and...
{ "cve": "CVE-2018-16542", "cve_desc": "In Artifex Ghostscript before 9.24, attackers able to supply crafted PostScript files could use insufficient interpreter stack-size checking during error handling to crash the interpreter.", "cwe": "['CWE-388']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Finalize and clean up a Ghostscript interpreter instance.\n *\n * Performs comprehensive cleanup of a gs_main...
{ "cve": "CVE-2018-16541", "cve_desc": "In Artifex Ghostscript before 9.24, attackers able to supply crafted PostScript files could use incorrect free logic in pagedevice replacement to crash the interpreter.", "cwe": "['CWE-416']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Set the current color in the PostScript interpreter.\n *\n * Retrieves color components from the operand stac...
{ "cve": "CVE-2018-16513", "cve_desc": "In Artifex Ghostscript before 9.24, attackers able to supply crafted PostScript files could use a type confusion in the setcolor function to crash the interpreter or possibly have unspecified other impact.", "cwe": "['CWE-704']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Read data from a file descriptor and write it to output streams.\n *\n * Reads data from the given file descr...
{ "cve": "CVE-2017-13090", "cve_desc": "The retr.c:fd_read_body() function is called when processing OK responses. When the response is sent chunked in wget before 1.19.2, the chunk parser uses strtol() to read each chunk's length, but doesn't check that the chunk length is a non-negative number. The code then trie...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Load EDID firmware for a given DRM connector.\n *\n * This function attempts to load an EDID binary from firm...
{ "cve": "CVE-2019-12382", "cve_desc": "An issue was discovered in drm_load_edid_firmware in drivers/gpu/drm/drm_edid_load.c in the Linux kernel through 5.1.5. There is an unchecked kstrdup of fwstr, which might allow an attacker to cause a denial of service (NULL pointer dereference and system crash). NOTE: The ve...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Realigns the buffer data to the beginning of the buffer.\n *\n * This function ensures that valid buffer data...
{ "cve": "CVE-2015-3281", "cve_desc": "The buffer_slow_realign function in HAProxy 1.5.x before 1.5.14 and 1.6-dev does not properly realign a buffer that is used for pending outgoing data, which allows remote attackers to obtain sensitive information (uninitialized memory contents of previous requests) via a craft...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Create and register a new OSPF event message with LSA filtering.\n *\n * Allocates a message buffer and popul...
{ "cve": "CVE-2013-2236", "cve_desc": "Stack-based buffer overflow in the new_msg_lsa_change_notify function in the OSPFD API (ospf_api.c) in Quagga before 0.99.22.2, when --enable-opaque-lsa and the -a command line option are used, allows remote attackers to cause a denial of service (crash) via a large LSA.", "...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Decode an ASN.1 item from DER format into an internal representation.\n *\n * Decodes ASN.1 encoded data acco...
{ "cve": "CVE-2015-3195", "cve_desc": "The ASN1_TFLG_COMBINE implementation in crypto/asn1/tasn_dec.c in OpenSSL before 0.9.8zh, 1.0.0 before 1.0.0t, 1.0.1 before 1.0.1q, and 1.0.2 before 1.0.2e mishandles errors caused by malformed X509_ATTRIBUTE data, which allows remote attackers to obtain sensitive information ...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Decode RSA-PSS parameters from an X509 algorithm identifier.\n *\n * Parses the algorithm parameter to extrac...
{ "cve": "CVE-2015-3194", "cve_desc": "crypto/rsa/rsa_ameth.c in OpenSSL 1.0.1 before 1.0.1q and 1.0.2 before 1.0.2e allows remote attackers to cause a denial of service (NULL pointer dereference and application crash) via an RSA PSS ASN.1 signature that lacks a mask generation function parameter.", "cwe": "['CWE...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Decodes an X509_ALGOR structure representing an MGF1 algorithm identifier.\n *\n * This function validates th...
{ "cve": "CVE-2015-3194", "cve_desc": "crypto/rsa/rsa_ameth.c in OpenSSL 1.0.1 before 1.0.1q and 1.0.2 before 1.0.2e allows remote attackers to cause a denial of service (NULL pointer dereference and application crash) via an RSA PSS ASN.1 signature that lacks a mask generation function parameter.", "cwe": "['CWE...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Test modular exponentiation functions BN_mod_exp and BN_mod_exp_mont_consttime.\n *\n * Performs comprehensiv...
{ "cve": "CVE-2015-3193", "cve_desc": "The Montgomery squaring implementation in crypto/bn/asm/x86_64-mont5.pl in OpenSSL 1.0.2 before 1.0.2e on the x86_64 platform, as used by the BN_mod_exp function, mishandles carry propagation and produces incorrect output, which makes it easier for remote attackers to obtain s...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Continue token scanning operation in the PostScript interpreter.\n *\n * Processes tokens from the scanner st...
{ "cve": "CVE-2017-11714", "cve_desc": "psi/ztoken.c in Artifex Ghostscript 9.21 mishandles references to the scanner state structure, which allows remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact via a crafted PostScript document, related to an out-of-boun...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Render a glyph outline to a bitmap using the smooth renderer.\n *\n * This function renders a glyph slot's ou...
{ "cve": "CVE-2009-0946", "cve_desc": "Multiple integer overflows in FreeType 2.3.9 and earlier allow remote attackers to execute arbitrary code via vectors related to large values in certain inputs in (1) smooth/ftsmooth.c, (2) sfnt/ttcmap.c, and (3) cff/cffload.c.", "cwe": "['CWE-189']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Load and parse a CFF charset table from a font stream.\n *\n * Parses the charset table from the given stream...
{ "cve": "CVE-2009-0946", "cve_desc": "Multiple integer overflows in FreeType 2.3.9 and earlier allow remote attackers to execute arbitrary code via vectors related to large values in certain inputs in (1) smooth/ftsmooth.c, (2) sfnt/ttcmap.c, and (3) cff/cffload.c.", "cwe": "['CWE-189']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Parse and add parameters from a string to argv.\n *\n * Parses a string starting at parsestart, extracting in...
{ "cve": "CVE-2019-11360", "cve_desc": "A buffer overflow in iptables-restore in netfilter iptables 1.8.2 allows an attacker to (at least) crash the program or potentially gain code execution via a specially crafted iptables-save file. This is related to add_param_to_argv in xshared.c.", "cwe": "['CWE-119']", "...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Callback function to handle user icon file change authorization.\n *\n * Validates and processes a request to...
{ "cve": "CVE-2018-14036", "cve_desc": "Directory Traversal with ../ sequences occurs in AccountsService before 0.6.50 because of an insufficient path check in user_change_icon_file_authorized_cb() in user.c.", "cwe": "['CWE-22']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Send an event to a window on behalf of a client.\n *\n * Processes a request to deliver an event to a specifi...
{ "cve": "CVE-2017-10971", "cve_desc": "In the X.Org X server before 2017-06-19, a user authenticated to an X Session could crash or execute code in the context of the X Server by exploiting a stack overflow in the endianness conversion of X Events.", "cwe": "['CWE-119']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Process and send an X extension event to a client.\n *\n * Validates the extension event request, looks up th...
{ "cve": "CVE-2017-10971", "cve_desc": "In the X.Org X server before 2017-06-19, a user authenticated to an X Session could crash or execute code in the context of the X Server by exploiting a stack overflow in the endianness conversion of X Events.", "cwe": "['CWE-119']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Verifies an X.509 certificate chain.\n *\n * This function performs a complete certificate chain verification...
{ "cve": "CVE-2015-1793", "cve_desc": "The X509_verify_cert function in crypto/x509/x509_vfy.c in OpenSSL 1.0.1n, 1.0.1o, 1.0.2b, and 1.0.2c does not properly process X.509 Basic Constraints cA values during identification of alternative certificate chains, which allows remote attackers to spoof a Certification Aut...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Decode PAX header for a sparse tar archive member.\n *\n * Parses the extended PAX header to read and populat...
{ "cve": "CVE-2019-9923", "cve_desc": "pax_decode_header in sparse.c in GNU Tar before 1.32 had a NULL pointer dereference when parsing certain archives that have malformed extended headers.", "cwe": "['CWE-476']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Encode a character code to its corresponding glyph ID using the font's CMAP subtable.\n *\n * Converts a char...
{ "cve": "CVE-2017-9740", "cve_desc": "The xps_decode_font_char_imp function in xps/xpsfont.c in Artifex Ghostscript GhostXPS 9.21 allows remote attackers to cause a denial of service (heap-based buffer over-read and application crash) or possibly have unspecified other impact via a crafted document.", "cwe": "['...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Read n bytes from the TrueType font reader into the provided buffer.\n *\n * Reads font glyph data from the i...
{ "cve": "CVE-2017-9727", "cve_desc": "The gx_ttfReader__Read function in base/gxttfb.c in Artifex Ghostscript GhostXPS 9.21 allows remote attackers to cause a denial of service (heap-based buffer over-read and application crash) or possibly have unspecified other impact via a crafted document.", "cwe": "['CWE-12...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Move a point by a computed distance in a TrueType font instruction.\n *\n * This instruction calculates the d...
{ "cve": "CVE-2017-9726", "cve_desc": "The Ins_MDRP function in base/ttinterp.c in Artifex Ghostscript GhostXPS 9.21 allows remote attackers to cause a denial of service (heap-based buffer over-read and application crash) or possibly have unspecified other impact via a crafted document.", "cwe": "['CWE-125']", ...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Filter function for handling D-Bus signals in the proxy manager.\n *\n * Processes incoming D-Bus messages an...
{ "cve": "CVE-2013-0292", "cve_desc": "The dbus_g_proxy_manager_filter function in dbus-gproxy in Dbus-glib before 0.100.1 does not properly verify the sender of NameOwnerChanged signals, which allows local users to gain privileges via a spoofed signal.", "cwe": "['CWE-20']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Retrieve the glyph name for a given glyph.\n *\n * This function attempts to obtain the glyph name for the sp...
{ "cve": "CVE-2017-9619", "cve_desc": "The xps_true_callback_glyph_name function in xps/xpsttf.c in Artifex Ghostscript GhostXPS 9.21 allows remote attackers to cause a denial of service (Segmentation Violation and application crash) via a crafted file.", "cwe": "['CWE-119']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Load the font name from the SFNT 'name' table.\n *\n * Searches the name table for font name records and copi...
{ "cve": "CVE-2017-9618", "cve_desc": "The xps_load_sfnt_name function in xps/xpsfont.c in Artifex Ghostscript GhostXPS 9.21 allows remote attackers to cause a denial of service (buffer overflow and application crash) or possibly have unspecified other impact via a crafted document.", "cwe": "['CWE-119']", "tar...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Check access control list for xauth authorization.\n *\n * Reads the specified user's .xauth/<sense> file to ...
{ "cve": "CVE-2010-4707", "cve_desc": "The check_acl function in pam_xauth.c in the pam_xauth module in Linux-PAM (aka pam) 1.1.2 and earlier does not verify that a certain ACL file is a regular file, which might allow local users to cause a denial of service (resource consumption) via a special file.", "cwe": "[...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Verify a digital signature over an ASN.1 structure.\n *\n * Verifies that the provided signature was created ...
{ "cve": "CVE-2013-0166", "cve_desc": "OpenSSL before 0.9.8y, 1.0.0 before 1.0.0k, and 1.0.1 before 1.0.1d does not properly perform signature verification for OCSP responses, which allows remote OCSP servers to cause a denial of service (NULL pointer dereference and application crash) via an invalid key.", "cwe"...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Verify a digital signature over an ASN.1 structure.\n *\n * Verifies that the provided signature was created ...
{ "cve": "CVE-2013-0166", "cve_desc": "OpenSSL before 0.9.8y, 1.0.0 before 1.0.0k, and 1.0.1 before 1.0.1d does not properly perform signature verification for OCSP responses, which allows remote OCSP servers to cause a denial of service (NULL pointer dereference and application crash) via an invalid key.", "cwe"...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Verify a digital signature over an ASN.1 structure.\n *\n * Verifies that the provided signature was created ...
{ "cve": "CVE-2013-0166", "cve_desc": "OpenSSL before 0.9.8y, 1.0.0 before 1.0.0k, and 1.0.1 before 1.0.1d does not properly perform signature verification for OCSP responses, which allows remote OCSP servers to cause a denial of service (NULL pointer dereference and application crash) via an invalid key.", "cwe"...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Opens a file atomically, passing through to fd_open if file already exists.\n *\n * Checks if the file alread...
{ "cve": "CVE-2017-9461", "cve_desc": "smbd in Samba before 4.4.10 and 4.5.x before 4.5.6 has a denial of service vulnerability (fd_open_atomic infinite loop with high CPU usage and memory consumption) due to wrongly handling dangling symlinks.", "cwe": "['CWE-835']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Decodes a block of base64-encoded data.\n *\n * Processes base64-encoded input data and writes decoded bytes ...
{ "cve": "CVE-2015-0292", "cve_desc": "Integer underflow in the EVP_DecodeUpdate function in crypto/evp/encode.c in the base64-decoding implementation in OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h allows remote attackers to cause a denial of service (memory corruption) or possibly have uns...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Write application data to an SSL/TLS connection.\n *\n * Sends data through an established SSL connection, ha...
{ "cve": "CVE-2015-0290", "cve_desc": "The multi-block feature in the ssl3_write_bytes function in s3_pkt.c in OpenSSL 1.0.2 before 1.0.2a on 64-bit x86 platforms with AES NI support does not properly handle certain non-blocking I/O cases, which allows remote attackers to cause a denial of service (pointer corrupti...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Decode an ASN.1 encoded structure into an ASN1_VALUE.\n *\n * Decodes ASN.1 DER-encoded data according to the...
{ "cve": "CVE-2015-0287", "cve_desc": "The ASN1_item_ex_d2i function in crypto/asn1/tasn_dec.c in OpenSSL before 0.9.8zf, 1.0.0 before 1.0.0r, 1.0.1 before 1.0.1m, and 1.0.2 before 1.0.2a does not reinitialize CHOICE and ADB data structures, which might allow attackers to cause a denial of service (invalid write op...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Compare two ASN1_TYPE structures for equality.\n *\n * Compares two ASN1_TYPE structures by first checking if...
{ "cve": "CVE-2015-0286", "cve_desc": "The ASN1_TYPE_cmp function in crypto/asn1/a_type.c in OpenSSL before 0.9.8zf, 1.0.0 before 1.0.0r, 1.0.1 before 1.0.1m, and 1.0.2 before 1.0.2a does not properly perform boolean-type comparisons, which allows remote attackers to cause a denial of service (invalid read operatio...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Constructs and sends an SSL/TLS ClientHello handshake message.\n *\n * Builds the ClientHello message by sett...
{ "cve": "CVE-2015-0285", "cve_desc": "The ssl3_client_hello function in s3_clnt.c in OpenSSL 1.0.2 before 1.0.2a does not ensure that the PRNG is seeded before proceeding with a handshake, which makes it easier for remote attackers to defeat cryptographic protection mechanisms by sniffing the network and then cond...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Format a unique socket name based on display and user information.\n *\n * Constructs a socket name string us...
{ "cve": "CVE-2017-8934", "cve_desc": "PCManFM 1.2.5 insecurely uses /tmp for a socket file, allowing a local user to cause a denial of service (application unavailability).", "cwe": "['CWE-20']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Parse glyph definitions from a BDF font file line by line.\n *\n * Processes BDF (Bitmap Distribution Format)...
{ "cve": "CVE-2012-5670", "cve_desc": "The _bdf_parse_glyphs function in FreeType before 2.4.11 allows context-dependent attackers to cause a denial of service (out-of-bounds write and crash) via vectors related to BDF fonts and an ENCODING field with a negative value.", "cwe": "['CWE-119']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Parse glyph definitions from a BDF font file line by line.\n *\n * Processes individual lines of a BDF (Bitma...
{ "cve": "CVE-2012-5669", "cve_desc": "The _bdf_parse_glyphs function in FreeType before 2.4.11 allows context-dependent attackers to cause a denial of service (crash) and possibly execute arbitrary code via vectors related to BDF fonts and an incorrect calculation that triggers an out-of-bounds read.", "cwe": "[...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Parse and validate a context length argument from a string.\n *\n * Converts the input string to an integer r...
{ "cve": "CVE-2012-5667", "cve_desc": "Multiple integer overflows in GNU Grep before 2.11 might allow context-dependent attackers to execute arbitrary code via vectors involving a long input line that triggers a heap-based buffer overflow.", "cwe": "['CWE-189']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Mounts an SMB share using platform-specific commands.\n *\n * This function sets up and executes the appropri...
{ "cve": "CVE-2017-8849", "cve_desc": "smb4k before 2.0.1 allows local users to gain root privileges by leveraging failure to verify arguments to the mount helper DBUS service.", "cwe": "['CWE-20']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Parse the encoding array of a Type 1 font.\n *\n * Parses the encoding section of a Type 1 font, supporting t...
{ "cve": "CVE-2014-9745", "cve_desc": "The parse_encoding function in type1/t1load.c in FreeType before 2.5.3 allows remote attackers to cause a denial of service (infinite loop) via a \"broken number-with-base\" in a Postscript stream, as demonstrated by 8#garbage.", "cwe": "['CWE-399']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Analyzes HTTP request headers to determine cacheability.\n *\n * Examines Pragma and Cache-Control headers to...
{ "cve": "CVE-2018-11469", "cve_desc": "Incorrect caching of responses to requests including an Authorization header in HAProxy 1.8.0 through 1.8.9 (if cache enabled) allows attackers to achieve information disclosure via an unauthenticated remote request, related to the proto_http.c check_request_for_cacheability ...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Parse a FOND resource to extract SFNT font information and create an LWFN filename.\n *\n * Parses a Font Obj...
{ "cve": "CVE-2014-9672", "cve_desc": "Array index error in the parse_fond function in base/ftmac.c in FreeType before 2.5.4 allows remote attackers to cause a denial of service (out-of-bounds read) or obtain sensitive information from process memory via a crafted FOND resource in a Mac font file.", "cwe": "['CWE...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Parse and load font encodings from a PCF (Printer Cursor Font) file.\n *\n * Reads the BDF encoding table fro...
{ "cve": "CVE-2014-9670", "cve_desc": "Multiple integer signedness errors in the pcf_get_encodings function in pcf/pcfread.c in FreeType before 2.5.4 allow remote attackers to cause a denial of service (integer overflow, NULL pointer dereference, and application crash) via a crafted PCF file that specifies negative...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Validates a TrueType cmap table in format 8.\n *\n * This function performs structural and content validation...
{ "cve": "CVE-2014-9669", "cve_desc": "Multiple integer overflows in sfnt/ttcmap.c in FreeType before 2.5.4 allow remote attackers to cause a denial of service (out-of-bounds read or memory corruption) or possibly have unspecified other impact via a crafted cmap SFNT table.", "cwe": "['CWE-125']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Initialize a TrueType SBit decoder for a specific strike.\n *\n * Locates the appropriate bitmap data table (...
{ "cve": "CVE-2014-9666", "cve_desc": "The tt_sbit_decoder_init function in sfnt/ttsbit.c in FreeType before 2.5.4 proceeds with a count-to-size association without restricting the count value, which allows remote attackers to cause a denial of service (integer overflow and out-of-bounds read) or possibly have unsp...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Load the kerning table from a TrueType font stream.\n *\n * Parses the kerning table from the font file and p...
{ "cve": "CVE-2014-9658", "cve_desc": "The tt_face_load_kern function in sfnt/ttkern.c in FreeType before 2.5.4 enforces an incorrect minimum table length, which allows remote attackers to cause a denial of service (out-of-bounds read) or possibly have unspecified other impact via a crafted TrueType font.", "cwe"...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Load a glyph image from an embedded bitmap (sbit) strike.\n *\n * Locates and loads the bitmap data for a giv...
{ "cve": "CVE-2014-9656", "cve_desc": "The tt_sbit_decoder_load_image function in sfnt/ttsbit.c in FreeType before 2.5.4 does not properly check for an integer overflow, which allows remote attackers to cause a denial of service (out-of-bounds read) or possibly have unspecified other impact via a crafted OpenType f...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Extract the next PostScript token from the parser.\n *\n * Parses the next token from the parser's buffer sta...
{ "cve": "CVE-2017-8287", "cve_desc": "FreeType 2 before 2017-03-26 has an out-of-bounds write caused by a heap-based buffer overflow related to the t1_builder_close_contour function in psaux/psobjs.c.", "cwe": "['CWE-119']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Parse and execute Type 1 charstring bytecode.\n *\n * Interprets Adobe Type 1 charstring operators to render ...
{ "cve": "CVE-2017-8105", "cve_desc": "FreeType 2 before 2017-03-24 has an out-of-bounds write caused by a heap-based buffer overflow related to the t1_decoder_parse_charstrings function in psaux/t1decode.c.", "cwe": "['CWE-787']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Validate a D-Bus message body by walking through its type-encoded data.\n *\n * Iterates through each type-en...
{ "cve": "CVE-2010-4352", "cve_desc": "Stack consumption vulnerability in D-Bus (aka DBus) before 1.4.1 allows local users to cause a denial of service (daemon crash) via a message containing many nested variants.", "cwe": "['CWE-399']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Reset TrueType size metrics for a given size object.\n *\n * Initializes or updates the TrueType-specific met...
{ "cve": "CVE-2017-7864", "cve_desc": "FreeType 2 before 2017-02-02 has an out-of-bounds write caused by a heap-based buffer overflow related to the tt_size_reset function in truetype/ttobjs.c.", "cwe": "['CWE-787']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Initialize a TrueType/OpenType font face from an SFNT stream.\n *\n * This function initializes a TT_Face obj...
{ "cve": "CVE-2017-7857", "cve_desc": "FreeType 2 before 2017-03-08 has an out-of-bounds write caused by a heap-based buffer overflow related to the TT_Get_MM_Var function in truetype/ttgxvar.c and the sfnt_init_face function in sfnt/sfobjs.c.", "cwe": "['CWE-787']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Main entry point for the pdfunite PDF merging utility.\n *\n * Entry point for pdfunite that merges multiple ...
{ "cve": "CVE-2017-7511", "cve_desc": "poppler since version 0.17.3 has been vulnerable to NULL pointer dereference in pdfunite triggered by specially crafted documents.", "cwe": "['CWE-476']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Test harness for the parse_datetime function.\n *\n * This main function runs comprehensive tests on the pars...
{ "cve": "CVE-2017-7476", "cve_desc": "Gnulib before 2017-04-26 has a heap-based buffer overflow with the TZ environment variable. The error is in the save_abbr function in time_rz.c.", "cwe": "['CWE-119']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Read and decode packed point data from a font stream.\n *\n * Parses a packed point array from the given stre...
{ "cve": "CVE-2010-3855", "cve_desc": "Buffer overflow in the ft_var_readpackedpoints function in truetype/ttgxvar.c in FreeType 2.4.3 and earlier allows remote attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a crafted TrueType GX font.", "cwe": "['CWE-119']", "...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Transform a device space distance to user space coordinates.\n *\n * Converts a distance vector from device s...
{ "cve": "CVE-2018-10194", "cve_desc": "The set_text_distance function in devices/vector/gdevpdts.c in the pdfwrite component in Artifex Ghostscript through 9.22 does not prevent overflows in text-positioning calculation, which allows remote attackers to cause a denial of service (application crash) or possibly hav...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Process incoming HTTP/2 frames and demultiplex them to streams.\n *\n * This function processes HTTP/2 frames...
{ "cve": "CVE-2018-10184", "cve_desc": "An issue was discovered in HAProxy before 1.8.8. The incoming H2 frame length was checked against the max_frame_size setting instead of being checked against the bufsize. The max_frame_size only applies to outgoing traffic and not to incoming, so if a large enough frame size ...
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Query XvMC driver information from the X server.\n *\n * Retrieves driver name, bus ID, version numbers, and ...
{ "cve": "CVE-2016-7953", "cve_desc": "Buffer underflow in X.org libXvMC before 1.0.10 allows remote X servers to have unspecified impact via an empty string.", "cwe": "['CWE-119']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Fetches the rectangles that compose an X server region along with its bounding box.\n *\n * This function que...
{ "cve": "CVE-2016-7944", "cve_desc": "Integer overflow in X.org libXfixes before 5.0.3 on 32-bit platforms might allow remote X servers to gain privileges via a length value of INT_MAX, which triggers the client to stop reading data and get out of sync.", "cwe": "['CWE-190']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Performs half-pel motion compensation for video decoding.\n *\n * Applies half-pixel precision motion compens...
{ "cve": "CVE-2016-7424", "cve_desc": "The put_no_rnd_pixels8_xy2_mmx function in x86/rnd_template.c in libav 11.7 and earlier allows remote attackers to cause a denial of service (NULL pointer dereference and crash) via a crafted MP3 file.", "cwe": "['CWE-476']", "target": 0 }
[ { "content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.", "role": "system" }, { "content": "/**\n * @brief Select the best CRL from a stack for certificate revocation checking.\n *\n * Iterates through a stack of Cer...
{ "cve": "CVE-2016-7052", "cve_desc": "crypto/x509/x509_vfy.c in OpenSSL 1.0.2i allows remote attackers to cause a denial of service (NULL pointer dereference and application crash) by triggering a CRL operation.", "cwe": "['CWE-476']", "target": 0 }