id
stringlengths
25
30
content
stringlengths
14
942k
max_stars_repo_path
stringlengths
49
55
crossvul-cpp_data_bad_5591_0
/* * Edgeport USB Serial Converter driver * * Copyright (C) 2000-2002 Inside Out Networks, All rights reserved. * Copyright (C) 2001-2002 Greg Kroah-Hartman <greg@kroah.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as publishe...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_5591_0
crossvul-cpp_data_bad_5655_0
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Monkey HTTP Server * ================== * Copyright 2001-2014 Monkey Software LLC <eduardo@monkey.io> * Copyright 2012, Sonny Karlsson * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this ...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_5655_0
crossvul-cpp_data_good_5861_35
/* * Glue Code for x86_64/AVX2 assembler optimized version of Serpent * * Copyright © 2012-2013 Jussi Kivilinna <jussi.kivilinna@mbnet.fi> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5861_35
crossvul-cpp_data_bad_3524_6
/* * Generic HDLC support routines for Linux * Frame Relay support * * Copyright (C) 1999 - 2006 Krzysztof Halasa <khc@pm.waw.pl> * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License * as published by the Free Software Found...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_3524_6
crossvul-cpp_data_good_5804_0
/* * transform.c: support for building and running transformers * * Copyright (C) 2007-2011 David Lutterkort * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5804_0
crossvul-cpp_data_bad_5749_0
/* * INET An implementation of the TCP/IP protocol suite for the LINUX * operating system. INET is implemented using the BSD Socket * interface as the means of communication with the user level. * * The Internet Protocol (IP) output module. * * Authors: Ross Biro * Fred N. van Kempen, <waltje@uWalt.NL.Mu...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_5749_0
crossvul-cpp_data_bad_2287_4
/* * linux/fs/ext4/file.c * * Copyright (C) 1992, 1993, 1994, 1995 * Remy Card (card@masi.ibp.fr) * Laboratoire MASI - Institut Blaise Pascal * Universite Pierre et Marie Curie (Paris VI) * * from * * linux/fs/minix/file.c * * Copyright (C) 1991, 1992 Linus Torvalds * * ext4 fs regular file handling...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_2287_4
crossvul-cpp_data_bad_2123_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-264/c/bad_2123_0
crossvul-cpp_data_bad_4821_1
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*** This file is part of systemd. Copyright 2010 Lennart Poettering systemd is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_4821_1
crossvul-cpp_data_bad_1531_0
/* * NET An implementation of the SOCKET network access protocol. * * Version: @(#)socket.c 1.1.93 18/02/95 * * Authors: Orest Zborowski, <obz@Kodak.COM> * Ross Biro * Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG> * * Fixes: * Anonymous : NOTSOCK/BADF cleanup. Error fix in * shutdown() * Alan Co...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_1531_0
crossvul-cpp_data_good_3849_0
/* * INET An implementation of the TCP/IP protocol suite for the LINUX * operating system. INET is implemented using the BSD Socket * interface as the means of communication with the user level. * * Generic socket support routines. Memory allocators, socket lock/release * handler for protocols to use and g...
./CrossVul/dataset_final_sorted/CWE-264/c/good_3849_0
crossvul-cpp_data_bad_2423_5
/* * linux/arch/arm/kernel/traps.c * * Copyright (C) 1995-2009 Russell King * Fragments that appear the same as linux/arch/i386/kernel/traps.c (C) Linus Torvalds * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * publ...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_2423_5
crossvul-cpp_data_bad_5861_26
/* * Glue Code for assembler optimized version of Camellia * * Copyright (c) 2012 Jussi Kivilinna <jussi.kivilinna@mbnet.fi> * * Camellia parts based on code by: * Copyright (C) 2006 NTT (Nippon Telegraph and Telephone Corporation) * * This program is free software; you can redistribute it and/or modify * it ...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_5861_26
crossvul-cpp_data_bad_2399_12
/* * eseqiv: Encrypted Sequence Number IV Generator * * This generator generates an IV based on a sequence number by xoring it * with a salt and then encrypting it with the same key as used to encrypt * the plain text. This algorithm requires that the block size be equal * to the IV size. It is mainly useful fo...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_2399_12
crossvul-cpp_data_bad_1715_1
/* Copyright (C) 2014 Daniel Dressler and contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_1715_1
crossvul-cpp_data_good_5861_47
/* * Cryptographic API. * * Anubis Algorithm * * The Anubis algorithm was developed by Paulo S. L. M. Barreto and * Vincent Rijmen. * * See * * P.S.L.M. Barreto, V. Rijmen, * ``The Anubis block cipher,'' * NESSIE submission, 2000. * * This software implements the "tweaked" version of Anubis. * Only the S...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5861_47
crossvul-cpp_data_bad_3526_1
/* * Copyright (C) 2001-2003 Sistina Software (UK) Limited. * * This file is released under the GPL. */ #include "dm.h" #include <linux/module.h> #include <linux/init.h> #include <linux/blkdev.h> #include <linux/bio.h> #include <linux/slab.h> #include <linux/device-mapper.h> #define DM_MSG_PREFIX "linear" /* * ...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_3526_1
crossvul-cpp_data_bad_891_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-264/c/bad_891_0
crossvul-cpp_data_good_5018_0
/* * Copyright (C) 1995 Linus Torvalds * * Support of BIGMEM added by Gerhard Wichert, Siemens AG, July 1999 * * Memory region support * David Parsons <orc@pell.chi.il.us>, July-August 1999 * * Added E820 sanitization routine (removes overlapping memory regions); * Brian Moyle <bmoyle@mvista.com>, Februa...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5018_0
crossvul-cpp_data_good_5861_3
/* * Glue code for the SHA512 Secure Hash Algorithm assembly implementation * using NEON instructions. * * Copyright © 2014 Jussi Kivilinna <jussi.kivilinna@iki.fi> * * This file is based on sha512_ssse3_glue.c: * Copyright (C) 2013 Intel Corporation * Author: Tim Chen <tim.c.chen@linux.intel.com> * * Thi...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5861_3
crossvul-cpp_data_good_3438_3
/* * Linux NET3: IP/IP protocol decoder. * * Authors: * Sam Lantinga (slouken@cs.ucdavis.edu) 02/01/95 * * Fixes: * Alan Cox : Merged and made usable non modular (its so tiny its silly as * a module taking up 2 pages). * Alan Cox : Fixed bug with 1.3.18 and IPIP not working (now needs to set skb->h.ip...
./CrossVul/dataset_final_sorted/CWE-264/c/good_3438_3
crossvul-cpp_data_bad_5861_37
/* * Glue Code for SSE2 assembler versions of Serpent Cipher * * Copyright (c) 2011 Jussi Kivilinna <jussi.kivilinna@mbnet.fi> * * Glue code based on aesni-intel_glue.c by: * Copyright (C) 2008, Intel Corp. * Author: Huang Ying <ying.huang@intel.com> * * CBC & ECB parts based on code (crypto/cbc.c,ecb.c) b...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_5861_37
crossvul-cpp_data_good_2182_1
/* * Copyright (C) 2012 Daiki Ueno <ueno@unixuser.org> * Copyright (C) 2012 Red Hat, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your ...
./CrossVul/dataset_final_sorted/CWE-264/c/good_2182_1
crossvul-cpp_data_bad_1661_4
/* * setpwnam.c -- edit an entry in a password database. * * (c) 1994 Salvatore Valente <svalente@mit.edu> * This file is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public License as * published by the Free Software Foundation; either version 2 of the...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_1661_4
crossvul-cpp_data_good_2190_3
/* * Copyright (c) 2000-2005 Silicon Graphics, Inc. * All Rights Reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation. * * This program is distributed in the hope that it would be ...
./CrossVul/dataset_final_sorted/CWE-264/c/good_2190_3
crossvul-cpp_data_bad_1661_1
/* * Copyright (C) 2012 Sami Kerola <kerolasa@iki.fi> */ #include <stdio.h> #include <stdlib.h> #include <sys/stat.h> #include <unistd.h> #include <sys/time.h> #include <sys/resource.h> #include "c.h" #include "fileutils.h" #include "pathnames.h" /* Create open temporary file in safe way. Please notice that the ...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_1661_1
crossvul-cpp_data_bad_2399_14
/* * Cryptographic API. * * HMAC: Keyed-Hashing for Message Authentication (RFC2104). * * Copyright (c) 2002 James Morris <jmorris@intercode.com.au> * Copyright (c) 2006 Herbert Xu <herbert@gondor.apana.org.au> * * The HMAC implementation is derived from USAGI. * Copyright (c) 2002 Kazunori Miyazawa <miyazawa@...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_2399_14
crossvul-cpp_data_bad_5676_1
/* * linux/fs/exec.c * * Copyright (C) 1991, 1992 Linus Torvalds */ /* * #!-checking implemented by tytso. */ /* * Demand-loading implemented 01.12.91 - no need to read anything but * the header into memory. The inode of the executable is put into * "current->executable", and page faults do the actual load...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_5676_1
crossvul-cpp_data_good_5861_27
/* * Glue Code for the AVX assembler implemention of the Cast5 Cipher * * Copyright (C) 2012 Johannes Goetzfried * <Johannes.Goetzfried@informatik.stud.uni-erlangen.de> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5861_27
crossvul-cpp_data_good_3524_10
/* -*- linux-c -*- * INET 802.1Q VLAN * Ethernet-type device handling. * * Authors: Ben Greear <greearb@candelatech.com> * Please send support related email to: netdev@vger.kernel.org * VLAN Home Page: http://www.candelatech.com/~greear/vlan.html * * Fixes: Mar 22 2001: Martin ...
./CrossVul/dataset_final_sorted/CWE-264/c/good_3524_10
crossvul-cpp_data_good_2423_4
/* * linux/arch/arm/kernel/ptrace.c * * By Ross Biro 1/23/92 * edited by Linus Torvalds * ARM modifications Copyright (C) 2000 Russell King * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Soft...
./CrossVul/dataset_final_sorted/CWE-264/c/good_2423_4
crossvul-cpp_data_bad_2244_0
/* * linux/fs/namespace.c * * (C) Copyright Al Viro 2000, 2001 * Released under GPL v2. * * Based on code from fs/super.c, copyright Linus Torvalds and others. * Heavily rewritten. */ #include <linux/syscalls.h> #include <linux/export.h> #include <linux/capability.h> #include <linux/mnt_namespace.h> #include ...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_2244_0
crossvul-cpp_data_bad_4617_1
// Copyright (c) 2018, Peter Ohler, All rights reserved. #include <ctype.h> #include <netdb.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include "bind.h" #include "con.h" #include "debug.h" #include "domain.h" #include "dtime.h" #include "hook.h" #include "gqlsub.h" #include "http.h" #include "log.h...
./CrossVul/dataset_final_sorted/CWE-444/c/bad_4617_1
crossvul-cpp_data_good_1353_0
/* * Copyright (C) Igor Sysoev * Copyright (C) Nginx, Inc. */ #include <ngx_config.h> #include <ngx_core.h> #include <ngx_http.h> #include <nginx.h> static ngx_int_t ngx_http_send_error_page(ngx_http_request_t *r, ngx_http_err_page_t *err_page); static ngx_int_t ngx_http_send_special_response(ngx_http_reque...
./CrossVul/dataset_final_sorted/CWE-444/c/good_1353_0
crossvul-cpp_data_bad_3969_0
/* * Copyright (C) Xiaozhe Wang (chaoslawful) * Copyright (C) Yichun Zhang (agentzh) */ #ifndef DDEBUG #define DDEBUG 0 #endif #include "ddebug.h" #include "ngx_http_lua_subrequest.h" #include "ngx_http_lua_util.h" #include "ngx_http_lua_ctx.h" #include "ngx_http_lua_contentby.h" #include "ngx_http_lua_headers_...
./CrossVul/dataset_final_sorted/CWE-444/c/bad_3969_0
crossvul-cpp_data_good_4617_3
// Copyright (c) 2018, Peter Ohler, All rights reserved. #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "debug.h" #include "http.h" #define BUCKET_SIZE 1024 #define BUCKET_MASK 1023 #define MAX_KEY_UNIQ 9 typedef struct _slot { struct _slot *next; const char *key; ...
./CrossVul/dataset_final_sorted/CWE-444/c/good_4617_3
crossvul-cpp_data_good_4617_1
// Copyright (c) 2018, Peter Ohler, All rights reserved. #include <ctype.h> #include <netdb.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include "bind.h" #include "con.h" #include "debug.h" #include "domain.h" #include "dtime.h" #include "hook.h" #include "gqlsub.h" #include "http.h" #include "log.h...
./CrossVul/dataset_final_sorted/CWE-444/c/good_4617_1
crossvul-cpp_data_good_3969_0
/* * Copyright (C) Xiaozhe Wang (chaoslawful) * Copyright (C) Yichun Zhang (agentzh) */ #ifndef DDEBUG #define DDEBUG 0 #endif #include "ddebug.h" #include "ngx_http_lua_subrequest.h" #include "ngx_http_lua_util.h" #include "ngx_http_lua_ctx.h" #include "ngx_http_lua_contentby.h" #include "ngx_http_lua_headers_...
./CrossVul/dataset_final_sorted/CWE-444/c/good_3969_0
crossvul-cpp_data_bad_4617_3
// Copyright (c) 2018, Peter Ohler, All rights reserved. #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "debug.h" #include "http.h" #define BUCKET_SIZE 1024 #define BUCKET_MASK 1023 #define MAX_KEY_UNIQ 9 typedef struct _slot { struct _slot *next; const char *key; ...
./CrossVul/dataset_final_sorted/CWE-444/c/bad_4617_3
crossvul-cpp_data_bad_1353_0
/* * Copyright (C) Igor Sysoev * Copyright (C) Nginx, Inc. */ #include <ngx_config.h> #include <ngx_core.h> #include <ngx_http.h> #include <nginx.h> static ngx_int_t ngx_http_send_error_page(ngx_http_request_t *r, ngx_http_err_page_t *err_page); static ngx_int_t ngx_http_send_special_response(ngx_http_reque...
./CrossVul/dataset_final_sorted/CWE-444/c/bad_1353_0
crossvul-cpp_data_good_4008_0
/* Copyright (C) 2011 the GSS-PROXY contributors, see COPYING for license */ #include "config.h" #include <pthread.h> #include <stdint.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <fcntl.h> #include <errno.h> #include "gp_proxy.h" #define DEFAULT_WORKER_THREADS_NUM 5 #define GP_QUERY_IN 0 ...
./CrossVul/dataset_final_sorted/CWE-667/c/good_4008_0
crossvul-cpp_data_bad_4008_0
/* Copyright (C) 2011 the GSS-PROXY contributors, see COPYING for license */ #include "config.h" #include <pthread.h> #include <stdint.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <fcntl.h> #include <errno.h> #include "gp_proxy.h" #define DEFAULT_WORKER_THREADS_NUM 5 #define GP_QUERY_IN 0 ...
./CrossVul/dataset_final_sorted/CWE-667/c/bad_4008_0
crossvul-cpp_data_bad_3628_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-16/cpp/bad_3628_0
crossvul-cpp_data_good_3628_0
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file license.txt or http://www.opensource.org/licenses/mit-license.php. #include "headers.h" #include "checkpoints.h" #include "db.h" #include "net.h" ...
./CrossVul/dataset_final_sorted/CWE-16/cpp/good_3628_0
crossvul-cpp_data_good_3582_0
/* * linux/kernel/sys.c * * Copyright (C) 1991, 1992 Linus Torvalds */ #include <linux/export.h> #include <linux/mm.h> #include <linux/utsname.h> #include <linux/mman.h> #include <linux/reboot.h> #include <linux/prctl.h> #include <linux/highuid.h> #include <linux/fs.h> #include <linux/kmod.h> #include <linux/pe...
./CrossVul/dataset_final_sorted/CWE-16/c/good_3582_0
crossvul-cpp_data_bad_3582_0
/* * linux/kernel/sys.c * * Copyright (C) 1991, 1992 Linus Torvalds */ #include <linux/export.h> #include <linux/mm.h> #include <linux/utsname.h> #include <linux/mman.h> #include <linux/reboot.h> #include <linux/prctl.h> #include <linux/highuid.h> #include <linux/fs.h> #include <linux/kmod.h> #include <linux/pe...
./CrossVul/dataset_final_sorted/CWE-16/c/bad_3582_0
crossvul-cpp_data_bad_3860_1
/* * Copyright (c) 2016 Intel Corporation. * * SPDX-License-Identifier: Apache-2.0 */ #include <tc_util.h> #include <mqtt_internal.h> #include <sys/util.h> /* for ARRAY_SIZE */ #include <ztest.h> #define CLIENTID MQTT_UTF8_LITERAL("zephyr") #define TOPIC MQTT_UTF8_LITERAL("sensors") #define WILL_TOPIC MQTT_UTF8_...
./CrossVul/dataset_final_sorted/CWE-193/c/bad_3860_1
crossvul-cpp_data_bad_3860_0
/* * Copyright (c) 2018 Nordic Semiconductor ASA * * SPDX-License-Identifier: Apache-2.0 */ /** @file mqtt_decoder.c * * @brief Decoder functions needed for decoding packets received from the * broker. */ #include <logging/log.h> LOG_MODULE_REGISTER(net_mqtt_dec, CONFIG_MQTT_LOG_LEVEL); #include "mqtt...
./CrossVul/dataset_final_sorted/CWE-193/c/bad_3860_0
crossvul-cpp_data_good_2801_0
/*- * Copyright (c) 2003-2007 Tim Kientzle * Copyright (c) 2011 Andres Mejia * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright *...
./CrossVul/dataset_final_sorted/CWE-193/c/good_2801_0
crossvul-cpp_data_good_3860_1
/* * Copyright (c) 2016 Intel Corporation. * * SPDX-License-Identifier: Apache-2.0 */ #include <tc_util.h> #include <mqtt_internal.h> #include <sys/util.h> /* for ARRAY_SIZE */ #include <ztest.h> #define CLIENTID MQTT_UTF8_LITERAL("zephyr") #define TOPIC MQTT_UTF8_LITERAL("sensors") #define WILL_TOPIC MQTT_UTF8_...
./CrossVul/dataset_final_sorted/CWE-193/c/good_3860_1
crossvul-cpp_data_good_4732_1
/* * Copyright 2007-8 Advanced Micro Devices, Inc. * Copyright 2008 Red Hat Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * t...
./CrossVul/dataset_final_sorted/CWE-193/c/good_4732_1
crossvul-cpp_data_bad_4732_1
/* * Copyright 2007-8 Advanced Micro Devices, Inc. * Copyright 2008 Red Hat Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * t...
./CrossVul/dataset_final_sorted/CWE-193/c/bad_4732_1
crossvul-cpp_data_bad_2801_0
/*- * Copyright (c) 2003-2007 Tim Kientzle * Copyright (c) 2011 Andres Mejia * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright *...
./CrossVul/dataset_final_sorted/CWE-193/c/bad_2801_0
crossvul-cpp_data_good_3860_0
/* * Copyright (c) 2018 Nordic Semiconductor ASA * * SPDX-License-Identifier: Apache-2.0 */ /** @file mqtt_decoder.c * * @brief Decoder functions needed for decoding packets received from the * broker. */ #include <logging/log.h> LOG_MODULE_REGISTER(net_mqtt_dec, CONFIG_MQTT_LOG_LEVEL); #include "mqtt...
./CrossVul/dataset_final_sorted/CWE-193/c/good_3860_0
crossvul-cpp_data_good_4375_2
/* * Copyright (C) 2011, 2012, 2013 Citrix Systems * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, thi...
./CrossVul/dataset_final_sorted/CWE-441/c/good_4375_2
crossvul-cpp_data_bad_4375_0
/* * Copyright (C) 2011, 2012, 2013 Citrix Systems * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, thi...
./CrossVul/dataset_final_sorted/CWE-441/c/bad_4375_0
crossvul-cpp_data_good_4375_0
/* * Copyright (C) 2011, 2012, 2013 Citrix Systems * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, thi...
./CrossVul/dataset_final_sorted/CWE-441/c/good_4375_0
crossvul-cpp_data_bad_4375_2
/* * Copyright (C) 2011, 2012, 2013 Citrix Systems * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, thi...
./CrossVul/dataset_final_sorted/CWE-441/c/bad_4375_2
crossvul-cpp_data_bad_3336_0
/* * Server-side XDR for NFSv4 * * Copyright (c) 2002 The Regents of the University of Michigan. * All rights reserved. * * Kendrick Smith <kmsmith@umich.edu> * Andy Adamson <andros@umich.edu> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provide...
./CrossVul/dataset_final_sorted/CWE-129/c/bad_3336_0
crossvul-cpp_data_good_705_0
/* * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * FFmpeg is distributed...
./CrossVul/dataset_final_sorted/CWE-129/c/good_705_0
crossvul-cpp_data_bad_3335_0
/* * Server-side procedures for NFSv4. * * Copyright (c) 2002 The Regents of the University of Michigan. * All rights reserved. * * Kendrick Smith <kmsmith@umich.edu> * Andy Adamson <andros@umich.edu> * * Redistribution and use in source and binary forms, with or without * modification, are permitted...
./CrossVul/dataset_final_sorted/CWE-129/c/bad_3335_0
crossvul-cpp_data_good_3335_0
/* * Server-side procedures for NFSv4. * * Copyright (c) 2002 The Regents of the University of Michigan. * All rights reserved. * * Kendrick Smith <kmsmith@umich.edu> * Andy Adamson <andros@umich.edu> * * Redistribution and use in source and binary forms, with or without * modification, are permitted...
./CrossVul/dataset_final_sorted/CWE-129/c/good_3335_0
crossvul-cpp_data_bad_1182_0
/* * Westwood Studios VQA Video Decoder * Copyright (C) 2003 The FFmpeg project * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 ...
./CrossVul/dataset_final_sorted/CWE-129/c/bad_1182_0
crossvul-cpp_data_good_2552_0
/* * fs/f2fs/super.c * * Copyright (c) 2012 Samsung Electronics Co., Ltd. * http://www.samsung.com/ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include <...
./CrossVul/dataset_final_sorted/CWE-129/c/good_2552_0
crossvul-cpp_data_bad_1431_0
/* * nf_nat_snmp_basic.c * * Basic SNMP Application Layer Gateway * * This IP NAT module is intended for use with SNMP network * discovery and monitoring applications where target networks use * conflicting private address realms. * * Static NAT is used to remap the networks from the view of the network * man...
./CrossVul/dataset_final_sorted/CWE-129/c/bad_1431_0
crossvul-cpp_data_bad_2552_0
/* * fs/f2fs/super.c * * Copyright (c) 2012 Samsung Electronics Co., Ltd. * http://www.samsung.com/ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include <...
./CrossVul/dataset_final_sorted/CWE-129/c/bad_2552_0
crossvul-cpp_data_good_1431_0
/* * nf_nat_snmp_basic.c * * Basic SNMP Application Layer Gateway * * This IP NAT module is intended for use with SNMP network * discovery and monitoring applications where target networks use * conflicting private address realms. * * Static NAT is used to remap the networks from the view of the network * man...
./CrossVul/dataset_final_sorted/CWE-129/c/good_1431_0
crossvul-cpp_data_good_217_0
/* * MOV, 3GP, MP4 muxer * Copyright (c) 2003 Thomas Raivio * Copyright (c) 2004 Gildas Bazin <gbazin at videolan dot org> * Copyright (c) 2009 Baptiste Coudurier <baptiste dot coudurier at gmail dot com> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it u...
./CrossVul/dataset_final_sorted/CWE-129/c/good_217_0
crossvul-cpp_data_good_3336_0
/* * Server-side XDR for NFSv4 * * Copyright (c) 2002 The Regents of the University of Michigan. * All rights reserved. * * Kendrick Smith <kmsmith@umich.edu> * Andy Adamson <andros@umich.edu> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provide...
./CrossVul/dataset_final_sorted/CWE-129/c/good_3336_0
crossvul-cpp_data_good_1182_0
/* * Westwood Studios VQA Video Decoder * Copyright (C) 2003 The FFmpeg project * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 ...
./CrossVul/dataset_final_sorted/CWE-129/c/good_1182_0
crossvul-cpp_data_bad_705_0
/* * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * FFmpeg is distributed...
./CrossVul/dataset_final_sorted/CWE-129/c/bad_705_0
crossvul-cpp_data_bad_217_0
/* * MOV, 3GP, MP4 muxer * Copyright (c) 2003 Thomas Raivio * Copyright (c) 2004 Gildas Bazin <gbazin at videolan dot org> * Copyright (c) 2009 Baptiste Coudurier <baptiste dot coudurier at gmail dot com> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it u...
./CrossVul/dataset_final_sorted/CWE-129/c/bad_217_0
crossvul-cpp_data_good_4384_3
/** * Copyright (c) 2014-present, The osquery authors * * This source code is licensed as defined by the LICENSE file found in the * root directory of this source tree. * * SPDX-License-Identifier: (Apache-2.0 OR GPL-2.0-only) */ #include <boost/algorithm/string.hpp> #include <osquery/core/core.h> #include <os...
./CrossVul/dataset_final_sorted/CWE-77/cpp/good_4384_3
crossvul-cpp_data_good_4384_0
/** * Copyright (c) 2014-present, The osquery authors * * This source code is licensed as defined by the LICENSE file found in the * root directory of this source tree. * * SPDX-License-Identifier: (Apache-2.0 OR GPL-2.0-only) */ #include "osquery/sql/sqlite_util.h" #include "osquery/sql/virtual_table.h" #incl...
./CrossVul/dataset_final_sorted/CWE-77/cpp/good_4384_0
crossvul-cpp_data_bad_4384_3
/** * Copyright (c) 2014-present, The osquery authors * * This source code is licensed as defined by the LICENSE file found in the * root directory of this source tree. * * SPDX-License-Identifier: (Apache-2.0 OR GPL-2.0-only) */ #include <boost/algorithm/string.hpp> #include <osquery/core/core.h> #include <os...
./CrossVul/dataset_final_sorted/CWE-77/cpp/bad_4384_3
crossvul-cpp_data_bad_4384_0
/** * Copyright (c) 2014-present, The osquery authors * * This source code is licensed as defined by the LICENSE file found in the * root directory of this source tree. * * SPDX-License-Identifier: (Apache-2.0 OR GPL-2.0-only) */ #include "osquery/sql/sqlite_util.h" #include "osquery/sql/virtual_table.h" #incl...
./CrossVul/dataset_final_sorted/CWE-77/cpp/bad_4384_0
crossvul-cpp_data_good_2351_0
/* * read.c - read the blkid cache from disk, to avoid scanning all devices * * Copyright (C) 2001, 2003 Theodore Y. Ts'o * Copyright (C) 2001 Andreas Dilger * * %Begin-Header% * This file may be redistributed under the terms of the * GNU Lesser General Public License. * %End-Header% */ #include <stdio.h> #...
./CrossVul/dataset_final_sorted/CWE-77/c/good_2351_0
crossvul-cpp_data_good_251_4
/** * @file * IMAP helper functions * * @authors * Copyright (C) 1996-1998,2010,2012-2013 Michael R. Elkins <me@mutt.org> * Copyright (C) 1996-1999 Brandon Long <blong@fiction.net> * Copyright (C) 1999-2009,2012 Brendan Cully <brendan@kublai.com> * * @copyright * This program is free software: you can redistr...
./CrossVul/dataset_final_sorted/CWE-77/c/good_251_4
crossvul-cpp_data_bad_838_0
/* HIDP implementation for Linux Bluetooth stack (BlueZ). Copyright (C) 2003-2004 Marcel Holtmann <marcel@holtmann.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation; TH...
./CrossVul/dataset_final_sorted/CWE-77/c/bad_838_0
crossvul-cpp_data_bad_251_0
/** * @file * IMAP login authentication method * * @authors * Copyright (C) 1999-2001,2005,2009 Brendan Cully <brendan@kublai.com> * * @copyright * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Fo...
./CrossVul/dataset_final_sorted/CWE-77/c/bad_251_0
crossvul-cpp_data_bad_1866_1
/* vi: set sw=4 ts=4: * * picocom.c * * simple dumb-terminal program. Helps you manually configure and test * stuff like modems, devices w. serial ports etc. * * by Nick Patavalis (npat@efault.net) * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General...
./CrossVul/dataset_final_sorted/CWE-77/c/bad_1866_1
crossvul-cpp_data_good_2351_1
/* * save.c - write the cache struct to disk * * Copyright (C) 2001 by Andreas Dilger * Copyright (C) 2003 Theodore Ts'o * * %Begin-Header% * This file may be redistributed under the terms of the * GNU Lesser General Public License. * %End-Header% */ #include <stdio.h> #include <string.h> #include <stdlib.h>...
./CrossVul/dataset_final_sorted/CWE-77/c/good_2351_1
crossvul-cpp_data_good_248_0
/** * @file * IMAP network mailbox * * @authors * Copyright (C) 1996-1998,2012 Michael R. Elkins <me@mutt.org> * Copyright (C) 1996-1999 Brandon Long <blong@fiction.net> * Copyright (C) 1999-2009,2012,2017 Brendan Cully <brendan@kublai.com> * * @copyright * This program is free software: you can redistribute ...
./CrossVul/dataset_final_sorted/CWE-77/c/good_248_0
crossvul-cpp_data_bad_2351_0
/* * read.c - read the blkid cache from disk, to avoid scanning all devices * * Copyright (C) 2001, 2003 Theodore Y. Ts'o * Copyright (C) 2001 Andreas Dilger * * %Begin-Header% * This file may be redistributed under the terms of the * GNU Lesser General Public License. * %End-Header% */ #include <stdio.h> #...
./CrossVul/dataset_final_sorted/CWE-77/c/bad_2351_0
crossvul-cpp_data_good_1866_1
/* vi: set sw=4 ts=4: * * picocom.c * * simple dumb-terminal program. Helps you manually configure and test * stuff like modems, devices w. serial ports etc. * * by Nick Patavalis (npat@efault.net) * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General...
./CrossVul/dataset_final_sorted/CWE-77/c/good_1866_1
crossvul-cpp_data_bad_2351_1
/* * save.c - write the cache struct to disk * * Copyright (C) 2001 by Andreas Dilger * Copyright (C) 2003 Theodore Ts'o * * %Begin-Header% * This file may be redistributed under the terms of the * GNU Lesser General Public License. * %End-Header% */ #include <stdio.h> #include <string.h> #include <stdlib.h>...
./CrossVul/dataset_final_sorted/CWE-77/c/bad_2351_1
crossvul-cpp_data_good_251_2
/** * @file * IMAP network mailbox * * @authors * Copyright (C) 1996-1998,2012 Michael R. Elkins <me@mutt.org> * Copyright (C) 1996-1999 Brandon Long <blong@fiction.net> * Copyright (C) 1999-2009,2012,2017 Brendan Cully <brendan@kublai.com> * * @copyright * This program is free software: you can redistribute ...
./CrossVul/dataset_final_sorted/CWE-77/c/good_251_2
crossvul-cpp_data_bad_251_1
/** * @file * Send/receive commands to/from an IMAP server * * @authors * Copyright (C) 1996-1998,2010,2012 Michael R. Elkins <me@mutt.org> * Copyright (C) 1996-1999 Brandon Long <blong@fiction.net> * Copyright (C) 1999-2009,2011 Brendan Cully <brendan@kublai.com> * * @copyright * This program is free softwar...
./CrossVul/dataset_final_sorted/CWE-77/c/bad_251_1
crossvul-cpp_data_good_251_0
/** * @file * IMAP login authentication method * * @authors * Copyright (C) 1999-2001,2005,2009 Brendan Cully <brendan@kublai.com> * * @copyright * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Fo...
./CrossVul/dataset_final_sorted/CWE-77/c/good_251_0
crossvul-cpp_data_bad_2351_3
/* * blkid.c - User command-line interface for libblkid * * Copyright (C) 2001 Andreas Dilger * * %Begin-Header% * This file may be redistributed under the terms of the * GNU Lesser General Public License. * %End-Header% */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #includ...
./CrossVul/dataset_final_sorted/CWE-77/c/bad_2351_3
crossvul-cpp_data_bad_251_4
/** * @file * IMAP helper functions * * @authors * Copyright (C) 1996-1998,2010,2012-2013 Michael R. Elkins <me@mutt.org> * Copyright (C) 1996-1999 Brandon Long <blong@fiction.net> * Copyright (C) 1999-2009,2012 Brendan Cully <brendan@kublai.com> * * @copyright * This program is free software: you can redistr...
./CrossVul/dataset_final_sorted/CWE-77/c/bad_251_4
crossvul-cpp_data_good_838_0
/* HIDP implementation for Linux Bluetooth stack (BlueZ). Copyright (C) 2003-2004 Marcel Holtmann <marcel@holtmann.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation; TH...
./CrossVul/dataset_final_sorted/CWE-77/c/good_838_0
crossvul-cpp_data_bad_248_0
/** * @file * IMAP network mailbox * * @authors * Copyright (C) 1996-1998,2012 Michael R. Elkins <me@mutt.org> * Copyright (C) 1996-1999 Brandon Long <blong@fiction.net> * Copyright (C) 1999-2009,2012,2017 Brendan Cully <brendan@kublai.com> * * @copyright * This program is free software: you can redistribute ...
./CrossVul/dataset_final_sorted/CWE-77/c/bad_248_0
crossvul-cpp_data_good_2351_3
/* * blkid.c - User command-line interface for libblkid * * Copyright (C) 2001 Andreas Dilger * * %Begin-Header% * This file may be redistributed under the terms of the * GNU Lesser General Public License. * %End-Header% */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #includ...
./CrossVul/dataset_final_sorted/CWE-77/c/good_2351_3
crossvul-cpp_data_bad_251_2
/** * @file * IMAP network mailbox * * @authors * Copyright (C) 1996-1998,2012 Michael R. Elkins <me@mutt.org> * Copyright (C) 1996-1999 Brandon Long <blong@fiction.net> * Copyright (C) 1999-2009,2012,2017 Brendan Cully <brendan@kublai.com> * * @copyright * This program is free software: you can redistribute ...
./CrossVul/dataset_final_sorted/CWE-77/c/bad_251_2
crossvul-cpp_data_good_251_1
/** * @file * Send/receive commands to/from an IMAP server * * @authors * Copyright (C) 1996-1998,2010,2012 Michael R. Elkins <me@mutt.org> * Copyright (C) 1996-1999 Brandon Long <blong@fiction.net> * Copyright (C) 1999-2009,2011 Brendan Cully <brendan@kublai.com> * * @copyright * This program is free softwar...
./CrossVul/dataset_final_sorted/CWE-77/c/good_251_1
crossvul-cpp_data_bad_1979_0
/*************************************************************************/ /* image_loader_tga.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
./CrossVul/dataset_final_sorted/CWE-787/cpp/bad_1979_0
crossvul-cpp_data_good_839_0
/* * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #in...
./CrossVul/dataset_final_sorted/CWE-787/cpp/good_839_0
crossvul-cpp_data_bad_5228_0
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-2016 Facebook, Inc. (http://www.facebook.com) | | Copyrigh...
./CrossVul/dataset_final_sorted/CWE-787/cpp/bad_5228_0
crossvul-cpp_data_bad_839_0
/* * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #in...
./CrossVul/dataset_final_sorted/CWE-787/cpp/bad_839_0