id
stringlengths
25
30
content
stringlengths
14
942k
max_stars_repo_path
stringlengths
49
55
crossvul-cpp_data_bad_3275_0
/* * fs/dcache.c * * Complete reimplementation * (C) 1997 Thomas Schoebel-Theuer, * with heavy changes by Linus Torvalds */ /* * Notes on the allocation strategy: * * The dcache is a master of the icache - whenever a dcache entry * exists, the inode will always exist. "iput()" is done either when * the dcac...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_3275_0
crossvul-cpp_data_good_4962_0
/* * Timers abstract layer * Copyright (c) by Jaroslav Kysela <perex@perex.cz> * * * 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 you...
./CrossVul/dataset_final_sorted/CWE-362/c/good_4962_0
crossvul-cpp_data_bad_1751_0
/* Userspace key control operations * * Copyright (C) 2004-5 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 Foun...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_1751_0
crossvul-cpp_data_bad_5518_1
400: Invalid request
./CrossVul/dataset_final_sorted/CWE-362/c/bad_5518_1
crossvul-cpp_data_bad_4961_0
/* * ALSA sequencer Timing queue handling * Copyright (c) 1998-1999 by Frank van de Pol <fvdpol@coil.demon.nl> * * 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-362/c/bad_4961_0
crossvul-cpp_data_good_2290_0
/* * 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-362/c/good_2290_0
crossvul-cpp_data_good_3465_0
/* * Memory merging support. * * This code enables dynamic sharing of identical pages found in different * memory areas, even if they are not shared by fork() * * Copyright (C) 2008-2009 Red Hat, Inc. * Authors: * Izik Eidus * Andrea Arcangeli * Chris Wright * Hugh Dickins * * This work is licensed under t...
./CrossVul/dataset_final_sorted/CWE-362/c/good_3465_0
crossvul-cpp_data_bad_840_1
/* * Copyright (c) 2015-present, Yann Collet, Facebook, Inc. * All rights reserved. * * This source code is licensed under both the BSD-style license (found in the * LICENSE file in the root directory of this source tree) and the GPLv2 (found * in the COPYING file in the root directory of this source tree). * Yo...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_840_1
crossvul-cpp_data_bad_1757_1
/* * linux/ipc/shm.c * Copyright (C) 1992, 1993 Krishna Balasubramanian * Many improvements/fixes by Bruno Haible. * Replaced `struct shm_desc' by `struct vm_area_struct', July 1994. * Fixed the shm swap deallocation (shm_unuse()), August 1998 Andrea Arcangeli. * * /proc/sysvipc/shm support (c) 1999 Dragos Acos...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_1757_1
crossvul-cpp_data_good_4964_0
/* * Timers abstract layer * Copyright (c) by Jaroslav Kysela <perex@perex.cz> * * * 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 you...
./CrossVul/dataset_final_sorted/CWE-362/c/good_4964_0
crossvul-cpp_data_bad_1819_3
/* * linux/fs/ext4/inode.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/inode.c * * Copyright (C) 1991, 1992 Linus Torvalds * * 64-bit file support on 64-b...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_1819_3
crossvul-cpp_data_bad_3720_0
/* * linux/mm/madvise.c * * Copyright (C) 1999 Linus Torvalds * Copyright (C) 2002 Christoph Hellwig */ #include <linux/mman.h> #include <linux/pagemap.h> #include <linux/syscalls.h> #include <linux/mempolicy.h> #include <linux/page-isolation.h> #include <linux/hugetlb.h> #include <linux/falloc.h> #include <lin...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_3720_0
crossvul-cpp_data_good_1664_2
/* BEGIN_ICS_COPYRIGHT5 **************************************** Copyright (c) 2015, Intel Corporation Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright no...
./CrossVul/dataset_final_sorted/CWE-362/c/good_1664_2
crossvul-cpp_data_good_3159_0
/* * 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 * Copyright © 2009 Paul Mackerras, IBM Corp. <paulus@au1.ibm.com> * * For licensing details see kernel...
./CrossVul/dataset_final_sorted/CWE-362/c/good_3159_0
crossvul-cpp_data_bad_4962_0
/* * Timers abstract layer * Copyright (c) by Jaroslav Kysela <perex@perex.cz> * * * 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 you...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_4962_0
crossvul-cpp_data_bad_4883_0
/* * Copyright (c) 2000-2005 Silicon Graphics, Inc. * All Rights Reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation. * * This program is distributed in the hope that it would be ...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_4883_0
crossvul-cpp_data_good_4883_0
/* * Copyright (c) 2000-2005 Silicon Graphics, Inc. * All Rights Reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation. * * This program is distributed in the hope that it would be ...
./CrossVul/dataset_final_sorted/CWE-362/c/good_4883_0
crossvul-cpp_data_good_5214_0
/* * linux/fs/ioctl.c * * Copyright (C) 1991, 1992 Linus Torvalds */ #include <linux/syscalls.h> #include <linux/mm.h> #include <linux/capability.h> #include <linux/file.h> #include <linux/fs.h> #include <linux/security.h> #include <linux/export.h> #include <linux/uaccess.h> #include <linux/writeback.h> #includ...
./CrossVul/dataset_final_sorted/CWE-362/c/good_5214_0
crossvul-cpp_data_bad_1496_1
/* ssl/s3_clnt.c */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * * This package is an SSL implementation written * by Eric Young (eay@cryptsoft.com). * The implementation was written so as to conform with Netscapes SSL. * * This library is free for commercial and non-commerc...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_1496_1
crossvul-cpp_data_good_2114_0
/* * Copyright (c) 2008-2011 Atheros Communications Inc. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" A...
./CrossVul/dataset_final_sorted/CWE-362/c/good_2114_0
crossvul-cpp_data_bad_3275_3
/* * Copyright (C) 2008 Red Hat, Inc., Eric Paris <eparis@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 Foundation; either version 2, or (at your option) * any later version. * ...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_3275_3
crossvul-cpp_data_good_2215_1
/* * Routines for driver control interface * Copyright (c) by Jaroslav Kysela <perex@perex.cz> * * * 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,...
./CrossVul/dataset_final_sorted/CWE-362/c/good_2215_1
crossvul-cpp_data_bad_3726_2
/* * net/dccp/ipv4.c * * An implementation of the DCCP protocol * Arnaldo Carvalho de Melo <acme@conectiva.com.br> * * 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-362/c/bad_3726_2
crossvul-cpp_data_good_1496_2
/* ssl/ssl_err.c */ /* ==================================================================== * Copyright (c) 1999-2015 The OpenSSL Project. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * ...
./CrossVul/dataset_final_sorted/CWE-362/c/good_1496_2
crossvul-cpp_data_good_1404_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-362/c/good_1404_0
crossvul-cpp_data_bad_200_0
/* SPDX-License-Identifier: GPL-2.0 */ /* * vboxguest linux pci driver, char-dev and input-device code, * * Copyright (C) 2006-2016 Oracle Corporation */ #include <linux/input.h> #include <linux/kernel.h> #include <linux/miscdevice.h> #include <linux/module.h> #include <linux/pci.h> #include <linux/poll.h> #includ...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_200_0
crossvul-cpp_data_good_3765_0
/* * Copyright (c) 2003-2006, Cluster File Systems, Inc, info@clusterfs.com * Written by Alex Tomas <alex@clusterfs.com> * * Architecture independence: * Copyright (c) 2005, Bull S.A. * Written by Pierre Peiffer <pierre.peiffer@bull.net> * * This program is free software; you can redistribute it and/or modi...
./CrossVul/dataset_final_sorted/CWE-362/c/good_3765_0
crossvul-cpp_data_good_5572_0
/* * x86 single-step support code, common to 32-bit and 64-bit. */ #include <linux/sched.h> #include <linux/mm.h> #include <linux/ptrace.h> #include <asm/desc.h> unsigned long convert_ip_to_linear(struct task_struct *child, struct pt_regs *regs) { unsigned long addr, seg; addr = regs->ip; seg = regs->cs & 0xffff...
./CrossVul/dataset_final_sorted/CWE-362/c/good_5572_0
crossvul-cpp_data_bad_829_2
/* * fs/userfaultfd.c * * Copyright (C) 2007 Davide Libenzi <davidel@xmailserver.org> * Copyright (C) 2008-2009 Red Hat, Inc. * Copyright (C) 2015 Red Hat, Inc. * * This work is licensed under the terms of the GNU GPL, version 2. See * the COPYING file in the top-level directory. * * Some part derive...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_829_2
crossvul-cpp_data_good_1751_0
/* Userspace key control operations * * Copyright (C) 2004-5 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 Foun...
./CrossVul/dataset_final_sorted/CWE-362/c/good_1751_0
crossvul-cpp_data_good_3459_3
/* * Copyright (C)2003,2004 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 progra...
./CrossVul/dataset_final_sorted/CWE-362/c/good_3459_3
crossvul-cpp_data_good_2872_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. * * PACKET - implements raw packet sockets. * * Authors: Ross Biro * Fred N. van Kempen, <waltje@uWalt.NL.Mugn...
./CrossVul/dataset_final_sorted/CWE-362/c/good_2872_0
crossvul-cpp_data_good_1865_3
/* * Block multiqueue core code * * Copyright (C) 2013-2014 Jens Axboe * Copyright (C) 2013-2014 Christoph Hellwig */ #include <linux/kernel.h> #include <linux/module.h> #include <linux/backing-dev.h> #include <linux/bio.h> #include <linux/blkdev.h> #include <linux/mm.h> #include <linux/init.h> #include <linux/sla...
./CrossVul/dataset_final_sorted/CWE-362/c/good_1865_3
crossvul-cpp_data_good_829_0
/* * Copyright (c) 2005 Topspin Communications. All rights reserved. * Copyright (c) 2005, 2006 Cisco Systems. All rights reserved. * Copyright (c) 2005 Mellanox Technologies. All rights reserved. * Copyright (c) 2005 Voltaire, Inc. All rights reserved. * Copyright (c) 2005 PathScale, Inc. All rights reserved. ...
./CrossVul/dataset_final_sorted/CWE-362/c/good_829_0
crossvul-cpp_data_good_3059_0
/* su for Linux. Run a shell with substitute user and group IDs. Copyright (C) 1992-2006 Free Software Foundation, Inc. Copyright (C) 2012 SUSE Linux Products GmbH, Nuernberg This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as publis...
./CrossVul/dataset_final_sorted/CWE-362/c/good_3059_0
crossvul-cpp_data_good_1757_2
/* * linux/ipc/util.c * Copyright (C) 1992 Krishna Balasubramanian * * Sep 1997 - Call suser() last after "normal" permission checks so we * get BSD style process accounting right. * Occurs in several places in the IPC code. * Chris Evans, <chris@ferret.lmh.ox.ac.uk> * Nov 1999 ...
./CrossVul/dataset_final_sorted/CWE-362/c/good_1757_2
crossvul-cpp_data_good_175_0
/* * NET An implementation of the SOCKET network access protocol. * * Version: @(#)socket.c 1.1.93 18/02/95 * * Authors: Orest Zborowski, <obz@Kodak.COM> * Ross Biro * Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG> * * Fixes: * Anonymous : NOTSOCK/BADF cleanup. Error fix in * shutdown() * Alan Co...
./CrossVul/dataset_final_sorted/CWE-362/c/good_175_0
crossvul-cpp_data_good_1865_1
/* * Fast and scalable bitmap tagging variant. Uses sparser bitmaps spread * over multiple cachelines to avoid ping-pong between multiple submitters * or submitter and completer. Uses rolling wakeups to avoid falling of * the scaling cliff when we run out of tags and have to start putting * submitters to sleep. *...
./CrossVul/dataset_final_sorted/CWE-362/c/good_1865_1
crossvul-cpp_data_bad_3726_3
/* * DCCP over IPv6 * Linux INET6 implementation * * Based on net/dccp6/ipv6.c * * Arnaldo Carvalho de Melo <acme@ghostprotocols.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 Fo...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_3726_3
crossvul-cpp_data_good_3726_2
/* * net/dccp/ipv4.c * * An implementation of the DCCP protocol * Arnaldo Carvalho de Melo <acme@conectiva.com.br> * * 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-362/c/good_3726_2
crossvul-cpp_data_bad_2599_0
/* * platform.c - platform 'pseudo' bus for legacy devices * * Copyright (c) 2002-3 Patrick Mochel * Copyright (c) 2002-3 Open Source Development Labs * * This file is released under the GPLv2 * * Please see Documentation/driver-model/platform.txt for more * information. */ #include <linux/string.h> #include...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_2599_0
crossvul-cpp_data_good_2406_0
/* * Copyright (C) 2007,2008 Oracle. 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 v2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but ...
./CrossVul/dataset_final_sorted/CWE-362/c/good_2406_0
crossvul-cpp_data_good_1757_0
/* * linux/ipc/msg.c * Copyright (C) 1992 Krishna Balasubramanian * * Removed all the remaining kerneld mess * Catch the -EFAULT stuff properly * Use GFP_KERNEL for messages as in 1.2 * Fixed up the unchecked user space derefs * Copyright (C) 1998 Alan Cox & Andi Kleen * * /proc/sysvipc/msg support (c) 1999 D...
./CrossVul/dataset_final_sorted/CWE-362/c/good_1757_0
crossvul-cpp_data_good_4961_0
/* * ALSA sequencer Timing queue handling * Copyright (c) 1998-1999 by Frank van de Pol <fvdpol@coil.demon.nl> * * 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-362/c/good_4961_0
crossvul-cpp_data_good_2215_2
/* * Initialization routines * Copyright (c) by Jaroslav Kysela <perex@perex.cz> * * * 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 y...
./CrossVul/dataset_final_sorted/CWE-362/c/good_2215_2
crossvul-cpp_data_good_3726_4
/* * 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. * * PF_INET protocol family socket handler. * * Authors: Ross Biro * Fred N. van Kempen, <waltje@uWalt.NL.Mugn...
./CrossVul/dataset_final_sorted/CWE-362/c/good_3726_4
crossvul-cpp_data_bad_1595_0
/* * 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-362/c/bad_1595_0
crossvul-cpp_data_bad_677_1
/* * Interrupt descriptor table related code * * This file is licensed under the GPL V2 */ #include <linux/interrupt.h> #include <asm/traps.h> #include <asm/proto.h> #include <asm/desc.h> struct idt_data { unsigned int vector; unsigned int segment; struct idt_bits bits; const void *addr; }; #define DPL0 0x0...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_677_1
crossvul-cpp_data_bad_1757_2
/* * linux/ipc/util.c * Copyright (C) 1992 Krishna Balasubramanian * * Sep 1997 - Call suser() last after "normal" permission checks so we * get BSD style process accounting right. * Occurs in several places in the IPC code. * Chris Evans, <chris@ferret.lmh.ox.ac.uk> * Nov 1999 ...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_1757_2
crossvul-cpp_data_bad_677_2
/* * Copyright (C) 1991, 1992 Linus Torvalds * Copyright (C) 2000, 2001, 2002 Andi Kleen, SuSE Labs * * Pentium III FXSR, SSE support * Gareth Hughes <gareth@valinux.com>, May 2000 */ /* * Handle hardware traps and faults. */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/context_tracking.h>...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_677_2
crossvul-cpp_data_bad_5572_2
/* * 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-362/c/bad_5572_2
crossvul-cpp_data_bad_2116_0
/* * Copyright 2002-2005, Instant802 Networks, Inc. * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz> * * 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/module....
./CrossVul/dataset_final_sorted/CWE-362/c/bad_2116_0
crossvul-cpp_data_good_1819_2
/* * 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-362/c/good_1819_2
crossvul-cpp_data_bad_1664_3
/* BEGIN_ICS_COPYRIGHT5 **************************************** Copyright (c) 2015, Intel Corporation Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright no...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_1664_3
crossvul-cpp_data_bad_4741_0
/* * Copyright (C) 1991, 1992 Linus Torvalds */ /* * 'tty_io.c' gives an orthogonal feeling to tty's, be they consoles * or rs-channels. It also implements echoing, cooked mode etc. * * Kill-line thanks to John T Kohl, who also corrected VMIN = VTIME = 0. * * Modified by Theodore Ts'o, 9/14/92, to dynamicall...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_4741_0
crossvul-cpp_data_bad_2871_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. * * PACKET - implements raw packet sockets. * * Authors: Ross Biro * Fred N. van Kempen, <waltje@uWalt.NL.Mugn...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_2871_0
crossvul-cpp_data_bad_2406_0
/* * Copyright (C) 2007,2008 Oracle. 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 v2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but ...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_2406_0
crossvul-cpp_data_good_1768_0
/* * Copyright (c) 2006 Oracle. 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 source tree, or t...
./CrossVul/dataset_final_sorted/CWE-362/c/good_1768_0
crossvul-cpp_data_good_840_1
/* * Copyright (c) 2015-present, Yann Collet, Facebook, Inc. * All rights reserved. * * This source code is licensed under both the BSD-style license (found in the * LICENSE file in the root directory of this source tree) and the GPLv2 (found * in the COPYING file in the root directory of this source tree). * Yo...
./CrossVul/dataset_final_sorted/CWE-362/c/good_840_1
crossvul-cpp_data_good_5097_1
#include <linux/kernel.h> #include <linux/errno.h> #include <linux/err.h> #include <linux/spinlock.h> #include <linux/mm.h> #include <linux/memremap.h> #include <linux/pagemap.h> #include <linux/rmap.h> #include <linux/swap.h> #include <linux/swapops.h> #include <linux/sched.h> #include <linux/rwsem.h> #include <linu...
./CrossVul/dataset_final_sorted/CWE-362/c/good_5097_1
crossvul-cpp_data_bad_175_0
/* * NET An implementation of the SOCKET network access protocol. * * Version: @(#)socket.c 1.1.93 18/02/95 * * Authors: Orest Zborowski, <obz@Kodak.COM> * Ross Biro * Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG> * * Fixes: * Anonymous : NOTSOCK/BADF cleanup. Error fix in * shutdown() * Alan Co...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_175_0
crossvul-cpp_data_good_5704_0
/* * fs/cifs/transport.c * * Copyright (C) International Business Machines Corp., 2002,2008 * Author(s): Steve French (sfrench@us.ibm.com) * Jeremy Allison (jra@samba.org) 2006. * * This library is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General P...
./CrossVul/dataset_final_sorted/CWE-362/c/good_5704_0
crossvul-cpp_data_bad_5704_0
/* * fs/cifs/transport.c * * Copyright (C) International Business Machines Corp., 2002,2008 * Author(s): Steve French (sfrench@us.ibm.com) * Jeremy Allison (jra@samba.org) 2006. * * This library is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General P...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_5704_0
crossvul-cpp_data_good_5221_1
/* Copyright (c) 2000, 2010, Oracle and/or its affiliates Copyright (c) 2009, 2016, MariaDB 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. This program is d...
./CrossVul/dataset_final_sorted/CWE-362/c/good_5221_1
crossvul-cpp_data_good_3459_0
/* * 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-362/c/good_3459_0
crossvul-cpp_data_bad_829_1
// SPDX-License-Identifier: GPL-2.0 #include <linux/mm.h> #include <linux/vmacache.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/mempoli...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_829_1
crossvul-cpp_data_good_5186_0
/* * IOCTL interface for SCLP * * Copyright IBM Corp. 2012 * * Author: Michael Holzheu <holzheu@linux.vnet.ibm.com> */ #include <linux/compat.h> #include <linux/uaccess.h> #include <linux/miscdevice.h> #include <linux/gfp.h> #include <linux/module.h> #include <linux/ioctl.h> #include <linux/fs.h> #include <asm/c...
./CrossVul/dataset_final_sorted/CWE-362/c/good_5186_0
crossvul-cpp_data_good_4423_0
// SPDX-License-Identifier: GPL-2.0-only /* * Xen event channels * * Xen models interrupts with abstract event channels. Because each * domain gets 1024 event channels, but NR_IRQ is not that large, we * must dynamically map irqs<->event channels. The event channels * interface with the rest of the kernel by de...
./CrossVul/dataset_final_sorted/CWE-362/c/good_4423_0
crossvul-cpp_data_bad_2406_3
/* * Copyright (C) 2007 Red Hat. 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 v2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITH...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_2406_3
crossvul-cpp_data_bad_2406_2
/* * Copyright (C) 2007 Oracle. 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 v2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHO...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_2406_2
crossvul-cpp_data_good_1819_1
/* * Copyright (c) 2003-2006, Cluster File Systems, Inc, info@clusterfs.com * Written by Alex Tomas <alex@clusterfs.com> * * Architecture independence: * Copyright (c) 2005, Bull S.A. * Written by Pierre Peiffer <pierre.peiffer@bull.net> * * This program is free software; you can redistribute it and/or modi...
./CrossVul/dataset_final_sorted/CWE-362/c/good_1819_1
crossvul-cpp_data_bad_1768_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-362/c/bad_1768_0
crossvul-cpp_data_bad_3971_0
/* * OpenVPN -- An application to securely tunnel IP networks * over a single TCP/UDP port, with support for SSL/TLS-based * session authentication and key exchange, * packet encryption, packet authentication, and * packet compression. * * Copyright (C) 2002-2018...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_3971_0
crossvul-cpp_data_good_1768_1
/* * Copyright (c) 2006 Oracle. 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 source tree, or t...
./CrossVul/dataset_final_sorted/CWE-362/c/good_1768_1
crossvul-cpp_data_bad_3430_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-362/c/bad_3430_0
crossvul-cpp_data_bad_2114_0
/* * Copyright (c) 2008-2011 Atheros Communications Inc. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" A...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_2114_0
crossvul-cpp_data_good_5222_2
/* Copyright (c) 2000, 2016, Oracle and/or its affiliates. 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; version 2 of the License. This program is distributed in t...
./CrossVul/dataset_final_sorted/CWE-362/c/good_5222_2
crossvul-cpp_data_good_200_0
/* SPDX-License-Identifier: GPL-2.0 */ /* * vboxguest linux pci driver, char-dev and input-device code, * * Copyright (C) 2006-2016 Oracle Corporation */ #include <linux/input.h> #include <linux/kernel.h> #include <linux/miscdevice.h> #include <linux/module.h> #include <linux/pci.h> #include <linux/poll.h> #includ...
./CrossVul/dataset_final_sorted/CWE-362/c/good_200_0
crossvul-cpp_data_bad_5186_0
/* * IOCTL interface for SCLP * * Copyright IBM Corp. 2012 * * Author: Michael Holzheu <holzheu@linux.vnet.ibm.com> */ #include <linux/compat.h> #include <linux/uaccess.h> #include <linux/miscdevice.h> #include <linux/gfp.h> #include <linux/module.h> #include <linux/ioctl.h> #include <linux/fs.h> #include <asm/c...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_5186_0
crossvul-cpp_data_bad_1865_1
/* * Fast and scalable bitmap tagging variant. Uses sparser bitmaps spread * over multiple cachelines to avoid ping-pong between multiple submitters * or submitter and completer. Uses rolling wakeups to avoid falling of * the scaling cliff when we run out of tags and have to start putting * submitters to sleep. *...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_1865_1
crossvul-cpp_data_good_2160_0
/* * 8253/8254 interval timer emulation * * Copyright (c) 2003-2004 Fabrice Bellard * Copyright (c) 2006 Intel Corporation * Copyright (c) 2007 Keir Fraser, XenSource Inc * Copyright (c) 2008 Intel Corporation * Copyright 2009 Red Hat, Inc. and/or its affiliates. * * Permission is hereby granted, free of charg...
./CrossVul/dataset_final_sorted/CWE-362/c/good_2160_0
crossvul-cpp_data_good_3459_2
/* * 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-362/c/good_3459_2
crossvul-cpp_data_bad_3726_4
/* * 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. * * PF_INET protocol family socket handler. * * Authors: Ross Biro * Fred N. van Kempen, <waltje@uWalt.NL.Mugn...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_3726_4
crossvul-cpp_data_bad_5221_1
/* Copyright (c) 2000, 2010, Oracle and/or its affiliates 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. This program is distributed in the hope that it wil...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_5221_1
crossvul-cpp_data_good_840_0
/* * Copyright (c) 2016-present, Yann Collet, Facebook, Inc. * All rights reserved. * * This source code is licensed under both the BSD-style license (found in the * LICENSE file in the root directory of this source tree) and the GPLv2 (found * in the COPYING file in the root directory of this source tree). * Yo...
./CrossVul/dataset_final_sorted/CWE-362/c/good_840_0
crossvul-cpp_data_bad_836_0
/* * Copyright (c) 2006, 2018 Oracle and/or its affiliates. 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 director...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_836_0
crossvul-cpp_data_good_3275_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-362/c/good_3275_2
crossvul-cpp_data_good_2386_0
/* Key garbage collector * * Copyright (C) 2009-2011 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 Licence * as published by the Free Software Foundation; ...
./CrossVul/dataset_final_sorted/CWE-362/c/good_2386_0
crossvul-cpp_data_good_5222_5
/* Copyright (c) 2000, 2016, Oracle and/or its affiliates. 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; version 2 of the License. This program is distributed in t...
./CrossVul/dataset_final_sorted/CWE-362/c/good_5222_5
crossvul-cpp_data_good_2034_0
/* * n_tty.c --- implements the N_TTY line discipline. * * This code used to be in tty_io.c, but things are getting hairy * enough that it made sense to split things off. (The N_TTY * processing has changed so much that it's hardly recognizable, * anyway...) * * Note that the open routine for N_TTY is guarante...
./CrossVul/dataset_final_sorted/CWE-362/c/good_2034_0
crossvul-cpp_data_good_1496_4
/* ssl/ssl_sess.c */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * * This package is an SSL implementation written * by Eric Young (eay@cryptsoft.com). * The implementation was written so as to conform with Netscapes SSL. * * This library is free for commercial and non-commer...
./CrossVul/dataset_final_sorted/CWE-362/c/good_1496_4
crossvul-cpp_data_good_2116_0
/* * Copyright 2002-2005, Instant802 Networks, Inc. * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz> * * 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/module....
./CrossVul/dataset_final_sorted/CWE-362/c/good_2116_0
crossvul-cpp_data_bad_3459_2
/* * 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-362/c/bad_3459_2
crossvul-cpp_data_good_2406_2
/* * Copyright (C) 2007 Oracle. 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 v2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHO...
./CrossVul/dataset_final_sorted/CWE-362/c/good_2406_2
crossvul-cpp_data_bad_1664_2
/* BEGIN_ICS_COPYRIGHT5 **************************************** Copyright (c) 2015, Intel Corporation Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright no...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_1664_2
crossvul-cpp_data_good_1664_1
/* BEGIN_ICS_COPYRIGHT5 **************************************** Copyright (c) 2015, Intel Corporation Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright no...
./CrossVul/dataset_final_sorted/CWE-362/c/good_1664_1
crossvul-cpp_data_bad_2116_2
/* * Copyright 2002-2005, Instant802 Networks, Inc. * Copyright 2005-2006, Devicescape Software, Inc. * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz> * Copyright 2007 Johannes Berg <johannes@sipsolutions.net> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_2116_2
crossvul-cpp_data_bad_4423_0
// SPDX-License-Identifier: GPL-2.0-only /* * Xen event channels * * Xen models interrupts with abstract event channels. Because each * domain gets 1024 event channels, but NR_IRQ is not that large, we * must dynamically map irqs<->event channels. The event channels * interface with the rest of the kernel by de...
./CrossVul/dataset_final_sorted/CWE-362/c/bad_4423_0
crossvul-cpp_data_good_3720_0
/* * linux/mm/madvise.c * * Copyright (C) 1999 Linus Torvalds * Copyright (C) 2002 Christoph Hellwig */ #include <linux/mman.h> #include <linux/pagemap.h> #include <linux/syscalls.h> #include <linux/mempolicy.h> #include <linux/page-isolation.h> #include <linux/hugetlb.h> #include <linux/falloc.h> #include <lin...
./CrossVul/dataset_final_sorted/CWE-362/c/good_3720_0
crossvul-cpp_data_good_5222_4
/* Copyright (c) 2000, 2016, Oracle and/or its affiliates. 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; version 2 of the License. This program is distributed i...
./CrossVul/dataset_final_sorted/CWE-362/c/good_5222_4