file_name stringlengths 4 45 | method_name stringlengths 3 58 | code_before stringlengths 980 1.05M | code_after stringlengths 1.13k 1.05M | func_before stringlengths 55 114k | func_after stringlengths 71 114k | diff stringlengths 75 133k | num_lines_added float64 1 1.49k | num_lines_deleted float64 1 1.13k | num_lines_in_file float64 27 23.2k | num_tokens_in_file float64 143 192k | repo stringclasses 259
values | cve_id stringlengths 13 16 | cwe_id stringclasses 73
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
open_utils.c | read_new_config_info | ////////////////////////////////////////////////////////////////////////////
// **** WAVPACK **** //
// Hybrid Lossless Wavefile Compressor //
// Copyright (c) 1998 - 2016 David Bryant. //
// ... | ////////////////////////////////////////////////////////////////////////////
// **** WAVPACK **** //
// Hybrid Lossless Wavefile Compressor //
// Copyright (c) 1998 - 2016 David Bryant. //
// ... | static int read_new_config_info (WavpackContext *wpc, WavpackMetadata *wpmd)
{
int bytecnt = wpmd->byte_length;
unsigned char *byteptr = wpmd->data;
wpc->version_five = 1; // just having this block signals version 5.0
wpc->file_format = wpc->config.qmode = wpc->channel_layout = 0;
if (wpc->c... | static int read_new_config_info (WavpackContext *wpc, WavpackMetadata *wpmd)
{
int bytecnt = wpmd->byte_length;
unsigned char *byteptr = wpmd->data;
wpc->version_five = 1; // just having this block signals version 5.0
wpc->file_format = wpc->config.qmode = wpc->channel_layout = 0;
if (wpc->c... | {'added': [(563, ' if (bytecnt >= 2) {'), (596, ''), (597, ' if (wpc->channel_reordering [i] >= nchans) // make sure index is in range'), (598, ' wpc->channel_reordering [i] = 0;'), (599, '')], 'deleted': [(563, ' if (bytecnt) {')]} | 5 | 1 | 825 | 6,305 | https://github.com/dbry/WavPack | CVE-2016-10169 | ['CWE-125'] |
route.c | inet_rtm_getroute | "/*\n * INET\t\tAn implementation of the TCP/IP protocol suite for the LINUX\n *\t\toperating system(...TRUNCATED) | "/*\n * INET\t\tAn implementation of the TCP/IP protocol suite for the LINUX\n *\t\toperating system(...TRUNCATED) | "static int inet_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh,\n\t\t\t struct netli(...TRUNCATED) | "static int inet_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh,\n\t\t\t struct netli(...TRUNCATED) | "{'added': [(2766, '\\tif (rtm->rtm_flags & RTM_F_FIB_MATCH) {'), (2767, '\\t\\tif (!res.fi) {'), (2(...TRUNCATED) | 9 | 2 | 2,327 | 14,667 | https://github.com/torvalds/linux | CVE-2017-13686 | ['CWE-476'] |
main.c | mp4boxMain | "/*\n *\t\t\tGPAC - Multimedia Framework C SDK\n *\n *\t\t\tAuthors: Jean Le Feuvre\n *\t\t\tCopyrig(...TRUNCATED) | "/*\n *\t\t\tGPAC - Multimedia Framework C SDK\n *\n *\t\t\tAuthors: Jean Le Feuvre\n *\t\t\tCopyrig(...TRUNCATED) | "int mp4boxMain(int argc, char **argv)\n{\n\tu32 i, j;\n\tconst char *gpac_profile = \"0\";\n\tGF_Er(...TRUNCATED) | "int mp4boxMain(int argc, char **argv)\n{\n\tu32 i, j;\n\tconst char *gpac_profile = \"0\";\n\tGF_Er(...TRUNCATED) | "{'added': [(5598, '\\t\\t\\tfprintf(stderr, \"File %s has no IOD\\\\n\", inName);')], 'deleted': [((...TRUNCATED) | 1 | 1 | 5,787 | 43,960 | https://github.com/gpac/gpac | CVE-2020-23930 | ['CWE-476'] |
udp.c | udpv6_sendmsg | "/*\n *\tUDP over IPv6\n *\tLinux INET6 implementation\n *\n *\tAuthors:\n *\tPedro Roque\t\t<roque@(...TRUNCATED) | "/*\n *\tUDP over IPv6\n *\tLinux INET6 implementation\n *\n *\tAuthors:\n *\tPedro Roque\t\t<roque@(...TRUNCATED) | "int udpv6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)\n{\n\tstruct ipv6_txoptions opt_(...TRUNCATED) | "int udpv6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)\n{\n\tstruct ipv6_txoptions opt_(...TRUNCATED) | "{'added': [(1113, '\\tstruct ipv6_txoptions *opt_to_free = NULL;'), (1267, '\\tif (!opt) {'), (1268(...TRUNCATED) | 6 | 2 | 1,221 | 7,876 | https://github.com/torvalds/linux | CVE-2016-3841 | ['CWE-264', 'CWE-416'] |
api.c | crypto_larval_lookup | "/*\n * Scatterlist Cryptographic API.\n *\n * Copyright (c) 2002 James Morris <jmorris@intercode.co(...TRUNCATED) | "/*\n * Scatterlist Cryptographic API.\n *\n * Copyright (c) 2002 James Morris <jmorris@intercode.co(...TRUNCATED) | "struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, u32 mask)\n{\n\tstruct crypto_a(...TRUNCATED) | "struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, u32 mask)\n{\n\tstruct crypto_a(...TRUNCATED) | "{'added': [(219, '\\t\\trequest_module(\"crypto-%s\", name);'), (223, '\\t\\t\\trequest_module(\"cr(...TRUNCATED) | 2 | 2 | 424 | 2,423 | https://github.com/torvalds/linux | CVE-2013-7421 | ['CWE-269'] |
mpeg4videodec.c | read_quant_matrix_ext | "/*\n * MPEG-4 decoder\n * Copyright (c) 2000,2001 Fabrice Bellard\n * Copyright (c) 2002-2010 Micha(...TRUNCATED) | "/*\n * MPEG-4 decoder\n * Copyright (c) 2000,2001 Fabrice Bellard\n * Copyright (c) 2002-2010 Micha(...TRUNCATED) | "static void read_quant_matrix_ext(MpegEncContext *s, GetBitContext *gb)\n{\n int i, j, v;\n\n (...TRUNCATED) | "static int read_quant_matrix_ext(MpegEncContext *s, GetBitContext *gb)\n{\n int i, j, v;\n\n (...TRUNCATED) | "{'added': [(2870, 'static int read_quant_matrix_ext(MpegEncContext *s, GetBitContext *gb)'), (2875,(...TRUNCATED) | 10 | 1 | 2,824 | 24,222 | https://github.com/FFmpeg/FFmpeg | CVE-2018-1999015 | ['CWE-125'] |
db-dict.c | db_dict_iter_lookup_key_values | "/* Copyright (c) 2013-2017 Dovecot authors, see the included COPYING file */\n\n#include \"auth-com(...TRUNCATED) | "/* Copyright (c) 2013-2017 Dovecot authors, see the included COPYING file */\n\n#include \"auth-com(...TRUNCATED) | "static int db_dict_iter_lookup_key_values(struct db_dict_value_iter *iter)\n{\n\tstruct db_dict_ite(...TRUNCATED) | "static int db_dict_iter_lookup_key_values(struct db_dict_value_iter *iter)\n{\n\tstruct db_dict_ite(...TRUNCATED) | "{'added': [(416, '\\t\\tstr_append(path, key->key->key);')], 'deleted': [(416, '\\t\\tret = var_exp(...TRUNCATED) | 1 | 6 | 558 | 3,500 | https://github.com/dovecot/core | CVE-2017-2669 | ['CWE-20'] |
mdmp.c | r_bin_mdmp_init_directory | "/* radare2 - LGPL - Copyright 2016-2017 - Davis, Alex Kornitzer */\n\n#include <r_util.h>\n\n#inclu(...TRUNCATED) | "/* radare2 - LGPL - Copyright 2016-2017 - Davis, Alex Kornitzer */\n\n#include <r_util.h>\n\n#inclu(...TRUNCATED) | "static bool r_bin_mdmp_init_directory(struct r_bin_mdmp_obj *obj) {\n\tint i;\n\tut8 *directory_bas(...TRUNCATED) | "static bool r_bin_mdmp_init_directory(struct r_bin_mdmp_obj *obj) {\n\tint i;\n\tstruct minidump_di(...TRUNCATED) | "{'added': [(365, '\\t\\teprintf (\"[ERROR] Size Mismatch - Stream data is larger than file size!\\\(...TRUNCATED) | 8 | 7 | 699 | 4,081 | https://github.com/radareorg/radare2 | CVE-2018-14016 | ['CWE-125'] |
mdmp.c | r_bin_mdmp_init_directory_entry | "/* radare2 - LGPL - Copyright 2016-2017 - Davis, Alex Kornitzer */\n\n#include <r_util.h>\n\n#inclu(...TRUNCATED) | "/* radare2 - LGPL - Copyright 2016-2017 - Davis, Alex Kornitzer */\n\n#include <r_util.h>\n\n#inclu(...TRUNCATED) | "static bool r_bin_mdmp_init_directory_entry(struct r_bin_mdmp_obj *obj, struct minidump_directory *(...TRUNCATED) | "static bool r_bin_mdmp_init_directory_entry(struct r_bin_mdmp_obj *obj, struct minidump_directory *(...TRUNCATED) | "{'added': [(365, '\\t\\teprintf (\"[ERROR] Size Mismatch - Stream data is larger than file size!\\\(...TRUNCATED) | 8 | 7 | 699 | 4,081 | https://github.com/radareorg/radare2 | CVE-2018-14016 | ['CWE-125'] |
tiff.c | ReadTIFFImage | "/*\n%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n% (...TRUNCATED) | "/*\n%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n% (...TRUNCATED) | "static Image *ReadTIFFImage(const ImageInfo *image_info,\n ExceptionInfo *exception)\n{\n const c(...TRUNCATED) | "static Image *ReadTIFFImage(const ImageInfo *image_info,\n ExceptionInfo *exception)\n{\n const c(...TRUNCATED) | "{'added': [(68, '#include \"MagickCore/memory-private.h\"'), (1906, ' if (HeapOverflowSanity(...TRUNCATED) | 7 | 8 | 3,164 | 20,538 | https://github.com/ImageMagick/ImageMagick | CVE-2016-10064 | ['CWE-119'] |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 23