id
stringlengths
25
30
content
stringlengths
14
942k
max_stars_repo_path
stringlengths
49
55
crossvul-cpp_data_good_4731_0
/* * Video capture interface for Linux version 2 * * A generic framework to process V4L2 ioctl commands. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the Licen...
./CrossVul/dataset_final_sorted/CWE-399/c/good_4731_0
crossvul-cpp_data_bad_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/bad_2376_0
crossvul-cpp_data_good_1033_0
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2000-2005 Silicon Graphics, Inc. * All Rights Reserved. */ #include "xfs.h" #include "xfs_fs.h" #include "xfs_shared.h" #include "xfs_format.h" #include "xfs_log_format.h" #include "xfs_trans_resv.h" #include "xfs_mount.h" #include "xfs_inode.h" #include "xfs_ac...
./CrossVul/dataset_final_sorted/CWE-399/c/good_1033_0
crossvul-cpp_data_good_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/good_2392_5
crossvul-cpp_data_bad_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/bad_2297_2
crossvul-cpp_data_good_4815_2
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-399/c/good_4815_2
crossvul-cpp_data_bad_2392_3
/* * 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_2392_3
crossvul-cpp_data_bad_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/bad_5352_0
crossvul-cpp_data_good_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/good_2144_8
crossvul-cpp_data_good_5722_0
/* * IPv6 output functions * Linux INET6 implementation * * Authors: * Pedro Roque <roque@di.fc.ul.pt> * * Based on linux/net/ipv4/ip_output.c * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free ...
./CrossVul/dataset_final_sorted/CWE-399/c/good_5722_0
crossvul-cpp_data_bad_3486_1
/* * ARMv6 Performance counter handling code. * * Copyright (C) 2009 picoChip Designs, Ltd., Jamie Iles * * ARMv6 has 2 configurable performance counters and a single cycle counter. * They all share a single reset bit but can be written to zero so we can use * that for a reset. * * The counters can't be indivi...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_3486_1
crossvul-cpp_data_good_1774_0
/* * 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/good_1774_0
crossvul-cpp_data_bad_3622_3
/* * 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/bad_3622_3
crossvul-cpp_data_good_3532_0
/* * 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_3532_0
crossvul-cpp_data_good_5717_0
/* Copyright (C) 2009 Red Hat, Inc. * Author: Michael S. Tsirkin <mst@redhat.com> * * This work is licensed under the terms of the GNU GPL, version 2. * * virtio-net server in host kernel. */ #include <linux/compat.h> #include <linux/eventfd.h> #include <linux/vhost.h> #include <linux/virtio_net.h> #include <lin...
./CrossVul/dataset_final_sorted/CWE-399/c/good_5717_0
crossvul-cpp_data_good_4710_0
/* * event.c Server event handling * * Version: $Id$ * * 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-399/c/good_4710_0
crossvul-cpp_data_bad_5274_1
/*- * Copyright (c) 2003-2011 Tim Kientzle * 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 c...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_5274_1
crossvul-cpp_data_good_2372_0
/* * linux/fs/isofs/rock.c * * (C) 1992, 1993 Eric Youngdale * * Rock Ridge Extensions to iso9660 */ #include <linux/slab.h> #include <linux/pagemap.h> #include "isofs.h" #include "rock.h" /* * These functions are designed to read the system areas of a directory record * and extract relevant information....
./CrossVul/dataset_final_sorted/CWE-399/c/good_2372_0
crossvul-cpp_data_bad_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/bad_1832_0
crossvul-cpp_data_bad_5722_0
/* * IPv6 output functions * Linux INET6 implementation * * Authors: * Pedro Roque <roque@di.fc.ul.pt> * * Based on linux/net/ipv4/ip_output.c * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free ...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_5722_0
crossvul-cpp_data_good_2059_0
/* * wanXL serial card driver for Linux * host part * * Copyright (C) 2003 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 Foundation. * * Status: ...
./CrossVul/dataset_final_sorted/CWE-399/c/good_2059_0
crossvul-cpp_data_bad_3486_11
/* * 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. * * Copyright (C) 1995 - 2000 by Ralf Baechle */ #include <linux/signal.h> #include <linux/sched.h> #include <linux/interrupt.h> #include <li...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_3486_11
crossvul-cpp_data_good_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/good_2039_0
crossvul-cpp_data_bad_5627_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-399/c/bad_5627_1
crossvul-cpp_data_bad_5116_0
/* packet-wbxml.c * * Routines for WAP Binary XML dissection * Copyright 2003, 2004, Olivier Biot. * * Routines for WV-CSP 1.3 dissection * Copyright 2007, Andrei Rubaniuk. * * Refer to the AUTHORS file or the AUTHORS section in the man page * for contacting the author(s) of this file. * * Wireshark - Networ...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_5116_0
crossvul-cpp_data_good_5671_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. * * Routing netlink socket interface: protocol independent part. * * Authors: Alexey Kuznetsov, <kuznet@ms2.inr....
./CrossVul/dataset_final_sorted/CWE-399/c/good_5671_0
crossvul-cpp_data_bad_1059_0
// SPDX-License-Identifier: GPL-2.0 /* * NETLINK Generic Netlink Family * * Authors: Jamal Hadi Salim * Thomas Graf <tgraf@suug.ch> * Johannes Berg <johannes@sipsolutions.net> */ #include <linux/module.h> #include <linux/kernel.h> #include <linux/slab.h> #include <linux/errno.h> #include <linux/typ...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_1059_0
crossvul-cpp_data_bad_1677_0
/* * INET An implementation of the TCP/IP protocol suite for the LINUX * operating system. INET is implemented using the BSD Socket * interface as the means of communication with the user level. * * The User Datagram Protocol (UDP). * * Authors: Ross Biro * Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_1677_0
crossvul-cpp_data_good_1497_0
/* crypto/cms/cms_smime.c */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project. */ /* ==================================================================== * Copyright (c) 2008 The OpenSSL Project. All rights reserved. * * Redistribution and use in source and binary forms, with or wit...
./CrossVul/dataset_final_sorted/CWE-399/c/good_1497_0
crossvul-cpp_data_good_2392_8
/* * 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_2392_8
crossvul-cpp_data_good_3486_22
/* * Page fault handler for SH with an MMU. * * Copyright (C) 1999 Niibe Yutaka * Copyright (C) 2003 - 2009 Paul Mundt * * Based on linux/arch/i386/mm/fault.c: * Copyright (C) 1995 Linus Torvalds * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "C...
./CrossVul/dataset_final_sorted/CWE-399/c/good_3486_22
crossvul-cpp_data_good_5716_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-399/c/good_5716_0
crossvul-cpp_data_bad_3449_0
/* * fs/inotify_user.c - inotify support for userspace * * Authors: * John McCutchan <ttb@tentacle.dhs.org> * Robert Love <rml@novell.com> * * Copyright (C) 2005 John McCutchan * Copyright 2006 Hewlett-Packard Development Company, L.P. * * Copyright (C) 2009 Eric Paris <Red Hat Inc> * inotify was largely rew...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_3449_0
crossvul-cpp_data_bad_5006_0
/* * NET3 IP 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. * * Derived from the...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_5006_0
crossvul-cpp_data_good_1059_0
// SPDX-License-Identifier: GPL-2.0 /* * NETLINK Generic Netlink Family * * Authors: Jamal Hadi Salim * Thomas Graf <tgraf@suug.ch> * Johannes Berg <johannes@sipsolutions.net> */ #include <linux/module.h> #include <linux/kernel.h> #include <linux/slab.h> #include <linux/errno.h> #include <linux/typ...
./CrossVul/dataset_final_sorted/CWE-399/c/good_1059_0
crossvul-cpp_data_good_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/good_1675_1
crossvul-cpp_data_good_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/good_3622_1
crossvul-cpp_data_bad_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/bad_5397_0
crossvul-cpp_data_good_5769_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_5769_0
crossvul-cpp_data_good_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/good_2060_0
crossvul-cpp_data_good_2058_0
/* * FarSync WAN driver for Linux (2.6.x kernel version) * * Actually sync driver for X.21, V.35 and V.24 on FarSync T-series cards * * Copyright (C) 2001-2004 FarSite Communications Ltd. * www.farsite.co.uk * * This program is free software; you can redistribute it and/or * modif...
./CrossVul/dataset_final_sorted/CWE-399/c/good_2058_0
crossvul-cpp_data_good_5366_1
/* 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/good_5366_1
crossvul-cpp_data_good_3486_20
/* * arch/sh/kernel/traps_64.c * * Copyright (C) 2000, 2001 Paolo Alberelli * Copyright (C) 2003, 2004 Paul Mundt * Copyright (C) 2003, 2004 Richard Curnow * * 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 ...
./CrossVul/dataset_final_sorted/CWE-399/c/good_3486_20
crossvul-cpp_data_bad_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/bad_5856_0
crossvul-cpp_data_bad_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/bad_5863_0
crossvul-cpp_data_bad_2172_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. * 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_2172_1
crossvul-cpp_data_good_2275_0
/* * fs/cifs/smb2pdu.c * * Copyright (C) International Business Machines Corp., 2009, 2013 * Etersoft, 2012 * Author(s): Steve French (sfrench@us.ibm.com) * Pavel Shilovsky (pshilovsky@samba.org) 2012 * * Contains the routines for constructing the SMB2 PDUs themselves * *...
./CrossVul/dataset_final_sorted/CWE-399/c/good_2275_0
crossvul-cpp_data_good_931_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-399/c/good_931_0
crossvul-cpp_data_bad_4731_0
/* * Video capture interface for Linux version 2 * * A generic framework to process V4L2 ioctl commands. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the Licen...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_4731_0
crossvul-cpp_data_good_2173_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_2173_0
crossvul-cpp_data_bad_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/bad_2171_1
crossvul-cpp_data_bad_3486_8
/* * 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. * * Copyright (C) 1994 - 1999, 2000, 01, 06 Ralf Baechle * Copyright (C) 1995, 1996 Paul M. Antoine * Copyright (C) 1998 Ulf Carlsson * Cop...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_3486_8
crossvul-cpp_data_good_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/good_5104_0
crossvul-cpp_data_bad_5716_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-399/c/bad_5716_0
crossvul-cpp_data_bad_3486_20
/* * arch/sh/kernel/traps_64.c * * Copyright (C) 2000, 2001 Paolo Alberelli * Copyright (C) 2003, 2004 Paul Mundt * Copyright (C) 2003, 2004 Richard Curnow * * 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 ...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_3486_20
crossvul-cpp_data_bad_2321_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/bad_2321_0
crossvul-cpp_data_good_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/good_5006_2
crossvul-cpp_data_bad_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/bad_5343_0
crossvul-cpp_data_good_5274_1
/*- * Copyright (c) 2003-2011 Tim Kientzle * 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 c...
./CrossVul/dataset_final_sorted/CWE-399/c/good_5274_1
crossvul-cpp_data_bad_5769_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/bad_5769_0
crossvul-cpp_data_bad_944_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_944_1
crossvul-cpp_data_bad_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/bad_5670_0
crossvul-cpp_data_bad_5561_2
/* * Copyright (C) 2004 Andrew Beekhof <andrew@beekhof.net> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. *...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_5561_2
crossvul-cpp_data_bad_4710_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-399/c/bad_4710_0
crossvul-cpp_data_good_5725_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-399/c/good_5725_0
crossvul-cpp_data_bad_1033_0
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2000-2005 Silicon Graphics, Inc. * All Rights Reserved. */ #include "xfs.h" #include "xfs_fs.h" #include "xfs_shared.h" #include "xfs_format.h" #include "xfs_log_format.h" #include "xfs_trans_resv.h" #include "xfs_mount.h" #include "xfs_inode.h" #include "xfs_ac...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_1033_0
crossvul-cpp_data_good_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/good_2272_0
crossvul-cpp_data_good_3486_10
/* * cp1emu.c: a MIPS coprocessor 1 (fpu) instruction emulator * * MIPS floating point support * Copyright (C) 1994-2000 Algorithmics Ltd. * * Kevin D. Kissell, kevink@mips.com and Carsten Langgaard, carstenl@mips.com * Copyright (C) 2000 MIPS Technologies, Inc. * * This program is free software; you can dis...
./CrossVul/dataset_final_sorted/CWE-399/c/good_3486_10
crossvul-cpp_data_good_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/good_3471_2
crossvul-cpp_data_good_5318_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-399/c/good_5318_0
crossvul-cpp_data_good_3617_0
/* * 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-399/c/good_3617_0
crossvul-cpp_data_bad_3471_3
/* * linux/net/sunrpc/sched.c * * Scheduling for synchronous and asynchronous RPC requests. * * Copyright (C) 1996 Olaf Kirch, <okir@monad.swb.de> * * TCP NFS related read + write fixes * (C) 1999 Dave Airlie, University of Limerick, Ireland <airlied@linux.ie> */ #include <linux/module.h> #include <linux/sch...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_3471_3
crossvul-cpp_data_bad_2173_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/bad_2173_0
crossvul-cpp_data_good_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/good_3486_17
crossvul-cpp_data_good_3486_3
/* * ARMv5 [xscale] Performance counter handling code. * * Copyright (C) 2010, ARM Ltd., Will Deacon <will.deacon@arm.com> * * Based on the previous xscale OProfile code. * * There are two variants of the xscale PMU that we support: * - xscale1pmu: 2 event counters and a cycle counter * - xscale2pmu: 4 event...
./CrossVul/dataset_final_sorted/CWE-399/c/good_3486_3
crossvul-cpp_data_good_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/good_814_0
crossvul-cpp_data_good_3622_3
/* * 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_3622_3
crossvul-cpp_data_bad_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/bad_3486_21
crossvul-cpp_data_good_5650_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-399/c/good_5650_0
crossvul-cpp_data_bad_3432_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/bad_3432_3
crossvul-cpp_data_good_2172_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. * 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/good_2172_1
crossvul-cpp_data_good_1806_0
/* FUSE: Filesystem in Userspace Copyright (C) 2001-2008 Miklos Szeredi <miklos@szeredi.hu> This program can be distributed under the terms of the GNU GPL. See the file COPYING. */ #include "fuse_i.h" #include <linux/pagemap.h> #include <linux/slab.h> #include <linux/kernel.h> #include <linux/sched.h> #incl...
./CrossVul/dataset_final_sorted/CWE-399/c/good_1806_0
crossvul-cpp_data_good_3574_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/good_3574_0
crossvul-cpp_data_good_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/good_3640_2
crossvul-cpp_data_bad_3486_22
/* * Page fault handler for SH with an MMU. * * Copyright (C) 1999 Niibe Yutaka * Copyright (C) 2003 - 2009 Paul Mundt * * Based on linux/arch/i386/mm/fault.c: * Copyright (C) 1995 Linus Torvalds * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "C...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_3486_22
crossvul-cpp_data_bad_1414_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_1414_0
crossvul-cpp_data_good_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/good_2296_0
crossvul-cpp_data_bad_5717_0
/* Copyright (C) 2009 Red Hat, Inc. * Author: Michael S. Tsirkin <mst@redhat.com> * * This work is licensed under the terms of the GNU GPL, version 2. * * virtio-net server in host kernel. */ #include <linux/compat.h> #include <linux/eventfd.h> #include <linux/vhost.h> #include <linux/virtio_net.h> #include <lin...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_5717_0
crossvul-cpp_data_good_5561_0
/* * Copyright (C) 2004 Andrew Beekhof <andrew@beekhof.net> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. *...
./CrossVul/dataset_final_sorted/CWE-399/c/good_5561_0
crossvul-cpp_data_bad_3486_6
/* * linux/arch/arm/mm/fault.c * * Copyright (C) 1995 Linus Torvalds * Modifications for ARM processor (c) 1995-2004 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 Software Foun...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_3486_6
crossvul-cpp_data_bad_3617_0
/* * 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-399/c/bad_3617_0
crossvul-cpp_data_good_905_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-399/c/good_905_1
crossvul-cpp_data_good_5627_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-399/c/good_5627_1
crossvul-cpp_data_bad_924_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_924_0
crossvul-cpp_data_good_2392_3
/* * 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/good_2392_3
crossvul-cpp_data_bad_3532_0
/* * 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_3532_0
crossvul-cpp_data_bad_3486_7
/* * Linux performance counter support for MIPS. * * Copyright (C) 2010 MIPS Technologies, Inc. * Author: Deng-Cheng Zhu * * This code is based on the implementation for ARM, which is in turn * based on the sparc64 perf event code and the x86 code. Performance * counter access is based on the MIPS Oprofile code...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_3486_7
crossvul-cpp_data_good_1675_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-399/c/good_1675_2
crossvul-cpp_data_bad_3427_0
/* * Bridge multicast support. * * Copyright (c) 2010 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 (at yo...
./CrossVul/dataset_final_sorted/CWE-399/c/bad_3427_0
crossvul-cpp_data_good_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/good_2166_1