Dataset Viewer
Auto-converted to Parquet Duplicate
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 Extract all files from an EPUB archive to a temporary folder.\n *\n * Opens the EPUB file (a ZIP archive) and ...
{ "cve": "CVE-2019-14452", "cve_desc": "Sigil before 0.9.16 is vulnerable to a directory traversal, allowing attackers to write arbitrary files via a ../ (dot dot slash) in a ZIP archive entry that is mishandled during extraction.", "cwe": "['CWE-22']", "target": 0, "uuid": "dbc4fe31-b259-498c-a447-990e321d7b...
[ { "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 encoding specification and populate encoding list.\n *\n * Converts an encoding specification (either a ...
{ "cve": "CVE-2019-11930", "cve_desc": "An invalid free in mb_detect_order can cause the application to crash or potentially result in remote code execution. This issue affects HHVM versions prior to 3.30.12, all versions between 4.0.0 and 4.8.5, all versions between 4.9.0 and 4.23.1, as well as 4.24.0, 4.25.0, 4.2...
[ { "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 CBOR-encoded value to its JSON representation.\n *\n * Reads CBOR data from the input context and wr...
{ "cve": "CVE-2020-24753", "cve_desc": "A memory corruption vulnerability in Objective Open CBOR Run-time (oocborrt) in versions before 2020-08-12 could allow an attacker to execute code via crafted Concise Binary Object Representation (CBOR) input to the cbor2json decoder. An uncaught error while decoding CBOR Maj...
[ { "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 LDB parse tree to an equivalent SQL query string.\n *\n * Translates LDB parse tree operations into...
{ "cve": "CVE-2018-1140", "cve_desc": "A missing input sanitization flaw was found in the implementation of LDP database used for the LDAP server. An attacker could use this flaw to cause a denial of service against a samba server, used as a Active Directory Domain Controller. All versions of Samba from 4.8.0 onwar...
[ { "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 Modifies the TCP MSS (Maximum Segment Size) option in SYN packets.\n *\n * Adjusts the MSS value in TCP header...
{ "cve": "CVE-2017-18017", "cve_desc": "The tcpmss_mangle_packet function in net/netfilter/xt_TCPMSS.c in the Linux kernel before 4.11, and 4.9.x before 4.9.36, allows remote attackers to cause a denial of service (use-after-free and memory corruption) or possibly have unspecified other impact by leveraging the pre...
[ { "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 Calculate coefficients for a filtering operation.\n *\n * Computes a 4-element coefficient array using polynom...
{ "cve": "CVE-2016-7970", "cve_desc": "Buffer overflow in the calc_coeff function in libass/ass_blur.c in libass before 0.13.4 allows remote attackers to cause a denial of service via unspecified vectors.", "cwe": "['CWE-119']", "target": 0, "uuid": "e8f878d8-ae4e-4803-b3ef-0ff04783b798" }
[ { "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 GStreamer audio caps from RIFF wave format information.\n *\n * Converts a WAVE format audio codec ID i...
{ "cve": "CVE-2017-5844", "cve_desc": "The gst_riff_create_audio_caps function in gst-libs/gst/riff/riff-media.c in gst-plugins-base in GStreamer before 1.10.3 allows remote attackers to cause a denial of service (floating point exception and crash) via a crafted ASF file.", "cwe": "['CWE-369']", "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 Move pages of a process to specified NUMA nodes or query page locations.\n *\n * This system call moves proces...
{ "cve": "CVE-2017-14140", "cve_desc": "The move_pages system call in mm/migrate.c in the Linux kernel before 4.12.9 doesn't check the effective uid of the target process, enabling a local attacker to learn the memory layout of a setuid executable despite ASLR.", "cwe": "['CWE-200']", "target": 0, "uuid": "d5...
[ { "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 Clone a socket structure with proper initialization.\n *\n * Creates a new socket structure by cloning the pro...
{ "cve": "CVE-2018-9568", "cve_desc": "In sk_clone_lock of sock.c, there is a possible memory corruption due to type confusion. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation. Product: Android. Versions: Android kernel...
[ { "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 Load a device tree from a file and return a pointer to it in memory.\n *\n * The function reads the device tre...
{ "cve": "CVE-2018-20815", "cve_desc": "In QEMU 3.1.0, load_device_tree in device_tree.c calls the deprecated load_image function, which has a buffer overflow risk.", "cwe": "['CWE-119']", "target": 0, "uuid": "72207c24-8749-4aed-9a59-523f8b895e22" }
[ { "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 simple LDAP filter expression into a parse tree.\n *\n * Parses an LDAP-style filter string pointed to...
{ "cve": "CVE-2019-3824", "cve_desc": "A flaw was found in the way an LDAP search expression could crash the shared LDAP server process of a samba AD DC in samba before version 4.10. An authenticated user, having read permissions on the LDAP server, could use this flaw to cause denial of service.", "cwe": "['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 Decode PAX header for a sparse tar archive member.\n *\n * Parses the extended PAX header to read and populate...
{ "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, "uuid": "238d1be2-f9a9-4bf2-b87d-17ca046ba282" }
[ { "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 FUSE ioctl operations.\n *\n * Processes ioctl commands for a FUSE file, handling data transfer between...
{ "cve": "CVE-2010-4650", "cve_desc": "Buffer overflow in the fuse_do_ioctl function in fs/fuse/file.c in the Linux kernel before 2.6.37 allows local users to cause a denial of service or possibly have unspecified other impact by leveraging the ability to operate a CUSE server.", "cwe": "['CWE-119']", "target":...
[ { "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 PDF object from an input source.\n *\n * Recursively parses PDF objects including arrays, dictionaries...
{ "cve": "CVE-2017-12595", "cve_desc": "The tokenizer in QPDF 6.0.0 and 7.0.b1 is recursive for arrays and dictionaries, which allows remote attackers to cause a denial of service (stack consumption and segmentation fault) or possibly have unspecified other impact via a PDF document with a deep data structure, as d...
[ { "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 Finalizes and registers an HSR network device with its slave devices.\n *\n * Initializes the HSR device data ...
{ "cve": "CVE-2019-16995", "cve_desc": "In the Linux kernel before 5.0.3, a memory leak exits in hsr_dev_finalize() in net/hsr/hsr_device.c if hsr_add_port fails to add a port, which may cause denial of service, aka CID-6caabe7f197d.", "cwe": "['CWE-772']", "target": 0, "uuid": "6621ec2f-8cd8-4c6e-abc3-7162b1...
[ { "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 a Go source file using gofmt.\n *\n * Executes the gofmt tool with the -w flag on the specified file pa...
{ "cve": "CVE-2016-5397", "cve_desc": "The Apache Thrift Go client library exposed the potential during code generation for command injection due to using an external formatting tool. Affected Apache Thrift 0.9.3 and older, Fixed in Apache Thrift 0.10.0.", "cwe": "['CWE-77']", "target": 0, "uuid": "383731de-9...
[ { "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 the largest integer r such that r^dim <= entries.\n *\n * Calculates the floor of the dim-th root of e...
{ "cve": "CVE-2019-13219", "cve_desc": "A NULL pointer dereference in the get_window function in stb_vorbis through 2019-03-04 allows an attacker to cause a denial of service by opening a crafted Ogg Vorbis file.", "cwe": "['CWE-20']", "target": 0, "uuid": "6375ce8d-49d4-43d8-8987-e2c5143b2978" }
[ { "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 Authenticate a user with a password.\n *\n * Validates the provided password against the authentication contex...
{ "cve": "CVE-2016-6515", "cve_desc": "The auth_password function in auth-passwd.c in sshd in OpenSSH before 7.3 does not limit password lengths for password authentication, which allows remote attackers to cause a denial of service (crypt CPU consumption) via a long string.", "cwe": "['CWE-20']", "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 Parse video information from an AVIOContext and populate an AVStream.\n *\n * Extracts video dimensions, codec...
{ "cve": "CVE-2018-1999011", "cve_desc": "FFmpeg before commit 2b46ebdbff1d8dec7a3d8ea280a612b91a582869 contains a Buffer Overflow vulnerability in asf_o format demuxer that can result in heap-buffer-overflow that may result in remote code execution. This attack appears to be exploitable via specially crafted ASF 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 Parse and process an SLCAN protocol frame from serial input.\n *\n * Parses a CAN frame from the SLCAN (Serial...
{ "cve": "CVE-2020-11494", "cve_desc": "An issue was discovered in slc_bump in drivers/net/can/slcan.c in the Linux kernel 3.16 through 5.6.2. It allows attackers to read uninitialized can_frame data, potentially containing sensitive information from kernel stack memory, if the configuration lacks CONFIG_INIT_STACK...
[ { "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 Fills an area of an image with a color, stopping at a specified border color.\n *\n * Performs a flood fill op...
{ "cve": "CVE-2016-9933", "cve_desc": "Stack consumption vulnerability in the gdImageFillToBorder function in gd.c in the GD Graphics Library (aka libgd) before 2.2.2, as used in PHP before 5.6.28 and 7.x before 7.0.13, allows remote attackers to cause a denial of service (segmentation violation) via a crafted imag...
[ { "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 Main entry point for the virtiofsd FUSE filesystem daemon.\n *\n * Initializes the FUSE session, parses comman...
{ "cve": "CVE-2022-0358", "cve_desc": "A flaw was found in the QEMU virtio-fs shared file system daemon (virtiofsd) implementation. This flaw is strictly related to CVE-2018-13405. A local guest user can create files in the directories shared by virtio-fs with unintended group ownership in a scenario where a direct...
[ { "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 a base64 encoded string into binary data.\n *\n * Decodes the input base64 string by processing 4-chara...
{ "cve": "CVE-2018-6789", "cve_desc": "An issue was discovered in the base64d function in the SMTP listener in Exim before 4.90.1. By sending a handcrafted message, a buffer overflow may happen. This can be used to execute code remotely.", "cwe": "['CWE-119']", "target": 0, "uuid": "2653bb0d-33b6-4d86-8fad-ee...
[ { "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 Validate a peer's public key against a locally stored public key file.\n *\n * Compares the provided public ke...
{ "cve": "CVE-2020-16088", "cve_desc": "iked in OpenIKED, as used in OpenBSD through 6.7, allows authentication bypass because ca.c has the wrong logic for checking whether a public key matches.", "cwe": "['CWE-639']", "target": 0, "uuid": "336fc1ab-d592-4c8e-864e-a8743e577bc9" }
[ { "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 Extract the next variable from a delimited string.\n *\n * Parses a string containing comma, carriage return, ...
{ "cve": "CVE-2015-7975", "cve_desc": "The nextvar function in NTP before 4.2.8p6 and 4.3.x before 4.3.90 does not properly validate the length of its input, which allows an attacker to cause a denial of service (application crash).", "cwe": "['CWE-119']", "target": 0, "uuid": "00ca581c-71dd-40d3-aa07-e9e2c10...
[ { "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 Query video adaptor information for a specified window.\n *\n * Retrieves the number of available X Video exte...
{ "cve": "CVE-2016-5407", "cve_desc": "The (1) XvQueryAdaptors and (2) XvQueryEncodings functions in X.org libXv before 1.0.11 allow remote X servers to trigger out-of-bounds memory access operations via vectors involving length specifications in received data.", "cwe": "['CWE-125']", "target": 0, "uuid": "75...
[ { "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 Close all sockets associated with a given transport.\n *\n * Iterates over the global socket list and closes a...
{ "cve": "CVE-2016-3890", "cve_desc": "The Java Debug Wire Protocol (JDWP) implementation in adb/sockets.cpp in Android 4.x before 4.4.4, 5.0.x before 5.0.2, 5.1.x before 5.1.1, and 6.x before 2016-09-01 mishandles socket close operations, which allows attackers to gain privileges via a crafted application, aka int...
[ { "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 Expand environment variables and PAM items in a string value.\n *\n * Processes the input string, expanding ${...
{ "cve": "CVE-2011-3149", "cve_desc": "The _expand_arg function in the pam_env module (modules/pam_env/pam_env.c) in Linux-PAM (aka pam) before 1.1.5 does not properly handle when environment variable expansion can overflow, which allows local users to cause a denial of service (CPU consumption).", "cwe": "['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 Formats arguments according to a printf-style format string into a dynamically allocated buffer.\n *\n * Parse...
{ "cve": "CVE-2020-1918", "cve_desc": "In-memory file operations (ie: using fopen on a data URI) did not properly restrict negative seeking, allowing for the reading of memory prior to the in-memory buffer. This issue affects HHVM versions prior to 4.56.3, all versions between 4.57.0 and 4.80.1, all versions betwee...
[ { "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 Retrieve a plugin by name, module, and optional revision.\n *\n * Searches through the registered plugins to f...
{ "cve": "CVE-2021-28904", "cve_desc": "In function ext_get_plugin() in libyang <= v1.0.225, it doesn't check whether the value of revision is NULL. If revision is NULL, the operation of strcmp(revision, ext_plugins[u].revision) will lead to a crash.", "cwe": "['CWE-252']", "target": 0, "uuid": "0a3c09d1-f8ba...
[ { "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 n-grams for a batch of string sequences.\n *\n * This function is an override of the TensorFlow OpKern...
{ "cve": "CVE-2022-21733", "cve_desc": "Tensorflow is an Open Source Machine Learning Framework. The implementation of `StringNGrams` can be used to trigger a denial of service attack by causing an out of memory condition after an integer overflow. We are missing a validation on `pad_witdh` and that result in compu...
[ { "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 Push data onto a queue, resizing the buffer if necessary.\n *\n * Appends the specified data to the end of the...
{ "cve": "CVE-2016-10375", "cve_desc": "Yodl before 3.07.01 has a Buffer Over-read in the queue_push function in queue/queuepush.c.", "cwe": "['CWE-119']", "target": 0, "uuid": "852a9337-65b0-407c-a420-bc11bbfbd26f" }
[ { "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 download behavior for the associated web contents via DevTools.\n *\n * Configures how downloads are ...
{ "cve": "CVE-2018-18344", "cve_desc": "Inappropriate allowance of the setDownloadBehavior devtools protocol feature in Extensions in Google Chrome prior to 71.0.3578.80 allowed a remote attacker with control of an installed extension to access files on the local file system via a crafted Chrome Extension.", "cwe...
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
28

Models trained or fine-tuned on felixwangg/stage_2_secure