id
stringlengths
25
30
content
stringlengths
14
942k
max_stars_repo_path
stringlengths
49
55
crossvul-cpp_data_good_2322_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-399/c/good_2322_0
crossvul-cpp_data_good_5397_0
/* * /proc/sys support */ #include <linux/init.h> #include <linux/sysctl.h> #include <linux/poll.h> #include <linux/proc_fs.h> #include <linux/printk.h> #include <linux/security.h> #include <linux/sched.h> #include <linux/namei.h> #include <linux/mm.h> #include <linux/module.h> #include "internal.h" static const str...
./CrossVul/dataset_final_sorted/CWE-399/c/good_5397_0
crossvul-cpp_data_bad_2296_0
/* * Copyright (c) Christos Zoulas 2003. * 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 * notice immediately at t...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_2296_0
crossvul-cpp_data_bad_2272_0
/* * inode.c * * PURPOSE * Inode handling routines for the OSTA-UDF(tm) filesystem. * * COPYRIGHT * This file is distributed under the terms of the GNU General Public * License (GPL). Copies of the GPL can be obtained from: * ftp://prep.ai.mit.edu/pub/gnu/GPL * Each contributing author retains all righ...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_2272_0
crossvul-cpp_data_bad_909_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_909_0
crossvul-cpp_data_bad_2039_0
/*- * Copyright (c) 2008 Christos Zoulas * 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 * notice, this list of con...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_2039_0
crossvul-cpp_data_bad_2147_0
/* * Copyright (c) Ian F. Darwin 1986-1995. * Software written by Ian F. Darwin and others; * maintained 1995-present by Christos Zoulas and others. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistr...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_2147_0
crossvul-cpp_data_bad_1675_1
/* * Kernel-based Virtual Machine driver for Linux * * AMD SVM support * * Copyright (C) 2006 Qumranet, Inc. * Copyright 2010 Red Hat, Inc. and/or its affiliates. * * Authors: * Yaniv Kamay <yaniv@qumranet.com> * Avi Kivity <avi@qumranet.com> * * This work is licensed under the terms of the GNU GPL, ...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_1675_1
crossvul-cpp_data_good_5670_0
/* * Copyright (c) 2008-2011, 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...
./CrossVul/dataset_final_sorted/CWE-399/c/good_5670_0
crossvul-cpp_data_good_3463_0
/* * Monkey's Audio APE demuxer * Copyright (c) 2007 Benjamin Zores <ben@geexbox.org> * based upon libdemac from Dave Chapman. * * This file is part of FFmpeg. * * FFmpeg 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...
./CrossVul/dataset_final_sorted/CWE-399/c/good_3463_0
crossvul-cpp_data_good_3486_5
/* * linux/arch/arm/kernel/swp_emulate.c * * Copyright (C) 2009 ARM Limited * __user_* functions adapted from include/asm/uaccess.h * * 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 Fou...
./CrossVul/dataset_final_sorted/CWE-399/c/good_3486_5
crossvul-cpp_data_good_5721_2
/* * UDP over IPv6 * Linux INET6 implementation * * Authors: * Pedro Roque <roque@di.fc.ul.pt> * * Based on linux/ipv4/udp.c * * Fixes: * Hideaki YOSHIFUJI : sin6_scope_id support * YOSHIFUJI Hideaki @USAGI and: Support IPV6_V6ONLY socket option, which * Alexey Kuznetsov allow both IPv4 and IPv6 sockets t...
./CrossVul/dataset_final_sorted/CWE-399/c/good_5721_2
crossvul-cpp_data_good_2297_2
/* * Copyright (c) Ian F. Darwin 1986-1995. * Software written by Ian F. Darwin and others; * maintained 1995-present by Christos Zoulas and others. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistr...
./CrossVul/dataset_final_sorted/CWE-399/c/good_2297_2
crossvul-cpp_data_bad_4984_4
/* * 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-399/c/bad_4984_4
crossvul-cpp_data_bad_905_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_905_1
crossvul-cpp_data_bad_3640_2
/* * Generic hugetlb support. * (C) William Irwin, April 2004 */ #include <linux/list.h> #include <linux/init.h> #include <linux/module.h> #include <linux/mm.h> #include <linux/seq_file.h> #include <linux/sysctl.h> #include <linux/highmem.h> #include <linux/mmu_notifier.h> #include <linux/nodemask.h> #include <linux...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_3640_2
crossvul-cpp_data_good_5825_0
/* * Copyright 2007 Bobby Bingham * Copyright 2012 Robert Nagy <ronag89 gmail com> * Copyright 2012 Anton Khirnov <anton khirnov net> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published ...
./CrossVul/dataset_final_sorted/CWE-399/c/good_5825_0
crossvul-cpp_data_bad_5366_2
/* Copyright 2015 greenbytes GmbH (https://www.greenbytes.de) * * 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 appl...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_5366_2
crossvul-cpp_data_good_1410_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-399/c/good_1410_0
crossvul-cpp_data_good_945_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-399/c/good_945_0
crossvul-cpp_data_good_2297_1
/* * Copyright (c) Christos Zoulas 2003. * 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 * notice immediately at th...
./CrossVul/dataset_final_sorted/CWE-399/c/good_2297_1
crossvul-cpp_data_bad_5367_0
/* $OpenBSD: kex.c,v 1.126 2016/09/28 21:44:52 djm Exp $ */ /* * Copyright (c) 2000, 2001 Markus Friedl. 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 ...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_5367_0
crossvul-cpp_data_good_2376_0
/* Copyright (C) 2013-2014 B.A.T.M.A.N. contributors: * * Martin Hundebøll <martin@hundeboll.net> * * 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 Foundation. * * This program is distr...
./CrossVul/dataset_final_sorted/CWE-399/c/good_2376_0
crossvul-cpp_data_good_3434_0
/* * threads.c: Thread support internal calls * * Author: * Dick Porter (dick@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 <co...
./CrossVul/dataset_final_sorted/CWE-399/c/good_3434_0
crossvul-cpp_data_good_3433_1
/* * metadata/gc.c: GC icalls. * * Author: Paolo Molaro <lupus@ximian.com> * * Copyright 2002-2003 Ximian, Inc (http://www.ximian.com) * Copyright 2004-2009 Novell, Inc (http://www.novell.com) */ #include <config.h> #include <glib.h> #include <string.h> #include <errno.h> #include <mono/metadata/gc-internal.h>...
./CrossVul/dataset_final_sorted/CWE-399/c/good_3433_1
crossvul-cpp_data_bad_1845_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/file.h> #include <linux...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_1845_0
crossvul-cpp_data_good_3520_0
/* * Handle firewalling * Linux ethernet bridge * * Authors: * Lennert Buytenhek <buytenh@gnu.org> * Bart De Schuymer <bdschuym@pandora.be> * * 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-399/c/good_3520_0
crossvul-cpp_data_good_3431_3
/* * reflection.c: Routines for creating an image at runtime. * * Author: * Paolo Molaro (lupus@ximian.com) * * Copyright 2001-2003 Ximian, Inc (http://www.ximian.com) * Copyright 2004-2009 Novell, Inc (http://www.novell.com) * */ #include <config.h> #include "mono/utils/mono-digest.h" #include "mono/utils/...
./CrossVul/dataset_final_sorted/CWE-399/c/good_3431_3
crossvul-cpp_data_bad_1493_0
/* crypto/bn/bn_gf2m.c */ /* ==================================================================== * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. * * The Elliptic Curve Public-Key Crypto Library (ECC Code) included * herein is developed by SUN MICROSYSTEMS, INC., and is contributed * to the OpenSSL pr...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_1493_0
crossvul-cpp_data_bad_5721_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. * * The User Datagram Protocol (UDP). * * Authors: Ross Biro * Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_5721_1
crossvul-cpp_data_good_924_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-399/c/good_924_0
crossvul-cpp_data_good_909_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-399/c/good_909_0
crossvul-cpp_data_good_3486_4
/* * linux/arch/arm/kernel/ptrace.c * * By Ross Biro 1/23/92 * edited by Linus Torvalds * ARM modifications Copyright (C) 2000 Russell King * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Soft...
./CrossVul/dataset_final_sorted/CWE-399/c/good_3486_4
crossvul-cpp_data_good_3486_21
/* * arch/sh/math-emu/math.c * * Copyright (C) 2006 Takashi YOSHII <takasi-y@ops.dti.ne.jp> * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. */ #include <linux/kernel.h> #include <linux/err...
./CrossVul/dataset_final_sorted/CWE-399/c/good_3486_21
crossvul-cpp_data_good_2295_1
/* * Copyright (c) Christos Zoulas 2003. * 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 * notice immediately at t...
./CrossVul/dataset_final_sorted/CWE-399/c/good_2295_1
crossvul-cpp_data_good_3453_0
#include <config.h> #include "ftpd.h" #include "dynamic.h" #include "ftpwho-update.h" #include "globals.h" #include "messages.h" #ifdef WITH_DIRALIASES # include "diraliases.h" #endif #ifdef WITH_TLS # include "tls.h" #endif #ifdef WITH_DMALLOC # include <dmalloc.h> #endif static void antiidle(void) { if (noopid...
./CrossVul/dataset_final_sorted/CWE-399/c/good_3453_0
crossvul-cpp_data_bad_3432_4
/* * runtime.c: Runtime functions * * Authors: * Jonathan Pryor * * Copyright 2010 Novell, Inc (http://www.novell.com) */ #include <config.h> #include <glib.h> #include <mono/metadata/appdomain.h> #include <mono/metadata/class.h> #include <mono/metadata/class-internals.h> #include <mono/metadata/runtime.h> ...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_3432_4
crossvul-cpp_data_good_3486_16
/* * PowerPC version * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * Derived from "arch/i386/mm/fault.c" * Copyright (C) 1991, 1992, 1993, 1994 Linus Torvalds * * Modified by Cort Dougan and Paul Mackerras. * * Modified for PPC64 by Dave Engebretsen (engebret@ibm.com) * * This progra...
./CrossVul/dataset_final_sorted/CWE-399/c/good_3486_16
crossvul-cpp_data_bad_2393_0
/* * Copyright (c) Christos Zoulas 2003. * 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 * notice immediately at t...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_2393_0
crossvul-cpp_data_bad_3471_0
/* * linux/fs/lockd/clntproc.c * * RPC procedures for the client side NLM implementation * * Copyright (C) 1996, Olaf Kirch <okir@monad.swb.de> */ #include <linux/module.h> #include <linux/slab.h> #include <linux/types.h> #include <linux/errno.h> #include <linux/fs.h> #include <linux/nfs_fs.h> #include <linux/ut...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_3471_0
crossvul-cpp_data_bad_946_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_946_0
crossvul-cpp_data_good_2171_1
/* SCTP kernel implementation * (C) Copyright IBM Corp. 2001, 2004 * Copyright (c) 1999-2000 Cisco, Inc. * Copyright (c) 1999-2001 Motorola, Inc. * Copyright (c) 2001 Intel Corp. * Copyright (c) 2001 La Monte H.P. Yarroll * * This file is part of the SCTP kernel implementation * * This module provides the abst...
./CrossVul/dataset_final_sorted/CWE-399/c/good_2171_1
crossvul-cpp_data_good_4966_3
/* * NET4: Implementation of BSD Unix domain sockets. * * Authors: Alan Cox, <alan@lxorguk.ukuu.org.uk> * * 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 Li...
./CrossVul/dataset_final_sorted/CWE-399/c/good_4966_3
crossvul-cpp_data_bad_2289_0
/* SCTP kernel implementation * (C) Copyright IBM Corp. 2001, 2004 * Copyright (c) 1999-2000 Cisco, Inc. * Copyright (c) 1999-2001 Motorola, Inc. * Copyright (c) 2001-2002 Intel Corp. * * This file is part of the SCTP kernel implementation * * These functions work with the state functions in sctp_sm_statefuns.c...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_2289_0
crossvul-cpp_data_bad_5825_0
/* * Copyright 2007 Bobby Bingham * Copyright 2012 Robert Nagy <ronag89 gmail com> * Copyright 2012 Anton Khirnov <anton khirnov net> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published ...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_5825_0
crossvul-cpp_data_good_946_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-399/c/good_946_0
crossvul-cpp_data_bad_4709_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-399/c/bad_4709_0
crossvul-cpp_data_good_5625_0
/* * linux/fs/ext4/namei.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/namei.c * * Copyright (C) 1991, 1992 Linus Torvalds * * Big-endian to little-endian...
./CrossVul/dataset_final_sorted/CWE-399/c/good_5625_0
crossvul-cpp_data_bad_3520_0
/* * Handle firewalling * Linux ethernet bridge * * Authors: * Lennert Buytenhek <buytenh@gnu.org> * Bart De Schuymer <bdschuym@pandora.be> * * 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-399/c/bad_3520_0
crossvul-cpp_data_good_2289_0
/* SCTP kernel implementation * (C) Copyright IBM Corp. 2001, 2004 * Copyright (c) 1999-2000 Cisco, Inc. * Copyright (c) 1999-2001 Motorola, Inc. * Copyright (c) 2001-2002 Intel Corp. * * This file is part of the SCTP kernel implementation * * These functions work with the state functions in sctp_sm_statefuns.c...
./CrossVul/dataset_final_sorted/CWE-399/c/good_2289_0
crossvul-cpp_data_good_3846_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. * * Implementation of the Transmission Control Protocol(TCP). * * Authors: Ross Biro * Fred N. van Kempen, <wa...
./CrossVul/dataset_final_sorted/CWE-399/c/good_3846_0
crossvul-cpp_data_good_946_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-399/c/good_946_1
crossvul-cpp_data_good_5343_0
/* * Copyright (C) 2011 Grigori Goronzy <greg@chown.ath.cx> * * This file is part of libass. * * Permission to use, copy, modify, and 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. * *...
./CrossVul/dataset_final_sorted/CWE-399/c/good_5343_0
crossvul-cpp_data_bad_3763_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-399/c/bad_3763_0
crossvul-cpp_data_good_4984_4
/* * 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-399/c/good_4984_4
crossvul-cpp_data_bad_3471_2
/* * linux/net/sunrpc/clnt.c * * This file contains the high-level RPC interface. * It is modeled as a finite state machine to support both synchronous * and asynchronous requests. * * - RPC header generation and argument serialization. * - Credential refresh. * - TCP connect handling. * - Retry of op...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_3471_2
crossvul-cpp_data_bad_1472_0
/* * CUSE: Character device in Userspace * * Copyright (C) 2008-2009 SUSE Linux Products GmbH * Copyright (C) 2008-2009 Tejun Heo <tj@kernel.org> * * This file is released under the GPLv2. * * CUSE enables character devices to be implemented from userland much * like FUSE allows filesystems. On initializati...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_1472_0
crossvul-cpp_data_bad_3486_15
/* * PowerPC version * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * Derived from "arch/m68k/kernel/ptrace.c" * Copyright (C) 1994 by Hamish Macdonald * Taken from linux/kernel/ptrace.c and modified for M680x0. * linux/kernel/ptrace.c is by Ross Biro 1/23/92, edited by Linus Torvalds * * M...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_3486_15
crossvul-cpp_data_bad_945_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_945_0
crossvul-cpp_data_bad_4815_2
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_4815_2
crossvul-cpp_data_bad_1716_0
/* * Performance counter callchain support - powerpc architecture code * * Copyright © 2009 Paul Mackerras, IBM Corporation. * * 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-399/c/bad_1716_0
crossvul-cpp_data_bad_5006_2
/* (C) 1999-2001 Paul `Rusty' Russell * (C) 2002-2006 Netfilter Core Team <coreteam@netfilter.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include <linux/types.h> ...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_5006_2
crossvul-cpp_data_good_5768_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-399/c/good_5768_0
crossvul-cpp_data_bad_2392_5
/* * Copyright (c) Ian F. Darwin 1986-1995. * Software written by Ian F. Darwin and others; * maintained 1995-present by Christos Zoulas and others. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistr...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_2392_5
crossvul-cpp_data_bad_3486_0
/* * Hardware performance events for the Alpha. * * We implement HW counts on the EV67 and subsequent CPUs only. * * (C) 2010 Michael J. Cree * * Somewhat based on the Sparc code, and to a lesser extent the PowerPC and * ARM code, which are copyright by their respective authors. */ #include <linux/perf_event....
./CrossVul/dataset_final_sorted/CWE-399/c/bad_3486_0
crossvul-cpp_data_good_2262_0
/* * linux/fs/isofs/inode.c * * (C) 1991 Linus Torvalds - minix filesystem * 1992, 1993, 1994 Eric Youngdale Modified for ISO 9660 filesystem. * 1994 Eberhard Mönkeberg - multi session handling. * 1995 Mark Dobie - allow mounting of some weird VideoCDs and PhotoCDs. * 1997 Gordon Chaffee - ...
./CrossVul/dataset_final_sorted/CWE-399/c/good_2262_0
crossvul-cpp_data_bad_2295_1
/* * Copyright (c) Christos Zoulas 2003. * 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 * notice immediately at t...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_2295_1
crossvul-cpp_data_bad_1410_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_1410_0
crossvul-cpp_data_bad_814_0
/*- * Copyright (c) 2004-2013 Tim Kientzle * Copyright (c) 2011-2012,2014 Michihiro NAKAJIMA * Copyright (c) 2013 Konrad Kleine * 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. Redi...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_814_0
crossvul-cpp_data_good_2147_0
/* * Copyright (c) Ian F. Darwin 1986-1995. * Software written by Ian F. Darwin and others; * maintained 1995-present by Christos Zoulas and others. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistr...
./CrossVul/dataset_final_sorted/CWE-399/c/good_2147_0
crossvul-cpp_data_bad_3622_1
/* * 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-399/c/bad_3622_1
crossvul-cpp_data_good_3486_13
/* * Performance event support - powerpc architecture code * * Copyright 2008-2009 Paul Mackerras, IBM Corporation. * * 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 o...
./CrossVul/dataset_final_sorted/CWE-399/c/good_3486_13
crossvul-cpp_data_bad_5104_0
/* packet-dcerpc-spoolss.c * Routines for SMB \PIPE\spoolss packet disassembly * Copyright 2001-2003, Tim Potter <tpot@samba.org> * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * This program is free software; you can redistribute it and/or * m...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_5104_0
crossvul-cpp_data_bad_3486_14
/* * Performance event support - Freescale Embedded Performance Monitor * * Copyright 2008-2009 Paul Mackerras, IBM Corporation. * Copyright 2010 Freescale Semiconductor, Inc. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as pub...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_3486_14
crossvul-cpp_data_good_5856_0
/* * An async IO implementation for Linux * Written by Benjamin LaHaise <bcrl@kvack.org> * * Implements an efficient asynchronous io interface. * * Copyright 2000, 2001, 2002 Red Hat, Inc. All Rights Reserved. * * See ../COPYING for licensing terms. */ #define pr_fmt(fmt) "%s: " fmt, __func__ #include <linux...
./CrossVul/dataset_final_sorted/CWE-399/c/good_5856_0
crossvul-cpp_data_bad_2144_8
/* * Copyright (c) Ian F. Darwin 1986-1995. * Software written by Ian F. Darwin and others; * maintained 1995-present by Christos Zoulas and others. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redist...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_2144_8
crossvul-cpp_data_good_4966_4
/* * NET3: Garbage Collector For AF_UNIX sockets * * Garbage Collector: * Copyright (C) Barak A. Pearlmutter. * Released under the GPL version 2 or later. * * Chopped about by Alan Cox 22/3/96 to make it fit the AF_UNIX socket problem. * If it doesn't work blame me, it worked when Barak sent it. * * Assumptio...
./CrossVul/dataset_final_sorted/CWE-399/c/good_4966_4
crossvul-cpp_data_bad_3486_13
/* * Performance event support - powerpc architecture code * * Copyright 2008-2009 Paul Mackerras, IBM Corporation. * * 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 o...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_3486_13
crossvul-cpp_data_good_3763_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-399/c/good_3763_0
crossvul-cpp_data_bad_3486_17
/* * arch/s390/mm/fault.c * * S390 version * Copyright (C) 1999 IBM Deutschland Entwicklung GmbH, IBM Corporation * Author(s): Hartmut Penner (hp@de.ibm.com) * Ulrich Weigand (uweigand@de.ibm.com) * * Derived from "arch/i386/mm/fault.c" * Copyright (C) 1995 Linus Torvalds */ #inclu...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_3486_17
crossvul-cpp_data_bad_3640_0
/* * hugetlbpage-backed filesystem. Based on ramfs. * * William Irwin, 2002 * * Copyright (C) 2002 Linus Torvalds. */ #include <linux/module.h> #include <linux/thread_info.h> #include <asm/current.h> #include <linux/sched.h> /* remove ASAP */ #include <linux/fs.h> #include <linux/mount.h> #include <linux/file....
./CrossVul/dataset_final_sorted/CWE-399/c/bad_3640_0
crossvul-cpp_data_good_5352_0
/* mpi-pow.c - MPI functions * Copyright (C) 1994, 1996, 1998, 2000 Free Software Foundation, Inc. * * This file is part of GnuPG. * * GnuPG 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-399/c/good_5352_0
crossvul-cpp_data_bad_1713_0
/* Copyright (C) 2009 Red Hat, Inc. * Copyright (C) 2006 Rusty Russell IBM Corporation * * Author: Michael S. Tsirkin <mst@redhat.com> * * Inspiration, some code, and most witty comments come from * Documentation/virtual/lguest/lguest.c, by Rusty Russell * * This work is licensed under the terms of the GNU GPL,...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_1713_0
crossvul-cpp_data_good_4984_1
/* * linux/fs/pipe.c * * Copyright (C) 1991, 1992, 1999 Linus Torvalds */ #include <linux/mm.h> #include <linux/file.h> #include <linux/poll.h> #include <linux/slab.h> #include <linux/module.h> #include <linux/init.h> #include <linux/fs.h> #include <linux/log2.h> #include <linux/mount.h> #include <linux/magic.h...
./CrossVul/dataset_final_sorted/CWE-399/c/good_4984_1
crossvul-cpp_data_good_5863_0
/* * Network Block Device - server * * Copyright 1996-1998 Pavel Machek, distribute under GPL * <pavel@atrey.karlin.mff.cuni.cz> * Copyright 2001-2004 Wouter Verhelst <wouter@debian.org> * Copyright 2002 Anton Altaparmakov <aia21@cam.ac.uk> * * Version 1.0 - hopefully 64-bit-clean * Version 1.1 - merging enha...
./CrossVul/dataset_final_sorted/CWE-399/c/good_5863_0
crossvul-cpp_data_good_1472_0
/* * CUSE: Character device in Userspace * * Copyright (C) 2008-2009 SUSE Linux Products GmbH * Copyright (C) 2008-2009 Tejun Heo <tj@kernel.org> * * This file is released under the GPLv2. * * CUSE enables character devices to be implemented from userland much * like FUSE allows filesystems. On initializati...
./CrossVul/dataset_final_sorted/CWE-399/c/good_1472_0
crossvul-cpp_data_bad_5625_0
/* * linux/fs/ext4/namei.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/namei.c * * Copyright (C) 1991, 1992 Linus Torvalds * * Big-endian to little-endian...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_5625_0
crossvul-cpp_data_good_5627_0
/* * 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-399/c/good_5627_0
crossvul-cpp_data_bad_1677_1
/* * UDP over IPv6 * Linux INET6 implementation * * Authors: * Pedro Roque <roque@di.fc.ul.pt> * * Based on linux/ipv4/udp.c * * Fixes: * Hideaki YOSHIFUJI : sin6_scope_id support * YOSHIFUJI Hideaki @USAGI and: Support IPV6_V6ONLY socket option, which * Alexey Kuznetsov allow both IPv4 and IPv6 sockets t...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_1677_1
crossvul-cpp_data_bad_2166_2
/* SCTP kernel implementation * (C) Copyright IBM Corp. 2001, 2004 * Copyright (c) 1999-2000 Cisco, Inc. * Copyright (c) 1999-2001 Motorola, Inc. * Copyright (c) 2001-2002 Intel Corp. * Copyright (c) 2002 Nokia Corp. * * This is part of the SCTP Linux Kernel Implementation. * * These are the state functio...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_2166_2
crossvul-cpp_data_bad_2060_0
/*****************************************************************************/ /* * yam.c -- YAM radio modem driver. * * Copyright (C) 1998 Frederic Rible F1OAT (frible@teaser.fr) * Adapted from baycom.c driver written by Thomas Sailer (sailer@ife.ee.ethz.ch) * * This program is free software...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_2060_0
crossvul-cpp_data_good_1414_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-399/c/good_1414_0
crossvul-cpp_data_bad_3622_0
/* * kvm_ia64.c: Basic KVM suppport On Itanium series processors * * * Copyright (C) 2007, Intel Corporation. * Xiantao Zhang (xiantao.zhang@intel.com) * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_3622_0
crossvul-cpp_data_good_1832_0
/* * The two pass scaling function is based on: * Filtered Image Rescaling * Based on Gems III * - Schumacher general filtered image rescaling * (pp. 414-424) * by Dale Schumacher * * Additional changes by Ray Gardener, Daylon Graphics Ltd. * December 4, 1999 * * Ported to libgd by Pierre Joye. Support f...
./CrossVul/dataset_final_sorted/CWE-399/c/good_1832_0
crossvul-cpp_data_good_3468_2
/* * Copyright (C) 2009 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. */ #include <linux/mm.h> #include <linux/sched.h> #include <linux/highmem.h> #include <linux/hugetlb.h> #include <linux/mmu_notifier.h> #include <linux/...
./CrossVul/dataset_final_sorted/CWE-399/c/good_3468_2
crossvul-cpp_data_good_3486_15
/* * PowerPC version * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * Derived from "arch/m68k/kernel/ptrace.c" * Copyright (C) 1994 by Hamish Macdonald * Taken from linux/kernel/ptrace.c and modified for M680x0. * linux/kernel/ptrace.c is by Ross Biro 1/23/92, edited by Linus Torvalds * * M...
./CrossVul/dataset_final_sorted/CWE-399/c/good_3486_15
crossvul-cpp_data_bad_5785_0
/* * Copyright (C) 2012 - Virtual Open Systems and Columbia University * Author: Christoffer Dall <c.dall@virtualopensystems.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 Foundati...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_5785_0
crossvul-cpp_data_bad_2166_1
/* SCTP kernel implementation * (C) Copyright IBM Corp. 2001, 2004 * Copyright (c) 1999-2000 Cisco, Inc. * Copyright (c) 1999-2001 Motorola, Inc. * Copyright (c) 2001-2002 Intel Corp. * * This file is part of the SCTP kernel implementation * * These functions work with the state functions in sctp_sm_statefuns.c...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_2166_1
crossvul-cpp_data_bad_3463_0
/* * Monkey's Audio APE demuxer * Copyright (c) 2007 Benjamin Zores <ben@geexbox.org> * based upon libdemac from Dave Chapman. * * This file is part of FFmpeg. * * FFmpeg 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...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_3463_0
crossvul-cpp_data_bad_3575_0
/* * Linux NET3: Internet Group Management Protocol [IGMP] * * This code implements the IGMP protocol as defined in RFC1112. There has * been a further revision of this protocol since which is now supported. * * If you have trouble with this module be careful what gcc you have used, * the older version didn't c...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_3575_0