id
stringlengths
25
30
content
stringlengths
14
942k
max_stars_repo_path
stringlengths
49
55
crossvul-cpp_data_good_718_0
/* Copyright (c) 2009-2017 Dave Gamble and cJSON contributors 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 the rights to use, copy, m...
./CrossVul/dataset_final_sorted/CWE-754/c/good_718_0
crossvul-cpp_data_bad_1311_2
/* ** 2008 August 18 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** **********************...
./CrossVul/dataset_final_sorted/CWE-754/c/bad_1311_2
crossvul-cpp_data_bad_1312_2
/* ** 2003 April 6 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************...
./CrossVul/dataset_final_sorted/CWE-754/c/bad_1312_2
crossvul-cpp_data_bad_2736_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-754/c/bad_2736_0
crossvul-cpp_data_good_431_0
/* * 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-754/c/good_431_0
crossvul-cpp_data_bad_718_0
/* Copyright (c) 2009-2017 Dave Gamble and cJSON contributors 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 the rights to use, copy, m...
./CrossVul/dataset_final_sorted/CWE-754/c/bad_718_0
crossvul-cpp_data_bad_431_0
/* * 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-754/c/bad_431_0
crossvul-cpp_data_good_2735_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-754/c/good_2735_0
crossvul-cpp_data_good_1312_2
/* ** 2003 April 6 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************...
./CrossVul/dataset_final_sorted/CWE-754/c/good_1312_2
crossvul-cpp_data_good_1311_2
/* ** 2008 August 18 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** **********************...
./CrossVul/dataset_final_sorted/CWE-754/c/good_1311_2
crossvul-cpp_data_good_2736_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-754/c/good_2736_0
crossvul-cpp_data_bad_2735_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-754/c/bad_2735_0
crossvul-cpp_data_bad_4257_0
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #define DEBUG_TYPE "vm" #include "hermes/VM/Interpreter.h" #include "hermes/VM/Runtime.h" #include "hermes/Inst/InstDecode.h" #inc...
./CrossVul/dataset_final_sorted/CWE-681/cpp/bad_4257_0
crossvul-cpp_data_good_4257_0
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #define DEBUG_TYPE "vm" #include "hermes/VM/Interpreter.h" #include "hermes/VM/Runtime.h" #include "hermes/Inst/InstDecode.h" #inc...
./CrossVul/dataset_final_sorted/CWE-681/cpp/good_4257_0
crossvul-cpp_data_bad_4495_0
/** * FreeRDP: A Remote Desktop Protocol Implementation * Drawing Orders * * Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com> * Copyright 2016 Armin Novak <armin.novak@thincast.com> * Copyright 2016 Thincast Technologies GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * yo...
./CrossVul/dataset_final_sorted/CWE-681/c/bad_4495_0
crossvul-cpp_data_good_4495_0
/** * FreeRDP: A Remote Desktop Protocol Implementation * Drawing Orders * * Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com> * Copyright 2016 Armin Novak <armin.novak@thincast.com> * Copyright 2016 Thincast Technologies GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * yo...
./CrossVul/dataset_final_sorted/CWE-681/c/good_4495_0
crossvul-cpp_data_good_579_2
/* Copyright 2008-2017 LibRaw LLC (info@libraw.org) LibRaw is free software; you can redistribute it and/or modify it under the terms of the one of two licenses as you choose: 1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1 (See file LICENSE.LGPL provided in LibRaw distribution archive for details). 2. COMMON...
./CrossVul/dataset_final_sorted/CWE-704/cpp/good_579_2
crossvul-cpp_data_bad_579_2
/* Copyright 2008-2017 LibRaw LLC (info@libraw.org) LibRaw is free software; you can redistribute it and/or modify it under the terms of the one of two licenses as you choose: 1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1 (See file LICENSE.LGPL provided in LibRaw distribution archive for details). 2. COMMON...
./CrossVul/dataset_final_sorted/CWE-704/cpp/bad_579_2
crossvul-cpp_data_good_188_0
/* * Copyright (c) 2017, Salvatore Sanfilippo <antirez at gmail dot com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyrig...
./CrossVul/dataset_final_sorted/CWE-704/c/good_188_0
crossvul-cpp_data_good_414_0
// SPDX-License-Identifier: GPL-1.0+ /* * n_tty.c --- implements the N_TTY line discipline. * * This code used to be in tty_io.c, but things are getting hairy * enough that it made sense to split things off. (The N_TTY * processing has changed so much that it's hardly recognizable, * anyway...) * * Note that t...
./CrossVul/dataset_final_sorted/CWE-704/c/good_414_0
crossvul-cpp_data_bad_5277_2
/* +--------------------------------------------------------------------+ | PECL :: http | +--------------------------------------------------------------------+ | Redistribution and use in source and binary forms, with or without | | modificatio...
./CrossVul/dataset_final_sorted/CWE-704/c/bad_5277_2
crossvul-cpp_data_bad_188_0
/* * Copyright (c) 2017, Salvatore Sanfilippo <antirez at gmail dot com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyrig...
./CrossVul/dataset_final_sorted/CWE-704/c/bad_188_0
crossvul-cpp_data_bad_414_0
// SPDX-License-Identifier: GPL-1.0+ /* * n_tty.c --- implements the N_TTY line discipline. * * This code used to be in tty_io.c, but things are getting hairy * enough that it made sense to split things off. (The N_TTY * processing has changed so much that it's hardly recognizable, * anyway...) * * Note that t...
./CrossVul/dataset_final_sorted/CWE-704/c/bad_414_0
crossvul-cpp_data_good_5277_2
/* +--------------------------------------------------------------------+ | PECL :: http | +--------------------------------------------------------------------+ | Redistribution and use in source and binary forms, with or without | | modificatio...
./CrossVul/dataset_final_sorted/CWE-704/c/good_5277_2
crossvul-cpp_data_good_579_1
#ifndef IGNOREALL /* dcraw.c -- Dave Coffin's raw photo decoder Copyright 1997-2015 by Dave Coffin, dcoffin a cybercom o net This is a command-line ANSI C program to convert raw photos from any digital camera on any computer running any operating system. No license is required to download and use dcraw...
./CrossVul/dataset_final_sorted/CWE-704/c/good_579_1
crossvul-cpp_data_bad_579_1
#ifndef IGNOREALL /* dcraw.c -- Dave Coffin's raw photo decoder Copyright 1997-2015 by Dave Coffin, dcoffin a cybercom o net This is a command-line ANSI C program to convert raw photos from any digital camera on any computer running any operating system. No license is required to download and use dcraw...
./CrossVul/dataset_final_sorted/CWE-704/c/bad_579_1
crossvul-cpp_data_good_2102_1
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) | +---------...
./CrossVul/dataset_final_sorted/CWE-264/cpp/good_2102_1
crossvul-cpp_data_bad_2102_0
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) | +---------...
./CrossVul/dataset_final_sorted/CWE-264/cpp/bad_2102_0
crossvul-cpp_data_good_5265_0
/* * InspIRCd -- Internet Relay Chat Daemon * * Copyright (C) 2009-2010 Daniel De Graaf <danieldg@inspircd.org> * Copyright (C) 2008 Craig Edwards <craigedwards@brainbox.cc> * * This file is part of InspIRCd. InspIRCd is free software: you can * redistribute it and/or modify it under the terms of the GNU Ge...
./CrossVul/dataset_final_sorted/CWE-264/cpp/good_5265_0
crossvul-cpp_data_good_1460_0
/*************************************************************************** * Copyright (c) 2013 Abdurrahman AVCI <abdurrahmanavci@gmail.com> * * 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; e...
./CrossVul/dataset_final_sorted/CWE-264/cpp/good_1460_0
crossvul-cpp_data_bad_5265_0
/* * InspIRCd -- Internet Relay Chat Daemon * * Copyright (C) 2009-2010 Daniel De Graaf <danieldg@inspircd.org> * Copyright (C) 2008 Craig Edwards <craigedwards@brainbox.cc> * * This file is part of InspIRCd. InspIRCd is free software: you can * redistribute it and/or modify it under the terms of the GNU Ge...
./CrossVul/dataset_final_sorted/CWE-264/cpp/bad_5265_0
crossvul-cpp_data_bad_1460_0
/*************************************************************************** * Copyright (c) 2013 Abdurrahman AVCI <abdurrahmanavci@gmail.com> * * 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; e...
./CrossVul/dataset_final_sorted/CWE-264/cpp/bad_1460_0
crossvul-cpp_data_bad_2102_1
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) | +---------...
./CrossVul/dataset_final_sorted/CWE-264/cpp/bad_2102_1
crossvul-cpp_data_bad_886_1
/* * Copyright (C) 2004-2018 ZNC, see the NOTICE file for details. * * 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 requi...
./CrossVul/dataset_final_sorted/CWE-264/cpp/bad_886_1
crossvul-cpp_data_good_886_1
/* * Copyright (C) 2004-2018 ZNC, see the NOTICE file for details. * * 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 requi...
./CrossVul/dataset_final_sorted/CWE-264/cpp/good_886_1
crossvul-cpp_data_good_2102_0
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) | +---------...
./CrossVul/dataset_final_sorted/CWE-264/cpp/good_2102_0
crossvul-cpp_data_good_5861_20
/* Glue code for SHA512 hashing optimized for sparc64 crypto opcodes. * * This is based largely upon crypto/sha512_generic.c * * Copyright (c) Jean-Luc Cooke <jlcooke@certainkey.com> * Copyright (c) Andrew McDonald <andrew@mcdonald.org.uk> * Copyright (c) 2003 Kyle McMartin <kyle@debian.org> */ #define pr_fmt(f...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5861_20
crossvul-cpp_data_good_2123_1
/* * mm/rmap.c - physical to virtual reverse mappings * * Copyright 2001, Rik van Riel <riel@conectiva.com.br> * Released under the General Public License (GPL). * * Simple, low overhead reverse mapping scheme. * Please try to keep this thing as modular as possible. * * Provides methods for unmapping each kind...
./CrossVul/dataset_final_sorted/CWE-264/c/good_2123_1
crossvul-cpp_data_bad_5861_42
/* * Glue Code for assembler optimized version of TWOFISH * * Originally Twofish for GPG * By Matthew Skala <mskala@ansuz.sooke.bc.ca>, July 26, 1998 * 256-bit key length added March 20, 1999 * Some modifications to reduce the text size by Werner Koch, April, 1998 * Ported to the kerneli patch by Marc Mutz <Marc...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_5861_42
crossvul-cpp_data_bad_3524_11
/* BNEP implementation for Linux Bluetooth stack (BlueZ). Copyright (C) 2001-2002 Inventel Systemes Written 2001-2002 by Clément Moreau <clement.moreau@inventel.fr> David Libault <david.libault@inventel.fr> Copyright (C) 2002 Maxim Krasnyansky <maxk@qualcomm.com> This program is free software; you c...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_3524_11
crossvul-cpp_data_good_1492_1
/* * linux/fs/binfmt_elf.c * * These are the functions used to load ELF format executables as used * on SVr4 machines. Information on the format may be found in the book * "UNIX SYSTEM V RELEASE 4 Programmers Guide: Ansi C and Programming Support * Tools". * * Copyright 1993, 1994: Eric Youngdale (ericy@cais.c...
./CrossVul/dataset_final_sorted/CWE-264/c/good_1492_1
crossvul-cpp_data_good_2399_19
/* * seqiv: Sequence Number IV Generator * * This generator generates an IV based on a sequence number by xoring it * with a salt. This algorithm is mainly useful for CTR and similar modes. * * Copyright (c) 2007 Herbert Xu <herbert@gondor.apana.org.au> * * This program is free software; you can redistribute i...
./CrossVul/dataset_final_sorted/CWE-264/c/good_2399_19
crossvul-cpp_data_good_5054_1
/* * Copyright (c) 2005-2006 Intel Corporation. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public License (GPL) Version 2, available from the file * COPYING in the main directory of this s...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5054_1
crossvul-cpp_data_bad_5738_0
/* * Copyright (C) 2001-2002 Sistina Software (UK) Limited. * Copyright (C) 2006-2008 Red Hat GmbH * * This file is released under the GPL. */ #include "dm-exception-store.h" #include <linux/mm.h> #include <linux/pagemap.h> #include <linux/vmalloc.h> #include <linux/export.h> #include <linux/slab.h> #include <li...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_5738_0
crossvul-cpp_data_good_1787_1
/* * Copyright (C) 2010 IBM Corporation * * Author: * David Safford <safford@us.ibm.com> * * 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, version 2 of the License. * * See Documentati...
./CrossVul/dataset_final_sorted/CWE-264/c/good_1787_1
crossvul-cpp_data_bad_5861_34
/* * Glue code for optimized assembly version of Salsa20. * * Copyright (c) 2007 Tan Swee Heng <thesweeheng@gmail.com> * * The assembly codes are public domain assembly codes written by Daniel. J. * Bernstein <djb@cr.yp.to>. The codes are modified to include indentation * and to remove extraneous comments and f...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_5861_34
crossvul-cpp_data_good_3604_3
/* memcontrol.c - Memory Controller * * Copyright IBM Corporation, 2007 * Author Balbir Singh <balbir@linux.vnet.ibm.com> * * Copyright 2007 OpenVZ SWsoft Inc * Author: Pavel Emelianov <xemul@openvz.org> * * Memory thresholds * Copyright (C) 2009 Nokia Corporation * Author: Kirill A. Shutemov * * This progr...
./CrossVul/dataset_final_sorted/CWE-264/c/good_3604_3
crossvul-cpp_data_good_2424_0
/* * linux/arch/arm/mm/dma-mapping.c * * Copyright (C) 2000-2004 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 Software Foundation. * * DMA uncached mapping support. */ #inclu...
./CrossVul/dataset_final_sorted/CWE-264/c/good_2424_0
crossvul-cpp_data_good_5605_1
/* * 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, version 2 of the * License. */ #include <linux/export.h> #include <linux/nsproxy.h> #include <linux/slab.h> #include <linux/user_name...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5605_1
crossvul-cpp_data_bad_1661_3
/* * chsh.c -- change your login shell * (c) 1994 by salvatore valente <svalente@athena.mit.edu> * (c) 2012 by Cody Maloney <cmaloney@theoreticalchaos.com> * * this program is free software. you can redistribute it and * modify it under the terms of the gnu general public license. * there is no warr...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_1661_3
crossvul-cpp_data_good_5078_1
/* * Packet matching code for ARP packets. * * Based heavily, if not almost entirely, upon ip_tables.c framework. * * Some ARP specific bits are: * * Copyright (C) 2002 David S. Miller (davem@redhat.com) * Copyright (C) 2006-2009 Patrick McHardy <kaber@trash.net> * */ #define pr_fmt(fmt) KBUILD_MODNAME ": " f...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5078_1
crossvul-cpp_data_bad_5078_3
/* * Packet matching code. * * Copyright (C) 1999 Paul `Rusty' Russell & Michael J. Neuling * Copyright (C) 2000-2005 Netfilter Core Team <coreteam@netfilter.org> * Copyright (c) 2006-2010 Patrick McHardy <kaber@trash.net> * * This program is free software; you can redistribute it and/or modify * it under the t...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_5078_3
crossvul-cpp_data_good_2438_0
/** * eCryptfs: Linux filesystem encryption layer * * Copyright (C) 1997-2003 Erez Zadok * Copyright (C) 2001-2003 Stony Brook University * Copyright (C) 2004-2007 International Business Machines Corp. * Author(s): Michael A. Halcrow <mahalcro@us.ibm.com> * Michael C. Thompson <mcthomps@us.ibm.com...
./CrossVul/dataset_final_sorted/CWE-264/c/good_2438_0
crossvul-cpp_data_good_4820_0
/*-*- 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/good_4820_0
crossvul-cpp_data_good_4698_2
/* -*- c-basic-offset: 4; -*- */ // Original code taken from the example webkit-gtk+ application. see notice below. // Modified code is licensed under the GPL 3. See LICENSE file. /* * Copyright (C) 2006, 2007 Apple Inc. * Copyright (C) 2007 Alp Toker <alp@atoker.com> * * Redistribution and use in source and bin...
./CrossVul/dataset_final_sorted/CWE-264/c/good_4698_2
crossvul-cpp_data_bad_2399_4
/* * CBC: Cipher Block Chaining mode * * Copyright (c) 2006 Herbert Xu <herbert@gondor.apana.org.au> * * 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 2 of the License, or ...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_2399_4
crossvul-cpp_data_bad_2159_3
/* * Kernel-based Virtual Machine driver for Linux * * derived from drivers/kvm/kvm_main.c * * Copyright (C) 2006 Qumranet, Inc. * Copyright (C) 2008 Qumranet, Inc. * Copyright IBM Corporation, 2008 * Copyright 2010 Red Hat, Inc. and/or its affiliates. * * Authors: * Avi Kivity <avi@qumranet.com> * Ya...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_2159_3
crossvul-cpp_data_bad_5861_13
/* Glue code for AES encryption optimized for sparc64 crypto opcodes. * * This is based largely upon arch/x86/crypto/aesni-intel_glue.c * * Copyright (C) 2008, Intel Corp. * Author: Huang Ying <ying.huang@intel.com> * * Added RFC4106 AES-GCM support for 128-bit keys under the AEAD * interface for 64-bit kern...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_5861_13
crossvul-cpp_data_bad_5861_30
/* * Using hardware provided CRC32 instruction to accelerate the CRC32 disposal. * CRC32C polynomial:0x1EDC6F41(BE)/0x82F63B78(LE) * CRC32 is a new instruction in Intel SSE4.2, the reference can be found at: * http://www.intel.com/products/processor/manuals/ * Intel(R) 64 and IA-32 Architectures Software Developer...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_5861_30
crossvul-cpp_data_good_5861_39
/* * Cryptographic API. * * Glue code for the SHA256 Secure Hash Algorithm assembler * implementation using supplemental SSE3 / AVX / AVX2 instructions. * * This file is based on sha256_generic.c * * Copyright (C) 2013 Intel Corporation. * * Author: * Tim Chen <tim.c.chen@linux.intel.com> * * This prog...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5861_39
crossvul-cpp_data_bad_5861_2
/* * Glue code for the SHA1 Secure Hash Algorithm assembler implementation using * ARM NEON instructions. * * Copyright © 2014 Jussi Kivilinna <jussi.kivilinna@iki.fi> * * This file is based on sha1_generic.c and sha1_ssse3_glue.c: * Copyright (c) Alan Smithee. * Copyright (c) Andrew McDonald <andrew@mcdonald...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_5861_2
crossvul-cpp_data_bad_1846_0
/* * PMU support * * Copyright (C) 2012 ARM Limited * Author: Will Deacon <will.deacon@arm.com> * * This code is based heavily on the ARMv7 perf event code. * * 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 ...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_1846_0
crossvul-cpp_data_bad_2399_11
/* * ECB: Electronic CodeBook mode * * Copyright (c) 2006 Herbert Xu <herbert@gondor.apana.org.au> * * 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 2 of the License, or (a...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_2399_11
crossvul-cpp_data_bad_2438_0
/** * eCryptfs: Linux filesystem encryption layer * * Copyright (C) 1997-2003 Erez Zadok * Copyright (C) 2001-2003 Stony Brook University * Copyright (C) 2004-2007 International Business Machines Corp. * Author(s): Michael A. Halcrow <mahalcro@us.ibm.com> * Michael C. Thompson <mcthomps@us.ibm.com...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_2438_0
crossvul-cpp_data_good_5616_1
/* * linux/fs/pnode.c * * (C) Copyright IBM Corporation 2005. * Released under GPL v2. * Author : Ram Pai (linuxram@us.ibm.com) * */ #include <linux/mnt_namespace.h> #include <linux/mount.h> #include <linux/fs.h> #include <linux/nsproxy.h> #include "internal.h" #include "pnode.h" /* return the next shared peer...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5616_1
crossvul-cpp_data_bad_5861_36
/* * Glue Code for AVX assembler versions of Serpent Cipher * * Copyright (C) 2012 Johannes Goetzfried * <Johannes.Goetzfried@informatik.stud.uni-erlangen.de> * * Copyright © 2011-2013 Jussi Kivilinna <jussi.kivilinna@iki.fi> * * This program is free software; you can redistribute it and/or modify * it und...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_5861_36
crossvul-cpp_data_good_3525_1
/* * sd.c Copyright (C) 1992 Drew Eckhardt * Copyright (C) 1993, 1994, 1995, 1999 Eric Youngdale * * Linux scsi disk driver * Initial versions: Drew Eckhardt * Subsequent revisions: Eric Youngdale * Modification history: * - Drew Eckhardt <drew@colorado.edu> o...
./CrossVul/dataset_final_sorted/CWE-264/c/good_3525_1
crossvul-cpp_data_bad_5861_10
/* * Cryptographic API. * * s390 implementation of the SHA1 Secure Hash Algorithm. * * Derived from cryptoapi implementation, adapted for in-place * scatterlist interface. Originally based on the public domain * implementation written by Steve Reid. * * s390 Version: * Copyright IBM Corp. 2003, 2007 * A...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_5861_10
crossvul-cpp_data_good_1474_1
/* lxcfs * * Copyright © 2014,2015 Canonical, Inc * Author: Serge Hallyn <serge.hallyn@ubuntu.com> * * See COPYING file for details. */ /* * TODO XXX * sanitize paths for '..', cgmanager's not doing that for us any more * does fuse help us? * Surely there are more paths we'll need to sanitize - look back...
./CrossVul/dataset_final_sorted/CWE-264/c/good_1474_1
crossvul-cpp_data_good_2292_2
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
./CrossVul/dataset_final_sorted/CWE-264/c/good_2292_2
crossvul-cpp_data_bad_1861_0
/* * arch/arm/kernel/sys_oabi-compat.c * * Compatibility wrappers for syscalls that are used from * old ABI user space binaries with an EABI kernel. * * Author: Nicolas Pitre * Created: Oct 7, 2005 * Copyright: MontaVista Software, Inc. * * This program is free software; you can redistribute it and/or ...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_1861_0
crossvul-cpp_data_good_3524_2
/* drivers/net/ifb.c: The purpose of this driver is to provide a device that allows for sharing of resources: 1) qdiscs/policies that are per device as opposed to system wide. ifb allows for a device which can be redirected to thus providing an impression of sharing. 2) Allows for queueing incoming traffic for...
./CrossVul/dataset_final_sorted/CWE-264/c/good_3524_2
crossvul-cpp_data_bad_5018_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-264/c/bad_5018_0
crossvul-cpp_data_good_2399_4
/* * CBC: Cipher Block Chaining mode * * Copyright (c) 2006 Herbert Xu <herbert@gondor.apana.org.au> * * 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 2 of the License, or ...
./CrossVul/dataset_final_sorted/CWE-264/c/good_2399_4
crossvul-cpp_data_bad_2399_3
/* * authencesn.c - AEAD wrapper for IPsec with extended sequence numbers, * derived from authenc.c * * Copyright (C) 2010 secunet Security Networks AG * Copyright (C) 2010 Steffen Klassert <steffen.klassert@secunet.com> * * This program is free software; you can redistribute it and/or modify it ...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_2399_3
crossvul-cpp_data_bad_5861_8
/* * Cryptographic API. * * s390 implementation of the DES Cipher Algorithm. * * Copyright IBM Corp. 2003, 2011 * Author(s): Thomas Spatzier * Jan Glauber (jan.glauber@de.ibm.com) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public Lice...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_5861_8
crossvul-cpp_data_good_5861_28
/* * Glue Code for the AVX assembler implemention of the Cast6 Cipher * * Copyright (C) 2012 Johannes Goetzfried * <Johannes.Goetzfried@informatik.stud.uni-erlangen.de> * * Copyright © 2013 Jussi Kivilinna <jussi.kivilinna@iki.fi> * * This program is free software; you can redistribute it and/or modify * i...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5861_28
crossvul-cpp_data_bad_3517_0
/* * sysctl.c: General linux system control interface * * Begun 24 March 1995, Stephen Tweedie * Added /proc support, Dec 1995 * Added bdflush entry and intvec min/max checking, 2/23/96, Tom Dyas. * Added hooks for /proc/sys/net (minor, minor patch), 96/4/1, Mike Shaver. * Added kernel/java-{interpreter,appletvi...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_3517_0
crossvul-cpp_data_bad_3524_13
/* * Interface handling (except master interface) * * Copyright 2002-2005, Instant802 Networks, Inc. * Copyright 2005-2006, Devicescape Software, Inc. * Copyright (c) 2006 Jiri Benc <jbenc@suse.cz> * Copyright 2008, Johannes Berg <johannes@sipsolutions.net> * * This program is free software; you can redistribut...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_3524_13
crossvul-cpp_data_bad_1862_0
/* * AArch64-specific system calls implementation * * Copyright (C) 2012 ARM Ltd. * Author: Catalin Marinas <catalin.marinas@arm.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 Foun...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_1862_0
crossvul-cpp_data_good_2399_16
/* * Software multibuffer async crypto daemon. * * Copyright (c) 2014 Tim Chen <tim.c.chen@linux.intel.com> * * Adapted from crypto daemon. * * 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 Foundat...
./CrossVul/dataset_final_sorted/CWE-264/c/good_2399_16
crossvul-cpp_data_good_5054_0
/* * Copyright (c) 2005 Topspin Communications. All rights reserved. * Copyright (c) 2005 Intel Corporation. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public License (GPL) Version 2, ava...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5054_0
crossvul-cpp_data_good_2399_2
/* * Authenc: Simple AEAD wrapper for IPsec * * Copyright (c) 2007 Herbert Xu <herbert@gondor.apana.org.au> * * 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 2 of the Licen...
./CrossVul/dataset_final_sorted/CWE-264/c/good_2399_2
crossvul-cpp_data_good_5078_3
/* * Packet matching code. * * Copyright (C) 1999 Paul `Rusty' Russell & Michael J. Neuling * Copyright (C) 2000-2005 Netfilter Core Team <coreteam@netfilter.org> * Copyright (c) 2006-2010 Patrick McHardy <kaber@trash.net> * * This program is free software; you can redistribute it and/or modify * it under the t...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5078_3
crossvul-cpp_data_good_5861_7
/* * Cryptographic API. * * s390 implementation of the AES Cipher Algorithm. * * s390 Version: * Copyright IBM Corp. 2005, 2007 * Author(s): Jan Glauber (jang@de.ibm.com) * Sebastian Siewior (sebastian@breakpoint.cc> SW-Fallback * * Derived from "crypto/aes_generic.c" * * This program is free software;...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5861_7
crossvul-cpp_data_good_5861_40
/* * Cryptographic API. * * Glue code for the SHA512 Secure Hash Algorithm assembler * implementation using supplemental SSE3 / AVX / AVX2 instructions. * * This file is based on sha512_generic.c * * Copyright (C) 2013 Intel Corporation * Author: Tim Chen <tim.c.chen@linux.intel.com> * * This program is free...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5861_40
crossvul-cpp_data_bad_2142_0
/* * Ptrace user space interface. * * Copyright IBM Corp. 1999, 2010 * Author(s): Denis Joseph Barrow * Martin Schwidefsky (schwidefsky@de.ibm.com) */ #include <linux/kernel.h> #include <linux/sched.h> #include <linux/mm.h> #include <linux/smp.h> #include <linux/errno.h> #include <linux/ptra...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_2142_0
crossvul-cpp_data_good_2191_0
/******************************************************************************* * Filename: target_core_rd.c * * This file contains the Storage Engine <-> Ramdisk transport * specific functions. * * (c) Copyright 2003-2013 Datera, Inc. * * Nicholas A. Bellinger <nab@kernel.org> * * This program is free soft...
./CrossVul/dataset_final_sorted/CWE-264/c/good_2191_0
crossvul-cpp_data_good_5054_3
/* * Copyright (c) 2012, 2013 Intel Corporation. All rights reserved. * Copyright (c) 2006 - 2012 QLogic Corporation. All rights reserved. * Copyright (c) 2003, 2004, 2005, 2006 PathScale, Inc. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to b...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5054_3
crossvul-cpp_data_bad_3647_0
/* * linux/fs/hfsplus/catalog.c * * Copyright (C) 2001 * Brad Boyer (flar@allandria.com) * (C) 2003 Ardis Technologies <roman@ardistech.com> * * Handling of catalog records */ #include "hfsplus_fs.h" #include "hfsplus_raw.h" int hfsplus_cat_case_cmp_key(const hfsplus_btree_key *k1, const hfsplus_btr...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_3647_0
crossvul-cpp_data_good_5861_8
/* * Cryptographic API. * * s390 implementation of the DES Cipher Algorithm. * * Copyright IBM Corp. 2003, 2011 * Author(s): Thomas Spatzier * Jan Glauber (jan.glauber@de.ibm.com) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public Lice...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5861_8
crossvul-cpp_data_good_4771_0
/* * An async IO implementation for Linux * Written by Benjamin LaHaise <bcrl@kvack.org> * * Implements an efficient asynchronous io interface. * * Copyright 2000, 2001, 2002 Red Hat, Inc. All Rights Reserved. * * See ../COPYING for licensing terms. */ #define pr_fmt(fmt) "%s: " fmt, __func__ #include <linux...
./CrossVul/dataset_final_sorted/CWE-264/c/good_4771_0
crossvul-cpp_data_bad_5861_41
/* * Glue Code for AVX assembler version of Twofish Cipher * * Copyright (C) 2012 Johannes Goetzfried * <Johannes.Goetzfried@informatik.stud.uni-erlangen.de> * * Copyright © 2013 Jussi Kivilinna <jussi.kivilinna@iki.fi> * * This program is free software; you can redistribute it and/or modify * it under the...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_5861_41
crossvul-cpp_data_bad_1661_6
/* * Copyright (c) 1987 Regents of the University of California. * 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-264/c/bad_1661_6
crossvul-cpp_data_good_2399_3
/* * authencesn.c - AEAD wrapper for IPsec with extended sequence numbers, * derived from authenc.c * * Copyright (C) 2010 secunet Security Networks AG * Copyright (C) 2010 Steffen Klassert <steffen.klassert@secunet.com> * * This program is free software; you can redistribute it and/or modify it ...
./CrossVul/dataset_final_sorted/CWE-264/c/good_2399_3
crossvul-cpp_data_bad_5557_0
/* ----------------------------------------------------------------------- * * * Copyright 2000-2008 H. Peter Anvin - All Rights Reserved * Copyright 2009 Intel Corporation; author: H. Peter Anvin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Gene...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_5557_0
crossvul-cpp_data_bad_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/bad_5804_0
crossvul-cpp_data_good_2399_18
/* * pcrypt - Parallel crypto wrapper. * * Copyright (C) 2009 secunet Security Networks AG * Copyright (C) 2009 Steffen Klassert <steffen.klassert@secunet.com> * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * versio...
./CrossVul/dataset_final_sorted/CWE-264/c/good_2399_18
crossvul-cpp_data_good_2190_2
/* * linux/fs/namei.c * * Copyright (C) 1991, 1992 Linus Torvalds */ /* * Some corrections by tytso. */ /* [Feb 1997 T. Schoebel-Theuer] Complete rewrite of the pathname * lookup logic. */ /* [Feb-Apr 2000, AV] Rewrite to the new namespace architecture. */ #include <linux/init.h> #include <linux/export.h...
./CrossVul/dataset_final_sorted/CWE-264/c/good_2190_2
crossvul-cpp_data_good_2074_0
/* * linux/drivers/block/floppy.c * * Copyright (C) 1991, 1992 Linus Torvalds * Copyright (C) 1993, 1994 Alain Knaff * Copyright (C) 1998 Alan Cox */ /* * 02.12.91 - Changed to static variables to indicate need for reset * and recalibrate. This makes some things easier (output_byte reset * checking etc)...
./CrossVul/dataset_final_sorted/CWE-264/c/good_2074_0