id stringlengths 25 30 | content stringlengths 14 942k | max_stars_repo_path stringlengths 49 55 |
|---|---|---|
crossvul-cpp_data_bad_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/bad_5861_20 |
crossvul-cpp_data_bad_2399_15 | /* LRW: as defined by Cyril Guyot in
* http://grouper.ieee.org/groups/1619/email/pdf00017.pdf
*
* Copyright (c) 2006 Rik Snel <rsnel@cube.dyndns.org>
*
* Based on ecb.c
* Copyright (c) 2006 Herbert Xu <herbert@gondor.apana.org.au>
*
* This program is free software; you can redistribute it and/or modify it
* un... | ./CrossVul/dataset_final_sorted/CWE-264/c/bad_2399_15 |
crossvul-cpp_data_good_5861_6 | /*
* Cryptographic API.
*
* powerpc implementation of the SHA1 Secure Hash Algorithm.
*
* Derived from cryptoapi implementation, adapted for in-place
* scatterlist interface.
*
* Derived from "crypto/sha1.c"
* Copyright (c) Alan Smithee.
* Copyright (c) Andrew McDonald <andrew@mcdonald.org.uk>
* Copyright (c... | ./CrossVul/dataset_final_sorted/CWE-264/c/good_5861_6 |
crossvul-cpp_data_bad_1513_2 | /*
* PCI Backend - Handles the virtual fields in the configuration space headers.
*
* Author: Ryan Wilson <hap9@epoch.ncsc.mil>
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/kernel.h>
#include <linux/pci.h>
#include "pciback.h"
#include "conf_space.h"
struct pci_bar_info {
u32 val;
u32 len_val... | ./CrossVul/dataset_final_sorted/CWE-264/c/bad_1513_2 |
crossvul-cpp_data_bad_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/bad_2399_16 |
crossvul-cpp_data_bad_5861_46 | /*
* PRNG: Pseudo Random Number Generator
* Based on NIST Recommended PRNG From ANSI X9.31 Appendix A.2.4 using
* AES 128 cipher
*
* (C) Neil Horman <nhorman@tuxdriver.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_46 |
crossvul-cpp_data_good_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/good_5615_0 |
crossvul-cpp_data_good_3439_4 | /*
* debugfs.c - ACPI debugfs interface to userspace.
*/
#include <linux/init.h>
#include <linux/debugfs.h>
#include <acpi/acpi_drivers.h>
#define _COMPONENT ACPI_SYSTEM_COMPONENT
ACPI_MODULE_NAME("debugfs");
struct dentry *acpi_debugfs_dir;
EXPORT_SYMBOL_GPL(acpi_debugfs_dir);
void __init acpi_debugfs_init(void... | ./CrossVul/dataset_final_sorted/CWE-264/c/good_3439_4 |
crossvul-cpp_data_good_3482_1 | /*
* 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.
*
* PACKET - implements raw packet sockets.
*
* Authors: Ross Biro
* Fred N. van Kempen, <waltje@uWalt.NL.Mugn... | ./CrossVul/dataset_final_sorted/CWE-264/c/good_3482_1 |
crossvul-cpp_data_bad_2073_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/bad_2073_0 |
crossvul-cpp_data_bad_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/bad_5861_29 |
crossvul-cpp_data_bad_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/bad_1576_2 |
crossvul-cpp_data_good_2287_3 | /*
* linux/fs/ext3/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
*
* ext3 fs regular file handling... | ./CrossVul/dataset_final_sorted/CWE-264/c/good_2287_3 |
crossvul-cpp_data_good_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/good_5861_38 |
crossvul-cpp_data_good_2438_1 | /*
*
* Copyright (C) 2011 Novell Inc.
*
* 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 <linux/fs.h>
#include <linux/namei.h>
#include <linux/xattr.h>
#include <lin... | ./CrossVul/dataset_final_sorted/CWE-264/c/good_2438_1 |
crossvul-cpp_data_bad_5617_0 | /* scm.c - Socket level control messages processing.
*
* Author: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
* Alignment and value checking mods by Craig Metz
*
* 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_5617_0 |
crossvul-cpp_data_bad_3564_0 | /*
* linux/kernel/exit.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*/
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/capability.h>
#include <linux/completion.h>
#include <linux/personality.h>
#include <linux/tty.h>
#include <linux/mnt_names... | ./CrossVul/dataset_final_sorted/CWE-264/c/bad_3564_0 |
crossvul-cpp_data_bad_3604_3 | 404: Not Found | ./CrossVul/dataset_final_sorted/CWE-264/c/bad_3604_3 |
crossvul-cpp_data_bad_2287_2 | /*
* linux/fs/ext2/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
*
* ext2 fs regular file handling... | ./CrossVul/dataset_final_sorted/CWE-264/c/bad_2287_2 |
crossvul-cpp_data_bad_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/bad_3526_2 |
crossvul-cpp_data_bad_2399_21 | /*
* Copyright (C)2006 USAGI/WIDE Project
*
* 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.
*
* This program is ... | ./CrossVul/dataset_final_sorted/CWE-264/c/bad_2399_21 |
crossvul-cpp_data_good_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/good_2399_14 |
crossvul-cpp_data_bad_5040_0 | /*
* Kernel-based Virtual Machine driver for Linux
*
* This module enables machines with Intel VT-x extensions to run virtual
* machines without emulation or binary translation.
*
* Copyright (C) 2006 Qumranet, Inc.
* Copyright 2010 Red Hat, Inc. and/or its affiliates.
*
* Authors:
* Avi Kivity <avi@qumra... | ./CrossVul/dataset_final_sorted/CWE-264/c/bad_5040_0 |
crossvul-cpp_data_good_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/good_1661_2 |
crossvul-cpp_data_good_3454_1 | /*
* fs/cifs/connect.c
*
* 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 Public License as published
* by the Free ... | ./CrossVul/dataset_final_sorted/CWE-264/c/good_3454_1 |
crossvul-cpp_data_good_5616_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/good_5616_0 |
crossvul-cpp_data_good_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/good_5861_2 |
crossvul-cpp_data_bad_1455_0 | /* Copyright Joyent, Inc. and other Node contributors. All rights reserved.
*
* 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
* righ... | ./CrossVul/dataset_final_sorted/CWE-264/c/bad_1455_0 |
crossvul-cpp_data_bad_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/bad_3636_1 |
crossvul-cpp_data_bad_4765_0 | /* $OpenBSD: serverloop.c,v 1.188 2016/11/30 03:00:05 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
* All rights reserved
* Server main loop for handling the interactive session.
*
* As far as I am concerned, the code I ha... | ./CrossVul/dataset_final_sorted/CWE-264/c/bad_4765_0 |
crossvul-cpp_data_good_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/good_5861_30 |
crossvul-cpp_data_bad_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/bad_5078_2 |
crossvul-cpp_data_good_2423_3 | /*
* linux/arch/arm/kernel/process.c
*
* Copyright (C) 1996-2000 Russell King - Converted to ARM.
* Original Copyright (C) 1995 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
* published by the Free ... | ./CrossVul/dataset_final_sorted/CWE-264/c/good_2423_3 |
crossvul-cpp_data_good_2304_0 | #include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/user.h>
#include <linux/regset.h>
#include <linux/syscalls.h>
#include <asm/uaccess.h>
#include <asm/desc.h>
#include <asm/ldt.h>
#include <asm/processor.h>
#include <asm/proto.h>
#include "tls.h"
/*
* sys_alloc_thread_area:... | ./CrossVul/dataset_final_sorted/CWE-264/c/good_2304_0 |
crossvul-cpp_data_good_5861_9 | /*
* Cryptographic API.
*
* s390 implementation of the GHASH algorithm for GCM (Galois/Counter Mode).
*
* Copyright IBM Corp. 2011
* Author(s): Gerald Schaefer <gerald.schaefer@de.ibm.com>
*/
#include <crypto/internal/hash.h>
#include <linux/module.h>
#include "crypt_s390.h"
#define GHASH_BLOCK_SIZE 16
#defin... | ./CrossVul/dataset_final_sorted/CWE-264/c/good_5861_9 |
crossvul-cpp_data_bad_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/bad_3470_2 |
crossvul-cpp_data_bad_3438_1 | /*
* NET3 Protocol independent device support routines.
*
* 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_3438_1 |
crossvul-cpp_data_good_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/good_3591_0 |
crossvul-cpp_data_bad_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/bad_5605_1 |
crossvul-cpp_data_bad_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/bad_1475_0 |
crossvul-cpp_data_good_5605_0 | /*
* 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_5605_0 |
crossvul-cpp_data_good_2190_1 | /*
* (C) 1997 Linus Torvalds
* (C) 1999 Andrea Arcangeli <andrea@suse.de> (dynamic inode allocation)
*/
#include <linux/export.h>
#include <linux/fs.h>
#include <linux/mm.h>
#include <linux/backing-dev.h>
#include <linux/hash.h>
#include <linux/swap.h>
#include <linux/security.h>
#include <linux/cdev.h>
#include <li... | ./CrossVul/dataset_final_sorted/CWE-264/c/good_2190_1 |
crossvul-cpp_data_good_1533_0 | /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/* plugins/preauth/otp/main.c - OTP kdcpreauth module definition */
/*
* Copyright 2011 NORDUnet A/S. All rights reserved.
* Copyright 2013 Red Hat, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* m... | ./CrossVul/dataset_final_sorted/CWE-264/c/good_1533_0 |
crossvul-cpp_data_good_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/good_5054_5 |
crossvul-cpp_data_good_3524_9 | //------------------------------------------------------------------------------
// Copyright (c) 2004-2010 Atheros Communications Inc.
// All rights reserved.
//
//
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
... | ./CrossVul/dataset_final_sorted/CWE-264/c/good_3524_9 |
crossvul-cpp_data_bad_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/bad_3524_2 |
crossvul-cpp_data_bad_5861_48 | /*
* Scatterlist Cryptographic API.
*
* Copyright (c) 2002 James Morris <jmorris@intercode.com.au>
* Copyright (c) 2002 David S. Miller (davem@redhat.com)
* Copyright (c) 2005 Herbert Xu <herbert@gondor.apana.org.au>
*
* Portions derived from Cryptoapi, by Alexander Kjeldaas <astor@fast.no>
* and Nettle, by Nie... | ./CrossVul/dataset_final_sorted/CWE-264/c/bad_5861_48 |
crossvul-cpp_data_good_2190_0 | /*
* linux/fs/attr.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
* changes by Thomas Schoebel-Theuer
*/
#include <linux/export.h>
#include <linux/time.h>
#include <linux/mm.h>
#include <linux/string.h>
#include <linux/capability.h>
#include <linux/fsnotify.h>
#include <linux/fcntl.h>
#include <linux/security.... | ./CrossVul/dataset_final_sorted/CWE-264/c/good_2190_0 |
crossvul-cpp_data_good_5861_48 | /*
* Scatterlist Cryptographic API.
*
* Copyright (c) 2002 James Morris <jmorris@intercode.com.au>
* Copyright (c) 2002 David S. Miller (davem@redhat.com)
* Copyright (c) 2005 Herbert Xu <herbert@gondor.apana.org.au>
*
* Portions derived from Cryptoapi, by Alexander Kjeldaas <astor@fast.no>
* and Nettle, by Nie... | ./CrossVul/dataset_final_sorted/CWE-264/c/good_5861_48 |
crossvul-cpp_data_bad_3438_4 | /*
* IPv6 over IPv4 tunnel device - Simple Internet Transition (SIT)
* Linux INET6 implementation
*
* Authors:
* Pedro Roque <roque@di.fc.ul.pt>
* 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 Publi... | ./CrossVul/dataset_final_sorted/CWE-264/c/bad_3438_4 |
crossvul-cpp_data_bad_2287_13 | /*
* 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/bad_2287_13 |
crossvul-cpp_data_bad_2399_17 | /*
* PCBC: Propagating Cipher Block Chaining mode
*
* Copyright (C) 2006 Red Hat, Inc. All Rights Reserved.
* Written by David Howells (dhowells@redhat.com)
*
* Derived from cbc.c
* - Copyright (c) 2006 Herbert Xu <herbert@gondor.apana.org.au>
*
* This program is free software; you can redistribute it and/or m... | ./CrossVul/dataset_final_sorted/CWE-264/c/bad_2399_17 |
crossvul-cpp_data_bad_3524_1 | /*
* originally based on the dummy device.
*
* Copyright 1999, Thomas Davis, tadavis@lbl.gov.
* Licensed under the GPL. Based on dummy.c, and eql.c devices.
*
* bonding.c: an Ethernet Bonding driver
*
* This is useful to talk to a Cisco EtherChannel compatible equipment:
* Cisco 5500
* Sun Trunking (Solaris)
... | ./CrossVul/dataset_final_sorted/CWE-264/c/bad_3524_1 |
crossvul-cpp_data_bad_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/bad_5861_23 |
crossvul-cpp_data_bad_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/bad_5861_31 |
crossvul-cpp_data_good_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/good_2399_6 |
crossvul-cpp_data_bad_3604_4 | 404: Not Found | ./CrossVul/dataset_final_sorted/CWE-264/c/bad_3604_4 |
crossvul-cpp_data_good_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/good_4858_0 |
crossvul-cpp_data_good_1719_0 | /* $OpenBSD: monitor.c,v 1.150 2015/06/22 23:42:16 djm Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* Copyright 2002 Markus Friedl <markus@openbsd.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the... | ./CrossVul/dataset_final_sorted/CWE-264/c/good_1719_0 |
crossvul-cpp_data_good_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/good_5861_32 |
crossvul-cpp_data_bad_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/bad_5054_0 |
crossvul-cpp_data_good_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/good_5861_22 |
crossvul-cpp_data_good_2165_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_2165_0 |
crossvul-cpp_data_bad_2287_0 | /*
* linux/fs/block_dev.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
* Copyright (C) 2001 Andrea Arcangeli <andrea@suse.de> SuSE
*/
#include <linux/init.h>
#include <linux/mm.h>
#include <linux/fcntl.h>
#include <linux/slab.h>
#include <linux/kmod.h>
#include <linux/major.h>
#include <linux/device_cgroup.h>... | ./CrossVul/dataset_final_sorted/CWE-264/c/bad_2287_0 |
crossvul-cpp_data_bad_2163_1 | /*
* Kernel-based Virtual Machine driver for Linux
*
* This module enables machines with Intel VT-x extensions to run virtual
* machines without emulation or binary translation.
*
* Copyright (C) 2006 Qumranet, Inc.
* Copyright 2010 Red Hat, Inc. and/or its affiliates.
*
* Authors:
* Avi Kivity <avi@qumra... | ./CrossVul/dataset_final_sorted/CWE-264/c/bad_2163_1 |
crossvul-cpp_data_good_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/good_1861_0 |
crossvul-cpp_data_bad_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/bad_3526_0 |
crossvul-cpp_data_bad_2243_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_2243_0 |
crossvul-cpp_data_bad_3439_4 | /*
* debugfs.c - ACPI debugfs interface to userspace.
*/
#include <linux/init.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/uaccess.h>
#include <linux/debugfs.h>
#include <acpi/acpi_drivers.h>
#define _COMPONENT ACPI_SYSTEM_COMPONENT
ACPI_MODULE_NAME("debugfs");
struct dentry *acpi_debugf... | ./CrossVul/dataset_final_sorted/CWE-264/c/bad_3439_4 |
crossvul-cpp_data_bad_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/bad_5861_14 |
crossvul-cpp_data_bad_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/bad_2399_5 |
crossvul-cpp_data_bad_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/bad_5054_1 |
crossvul-cpp_data_bad_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/bad_5861_3 |
crossvul-cpp_data_good_5861_12 | /*
* Cryptographic API.
*
* s390 implementation of the SHA512 and SHA38 Secure Hash Algorithm.
*
* Copyright IBM Corp. 2007
* 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 Public License as published by ... | ./CrossVul/dataset_final_sorted/CWE-264/c/good_5861_12 |
crossvul-cpp_data_bad_3604_0 | 404: Not Found | ./CrossVul/dataset_final_sorted/CWE-264/c/bad_3604_0 |
crossvul-cpp_data_bad_3647_1 | /*
* linux/fs/hfsplus/dir.c
*
* Copyright (C) 2001
* Brad Boyer (flar@allandria.com)
* (C) 2003 Ardis Technologies <roman@ardistech.com>
*
* Handling of directories
*/
#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/slab.h>
#include <linux/random.h>
#include "hfsplus_fs.h"
#include "hfsplus_ra... | ./CrossVul/dataset_final_sorted/CWE-264/c/bad_3647_1 |
crossvul-cpp_data_bad_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/bad_2292_2 |
crossvul-cpp_data_bad_1504_0 | /*
* Copyright (C) 2004 Andrew Beekhof <andrew@beekhof.net>
*
* 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 of the License, or (at your option) any later vers... | ./CrossVul/dataset_final_sorted/CWE-264/c/bad_1504_0 |
crossvul-cpp_data_good_3470_1 | /*
* npw-viewer.c - Target plugin loader and viewer
*
* 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 Lic... | ./CrossVul/dataset_final_sorted/CWE-264/c/good_3470_1 |
crossvul-cpp_data_good_1492_0 | /*
* Flexible mmap layout support
*
* Based on code by Ingo Molnar and Andi Kleen, copyrighted
* as follows:
*
* Copyright 2003-2009 Red Hat Inc.
* All Rights Reserved.
* Copyright 2005 Andi Kleen, SUSE Labs.
* Copyright 2007 Jiri Kosina, SUSE Labs.
*
* This program is free software; you can redistribute it ... | ./CrossVul/dataset_final_sorted/CWE-264/c/good_1492_0 |
crossvul-cpp_data_good_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/good_3524_13 |
crossvul-cpp_data_good_5619_0 | /*
* 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_5619_0 |
crossvul-cpp_data_good_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/good_5192_0 |
crossvul-cpp_data_good_1513_2 | /*
* PCI Backend - Handles the virtual fields in the configuration space headers.
*
* Author: Ryan Wilson <hap9@epoch.ncsc.mil>
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/kernel.h>
#include <linux/pci.h>
#include "pciback.h"
#include "conf_space.h"
struct pci_cmd_info {
u16 val;
};
struct p... | ./CrossVul/dataset_final_sorted/CWE-264/c/good_1513_2 |
crossvul-cpp_data_bad_2159_2 | /*
* Kernel-based Virtual Machine driver for Linux
*
* This module enables machines with Intel VT-x extensions to run virtual
* machines without emulation or binary translation.
*
* Copyright (C) 2006 Qumranet, Inc.
* Copyright 2010 Red Hat, Inc. and/or its affiliates.
*
* Authors:
* Avi Kivity <avi@qumra... | ./CrossVul/dataset_final_sorted/CWE-264/c/bad_2159_2 |
crossvul-cpp_data_good_3647_1 | /*
* linux/fs/hfsplus/dir.c
*
* Copyright (C) 2001
* Brad Boyer (flar@allandria.com)
* (C) 2003 Ardis Technologies <roman@ardistech.com>
*
* Handling of directories
*/
#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/slab.h>
#include <linux/random.h>
#include "hfsplus_fs.h"
#include "hfsplus_ra... | ./CrossVul/dataset_final_sorted/CWE-264/c/good_3647_1 |
crossvul-cpp_data_good_3423_0 | /*
* Copyright (C) 2008 IBM Corporation
* Author: Mimi Zohar <zohar@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.
*
* ima_policy.c
* - initial... | ./CrossVul/dataset_final_sorted/CWE-264/c/good_3423_0 |
crossvul-cpp_data_good_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/good_5861_26 |
crossvul-cpp_data_bad_5786_0 | /*
* ModSecurity for Apache 2.x, http://www.modsecurity.org/
* Copyright (c) 2004-2013 Trustwave Holdings, Inc. (http://www.trustwave.com/)
*
* 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
*
* If any of the... | ./CrossVul/dataset_final_sorted/CWE-264/c/bad_5786_0 |
crossvul-cpp_data_good_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/good_5591_0 |
crossvul-cpp_data_good_5861_33 | /*
* Accelerated GHASH implementation with Intel PCLMULQDQ-NI
* instructions. This file contains glue code.
*
* Copyright (c) 2009 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 Lic... | ./CrossVul/dataset_final_sorted/CWE-264/c/good_5861_33 |
crossvul-cpp_data_good_891_0 | /* abuild-sudo.c - limited root privileges for users in "abuild" group
*
* Copyright (C) 2012 Natanael Copa <ncopa@alpinelinux.org>
* 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 version 2 as published
* by th... | ./CrossVul/dataset_final_sorted/CWE-264/c/good_891_0 |
crossvul-cpp_data_bad_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/bad_5861_0 |
crossvul-cpp_data_bad_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/bad_2287_11 |
crossvul-cpp_data_good_2126_0 | /*
* Fast Userspace Mutexes (which I call "Futexes!").
* (C) Rusty Russell, IBM 2002
*
* Generalized futexes, futex requeueing, misc fixes by Ingo Molnar
* (C) Copyright 2003 Red Hat Inc, All Rights Reserved
*
* Removed page pinning, fix privately mapped COW pages and other cleanups
* (C) Copyright 2003, ... | ./CrossVul/dataset_final_sorted/CWE-264/c/good_2126_0 |
crossvul-cpp_data_good_2123_0 | /*
* linux/mm/mlock.c
*
* (C) Copyright 1995 Linus Torvalds
* (C) Copyright 2002 Christoph Hellwig
*/
#include <linux/capability.h>
#include <linux/mman.h>
#include <linux/mm.h>
#include <linux/swap.h>
#include <linux/swapops.h>
#include <linux/pagemap.h>
#include <linux/pagevec.h>
#include <linux/mempolicy.h>
... | ./CrossVul/dataset_final_sorted/CWE-264/c/good_2123_0 |
crossvul-cpp_data_bad_3524_9 | //------------------------------------------------------------------------------
// Copyright (c) 2004-2010 Atheros Communications Inc.
// All rights reserved.
//
//
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
... | ./CrossVul/dataset_final_sorted/CWE-264/c/bad_3524_9 |
crossvul-cpp_data_good_2287_2 | /*
* linux/fs/ext2/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
*
* ext2 fs regular file handling... | ./CrossVul/dataset_final_sorted/CWE-264/c/good_2287_2 |
crossvul-cpp_data_good_3646_0 | /* D-Link DL2000-based Gigabit Ethernet Adapter Linux driver */
/*
Copyright (c) 2001, 2002 by D-Link Corporation
Written by Edward Peng.<edward_peng@dlink.com.tw>
Created 03-May-2001, base on Linux' sundance.c.
This program is free software; you can redistribute it and/or modify
it under the term... | ./CrossVul/dataset_final_sorted/CWE-264/c/good_3646_0 |
crossvul-cpp_data_good_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/good_2190_5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.