id stringlengths 25 30 | content stringlengths 14 942k | max_stars_repo_path stringlengths 49 55 |
|---|---|---|
crossvul-cpp_data_bad_2080_0 | /*
* Implementation of the security services.
*
* Authors : Stephen Smalley, <sds@epoch.ncsc.mil>
* James Morris <jmorris@redhat.com>
*
* Updated: Trusted Computer Solutions, Inc. <dgoeddel@trustedcs.com>
*
* Support for enhanced MLS infrastructure.
* Support for context based audit filters.
*
* Updated... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_2080_0 |
crossvul-cpp_data_bad_5845_18 | /*
* net/key/af_key.c An implementation of PF_KEYv2 sockets.
*
* 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-20/c/bad_5845_18 |
crossvul-cpp_data_good_5110_0 | /* toshiba.c
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (a... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_5110_0 |
crossvul-cpp_data_good_3978_0 | /* $OpenBSD: scp.c,v 1.210 2020/05/06 20:57:38 djm Exp $ */
/*
* scp - secure remote copy. This is basically patched BSD rcp which
* uses ssh to do the data transfer (instead of using rcmd).
*
* NOTE: This version should NOT be suid root. (This uses ssh to
* do the transfer and ssh has the necessary privileges.)... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_3978_0 |
crossvul-cpp_data_good_2789_0 | /* mboxlist.c -- Mailbox list manipulation routines
*
* Copyright (c) 1994-2008 Carnegie Mellon University. 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 sourc... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_2789_0 |
crossvul-cpp_data_good_5600_0 | /*
* Copyright (c) 2000-2006 Silicon Graphics, Inc.
* All Rights Reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it would be ... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_5600_0 |
crossvul-cpp_data_good_3661_0 | /*
* An implementation of key value pair (KVP) functionality for Linux.
*
*
* Copyright (C) 2010, Novell, Inc.
* Author : K. Y. Srinivasan <ksrinivasan@novell.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 publish... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_3661_0 |
crossvul-cpp_data_bad_2753_0 | #include <linux/kernel.h>
#include <linux/skbuff.h>
#include <linux/export.h>
#include <linux/ip.h>
#include <linux/ipv6.h>
#include <linux/if_vlan.h>
#include <net/ip.h>
#include <net/ipv6.h>
#include <linux/igmp.h>
#include <linux/icmp.h>
#include <linux/sctp.h>
#include <linux/dccp.h>
#include <linux/if_tunnel.h>
#i... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_2753_0 |
crossvul-cpp_data_good_1221_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_1221_0 |
crossvul-cpp_data_bad_5845_7 | /*
* 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.
*
* Copyright (C) Alan Cox GW4PTS (alan@lxorguk.ukuu.org.uk)
*... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_5845_7 |
crossvul-cpp_data_bad_1420_1 | /* $OpenBSD: tcp_input.c,v 1.359 2018/09/17 14:07:48 friehm Exp $ */
/* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */
/*
* Copyright (c) 1982, 1986, 1988, 1990, 1993, 1994
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms,... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_1420_1 |
crossvul-cpp_data_bad_5420_1 | /* $Id: parsetagx.c,v 1.18 2006/06/07 03:52:03 inu Exp $ */
#include "fm.h"
#include "myctype.h"
#include "indep.h"
#include "Str.h"
#include "parsetagx.h"
#include "hash.h"
#include "html.c"
/* parse HTML tag */
static int noConv(char *, char **);
static int toNumber(char *, int *);
static int toLength(char *, int ... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_5420_1 |
crossvul-cpp_data_good_4899_0 | /*
* Code to handle user-settable options. This is all pretty much table-
* driven. Checklist for adding a new option:
* - Put it in the options array below (copy an existing entry).
* - For a global option: Add a variable for it in option_defs.h.
* - For a buffer or window local option:
* - Add a PV_XX entry t... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_4899_0 |
crossvul-cpp_data_bad_5533_0 | /* diskstore.c implements a very simple disk backed key-value store used
* by Redis for the "disk" backend. This implementation uses the filesystem
* to store key/value pairs. Every file represents a given key.
*
* The key path is calculated using the SHA1 of the key name. For instance
* the key "foo" is stored as... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_5533_0 |
crossvul-cpp_data_bad_3442_0 | /*
BNEP implementation for Linux Bluetooth stack (BlueZ).
Copyright (C) 2001-2002 Inventel Systemes
Written 2001-2002 by
David Libault <david.libault@inventel.fr>
Copyright (C) 2002 Maxim Krasnyansky <maxk@qualcomm.com>
This program is free software; you can redistribute it and/or modify
it under ... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_3442_0 |
crossvul-cpp_data_bad_2891_10 | /* Request a key from userspace
*
* Copyright (C) 2004-2007 Red Hat, Inc. All Rights Reserved.
* Written by David Howells (dhowells@redhat.com)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Found... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_2891_10 |
crossvul-cpp_data_good_2391_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-20/c/good_2391_0 |
crossvul-cpp_data_bad_5845_23 | /*
* Copyright (C) 2011 Intel Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_5845_23 |
crossvul-cpp_data_good_190_0 | /*
* MPEG-4 encoder
* Copyright (c) 2000,2001 Fabrice Bellard
* Copyright (c) 2002-2010 Michael Niedermayer <michaelni@gmx.at>
*
* 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-20/c/good_190_0 |
crossvul-cpp_data_bad_5794_2 | /*
* 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-20/c/bad_5794_2 |
crossvul-cpp_data_bad_5849_0 | /*
* IKEv2 parent SA creation routines
* Copyright (C) 2007-2008 Michael Richardson <mcr@xelerance.com>
* Copyright (C) 2008-2011 Paul Wouters <paul@xelerance.com>
* Copyright (C) 2008 Antony Antony <antony@xelerance.com>
* Copyright (C) 2008-2009 David McCullough <david_mccullough@securecomputing.com>
* Copyrigh... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_5849_0 |
crossvul-cpp_data_good_2435_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_2435_0 |
crossvul-cpp_data_bad_3515_0 | /*
* AppArmor security module
*
* This file contains AppArmor LSM hooks.
*
* Copyright (C) 1998-2008 Novell/SUSE
* Copyright 2009-2010 Canonical 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 Softw... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_3515_0 |
crossvul-cpp_data_good_2891_1 | /* Key type used to cache DNS lookups made by the kernel
*
* See Documentation/networking/dns_resolver.txt
*
* Copyright (c) 2007 Igor Mammedov
* Author(s): Igor Mammedov (niallain@gmail.com)
* Steve French (sfrench@us.ibm.com)
* Wang Lei (wang840925@gmail.com)
* David Howells (dh... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_2891_1 |
crossvul-cpp_data_good_5845_17 | /*
* IUCV protocol stack for Linux on zSeries
*
* Copyright IBM Corp. 2006, 2009
*
* Author(s): Jennifer Hunt <jenhunt@us.ibm.com>
* Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
* PM functions:
* Ursula Braun <ursula.braun@de.ibm.com>
*/
#define KMSG_COMPONENT "af_iucv"
#define pr_fmt(fmt) KMSG_COMP... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_5845_17 |
crossvul-cpp_data_bad_5184_0 | 404: Not Found | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_5184_0 |
crossvul-cpp_data_bad_3547_4 | /*
* 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.
*
* Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.u... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_3547_4 |
crossvul-cpp_data_good_396_0 | #include "cache.h"
#include "object.h"
#include "blob.h"
#include "tree.h"
#include "tree-walk.h"
#include "commit.h"
#include "tag.h"
#include "fsck.h"
#include "refs.h"
#include "utf8.h"
#include "sha1-array.h"
#include "decorate.h"
#include "oidset.h"
#include "packfile.h"
#include "submodule-config.h"
#include "con... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_396_0 |
crossvul-cpp_data_bad_1657_1 |
/* A Bison parser, made by GNU Bison 2.4.1. */
/* Skeleton implementation for Bison's Yacc-like parsers in C
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_1657_1 |
crossvul-cpp_data_good_5418_5 | /*
* Copyright (c) 2002-2003 Michael David Adams.
* All rights reserved.
*/
/* __START_OF_JASPER_LICENSE__
*
* JasPer License Version 2.0
*
* Copyright (c) 2001-2006 Michael David Adams
* Copyright (c) 1999-2000 Image Power, Inc.
* Copyright (c) 1999-2000 The University of British Columbia
*
* All rights... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_5418_5 |
crossvul-cpp_data_good_254_0 | /**
* @file
* Usenet network mailbox type; talk to an NNTP server
*
* @authors
* Copyright (C) 1998 Brandon Long <blong@fiction.net>
* Copyright (C) 1999 Andrej Gritsenko <andrej@lucky.net>
* Copyright (C) 2000-2017 Vsevolod Volkov <vvv@mutt.org.ua>
*
* @copyright
* This program is free software: you can redi... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_254_0 |
crossvul-cpp_data_bad_5649_0 | /******************************************************************************
*
* Back-end of the driver for virtual block devices. This portion of the
* driver exports a 'unified' block-device interface that can be accessed
* by any operating system that implements a compatible front end. A
* reference front-en... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_5649_0 |
crossvul-cpp_data_bad_2891_11 | /* Request key authorisation token key definition.
*
* Copyright (C) 2005 Red Hat, Inc. All Rights Reserved.
* Written by David Howells (dhowells@redhat.com)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free ... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_2891_11 |
crossvul-cpp_data_good_3244_1 | /*
+----------------------------------------------------------------------+
| PHP Version 7 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2017 The PHP Group |
+--------------... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_3244_1 |
crossvul-cpp_data_good_763_0 | /*
Copyright 2016 Christian Hoene, Symonics GmbH
*/
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include "reader.h"
/*
*
00000370 42 54 4c 46 00 08 00 5b 01 00 00 00 2d 00 00 07 |BTLF...[....-...|
00000380 00 00 00 f8 ea 72 15 00 c9 03 00 00 00 26 00 00 |.....r.......&..|
00000390 14 00... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_763_0 |
crossvul-cpp_data_good_365_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_365_0 |
crossvul-cpp_data_bad_3290_0 | /*
* Central processing for nfsd.
*
* Authors: Olaf Kirch (okir@monad.swb.de)
*
* Copyright (C) 1995, 1996, 1997 Olaf Kirch <okir@monad.swb.de>
*/
#include <linux/sched/signal.h>
#include <linux/freezer.h>
#include <linux/module.h>
#include <linux/fs_struct.h>
#include <linux/swap.h>
#include <linux/sunrpc/stat... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_3290_0 |
crossvul-cpp_data_bad_3477_0 | /*
* security/tomoyo/mount.c
*
* Copyright (C) 2005-2010 NTT DATA CORPORATION
*/
#include <linux/slab.h>
#include "common.h"
/* Keywords for mount restrictions. */
/* Allow to call 'mount --bind /source_dir /dest_dir' */
#define TOMOYO_MOUNT_BIND_KEYWORD "--bind"
/* Allow to call 'mount -... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_3477_0 |
crossvul-cpp_data_good_4829_4 | /*
too_few_image_data.gd2 claims to have a size of 12336x48 pixels, but doesn't
provide as much image data. We test that gdImageCreateFromGd2Ctx() returns NULL
in this case.
*/
#include "gd.h"
#include "gdtest.h"
int main()
{
gdImagePtr im;
FILE *fp;
fp = gdTestFileOpen2("gd2", "too_few_image_data.gd2");... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_4829_4 |
crossvul-cpp_data_good_397_0 | #include "cache.h"
#include "object.h"
#include "blob.h"
#include "tree.h"
#include "tree-walk.h"
#include "commit.h"
#include "tag.h"
#include "fsck.h"
#include "refs.h"
#include "utf8.h"
#include "sha1-array.h"
#include "decorate.h"
#include "oidset.h"
#include "packfile.h"
#include "submodule-config.h"
#include "con... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_397_0 |
crossvul-cpp_data_good_2578_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_2578_0 |
crossvul-cpp_data_good_5533_2 | /*
* Copyright (c) 2009-2010, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above co... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_5533_2 |
crossvul-cpp_data_good_3581_2 | /*
* linux/kernel/exit.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*/
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/capability.h>
#include <linux/completion.h>
#include <linux/personality.h>
#include <linux/tty.h>
#include <linux/iocontext... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_3581_2 |
crossvul-cpp_data_good_5511_0 | /*
* Internet Control Message Protocol (ICMPv6)
* Linux INET6 implementation
*
* Authors:
* Pedro Roque <roque@di.fc.ul.pt>
*
* Based on net/ipv4/icmp.c
*
* RFC 1885
*
* 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-20/c/good_5511_0 |
crossvul-cpp_data_good_1363_0 | /* A Bison parser, made by GNU Bison 3.2.4. */
/* Bison implementation for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2015, 2018 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as publis... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_1363_0 |
crossvul-cpp_data_bad_5732_0 | #undef DEBUG
/*
* ARM performance counter support.
*
* Copyright (C) 2009 picoChip Designs, Ltd., Jamie Iles
* Copyright (C) 2010 ARM Ltd., Will Deacon <will.deacon@arm.com>
*
* This code is based on the sparc64 perf event code, which is in turn based
* on the x86 code. Callchain code is based on the ARM OProfi... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_5732_0 |
crossvul-cpp_data_bad_5604_0 | /*
* linux/fs/ext3/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 Torvalds
*
* Big-endian to little-endian... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_5604_0 |
crossvul-cpp_data_bad_4699_0 | /* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* memcached - memory caching daemon
*
* http://www.danga.com/memcached/
*
* Copyright 2003 Danga Interactive, Inc. All rights reserved.
*
* Use and distribution licensed under the BSD license. See
* the LICENSE file for... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_4699_0 |
crossvul-cpp_data_bad_2589_0 | /*
* RTMP input format
* Copyright (c) 2009 Konstantin Shishkov
*
* 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 the License, ... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_2589_0 |
crossvul-cpp_data_good_3547_3 | /*
* 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.
*
* Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.u... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_3547_3 |
crossvul-cpp_data_bad_5845_12 | /*
* Copyright (C) ST-Ericsson AB 2010
* Author: Sjur Brendeland
* License terms: GNU General Public License (GPL) version 2
*/
#define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__
#include <linux/fs.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/sched.h>
#include <linux/spinlock.h>
#i... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_5845_12 |
crossvul-cpp_data_good_5845_20 | /*
* af_llc.c - LLC User Interface SAPs
* Description:
* Functions in this module are implementation of socket based llc
* communications for the Linux operating system. Support of llc class
* one and class two is provided via SOCK_DGRAM and SOCK_STREAM
* respectively.
*
* An llc2 connection is (mac +... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_5845_20 |
crossvul-cpp_data_bad_1821_1 | /*
* Signal handling for 32bit PPC and 32bit tasks on 64bit PPC
*
* PowerPC version
* Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
* Copyright (C) 2001 IBM
* Copyright (C) 1997,1998 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
* Copyright (C) 1997 David S. Miller (davem@caip.rutgers.edu)
*
* Derived f... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_1821_1 |
crossvul-cpp_data_good_3371_0 | /***
This file is part of systemd.
Copyright 2014 Lennart Poettering
systemd is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later ve... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_3371_0 |
crossvul-cpp_data_good_5799_0 | /*
* Adaptec AAC series RAID controller driver
* (c) Copyright 2001 Red Hat Inc.
*
* based on the old aacraid driver that is..
* Adaptec aacraid device driver for Linux.
*
* Copyright (c) 2000-2010 Adaptec, Inc.
* 2010 PMC-Sierra, Inc. (aacraid@pmc-sierra.com)
*
* This program is free software; ... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_5799_0 |
crossvul-cpp_data_good_1821_2 | /*
* PowerPC version
* Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
*
* Derived from "arch/i386/kernel/signal.c"
* Copyright (C) 1991, 1992 Linus Torvalds
* 1997-11-28 Modified for POSIX.1b signals by Richard Henderson
*
* This program is free software; you can redistribute it and/or
* ... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_1821_2 |
crossvul-cpp_data_good_1821_1 | /*
* Signal handling for 32bit PPC and 32bit tasks on 64bit PPC
*
* PowerPC version
* Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
* Copyright (C) 2001 IBM
* Copyright (C) 1997,1998 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
* Copyright (C) 1997 David S. Miller (davem@caip.rutgers.edu)
*
* Derived f... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_1821_1 |
crossvul-cpp_data_good_2976_0 | /*
* Glue code for optimized assembly version of Salsa20.
*
* Copyright (c) 2007 Tan Swee Heng <thesweeheng@gmail.com>
*
* The assembly codes are public domain assembly codes written by Daniel. J.
* Bernstein <djb@cr.yp.to>. The codes are modified to include indentation
* and to remove extraneous comments and f... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_2976_0 |
crossvul-cpp_data_bad_1284_2 | /*
** 2008 August 18
**
** The author disclaims copyright to this source code. In place of
** a legal notice, here is a blessing:
**
** May you do good and not evil.
** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
**********************... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_1284_2 |
crossvul-cpp_data_good_3509_0 | /*
* fs/cifs/connect.c
*
* Copyright (C) International Business Machines Corp., 2002,2009
* Author(s): Steve French (sfrench@us.ibm.com)
*
* 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 ... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_3509_0 |
crossvul-cpp_data_bad_3244_1 | /*
+----------------------------------------------------------------------+
| PHP Version 7 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2017 The PHP Group |
+--------------... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_3244_1 |
crossvul-cpp_data_bad_2578_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_2578_0 |
crossvul-cpp_data_bad_2024_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-20/c/bad_2024_0 |
crossvul-cpp_data_good_5066_0 | /*-
* Copyright (c) 2003-2007 Tim Kientzle
* Copyright (c) 2010-2012 Michihiro NAKAJIMA
* 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 th... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_5066_0 |
crossvul-cpp_data_good_5711_2 | /* Generated by re2c 0.13.5 on Mon May 20 00:45:38 2013 */
#line 1 "Zend/zend_language_scanner.l"
/*
+----------------------------------------------------------------------+
| Zend Engine |
+---------------------------------------------------------------... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_5711_2 |
crossvul-cpp_data_good_3989_1 | #include "clar_libgit2.h"
#include "checkout_helpers.h"
#include "git2/checkout.h"
#include "repository.h"
#include "buffer.h"
#include "futils.h"
static const char *repo_name = "nasty";
static git_repository *repo;
static git_checkout_options checkout_opts;
void test_checkout_nasty__initialize(void)
{
repo = cl_gi... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_3989_1 |
crossvul-cpp_data_bad_2891_6 | /* Userspace key control operations
*
* Copyright (C) 2004-5 Red Hat, Inc. All Rights Reserved.
* Written by David Howells (dhowells@redhat.com)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foun... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_2891_6 |
crossvul-cpp_data_good_1837_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_1837_0 |
crossvul-cpp_data_bad_5845_24 | /*
* Copyright (C) 2011 Instituto Nokia de Tecnologia
*
* Authors:
* Aloisio Almeida Jr <aloisio.almeida@openbossa.org>
* Lauro Ramos Venancio <lauro.venancio@openbossa.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as p... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_5845_24 |
crossvul-cpp_data_bad_2117_1 | /*
* Copyright (c) 2005 Voltaire Inc. All rights reserved.
* Copyright (c) 2002-2005, Network Appliance, Inc. All rights reserved.
* Copyright (c) 1999-2005, Mellanox Technologies, Inc. All rights reserved.
* Copyright (c) 2005-2006 Intel Corporation. All rights reserved.
*
* This software is available to you u... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_2117_1 |
crossvul-cpp_data_bad_3581_2 | 404: Not Found | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_3581_2 |
crossvul-cpp_data_good_5533_0 | /* diskstore.c implements a very simple disk backed key-value store used
* by Redis for the "disk" backend. This implementation uses the filesystem
* to store key/value pairs. Every file represents a given key.
*
* The key path is calculated using the SHA1 of the key name. For instance
* the key "foo" is stored as... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_5533_0 |
crossvul-cpp_data_bad_2577_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_2577_0 |
crossvul-cpp_data_bad_5526_1 | /* -*- C -*-
* $Id$
*/
#include <ruby.h>
#include "dl.h"
VALUE rb_cDLHandle;
void
dlhandle_free(struct dl_handle *dlhandle)
{
if( dlhandle->ptr && dlhandle->open && dlhandle->enable_close ){
dlclose(dlhandle->ptr);
}
}
VALUE
rb_dlhandle_close(VALUE self)
{
struct dl_handle *dlhandle;
Data_Get_Struct(... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_5526_1 |
crossvul-cpp_data_bad_5586_0 | #include <linux/mutex.h>
#include <linux/socket.h>
#include <linux/skbuff.h>
#include <net/netlink.h>
#include <net/net_namespace.h>
#include <linux/module.h>
#include <net/sock.h>
#include <linux/inet_diag.h>
#include <linux/sock_diag.h>
static const struct sock_diag_handler *sock_diag_handlers[AF_MAX];
static int (... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_5586_0 |
crossvul-cpp_data_bad_3070_1 | /*
* Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/lice... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_3070_1 |
crossvul-cpp_data_good_2035_1 | /*
* linux/fs/proc/base.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*
* proc base directory handling functions
*
* 1999, Al Viro. Rewritten. Now it covers the whole per-process part.
* Instead of using magical inumbers to determine the kind of object
* we allocate and fill in-core inodes upon lookup. T... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_2035_1 |
crossvul-cpp_data_bad_5066_0 | /*-
* Copyright (c) 2003-2007 Tim Kientzle
* Copyright (c) 2010-2012 Michihiro NAKAJIMA
* 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 th... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_5066_0 |
crossvul-cpp_data_bad_5608_0 | /*
* ModSecurity for Apache 2.x, http://www.modsecurity.org/
* Copyright (c) 2004-2011 Trustwave Holdings, Inc. (http://www.trustwave.com/)
*
* 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
*
* If any of the... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_5608_0 |
crossvul-cpp_data_good_721_0 | /* Copyright (C) 2007-2013 Open Information Security Foundation
*
* You can copy, redistribute or modify this Program under the terms of
* the GNU General Public License version 2 as published by the Free
* Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_721_0 |
crossvul-cpp_data_good_907_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% CCC U U TTTTT ... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_907_0 |
crossvul-cpp_data_bad_254_0 | /**
* @file
* Usenet network mailbox type; talk to an NNTP server
*
* @authors
* Copyright (C) 1998 Brandon Long <blong@fiction.net>
* Copyright (C) 1999 Andrej Gritsenko <andrej@lucky.net>
* Copyright (C) 2000-2017 Vsevolod Volkov <vvv@mutt.org.ua>
*
* @copyright
* This program is free software: you can redi... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_254_0 |
crossvul-cpp_data_good_4685_1 | /*-
* Copyright (c) 2018 Grzegorz Antoniak (http://antoniak.org)
* 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, ... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_4685_1 |
crossvul-cpp_data_bad_4829_0 | /*
* gd_gd2.c
*
* Implements the I/O and support for the GD2 format.
*
* Changing the definition of GD2_DBG (below) will cause copious messages
* to be displayed while it processes requests.
*
* Designed, Written & Copyright 1999, Philip Warner.
*
*/
/**
* File: GD2 IO
*
* Read and write... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_4829_0 |
crossvul-cpp_data_bad_1563_1 | /*
Copyright (C) ABRT Team
Copyright (C) RedHat inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_1563_1 |
crossvul-cpp_data_good_2891_3 | /*
* Copyright (C) 2010 IBM Corporation
* Copyright (C) 2010 Politecnico di Torino, Italy
* TORSEC group -- http://security.polito.it
*
* Authors:
* Mimi Zohar <zohar@us.ibm.com>
* Roberto Sassu <roberto.sassu@polito.it>
*
* This program is free software; you can redistribute it and/or modif... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_2891_3 |
crossvul-cpp_data_bad_5185_0 | /* LibTomCrypt, modular cryptographic library -- Tom St Denis
*
* LibTomCrypt is a library that provides various cryptographic
* algorithms in a highly modular and flexible manner.
*
* The library is free for all purposes without any express
* guarantee it works.
*
* Tom St Denis, tomstdenis@gmail.com, http://l... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_5185_0 |
crossvul-cpp_data_good_2313_0 | /*
* Copyright (c) 2007, 2008, 2009 Andrea Bittau <a.bittau@cs.ucl.ac.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 License, or
* (at your optio... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_2313_0 |
crossvul-cpp_data_bad_3547_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; either version 2 of the License, or
* (at your option) any later version.
*
* Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.u... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_3547_1 |
crossvul-cpp_data_good_4718_0 | /*
* 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-20/c/good_4718_0 |
crossvul-cpp_data_bad_2513_0 | /*
* Copyright 2014, Red Hat, Inc.
*
* 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 applicable law or agreed to i... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_2513_0 |
crossvul-cpp_data_good_5586_0 | #include <linux/mutex.h>
#include <linux/socket.h>
#include <linux/skbuff.h>
#include <net/netlink.h>
#include <net/net_namespace.h>
#include <linux/module.h>
#include <net/sock.h>
#include <linux/inet_diag.h>
#include <linux/sock_diag.h>
static const struct sock_diag_handler *sock_diag_handlers[AF_MAX];
static int (... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_5586_0 |
crossvul-cpp_data_good_5660_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-20/c/good_5660_0 |
crossvul-cpp_data_good_3070_2 | /*
* Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/lice... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_3070_2 |
crossvul-cpp_data_bad_5876_0 | /*
* linux/mm/filemap.c
*
* Copyright (C) 1994-1999 Linus Torvalds
*/
/*
* This file handles the generic file mmap semantics used by
* most "normal" filesystems (but you don't /have/ to use this:
* the NFS filesystem used to do this differently, for example)
*/
#include <linux/module.h>
#include <linux/slab.h... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_5876_0 |
crossvul-cpp_data_bad_721_2 | /* Copyright (C) 2007-2014 Open Information Security Foundation
*
* You can copy, redistribute or modify this Program under the terms of
* the GNU General Public License version 2 as published by the Free
* Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_721_2 |
crossvul-cpp_data_bad_364_3 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_364_3 |
crossvul-cpp_data_bad_364_1 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_364_1 |
crossvul-cpp_data_bad_5115_2 | /* packet-rpcap.c
*
* Routines for RPCAP message formats.
*
* Copyright 2008, Stig Bjorlykke <stig@bjorlykke.org>, Thales Norway AS
*
* 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
... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_5115_2 |
crossvul-cpp_data_good_5844_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.
*
* "Ping" sockets
*
* This program is free software; you can redistribute it and/or
* modify it under the te... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_5844_1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.