id stringlengths 25 30 | content stringlengths 14 942k | max_stars_repo_path stringlengths 49 55 |
|---|---|---|
crossvul-cpp_data_bad_5354_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-416/c/bad_5354_0 |
crossvul-cpp_data_bad_819_4 | // SPDX-License-Identifier: GPL-2.0
/*
* ring buffer based function tracer
*
* Copyright (C) 2007-2012 Steven Rostedt <srostedt@redhat.com>
* Copyright (C) 2008 Ingo Molnar <mingo@redhat.com>
*
* Originally taken from the RT patch by:
* Arnaldo Carvalho de Melo <acme@redhat.com>
*
* Based on code from the l... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_819_4 |
crossvul-cpp_data_bad_534_0 | /*
* Serial Attached SCSI (SAS) Expander discovery and configuration
*
* Copyright (C) 2005 Adaptec, Inc. All rights reserved.
* Copyright (C) 2005 Luben Tuikov <luben_tuikov@adaptec.com>
*
* This file is licensed under GPLv2.
*
* This program is free software; you can redistribute it and/or
* modify it under... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_534_0 |
crossvul-cpp_data_bad_819_1 | // SPDX-License-Identifier: GPL-2.0
/*
* 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 <li... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_819_1 |
crossvul-cpp_data_good_820_7 | /*
* Generic hugetlb support.
* (C) Nadia Yvette Chambers, April 2004
*/
#include <linux/list.h>
#include <linux/init.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/pagemap.h>
#inclu... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_820_7 |
crossvul-cpp_data_good_104_0 | /*
* Simple NUMA memory policy for the Linux kernel.
*
* Copyright 2003,2004 Andi Kleen, SuSE Labs.
* (C) Copyright 2005 Christoph Lameter, Silicon Graphics, Inc.
* Subject to the GNU Public License, version 2.
*
* NUMA policy allows the user to give hints in which node(s) memory should
* be allocated.
*
* Su... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_104_0 |
crossvul-cpp_data_good_3243_0 | #include "mongoose.h"
#ifdef MG_MODULE_LINES
#line 1 "mongoose/src/internal.h"
#endif
/*
* Copyright (c) 2014 Cesanta Software Limited
* All rights reserved
*/
#ifndef CS_MONGOOSE_SRC_INTERNAL_H_
#define CS_MONGOOSE_SRC_INTERNAL_H_
/* Amalgamated: #include "common/mg_mem.h" */
#ifndef MBUF_REALLOC
#define MBUF_RE... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_3243_0 |
crossvul-cpp_data_bad_5065_0 | /*
* Generic PPP layer for Linux.
*
* Copyright 1999-2002 Paul Mackerras.
*
* 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... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_5065_0 |
crossvul-cpp_data_bad_1200_0 | /*-
* Copyright (c) 2003-2007 Tim Kientzle
* Copyright (c) 2011 Andres Mejia
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
*... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_1200_0 |
crossvul-cpp_data_good_903_0 | /*
irc-core.c : irssi
Copyright (C) 1999-2000 Timo Sirainen
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 versio... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_903_0 |
crossvul-cpp_data_good_3013_0 | /*
* linux/mm/oom_kill.c
*
* Copyright (C) 1998,2000 Rik van Riel
* Thanks go out to Claus Fischer for some serious inspiration and
* for goading me into coding this file...
* Copyright (C) 2010 Google, Inc.
* Rewritten by David Rientjes
*
* The routines in this file are used to kill a process when
*... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_3013_0 |
crossvul-cpp_data_good_820_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/init.h>
#include <linux/module.h>
#include <linux/poll.h>
#include <linux/sched/signal.h>
#... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_820_0 |
crossvul-cpp_data_bad_1342_2 | /* vi:set ts=8 sts=4 sw=4 noet:
*
* VIM - Vi IMproved by Bram Moolenaar
*
* Do ":help uganda" in Vim to read a list of people who contributed.
* Do ":help credits" in Vim to see a list of people who contributed.
* See README.txt for an overview of the Vim source code.
*/
#include "vim.h"
static void cmd_with_... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_1342_2 |
crossvul-cpp_data_bad_5282_1 | /*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2016 The PHP Group |
+---------... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_5282_1 |
crossvul-cpp_data_bad_3269_0 | /*
* Implements an IPX socket layer.
*
* This code is derived from work by
* Ross Biro : Writing the original IP stack
* Fred Van Kempen : Tidying up the TCP/IP
*
* Many thanks go to Keith Baker, Institute For Industrial Information
* Technology Ltd, Swansea University for allowing me to work on this
* in m... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_3269_0 |
crossvul-cpp_data_good_85_0 | /*
** io.c - IO class
*/
#include "mruby.h"
#include "mruby/array.h"
#include "mruby/class.h"
#include "mruby/data.h"
#include "mruby/hash.h"
#include "mruby/string.h"
#include "mruby/variable.h"
#include "mruby/ext/io.h"
#if MRUBY_RELEASE_NO < 10000
#include "error.h"
#else
#include "mruby/error.h"
#endif
#include ... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_85_0 |
crossvul-cpp_data_good_4817_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-416/c/good_4817_0 |
crossvul-cpp_data_bad_4231_3 | /*
** $Id: lvm.c $
** Lua virtual machine
** See Copyright Notice in lua.h
*/
#define lvm_c
#define LUA_CORE
#include "lprefix.h"
#include <float.h>
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lua.h"
#include "ldebug.h"
#include "ldo.h"
#include "lfunc... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_4231_3 |
crossvul-cpp_data_bad_1390_3 | /* libcomps - C alternative to yum.comps library
* Copyright (C) 2013 Jindrich Luza
*
* 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
* any later versio... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_1390_3 |
crossvul-cpp_data_good_2993_0 | /*
* This is a module which is used for setting the MSS option in TCP packets.
*
* Copyright (C) 2000 Marc Boucher <marc@mbsi.ca>
* Copyright (C) 2007 Patrick McHardy <kaber@trash.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License ... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_2993_0 |
crossvul-cpp_data_bad_584_0 | #include <linux/mount.h>
#include <linux/file.h>
#include <linux/fs.h>
#include <linux/proc_ns.h>
#include <linux/magic.h>
#include <linux/ktime.h>
#include <linux/seq_file.h>
#include <linux/user_namespace.h>
#include <linux/nsfs.h>
#include <linux/uaccess.h>
static struct vfsmount *nsfs_mnt;
static long ns_ioctl(st... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_584_0 |
crossvul-cpp_data_bad_2851_1 | /*
* ALSA sequencer Ports
* Copyright (c) 1998 by Frank van de Pol <fvdpol@coil.demon.nl>
* 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 F... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_2851_1 |
crossvul-cpp_data_bad_820_6 | #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/signal.h>
#include <linux/rwsem.h>
#includ... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_820_6 |
crossvul-cpp_data_bad_2851_0 | /*
* ALSA sequencer Client Manager
* Copyright (c) 1998-2001 by Frank van de Pol <fvdpol@coil.demon.nl>
* Jaroslav Kysela <perex@perex.cz>
* Takashi Iwai <tiwai@suse.de>
*
*
* This program is free software; you can redistribute it and/or modify
* it ... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_2851_0 |
crossvul-cpp_data_bad_916_0 | /*
* Utility functions for x86 operand and address decoding
*
* Copyright (C) Intel Corporation 2017
*/
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/ratelimit.h>
#include <linux/mmu_context.h>
#include <asm/desc_defs.h>
#include <asm/desc.h>
#include <asm/inat.h>
#include <asm/insn.h>
#includ... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_916_0 |
crossvul-cpp_data_bad_5021_2 | /*
* 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-416/c/bad_5021_2 |
crossvul-cpp_data_bad_5021_3 | /*
* PF_INET6 socket protocol family
* Linux INET6 implementation
*
* Authors:
* Pedro Roque <roque@di.fc.ul.pt>
*
* Adapted from linux/net/ipv4/af_inet.c
*
* Fixes:
* piggy, Karl Knutson : Socket protocol table
* Hideaki YOSHIFUJI : sin6_scope_id support
* Arnaldo Melo : check proc_net_create return, cle... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_5021_3 |
crossvul-cpp_data_good_2843_0 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/workqueue.h>
#include <linux/rtnetlink.h>
#include <linux/cache.h>
#include <linux/slab.h>
#include <linux/list.h>
#include <linux/delay.h>
#include <linux/sched.h>
#include <linux/idr.h>
#include <linux/rculist.h>
#include <linux/nsproxy.h>
#include <linux/f... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_2843_0 |
crossvul-cpp_data_good_534_0 | /*
* Serial Attached SCSI (SAS) Expander discovery and configuration
*
* Copyright (C) 2005 Adaptec, Inc. All rights reserved.
* Copyright (C) 2005 Luben Tuikov <luben_tuikov@adaptec.com>
*
* This file is licensed under GPLv2.
*
* This program is free software; you can redistribute it and/or
* modify it under... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_534_0 |
crossvul-cpp_data_bad_3348_5 | /*
Copyright (c) 2014. The YARA Authors. 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 conditions and the followi... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_3348_5 |
crossvul-cpp_data_good_4902_0 | /*
* DBD::mysql - DBI driver for the mysql database
*
* Copyright (c) 2004-2014 Patrick Galbraith
* Copyright (c) 2013-2014 Michiel Beijen
* Copyright (c) 2004-2007 Alexey Stroganov
* Copyright (c) 2003-2005 Rudolf Lippan
* Copyright (c) 1997-2003 Jochen Wiedmann
*
* You may distribute this under th... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_4902_0 |
crossvul-cpp_data_bad_5333_0 | /*
* gendisk handling
*/
#include <linux/module.h>
#include <linux/fs.h>
#include <linux/genhd.h>
#include <linux/kdev_t.h>
#include <linux/kernel.h>
#include <linux/blkdev.h>
#include <linux/backing-dev.h>
#include <linux/init.h>
#include <linux/spinlock.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#i... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_5333_0 |
crossvul-cpp_data_bad_5336_0 | /* tuner-xc2028
*
* Copyright (c) 2007-2008 Mauro Carvalho Chehab (mchehab@infradead.org)
*
* Copyright (c) 2007 Michel Ludwig (michel.ludwig@gmail.com)
* - frontend interface
*
* This code is placed under the terms of the GNU General Public License v2
*/
#include <linux/i2c.h>
#include <asm/div64.h>
#in... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_5336_0 |
crossvul-cpp_data_bad_820_2 | /*
* "splice": joining two ropes together by interweaving their strands.
*
* This is the "extended pipe" functionality, where a pipe is used as
* an arbitrary in-memory buffer. Think of a pipe as a small kernel
* buffer that you can use to transfer data from one end to the other.
*
* The traditional unix read/wr... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_820_2 |
crossvul-cpp_data_good_3399_1 | /* radare - LGPL - Copyright 2011-2017 - earada, pancake */
#include <r_core.h>
#include "r_util.h"
#define is_in_range(at, from, sz) ((at) >= (from) && (at) < ((from) + (sz)))
#define VA_FALSE 0
#define VA_TRUE 1
#define VA_NOREBASE 2
#define IS_MODE_SET(mode) (mode & R_CORE_BIN_SET)
#define IS_MODE_SIMPLE(... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_3399_1 |
crossvul-cpp_data_good_819_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/init.h>
#include <linux/module.h>
#include <linux/poll.h>
#include <linux/sched/signal.h>
#... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_819_0 |
crossvul-cpp_data_bad_5021_4 | /*
* common UDP/RAW code
* Linux INET6 implementation
*
* 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 version
* ... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_5021_4 |
crossvul-cpp_data_good_5021_7 | /*
* IPv6 BSD socket options interface
* Linux INET6 implementation
*
* Authors:
* Pedro Roque <roque@di.fc.ul.pt>
*
* Based on linux/net/ipv4/ip_sockglue.c
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as publishe... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_5021_7 |
crossvul-cpp_data_bad_819_2 | /*
* "splice": joining two ropes together by interweaving their strands.
*
* This is the "extended pipe" functionality, where a pipe is used as
* an arbitrary in-memory buffer. Think of a pipe as a small kernel
* buffer that you can use to transfer data from one end to the other.
*
* The traditional unix read/wr... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_819_2 |
crossvul-cpp_data_bad_5021_9 | /*
* IPv6 Syncookies implementation for the Linux kernel
*
* Authors:
* Glenn Griffin <ggriffin.kernel@gmail.com>
*
* Based on IPv4 implementation by Andi Kleen
* linux/net/ipv4/syncookies.c
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Gene... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_5021_9 |
crossvul-cpp_data_good_4776_1 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_4776_1 |
crossvul-cpp_data_bad_1058_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-416/c/bad_1058_0 |
crossvul-cpp_data_good_2955_0 | /*
* linux/kernel/fork.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*/
/*
* 'fork.c' contains the help-routines for the 'fork' system call
* (see also entry.S and others).
* Fork is rather simple, once you get the hang of it, but the memory
* management can be a bitch. See 'mm/memory.c': 'copy_page_range(... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_2955_0 |
crossvul-cpp_data_bad_3409_1 | /* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_3409_1 |
crossvul-cpp_data_good_4007_0 | // SPDX-License-Identifier: GPL-2.0-or-later
/*
* Budget Fair Queueing (BFQ) I/O scheduler.
*
* Based on ideas and code from CFQ:
* Copyright (C) 2003 Jens Axboe <axboe@kernel.dk>
*
* Copyright (C) 2008 Fabio Checconi <fabio@gandalf.sssup.it>
* Paolo Valente <paolo.valente@unimore.it>
*
* Copyright (C) ... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_4007_0 |
crossvul-cpp_data_good_5065_0 | /*
* Generic PPP layer for Linux.
*
* Copyright 1999-2002 Paul Mackerras.
*
* 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... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_5065_0 |
crossvul-cpp_data_bad_820_7 | /*
* Generic hugetlb support.
* (C) Nadia Yvette Chambers, April 2004
*/
#include <linux/list.h>
#include <linux/init.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/pagemap.h>
#inclu... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_820_7 |
crossvul-cpp_data_good_1017_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% M M AAA TTTTT L AAA BBBB ... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_1017_0 |
crossvul-cpp_data_bad_2955_0 | /*
* linux/kernel/fork.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*/
/*
* 'fork.c' contains the help-routines for the 'fork' system call
* (see also entry.S and others).
* Fork is rather simple, once you get the hang of it, but the memory
* management can be a bitch. See 'mm/memory.c': 'copy_page_range(... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_2955_0 |
crossvul-cpp_data_good_1314_1 | // SPDX-License-Identifier: GPL-2.0
/*
* linux/fs/ext4/super.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 Torvald... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_1314_1 |
crossvul-cpp_data_bad_85_0 | /*
** io.c - IO class
*/
#include "mruby.h"
#include "mruby/array.h"
#include "mruby/class.h"
#include "mruby/data.h"
#include "mruby/hash.h"
#include "mruby/string.h"
#include "mruby/variable.h"
#include "mruby/ext/io.h"
#if MRUBY_RELEASE_NO < 10000
#include "error.h"
#else
#include "mruby/error.h"
#endif
#include ... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_85_0 |
crossvul-cpp_data_good_3409_1 | /* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_3409_1 |
crossvul-cpp_data_bad_2906_0 | /*
* USB Serial Console driver
*
* Copyright (C) 2001 - 2002 Greg Kroah-Hartman (greg@kroah.com)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version
* 2 as published by the Free Software Foundation.
*
* Thanks to Randy Dunlap f... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_2906_0 |
crossvul-cpp_data_bad_4817_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-416/c/bad_4817_0 |
crossvul-cpp_data_good_5334_0 | /*
* fs/ioprio.c
*
* Copyright (C) 2004 Jens Axboe <axboe@kernel.dk>
*
* Helper functions for setting/querying io priorities of processes. The
* system calls closely mimmick getpriority/setpriority, see the man page for
* those. The prio argument is a composite of prio class and prio data, where
* the data argu... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_5334_0 |
crossvul-cpp_data_good_1055_0 | /*
*
* Bluetooth HCI UART driver
*
* Copyright (C) 2000-2001 Qualcomm Incorporated
* Copyright (C) 2002-2003 Maxim Krasnyansky <maxk@qualcomm.com>
* Copyright (C) 2004-2005 Marcel Holtmann <marcel@holtmann.org>
*
*
* This program is free software; you can redistribute it and/or modify
* it under the ... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_1055_0 |
crossvul-cpp_data_good_4841_0 | /*
* L2TPv3 IP encapsulation support
*
* Copyright (c) 2008,2009,2010 Katalix Systems Ltd
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_4841_0 |
crossvul-cpp_data_good_454_0 | /*
* (Tentative) USB Audio Driver for ALSA
*
* Copyright (c) 2002 by Takashi Iwai <tiwai@suse.de>
*
* Many codes borrowed from audio.c by
* Alan Cox (alan@lxorguk.ukuu.org.uk)
* Thomas Sailer (sailer@ife.ee.ethz.ch)
*
* Audio Class 3.0 support by Ruslan Bilovol <ruslan.bilovol@gmail.com>
*
* ... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_454_0 |
crossvul-cpp_data_good_5021_2 | /*
* 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-416/c/good_5021_2 |
crossvul-cpp_data_good_466_0 | /*
* "Real" compatible demuxer.
* Copyright (c) 2000, 2001 Fabrice Bellard
*
* 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 Free Software Foundation; either
* version 2.1 of th... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_466_0 |
crossvul-cpp_data_good_916_0 | /*
* Utility functions for x86 operand and address decoding
*
* Copyright (C) Intel Corporation 2017
*/
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/ratelimit.h>
#include <linux/mmu_context.h>
#include <asm/desc_defs.h>
#include <asm/desc.h>
#include <asm/inat.h>
#include <asm/insn.h>
#includ... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_916_0 |
crossvul-cpp_data_bad_5335_0 | /*
* f_fs.c -- user mode file system API for USB composite function controllers
*
* Copyright (C) 2010 Samsung Electronics
* Author: Michal Nazarewicz <mina86@mina86.com>
*
* Based on inode.c (GadgetFS) which was:
* Copyright (C) 2003-2004 David Brownell
* Copyright (C) 2003 Agilent Technologies
*
* This prog... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_5335_0 |
crossvul-cpp_data_good_2909_0 | /*
* ALSA sequencer device management
* Copyright (c) 1999 by Takashi Iwai <tiwai@suse.de>
*
* 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
* ... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_2909_0 |
crossvul-cpp_data_bad_5173_1 | /*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2015 The PHP Group |
+--------------... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_5173_1 |
crossvul-cpp_data_bad_2909_0 | /*
* ALSA sequencer device management
* Copyright (c) 1999 by Takashi Iwai <tiwai@suse.de>
*
* 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
* ... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_2909_0 |
crossvul-cpp_data_good_4020_2 | /* exif-mnote-data-olympus.c
*
* Copyright (c) 2002, 2003 Lutz Mueller <lutz@users.sourceforge.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the Lice... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_4020_2 |
crossvul-cpp_data_bad_3018_0 | /*
* Copyright (c) 2014-2015 Hisilicon Limited.
*
* 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.
*/
#include <l... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_3018_0 |
crossvul-cpp_data_bad_4218_0 | /*
* ndpi_main.c
*
* Copyright (C) 2011-20 - ntop.org
*
* This file is part of nDPI, an open source deep packet inspection
* library based on the OpenDPI and PACE technology by ipoque GmbH
*
* nDPI is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public Lic... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_4218_0 |
crossvul-cpp_data_good_859_0 | /* $Id: minissdpd.c,v 1.53 2016/03/01 18:06:46 nanard Exp $ */
/* vim: tabstop=4 shiftwidth=4 noexpandtab
* MiniUPnP project
* (c) 2007-2018 Thomas Bernard
* website : http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/
* This software is subject to the conditions detailed
* in the LICENCE file provided wi... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_859_0 |
crossvul-cpp_data_bad_820_1 | // SPDX-License-Identifier: GPL-2.0
/*
* 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 <li... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_820_1 |
crossvul-cpp_data_good_2949_0 | /* xfrm_user.c: User interface to configure xfrm engine.
*
* Copyright (C) 2002 David S. Miller (davem@redhat.com)
*
* Changes:
* Mitsuru KANDA @USAGI
* Kazunori MIYAZAWA @USAGI
* Kunihiro Ishiguro <kunihiro@ipinfusion.com>
* IPv6 support
*
*/
#include <linux/crypto.h>
#include <linux/module.h>
#include ... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_2949_0 |
crossvul-cpp_data_good_5021_6 | /*
* 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.
*
* Support for INET6 connection oriented protocols.
*
* Authors: See ... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_5021_6 |
crossvul-cpp_data_bad_2456_0 | /*
* GPAC - Multimedia Framework C SDK
*
* Authors: Jean Le Feuvre
* Copyright (c) Telecom ParisTech 2000-2012
* All rights reserved
*
* This file is part of GPAC / ISO Media File Format sub-project
*
* GPAC is free software; you can redistribute it and/or modify
* it under the terms of the GNU L... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_2456_0 |
crossvul-cpp_data_bad_4841_1 | /*
* L2TPv3 IP encapsulation support for IPv6
*
* Copyright (c) 2012 Katalix Systems Ltd
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your ... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_4841_1 |
crossvul-cpp_data_good_4020_3 | /* exif-mnote-data-pentax.c
*
* Copyright (c) 2002, 2003 Lutz Mueller <lutz@users.sourceforge.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the Licen... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_4020_3 |
crossvul-cpp_data_good_1057_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-416/c/good_1057_0 |
crossvul-cpp_data_bad_1055_0 | /*
*
* Bluetooth HCI UART driver
*
* Copyright (C) 2000-2001 Qualcomm Incorporated
* Copyright (C) 2002-2003 Maxim Krasnyansky <maxk@qualcomm.com>
* Copyright (C) 2004-2005 Marcel Holtmann <marcel@holtmann.org>
*
*
* This program is free software; you can redistribute it and/or modify
* it under the ... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_1055_0 |
crossvul-cpp_data_bad_3307_0 | /* radare - LGPL - Copyright 2010-2017 - nibble, pancake */
#include <stdio.h>
#include <r_types.h>
#include <r_util.h>
#include "mach0.h"
#define bprintf if(bin->verbose)eprintf
typedef struct _ulebr {
ut8 *p;
} ulebr;
/* move into struct MACH0_(obj_t) *bin */
static bool little_;
static ut64 read_uleb128(ulebr ... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_3307_0 |
crossvul-cpp_data_bad_913_0 | /**********************************************************************
regext.c - Oniguruma (regular expression library)
**********************************************************************/
/*-
* Copyright (c) 2002-2019 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
* All rights reserved.
*
* Redistribution and ... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_913_0 |
crossvul-cpp_data_bad_2908_0 | /*
* (Tentative) USB Audio Driver for ALSA
*
* Mixer control part
*
* Copyright (c) 2002 by Takashi Iwai <tiwai@suse.de>
*
* Many codes borrowed from audio.c by
* Alan Cox (alan@lxorguk.ukuu.org.uk)
* Thomas Sailer (sailer@ife.ee.ethz.ch)
*
*
* This program is free software; you can redist... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_2908_0 |
crossvul-cpp_data_bad_3399_0 | /* radare - LGPL - Copyright 2006-2016 - pancake */
#include "r_config.h"
#include "r_util.h" // r_str_hash, r_str_chop, ...
#ifdef _MSC_VER
#define strcasecmp stricmp
#endif
R_API RConfigNode* r_config_node_new(const char *name, const char *value) {
RConfigNode *node;
if (STRNULL (name)) {
return NULL;
}
node =... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_3399_0 |
crossvul-cpp_data_bad_1314_1 | // SPDX-License-Identifier: GPL-2.0
/*
* linux/fs/ext4/super.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 Torvald... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_1314_1 |
crossvul-cpp_data_good_60_0 | /*-
* Copyright (c) 2003-2007 Tim Kientzle
* Copyright (c) 2011 Andres Mejia
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
*... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_60_0 |
crossvul-cpp_data_good_2432_0 | /*
* DBD::mysql - DBI driver for the mysql database
*
* Copyright (c) 2004-2014 Patrick Galbraith
* Copyright (c) 2013-2014 Michiel Beijen
* Copyright (c) 2004-2007 Alexey Stroganov
* Copyright (c) 2003-2005 Rudolf Lippan
* Copyright (c) 1997-2003 Jochen Wiedmann
*
* You may distribute this under th... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_2432_0 |
crossvul-cpp_data_bad_3188_0 | /*
* Copyright (C) 2015 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Alberto Wu
*
* 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
* publishe... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_3188_0 |
crossvul-cpp_data_good_5335_0 | /*
* f_fs.c -- user mode file system API for USB composite function controllers
*
* Copyright (C) 2010 Samsung Electronics
* Author: Michal Nazarewicz <mina86@mina86.com>
*
* Based on inode.c (GadgetFS) which was:
* Copyright (C) 2003-2004 David Brownell
* Copyright (C) 2003 Agilent Technologies
*
* This prog... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_5335_0 |
crossvul-cpp_data_bad_903_1 | /*
servers-reconnect.c : irssi
Copyright (C) 1999-2000 Timo Sirainen
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 lat... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_903_1 |
crossvul-cpp_data_bad_4494_0 | /**
* FreeRDP: A Remote Desktop Protocol Implementation
*
* Copyright 2014 Marc-Andre Moreau <marcandre.moreau@gmail.com>
* Copyright 2017 Armin Novak <armin.novak@thincast.com>
* Copyright 2017 Thincast Technologies GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_4494_0 |
crossvul-cpp_data_good_584_0 | #include <linux/mount.h>
#include <linux/file.h>
#include <linux/fs.h>
#include <linux/proc_ns.h>
#include <linux/magic.h>
#include <linux/ktime.h>
#include <linux/seq_file.h>
#include <linux/user_namespace.h>
#include <linux/nsfs.h>
#include <linux/uaccess.h>
static struct vfsmount *nsfs_mnt;
static long ns_ioctl(st... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_584_0 |
crossvul-cpp_data_bad_2515_2 | /*
* $LynxId: HTML.c,v 1.173 2017/07/04 20:05:01 tom Exp $
*
* Structured stream to Rich hypertext converter
* ============================================
*
* This generates a hypertext object. It converts from the
* structured stream interface of HTML events into the style-
* oriented interface of the HTex... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_2515_2 |
crossvul-cpp_data_bad_3224_1 | /*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation, version 2 of the
* License.
*/
#include <linux/stat.h>
#include <linux/sysctl.h>
#include <linux/slab.h>
#include <linux/cred.h>
#inc... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_3224_1 |
crossvul-cpp_data_good_4797_1 | /*
* History:
* Started: Aug 9 by Lawrence Foard (entropy@world.std.com),
* to allow user process control of SCSI devices.
* Development Sponsored by Killy Corp. NY NY
*
* Original driver (sg.c):
* Copyright (C) 1992 Lawrence Foard
* Version 2 and 3 extensions to driver:
* Copyright ... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_4797_1 |
crossvul-cpp_data_bad_320_0 | /************************************************************
* Copyright (c) 1994 by Silicon Graphics Computer Systems, Inc.
*
* Permission to use, copy, modify, and distribute this
* software and its documentation for any purpose and without
* fee is hereby granted, provided that the above copyright
* notice ap... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_320_0 |
crossvul-cpp_data_good_1342_1 | /* vi:set ts=8 sts=4 sw=4 noet:
*
* VIM - Vi IMproved by Bram Moolenaar
*
* Do ":help uganda" in Vim to read copying and usage conditions.
* Do ":help credits" in Vim to see a list of people who contributed.
* See README.txt for an overview of the Vim source code.
*/
#include "vim.h"
#ifdef AMIGA
# include <... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_1342_1 |
crossvul-cpp_data_bad_1859_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-416/c/bad_1859_0 |
crossvul-cpp_data_bad_148_0 | /* radare - LGPL - Copyright 2011-2018 - pancake, Roc Valles, condret, killabyte */
#if 0
http://www.atmel.com/images/atmel-0856-avr-instruction-set-manual.pdf
https://en.wikipedia.org/wiki/Atmel_AVR_instruction_set
#endif
#include <string.h>
#include <r_types.h>
#include <r_util.h>
#include <r_lib.h>
#include <r_asm... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_148_0 |
crossvul-cpp_data_bad_2432_0 | /*
* DBD::mysql - DBI driver for the mysql database
*
* Copyright (c) 2004-2014 Patrick Galbraith
* Copyright (c) 2013-2014 Michiel Beijen
* Copyright (c) 2004-2007 Alexey Stroganov
* Copyright (c) 2003-2005 Rudolf Lippan
* Copyright (c) 1997-2003 Jochen Wiedmann
*
* You may distribute this under th... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_2432_0 |
crossvul-cpp_data_good_1200_0 | /*-
* Copyright (c) 2003-2007 Tim Kientzle
* Copyright (c) 2011 Andres Mejia
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
*... | ./CrossVul/dataset_final_sorted/CWE-416/c/good_1200_0 |
crossvul-cpp_data_bad_1427_0 | // SPDX-License-Identifier: GPL-2.0+
/*
* ipmi_msghandler.c
*
* Incoming and outgoing message routing for an IPMI interface.
*
* Author: MontaVista Software, Inc.
* Corey Minyard <minyard@mvista.com>
* source@mvista.com
*
* Copyright 2002 MontaVista Software Inc.
*/
#define pr_fmt(fmt) "%s" f... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_1427_0 |
crossvul-cpp_data_bad_1840_0 | /*
* DBD::mysql - DBI driver for the mysql database
*
* Copyright (c) 2004-2014 Patrick Galbraith
* Copyright (c) 2013-2014 Michiel Beijen
* Copyright (c) 2004-2007 Alexey Stroganov
* Copyright (c) 2003-2005 Rudolf Lippan
* Copyright (c) 1997-2003 Jochen Wiedmann
*
* You may distribute this under th... | ./CrossVul/dataset_final_sorted/CWE-416/c/bad_1840_0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.