id
stringlengths
25
30
content
stringlengths
14
942k
max_stars_repo_path
stringlengths
49
55
crossvul-cpp_data_bad_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/bad_3849_0
crossvul-cpp_data_bad_2399_6
/* * chainiv: Chain IV Generator * * Generate IVs simply be using the last block of the previous encryption. * This is mainly useful for CBC with a synchronous algorithm. * * Copyright (c) 2007 Herbert Xu <herbert@gondor.apana.org.au> * * This program is free software; you can redistribute it and/or modify it ...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_2399_6
crossvul-cpp_data_good_5861_16
/* Glue code for DES encryption optimized for sparc64 crypto opcodes. * * Copyright (C) 2012 David S. Miller <davem@davemloft.net> */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/crypto.h> #include <linux/init.h> #include <linux/module.h> #include <linux/mm.h> #include <linux/types.h> #include <cryp...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5861_16
crossvul-cpp_data_good_3604_4
/* * linux/mm/memory.c * * Copyright (C) 1991, 1992, 1993, 1994 Linus Torvalds */ /* * demand-loading started 01.12.91 - seems it is high on the list of * things wanted, and it should be easy to implement. - Linus */ /* * Ok, demand-loading was easy, shared pages a little bit tricker. Shared * pages start...
./CrossVul/dataset_final_sorted/CWE-264/c/good_3604_4
crossvul-cpp_data_good_3604_6
/* * linux/mm/mincore.c * * Copyright (C) 1994-2006 Linus Torvalds */ /* * The mincore() system call. */ #include <linux/pagemap.h> #include <linux/gfp.h> #include <linux/mm.h> #include <linux/mman.h> #include <linux/syscalls.h> #include <linux/swap.h> #include <linux/swapops.h> #include <linux/hugetlb.h> #inc...
./CrossVul/dataset_final_sorted/CWE-264/c/good_3604_6
crossvul-cpp_data_bad_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/bad_1492_1
crossvul-cpp_data_good_2399_22
/* XTS: as defined in IEEE1619/D16 * http://grouper.ieee.org/groups/1619/email/pdf00086.pdf * (sector sizes which are not a multiple of 16 bytes are, * however currently unsupported) * * Copyright (c) 2007 Rik Snel <rsnel@cube.dyndns.org> * * Based om ecb.c * Copyright (c) 2006 Herbert Xu <herbert@gondor.apana....
./CrossVul/dataset_final_sorted/CWE-264/c/good_2399_22
crossvul-cpp_data_bad_5861_32
/* * Glue Code for assembler optimized version of 3DES * * Copyright © 2014 Jussi Kivilinna <jussi.kivilinna@mbnet.fi> * * CBC & ECB parts based on code (crypto/cbc.c,ecb.c) by: * Copyright (c) 2006 Herbert Xu <herbert@gondor.apana.org.au> * CTR part based on code (crypto/ctr.c) by: * (C) Copyright IBM Corp...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_5861_32
crossvul-cpp_data_good_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/good_2142_0
crossvul-cpp_data_bad_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/bad_2399_18
crossvul-cpp_data_good_5861_11
/* * Cryptographic API. * * s390 implementation of the SHA256 and SHA224 Secure Hash Algorithm. * * s390 Version: * Copyright IBM Corp. 2005, 2011 * Author(s): Jan Glauber (jang@de.ibm.com) * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Pub...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5861_11
crossvul-cpp_data_good_1576_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 not...
./CrossVul/dataset_final_sorted/CWE-264/c/good_1576_2
crossvul-cpp_data_bad_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/bad_3438_3
crossvul-cpp_data_good_3636_1
/* * Copyright (c) 2006, Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * This program is distributed in the hope it will be useful, but...
./CrossVul/dataset_final_sorted/CWE-264/c/good_3636_1
crossvul-cpp_data_good_3470_2
/* * utils.c - Utility functions * * nspluginwrapper (C) 2005-2009 Gwenole Beauchesne * * 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 * (at yo...
./CrossVul/dataset_final_sorted/CWE-264/c/good_3470_2
crossvul-cpp_data_bad_5861_22
/* * Support for Intel AES-NI instructions. This file contains glue * code, the real AES implementation is in intel-aes_asm.S. * * 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 kernels. * ...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_5861_22
crossvul-cpp_data_good_2399_1
/* * Cryptographic API for algorithms (i.e., low-level API). * * 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 versi...
./CrossVul/dataset_final_sorted/CWE-264/c/good_2399_1
crossvul-cpp_data_good_2399_7
/* * CMAC: Cipher Block Mode for Authentication * * Copyright © 2013 Jussi Kivilinna <jussi.kivilinna@iki.fi> * * Based on work by: * Copyright © 2013 Tom St Denis <tstdenis@elliptictech.com> * Based on crypto/xcbc.c: * Copyright © 2006 USAGI/WIDE Project, * Author: Kazunori Miyazawa <miyazawa@linux-ipv6.o...
./CrossVul/dataset_final_sorted/CWE-264/c/good_2399_7
crossvul-cpp_data_good_5748_0
/* * IPv6 output functions * Linux INET6 implementation * * Authors: * Pedro Roque <roque@di.fc.ul.pt> * * Based on linux/net/ipv4/ip_output.c * * 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 ...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5748_0
crossvul-cpp_data_bad_5861_25
/* * Glue Code for x86_64/AVX/AES-NI assembler optimized version of Camellia * * Copyright © 2012-2013 Jussi Kivilinna <jussi.kivilinna@iki.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 Found...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_5861_25
crossvul-cpp_data_good_3526_2
/* * Copyright (C) 2003 Sistina Software Limited. * Copyright (C) 2004-2005 Red Hat, Inc. All rights reserved. * * This file is released under the GPL. */ #include <linux/device-mapper.h> #include "dm-path-selector.h" #include "dm-uevent.h" #include <linux/ctype.h> #include <linux/init.h> #include <linux/mempoo...
./CrossVul/dataset_final_sorted/CWE-264/c/good_3526_2
crossvul-cpp_data_good_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/good_4821_1
crossvul-cpp_data_good_2287_8
/* file-mmu.c: ramfs MMU-based file operations * * Resizable simple ram filesystem for Linux. * * Copyright (C) 2000 Linus Torvalds. * 2000 Transmeta Corp. * * Usage limits added by David Gibson, Linuxcare Australia. * This file is released under the GPL. */ /* * NOTE! This filesystem is probab...
./CrossVul/dataset_final_sorted/CWE-264/c/good_2287_8
crossvul-cpp_data_good_3524_4
/* * TUN - Universal TUN/TAP device driver. * Copyright (C) 1999-2002 Maxim Krasnyansky <maxk@qualcomm.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; either version 2 of the L...
./CrossVul/dataset_final_sorted/CWE-264/c/good_3524_4
crossvul-cpp_data_good_3604_0
/* * Copyright (C) 1994 Linus Torvalds * * 29 dec 2001 - Fixed oopses caused by unchecked access to the vm86 * stack - Manfred Spraul <manfred@colorfullife.com> * * 22 mar 2002 - Manfred detected the stackfaults, but didn't handle * them correctly. Now the emulation will be in a...
./CrossVul/dataset_final_sorted/CWE-264/c/good_3604_0
crossvul-cpp_data_bad_1661_2
/* * chfn.c -- change your finger information * (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 ...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_1661_2
crossvul-cpp_data_good_2287_11
/* * "splice": joining two ropes together by interweaving their strands. * * This is the "extended pipe" functionality, where a pipe is used as * an arbitrary in-memory buffer. Think of a pipe as a small kernel * buffer that you can use to transfer data from one end to the other. * * The traditional unix read/wr...
./CrossVul/dataset_final_sorted/CWE-264/c/good_2287_11
crossvul-cpp_data_good_5861_23
/* * Glue Code for assembler optimized version of Blowfish * * Copyright (c) 2011 Jussi Kivilinna <jussi.kivilinna@mbnet.fi> * * CBC & ECB parts based on code (crypto/cbc.c,ecb.c) by: * Copyright (c) 2006 Herbert Xu <herbert@gondor.apana.org.au> * CTR part based on code (crypto/ctr.c) by: * (C) Copyright IB...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5861_23
crossvul-cpp_data_good_5078_2
/* * 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_2
crossvul-cpp_data_bad_2231_0
/***************************************************************************** * Linux PPP over L2TP (PPPoX/PPPoL2TP) Sockets * * PPPoX --- Generic PPP encapsulation socket family * PPPoL2TP --- PPP over L2TP (RFC 2661) * * Version: 2.0.0 * * Authors: James Chapman (jchapman@katalix.com) * * Based on origi...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_2231_0
crossvul-cpp_data_bad_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/bad_2423_4
crossvul-cpp_data_bad_2287_6
/* * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved. * * This copyrighted material is made available to anyone wishing to use, * modify, copy, or redistribute it subject to the terms and conditions * of the GNU General Public Licen...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_2287_6
crossvul-cpp_data_bad_3524_0
/* $Id: isdn_net.c,v 1.1.2.2 2004/01/12 22:37:19 keil Exp $ * * Linux ISDN subsystem, network interfaces and related functions (linklevel). * * Copyright 1994-1998 by Fritz Elfert (fritz@isdn4linux.de) * Copyright 1995,96 by Thinking Objects Software GmbH Wuerzburg * Copyright 1995,96 by Michael Hipp (Mich...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_3524_0
crossvul-cpp_data_bad_3474_0
/* * linux/fs/proc/base.c * * Copyright (C) 1991, 1992 Linus Torvalds * * proc base directory handling functions * * 1999, Al Viro. Rewritten. Now it covers the whole per-process part. * Instead of using magical inumbers to determine the kind of object * we allocate and fill in-core inodes upon lookup. T...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_3474_0
crossvul-cpp_data_good_5861_43
/* * Glue Code for 3-way parallel assembler optimized version of Twofish * * Copyright (c) 2011 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_43
crossvul-cpp_data_bad_3591_0
/* * fs/cifs/dir.c * * vfs operations that deal with dentries * * Copyright (C) International Business Machines Corp., 2002,2009 * Author(s): Steve French (sfrench@us.ibm.com) * * This library is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Pu...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_3591_0
crossvul-cpp_data_bad_5192_0
/* * AppArmor security module * * This file contains AppArmor LSM hooks. * * Copyright (C) 1998-2008 Novell/SUSE * Copyright 2009-2010 Canonical Ltd. * * 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 Softw...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_5192_0
crossvul-cpp_data_good_5861_14
/* Glue code for CAMELLIA encryption optimized for sparc64 crypto opcodes. * * Copyright (C) 2012 David S. Miller <davem@davemloft.net> */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/crypto.h> #include <linux/init.h> #include <linux/module.h> #include <linux/mm.h> #include <linux/types.h> #include ...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5861_14
crossvul-cpp_data_good_1513_0
/* * PCI Backend - Functions for creating a virtual configuration space for * exported PCI Devices. * It's dangerous to allow PCI Driver Domains to change their * device's resources (memory, i/o ports, interrupts). We need to * restrict changes to certain PCI...
./CrossVul/dataset_final_sorted/CWE-264/c/good_1513_0
crossvul-cpp_data_bad_2123_1
404: Not Found
./CrossVul/dataset_final_sorted/CWE-264/c/bad_2123_1
crossvul-cpp_data_good_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/good_1661_1
crossvul-cpp_data_good_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/good_1661_4
crossvul-cpp_data_good_5861_19
/* Glue code for SHA256 hashing optimized for sparc64 crypto opcodes. * * This is based largely upon crypto/sha256_generic.c * * Copyright (c) Jean-Luc Cooke <jlcooke@certainkey.com> * Copyright (c) Andrew McDonald <andrew@mcdonald.org.uk> * Copyright (c) 2002 James Morris <jmorris@intercode.com.au> * SHA224 Sup...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5861_19
crossvul-cpp_data_bad_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/bad_2399_2
crossvul-cpp_data_bad_2287_1
/* * Copyright (C) 2005, 2006 * Avishay Traeger (avishay@gmail.com) * Copyright (C) 2008, 2009 * Boaz Harrosh <bharrosh@panasas.com> * * Copyrights for code taken from ext2: * Copyright (C) 1992, 1993, 1994, 1995 * Remy Card (card@masi.ibp.fr) * Laboratoire MASI - Institut Blaise Pascal * Univ...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_2287_1
crossvul-cpp_data_bad_3604_5
404: Not Found
./CrossVul/dataset_final_sorted/CWE-264/c/bad_3604_5
crossvul-cpp_data_bad_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/bad_5861_40
crossvul-cpp_data_good_3525_0
/* * Copyright (C) 2001 Jens Axboe <axboe@suse.de> * * 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. * * This program is distributed in the hope that it will be useful, * but W...
./CrossVul/dataset_final_sorted/CWE-264/c/good_3525_0
crossvul-cpp_data_good_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/good_1846_0
crossvul-cpp_data_bad_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/bad_5861_28
crossvul-cpp_data_good_2164_0
/****************************************************************************** * emulate.c * * Generic x86 (32-bit and 64-bit) instruction decoder and emulator. * * Copyright (c) 2005 Keir Fraser * * Linux coding style, mod r/m decoder, segment base fixes, real-mode * privileged instructions: * * Copyright (...
./CrossVul/dataset_final_sorted/CWE-264/c/good_2164_0
crossvul-cpp_data_bad_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/bad_4820_0
crossvul-cpp_data_good_3524_7
/*====================================================================== Aironet driver for 4500 and 4800 series cards This code is released under both the GPL version 2 and BSD licenses. Either license may be used. The respective licenses are found at the end of this file. This code was develop...
./CrossVul/dataset_final_sorted/CWE-264/c/good_3524_7
crossvul-cpp_data_bad_2399_0
/* * FPU: Wrapper for blkcipher touching fpu * * Copyright (c) Intel Corp. * Author: Huang Ying <ying.huang@intel.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; either version ...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_2399_0
crossvul-cpp_data_good_3526_0
/* * Copyright (C) 2003 Sistina Software (UK) Limited. * Copyright (C) 2004, 2010-2011 Red Hat, Inc. All rights reserved. * * This file is released under the GPL. */ #include <linux/device-mapper.h> #include <linux/module.h> #include <linux/init.h> #include <linux/blkdev.h> #include <linux/bio.h> #include <linux...
./CrossVul/dataset_final_sorted/CWE-264/c/good_3526_0
crossvul-cpp_data_bad_5861_1
/* * Cryptographic API. * Glue code for the SHA1 Secure Hash Algorithm assembler implementation * * This file is based on sha1_generic.c and sha1_ssse3_glue.c * * Copyright (c) Alan Smithee. * Copyright (c) Andrew McDonald <andrew@mcdonald.org.uk> * Copyright (c) Jean-Francois Dive <jef@linuxbe.org> * Copyrigh...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_5861_1
crossvul-cpp_data_good_1533_1
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * COPYRIGHT (C) 2006,2007 * THE REGENTS OF THE UNIVERSITY OF MICHIGAN * ALL RIGHTS RESERVED * * Permission is granted to use, copy, create derivative works * and redistribute this software and such derivative works * for any purpose, so long as t...
./CrossVul/dataset_final_sorted/CWE-264/c/good_1533_1
crossvul-cpp_data_good_5861_29
/* GPL HEADER START * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 only, * as published by the Free Software Foundation. * * This program is distributed in...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5861_29
crossvul-cpp_data_good_5861_0
/* * Glue Code for the asm optimized version of the AES Cipher Algorithm */ #include <linux/module.h> #include <linux/crypto.h> #include <crypto/aes.h> #include "aes_glue.h" EXPORT_SYMBOL(AES_encrypt); EXPORT_SYMBOL(AES_decrypt); EXPORT_SYMBOL(private_AES_set_encrypt_key); EXPORT_SYMBOL(private_AES_set_decrypt_key...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5861_0
crossvul-cpp_data_good_5861_15
/* Glue code for CRC32C optimized for sparc64 crypto opcodes. * * This is based largely upon arch/x86/crypto/crc32c-intel.c * * Copyright (C) 2008 Intel Corporation * Authors: Austin Zhang <austin_zhang@linux.intel.com> * Kent Liu <kent.liu@intel.com> */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #in...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5861_15
crossvul-cpp_data_good_5861_31
/* * Cryptographic API. * * T10 Data Integrity Field CRC16 Crypto Transform using PCLMULQDQ Instructions * * Copyright (C) 2013 Intel Corporation * Author: Tim Chen <tim.c.chen@linux.intel.com> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Publ...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5861_31
crossvul-cpp_data_bad_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/bad_5861_7
crossvul-cpp_data_bad_5861_5
/* * linux/arch/arm64/crypto/aes-glue.c - wrapper code for ARMv8 AES * * Copyright (C) 2013 Linaro Ltd <ard.biesheuvel@linaro.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 Foundati...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_5861_5
crossvul-cpp_data_good_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/good_5749_0
crossvul-cpp_data_bad_2190_5
/* * linux/kernel/capability.c * * Copyright (C) 1997 Andrew Main <zefram@fysh.org> * * Integrated into 2.1.97+, Andrew G. Morgan <morgan@kernel.org> * 30 May 2002: Cleanup, Robert M. Love <rml@tech9.net> */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/audit.h> #include <linux/capability.h> #i...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_2190_5
crossvul-cpp_data_good_2399_5
/* * CCM: Counter with CBC-MAC * * (C) Copyright IBM Corp. 2007 - Joy Latten <latten@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; either version 2 of the License, or (at ...
./CrossVul/dataset_final_sorted/CWE-264/c/good_2399_5
crossvul-cpp_data_bad_3429_0
/* * icall.c: * * Authors: * Dietmar Maurer (dietmar@ximian.com) * Paolo Molaro (lupus@ximian.com) * Patrik Torstensson (patrik.torstensson@labs2.com) * * Copyright 2001-2003 Ximian, Inc (http://www.ximian.com) * Copyright 2004-2009 Novell, Inc (http://www.novell.com) */ #include <config.h> #include <gl...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_3429_0
crossvul-cpp_data_bad_1474_1
404: Not Found
./CrossVul/dataset_final_sorted/CWE-264/c/bad_1474_1
crossvul-cpp_data_bad_5861_44
/* * Cryptographic API for the 842 compression algorithm. * * 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 * (at your option) any later version. * * ...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_5861_44
crossvul-cpp_data_good_2399_10
/* * CTS: Cipher Text Stealing mode * * COPYRIGHT (c) 2008 * The Regents of the University of Michigan * ALL RIGHTS RESERVED * * Permission is granted to use, copy, create derivative works * and redistribute this software and such derivative works * for any purpose, so long as the name of The University of * ...
./CrossVul/dataset_final_sorted/CWE-264/c/good_2399_10
crossvul-cpp_data_good_1475_0
/* 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_1475_0
crossvul-cpp_data_bad_5054_5
/* * Copyright(c) 2015, 2016 Intel Corporation. * * This file is provided under a dual BSD/GPLv2 license. When using or * redistributing this file, you may do so under either license. * * GPL LICENSE SUMMARY * * This program is free software; you can redistribute it and/or modify * it under the terms of versi...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_5054_5
crossvul-cpp_data_good_2287_10
/* * Copyright 2000 by Hans Reiser, licensing governed by reiserfs/README */ #include <linux/time.h> #include "reiserfs.h" #include "acl.h" #include "xattr.h" #include <asm/uaccess.h> #include <linux/pagemap.h> #include <linux/swap.h> #include <linux/writeback.h> #include <linux/blkdev.h> #include <linux/buffer_head...
./CrossVul/dataset_final_sorted/CWE-264/c/good_2287_10
crossvul-cpp_data_bad_4858_0
/* * Encryption policy functions for per-file encryption support. * * Copyright (C) 2015, Google, Inc. * Copyright (C) 2015, Motorola Mobility. * * Written by Michael Halcrow, 2015. * Modified by Jaegeuk Kim, 2015. */ #include <linux/random.h> #include <linux/string.h> #include <linux/fscrypto.h> static int i...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_4858_0
crossvul-cpp_data_bad_3604_6
404: Not Found
./CrossVul/dataset_final_sorted/CWE-264/c/bad_3604_6
crossvul-cpp_data_good_3535_1
/* * Kernel-based Virtual Machine - device assignment support * * Copyright (C) 2010 Red Hat, Inc. and/or its affiliates. * * This work is licensed under the terms of the GNU GPL, version 2. See * the COPYING file in the top-level directory. * */ #include <linux/kvm_host.h> #include <linux/kvm.h> #include <li...
./CrossVul/dataset_final_sorted/CWE-264/c/good_3535_1
crossvul-cpp_data_bad_3470_0
/* * npw-rpc.c - Remote Procedure Calls (NPAPI specialisation) * * nspluginwrapper (C) 2005-2009 Gwenole Beauchesne * * 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...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_3470_0
crossvul-cpp_data_good_3524_3
/* * Copyright (c) 2007 Patrick McHardy <kaber@trash.net> * * 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 (at your option) any later version. * * ...
./CrossVul/dataset_final_sorted/CWE-264/c/good_3524_3
crossvul-cpp_data_bad_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/bad_5054_3
crossvul-cpp_data_good_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/good_5676_1
crossvul-cpp_data_bad_5806_0
/* * Linux INET6 implementation * Forwarding Information Database * * Authors: * Pedro Roque <roque@di.fc.ul.pt> * * 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 vers...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_5806_0
crossvul-cpp_data_good_5676_4
/* * linux/kernel/ptrace.c * * (C) Copyright 1999 Linus Torvalds * * Common interfaces for "ptrace()" which we do not want * to continually duplicate across every architecture. */ #include <linux/capability.h> #include <linux/export.h> #include <linux/sched.h> #include <linux/errno.h> #include <linux/mm.h> #inc...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5676_4
crossvul-cpp_data_good_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/good_5861_13
crossvul-cpp_data_bad_5861_16
/* Glue code for DES encryption optimized for sparc64 crypto opcodes. * * Copyright (C) 2012 David S. Miller <davem@davemloft.net> */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/crypto.h> #include <linux/init.h> #include <linux/module.h> #include <linux/mm.h> #include <linux/types.h> #include <cryp...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_5861_16
crossvul-cpp_data_good_5677_0
/* * trace event based perf event profiling/tracing * * Copyright (C) 2009 Red Hat Inc, Peter Zijlstra <pzijlstr@redhat.com> * Copyright (C) 2009-2010 Frederic Weisbecker <fweisbec@gmail.com> */ #include <linux/module.h> #include <linux/kprobes.h> #include "trace.h" static char __percpu *perf_trace_buf[PERF_NR_C...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5677_0
crossvul-cpp_data_good_3438_2
/* * Linux NET3: GRE over IP protocol decoder. * * Authors: Alexey Kuznetsov (kuznet@ms2.inr.ac.ru) * * 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, o...
./CrossVul/dataset_final_sorted/CWE-264/c/good_3438_2
crossvul-cpp_data_bad_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/bad_5861_39
crossvul-cpp_data_good_2399_13
/* * GCM: Galois/Counter Mode. * * Copyright (c) 2007 Nokia Siemens Networks - Mikko Herranen <mh1@iki.fi> * * 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 <crypt...
./CrossVul/dataset_final_sorted/CWE-264/c/good_2399_13
crossvul-cpp_data_bad_1864_1
/* * Performance events core code: * * Copyright (C) 2008 Thomas Gleixner <tglx@linutronix.de> * Copyright (C) 2008-2011 Red Hat, Inc., Ingo Molnar * Copyright (C) 2008-2011 Red Hat, Inc., Peter Zijlstra <pzijlstr@redhat.com> * Copyright © 2009 Paul Mackerras, IBM Corp. <paulus@au1.ibm.com> * * For licens...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_1864_1
crossvul-cpp_data_bad_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/bad_5861_35
crossvul-cpp_data_bad_5615_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_5615_0
crossvul-cpp_data_bad_2182_0
/* * 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/bad_2182_0
crossvul-cpp_data_bad_3524_8
/* * Host AP (software wireless LAN access point) driver for * Intersil Prism2/2.5/3 - hostap.o module, common routines * * Copyright (c) 2001-2002, SSH Communications Security Corp and Jouni Malinen * <j@w1.fi> * Copyright (c) 2002-2005, Jouni Malinen <j@w1.fi> * * This program is free software; you can redist...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_3524_8
crossvul-cpp_data_bad_5861_38
/* * Cryptographic API. * * Glue code for the SHA1 Secure Hash Algorithm assembler implementation using * Supplemental SSE3 instructions. * * This file is based on sha1_generic.c * * Copyright (c) Alan Smithee. * Copyright (c) Andrew McDonald <andrew@mcdonald.org.uk> * Copyright (c) Jean-Francois Dive <jef@li...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_5861_38
crossvul-cpp_data_good_3474_0
/* * linux/fs/proc/base.c * * Copyright (C) 1991, 1992 Linus Torvalds * * proc base directory handling functions * * 1999, Al Viro. Rewritten. Now it covers the whole per-process part. * Instead of using magical inumbers to determine the kind of object * we allocate and fill in-core inodes upon lookup. T...
./CrossVul/dataset_final_sorted/CWE-264/c/good_3474_0
crossvul-cpp_data_bad_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/bad_5861_27
crossvul-cpp_data_good_5861_4
/* * aes-ccm-glue.c - AES-CCM transform for ARMv8 with Crypto Extensions * * Copyright (C) 2013 - 2014 Linaro Ltd <ard.biesheuvel@linaro.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 Softwa...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5861_4
crossvul-cpp_data_good_3604_5
/* * Simple NUMA memory policy for the Linux kernel. * * Copyright 2003,2004 Andi Kleen, SuSE Labs. * (C) Copyright 2005 Christoph Lameter, Silicon Graphics, Inc. * Subject to the GNU Public License, version 2. * * NUMA policy allows the user to give hints in which node(s) memory should * be allocated. * * Su...
./CrossVul/dataset_final_sorted/CWE-264/c/good_3604_5
crossvul-cpp_data_good_3564_1
/* * linux/kernel/fork.c * * Copyright (C) 1991, 1992 Linus Torvalds */ /* * 'fork.c' contains the help-routines for the 'fork' system call * (see also entry.S and others). * Fork is rather simple, once you get the hang of it, but the memory * management can be a bitch. See 'mm/memory.c': 'copy_page_range(...
./CrossVul/dataset_final_sorted/CWE-264/c/good_3564_1
crossvul-cpp_data_bad_5861_21
/* * Glue Code for the asm optimized version of the AES Cipher Algorithm * */ #include <linux/module.h> #include <crypto/aes.h> #include <asm/crypto/aes.h> asmlinkage void aes_enc_blk(struct crypto_aes_ctx *ctx, u8 *out, const u8 *in); asmlinkage void aes_dec_blk(struct crypto_aes_ctx *ctx, u8 *out, const u8 *in);...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_5861_21