id
stringlengths
25
30
content
stringlengths
14
942k
max_stars_repo_path
stringlengths
49
55
crossvul-cpp_data_good_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/good_5861_36
crossvul-cpp_data_bad_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/bad_5078_1
crossvul-cpp_data_good_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/good_2243_0
crossvul-cpp_data_good_2423_5
/* * linux/arch/arm/kernel/traps.c * * Copyright (C) 1995-2009 Russell King * Fragments that appear the same as linux/arch/i386/kernel/traps.c (C) Linus Torvalds * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * publ...
./CrossVul/dataset_final_sorted/CWE-264/c/good_2423_5
crossvul-cpp_data_good_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/good_5861_34
crossvul-cpp_data_good_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/good_1661_6
crossvul-cpp_data_bad_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/bad_2287_8
crossvul-cpp_data_bad_2033_1
/* $Id: fpm_unix.c,v 1.25.2.1 2008/12/13 03:18:23 anight Exp $ */ /* (c) 2007,2008 Andrei Nigmatulin */ #include "fpm_config.h" #include <string.h> #include <sys/time.h> #include <sys/resource.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <pwd.h> #include <grp.h> #ifdef HAVE_PRCTL #in...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_2033_1
crossvul-cpp_data_good_5739_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/good_5739_0
crossvul-cpp_data_good_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/good_5806_0
crossvul-cpp_data_bad_3604_8
404: Not Found
./CrossVul/dataset_final_sorted/CWE-264/c/bad_3604_8
crossvul-cpp_data_bad_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/bad_3524_4
crossvul-cpp_data_good_5573_0
/* * linux/kernel/signal.c * * Copyright (C) 1991, 1992 Linus Torvalds * * 1997-11-02 Modified for POSIX.1b signals by Richard Henderson * * 2003-06-02 Jim Houston - Concurrent Computer Corp. * Changes to use preallocated sigqueue structures * to allow signals to be sent reliably. */ #include <linux...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5573_0
crossvul-cpp_data_bad_2182_1
/* * Copyright (C) 2012 Daiki Ueno <ueno@unixuser.org> * Copyright (C) 2012 Red Hat, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your ...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_2182_1
crossvul-cpp_data_good_5861_45
/* * Cryptographic API. * * AES Cipher Algorithm. * * Based on Brian Gladman's code. * * Linux developers: * Alexander Kjeldaas <astor@fast.no> * Herbert Valerio Riedel <hvr@hvrlab.org> * Kyle McMartin <kyle@debian.org> * Adam J. Richter <adam@yggdrasil.com> (conversion to 2.5 API). * * This program is...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5861_45
crossvul-cpp_data_bad_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/bad_5861_4
crossvul-cpp_data_bad_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/bad_2191_0
crossvul-cpp_data_bad_5351_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-264/c/bad_5351_0
crossvul-cpp_data_good_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/good_3438_1
crossvul-cpp_data_bad_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/bad_2423_3
crossvul-cpp_data_good_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/good_5861_1
crossvul-cpp_data_good_1715_0
/* Copyright (C) 2014 Daniel Dressler and contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
./CrossVul/dataset_final_sorted/CWE-264/c/good_1715_0
crossvul-cpp_data_bad_2399_20
/* * Modified to interface to the Linux kernel * Copyright (c) 2009, 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 d...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_2399_20
crossvul-cpp_data_good_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/good_5040_0
crossvul-cpp_data_bad_5739_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_5739_0
crossvul-cpp_data_bad_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/bad_2399_10
crossvul-cpp_data_bad_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/bad_5677_0
crossvul-cpp_data_good_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/good_2399_11
crossvul-cpp_data_bad_1715_0
/* Copyright (C) 2014 Daniel Dressler and contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_1715_0
crossvul-cpp_data_bad_3604_7
404: Not Found
./CrossVul/dataset_final_sorted/CWE-264/c/bad_3604_7
crossvul-cpp_data_good_2287_5
/* * fs/f2fs/file.c * * Copyright (c) 2012 Samsung Electronics Co., Ltd. * http://www.samsung.com/ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include <l...
./CrossVul/dataset_final_sorted/CWE-264/c/good_2287_5
crossvul-cpp_data_good_1787_2
/* user_defined.c: user defined key type * * Copyright (C) 2004 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.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 F...
./CrossVul/dataset_final_sorted/CWE-264/c/good_1787_2
crossvul-cpp_data_bad_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/bad_1533_0
crossvul-cpp_data_bad_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/bad_5861_33
crossvul-cpp_data_bad_2287_9
/* file-nommu.c: no-MMU version of ramfs * * Copyright (C) 2005 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.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 F...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_2287_9
crossvul-cpp_data_bad_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 "internal.h" #include "pnode.h" /* return the next shared peer mount of @p */ static inli...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_5616_1
crossvul-cpp_data_bad_2118_0
/* * ejabberd, Copyright (C) 2002-2011 ProcessOne * * 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 p...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_2118_0
crossvul-cpp_data_bad_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/bad_2399_22
crossvul-cpp_data_good_3526_1
/* * Copyright (C) 2001-2003 Sistina Software (UK) Limited. * * This file is released under the GPL. */ #include "dm.h" #include <linux/module.h> #include <linux/init.h> #include <linux/blkdev.h> #include <linux/bio.h> #include <linux/slab.h> #include <linux/device-mapper.h> #define DM_MSG_PREFIX "linear" /* * ...
./CrossVul/dataset_final_sorted/CWE-264/c/good_3526_1
crossvul-cpp_data_good_2287_4
/* * linux/fs/ext4/file.c * * Copyright (C) 1992, 1993, 1994, 1995 * Remy Card (card@masi.ibp.fr) * Laboratoire MASI - Institut Blaise Pascal * Universite Pierre et Marie Curie (Paris VI) * * from * * linux/fs/minix/file.c * * Copyright (C) 1991, 1992 Linus Torvalds * * ext4 fs regular file handling...
./CrossVul/dataset_final_sorted/CWE-264/c/good_2287_4
crossvul-cpp_data_bad_2399_8
/* * Software async crypto daemon. * * Copyright (c) 2006 Herbert Xu <herbert@gondor.apana.org.au> * * Added AEAD support to cryptd. * Authors: Tadeusz Struk (tadeusz.struk@intel.com) * Adrian Hoban <adrian.hoban@intel.com> * Gabriele Paoloni <gabriele.paoloni@intel.com> * ...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_2399_8
crossvul-cpp_data_good_5801_0
/* * Adaptec AAC series RAID controller driver * (c) Copyright 2001 Red Hat Inc. * * based on the old aacraid driver that is.. * Adaptec aacraid device driver for Linux. * * Copyright (c) 2000-2010 Adaptec, Inc. * 2010 PMC-Sierra, Inc. (aacraid@pmc-sierra.com) * * This program is free software; ...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5801_0
crossvul-cpp_data_good_2033_1
/* $Id: fpm_unix.c,v 1.25.2.1 2008/12/13 03:18:23 anight Exp $ */ /* (c) 2007,2008 Andrei Nigmatulin */ #include "fpm_config.h" #include <string.h> #include <sys/time.h> #include <sys/resource.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <pwd.h> #include <grp.h> #ifdef HAVE_PRCTL #in...
./CrossVul/dataset_final_sorted/CWE-264/c/good_2033_1
crossvul-cpp_data_good_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/good_2159_3
crossvul-cpp_data_good_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/good_2287_6
crossvul-cpp_data_good_4821_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_4821_0
crossvul-cpp_data_good_1795_0
/* * * 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/slab.h> #include <linux/xattr.h> #include "over...
./CrossVul/dataset_final_sorted/CWE-264/c/good_1795_0
crossvul-cpp_data_bad_3439_3
404: Not Found
./CrossVul/dataset_final_sorted/CWE-264/c/bad_3439_3
crossvul-cpp_data_good_5861_37
/* * Glue Code for SSE2 assembler versions of Serpent Cipher * * Copyright (c) 2011 Jussi Kivilinna <jussi.kivilinna@mbnet.fi> * * Glue code based on aesni-intel_glue.c by: * Copyright (C) 2008, Intel Corp. * Author: Huang Ying <ying.huang@intel.com> * * CBC & ECB parts based on code (crypto/cbc.c,ecb.c) b...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5861_37
crossvul-cpp_data_good_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/good_2399_21
crossvul-cpp_data_bad_1787_0
/* * Copyright (C) 2010 IBM Corporation * Copyright (C) 2010 Politecnico di Torino, Italy * TORSEC group -- http://security.polito.it * * Authors: * Mimi Zohar <zohar@us.ibm.com> * Roberto Sassu <roberto.sassu@polito.it> * * This program is free software; you can redistribute it and/or modif...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_1787_0
crossvul-cpp_data_good_5655_0
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Monkey HTTP Server * ================== * Copyright 2001-2014 Monkey Software LLC <eduardo@monkey.io> * Copyright 2012, Sonny Karlsson * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this ...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5655_0
crossvul-cpp_data_good_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/good_3429_0
crossvul-cpp_data_bad_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/bad_2190_2
crossvul-cpp_data_bad_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/bad_5861_15
crossvul-cpp_data_bad_5801_0
/* * Adaptec AAC series RAID controller driver * (c) Copyright 2001 Red Hat Inc. * * based on the old aacraid driver that is.. * Adaptec aacraid device driver for Linux. * * Copyright (c) 2000-2010 Adaptec, Inc. * 2010 PMC-Sierra, Inc. (aacraid@pmc-sierra.com) * * This program is free software; ...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_5801_0
crossvul-cpp_data_good_2244_0
/* * linux/fs/namespace.c * * (C) Copyright Al Viro 2000, 2001 * Released under GPL v2. * * Based on code from fs/super.c, copyright Linus Torvalds and others. * Heavily rewritten. */ #include <linux/syscalls.h> #include <linux/export.h> #include <linux/capability.h> #include <linux/mnt_namespace.h> #include ...
./CrossVul/dataset_final_sorted/CWE-264/c/good_2244_0
crossvul-cpp_data_bad_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/bad_5861_9
crossvul-cpp_data_bad_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/bad_3646_0
crossvul-cpp_data_bad_2287_7
/* * Copyright (C) International Business Machines Corp., 2000-2002 * Portions Copyright (C) Christoph Hellwig, 2001-2002 * * 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; eithe...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_2287_7
crossvul-cpp_data_good_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/good_3438_4
crossvul-cpp_data_good_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/good_2163_1
crossvul-cpp_data_good_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/good_5557_0
crossvul-cpp_data_good_3524_6
/* * Generic HDLC support routines for Linux * Frame Relay support * * Copyright (C) 1999 - 2006 Krzysztof Halasa <khc@pm.waw.pl> * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License * as published by the Free Software Found...
./CrossVul/dataset_final_sorted/CWE-264/c/good_3524_6
crossvul-cpp_data_bad_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/bad_2438_1
crossvul-cpp_data_bad_5018_1
404: Not Found
./CrossVul/dataset_final_sorted/CWE-264/c/bad_5018_1
crossvul-cpp_data_bad_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/bad_5616_0
crossvul-cpp_data_bad_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/bad_1719_0
crossvul-cpp_data_good_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/good_3517_0
crossvul-cpp_data_bad_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/bad_3525_1
crossvul-cpp_data_good_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/good_1455_0
crossvul-cpp_data_good_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/good_1661_3
crossvul-cpp_data_bad_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/bad_2399_19
crossvul-cpp_data_good_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/good_3647_0
crossvul-cpp_data_bad_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/bad_4698_2
crossvul-cpp_data_good_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/good_3524_11
crossvul-cpp_data_good_3524_12
/* * L2TPv3 ethernet pseudowire driver * * Copyright (c) 2008,2009,2010 Katalix Systems 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 Software Foundation; either version * 2 of the License, or (at yo...
./CrossVul/dataset_final_sorted/CWE-264/c/good_3524_12
crossvul-cpp_data_bad_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/bad_2399_1
crossvul-cpp_data_bad_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/bad_2399_13
crossvul-cpp_data_good_2399_20
/* * Modified to interface to the Linux kernel * Copyright (c) 2009, 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 d...
./CrossVul/dataset_final_sorted/CWE-264/c/good_2399_20
crossvul-cpp_data_bad_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/bad_1513_0
crossvul-cpp_data_bad_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/bad_3482_1
crossvul-cpp_data_bad_5618_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/bad_5618_0
crossvul-cpp_data_good_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/good_1504_0
crossvul-cpp_data_good_5018_1
/* * acpi_osl.c - OS-dependent functions ($Revision: 83 $) * * Copyright (C) 2000 Andrew Henroid * Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com> * Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com> * Copyright (c) 2008 Intel Corporation * Author: Matthew Wilcox...
./CrossVul/dataset_final_sorted/CWE-264/c/good_5018_1
crossvul-cpp_data_bad_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/bad_3564_1
crossvul-cpp_data_bad_2287_5
/* * fs/f2fs/file.c * * Copyright (c) 2012 Samsung Electronics Co., Ltd. * http://www.samsung.com/ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include <l...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_2287_5
crossvul-cpp_data_good_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/good_3470_0
crossvul-cpp_data_good_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/good_2182_0
crossvul-cpp_data_good_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/good_2159_2
crossvul-cpp_data_bad_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/bad_5861_19
crossvul-cpp_data_bad_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/bad_3423_0
crossvul-cpp_data_bad_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/bad_2164_0
crossvul-cpp_data_bad_3637_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-264/c/bad_3637_0
crossvul-cpp_data_bad_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/bad_3470_1
crossvul-cpp_data_bad_920_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-264/c/bad_920_0
crossvul-cpp_data_bad_1795_0
/* * * 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/slab.h> #include <linux/xattr.h> #include "over...
./CrossVul/dataset_final_sorted/CWE-264/c/bad_1795_0
crossvul-cpp_data_good_3524_5
/* * drivers/net/veth.c * * Copyright (C) 2007 OpenVZ http://openvz.org, SWsoft Inc * * Author: Pavel Emelianov <xemul@openvz.org> * Ethtool interface from: Eric W. Biederman <ebiederm@xmission.com> * */ #include <linux/netdevice.h> #include <linux/slab.h> #include <linux/ethtool.h> #include <linux/etherdevi...
./CrossVul/dataset_final_sorted/CWE-264/c/good_3524_5
crossvul-cpp_data_good_3604_1
#include <linux/mm.h> #include <linux/hugetlb.h> #include <linux/huge_mm.h> #include <linux/mount.h> #include <linux/seq_file.h> #include <linux/highmem.h> #include <linux/ptrace.h> #include <linux/slab.h> #include <linux/pagemap.h> #include <linux/mempolicy.h> #include <linux/rmap.h> #include <linux/swap.h> #include <...
./CrossVul/dataset_final_sorted/CWE-264/c/good_3604_1
crossvul-cpp_data_good_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/good_5861_46