id stringlengths 25 30 | content stringlengths 14 942k | max_stars_repo_path stringlengths 49 55 |
|---|---|---|
crossvul-cpp_data_bad_4786_2 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-284/c/bad_4786_2 |
crossvul-cpp_data_good_5198_0 | /*
* linux/fs/open.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*/
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/file.h>
#include <linux/fdtable.h>
#include <linux/fsnotify.h>
#include <linux/module.h>
#include <linux/tty.h>
#include <linux/namei.h>
#include <linux/backing-dev.h>
#include <li... | ./CrossVul/dataset_final_sorted/CWE-284/c/good_5198_0 |
crossvul-cpp_data_bad_5092_0 | /*
* socket.c
*
* Copyright (c) 2012 Martin Szulecki All Rights Reserved.
* Copyright (c) 2012 Nikias Bassen All Rights Reserved.
*
* 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;... | ./CrossVul/dataset_final_sorted/CWE-284/c/bad_5092_0 |
crossvul-cpp_data_good_5204_2 | /**************************************************************************
*
* Copyright (c) 2000-2003 Intel Corporation
* All rights reserved.
* Copyright (c) 2012 France Telecom All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provid... | ./CrossVul/dataset_final_sorted/CWE-284/c/good_5204_2 |
crossvul-cpp_data_good_4770_1 | /*****************************************************************************\
* src/slurmd/slurmd/req.c - slurmd request handling
*****************************************************************************
* Copyright (C) 2002-2007 The Regents of the University of California.
* Copyright (C) 2008-2010 Lawren... | ./CrossVul/dataset_final_sorted/CWE-284/c/good_4770_1 |
crossvul-cpp_data_bad_5199_0 | /*
* linux/fs/namei.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*/
/*
* Some corrections by tytso.
*/
/* [Feb 1997 T. Schoebel-Theuer] Complete rewrite of the pathname
* lookup logic.
*/
/* [Feb-Apr 2000, AV] Rewrite to the new namespace architecture.
*/
#include <linux/init.h>
#include <linux/export.h... | ./CrossVul/dataset_final_sorted/CWE-284/c/bad_5199_0 |
crossvul-cpp_data_good_4896_2 | /*
* Common NFSv4 ACL handling code.
*
* Copyright (c) 2002, 2003 The Regents of the University of Michigan.
* All rights reserved.
*
* Marius Aamodt Eriksen <marius@umich.edu>
* Jeff Sedlak <jsedlak@umich.edu>
* J. Bruce Fields <bfields@umich.edu>
*
* Redistribution and use in source and binary forms,... | ./CrossVul/dataset_final_sorted/CWE-284/c/good_4896_2 |
crossvul-cpp_data_bad_880_1 | /*
* Copyright (C) 2014-2019 Firejail Authors
*
* This file is part of firejail 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 o... | ./CrossVul/dataset_final_sorted/CWE-284/c/bad_880_1 |
crossvul-cpp_data_good_5016_0 | /*
* libndp.c - Neighbour discovery library
* Copyright (C) 2013-2015 Jiri Pirko <jiri@resnulli.us>
*
* 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... | ./CrossVul/dataset_final_sorted/CWE-284/c/good_5016_0 |
crossvul-cpp_data_good_1571_9 | /*
Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed i... | ./CrossVul/dataset_final_sorted/CWE-284/c/good_1571_9 |
crossvul-cpp_data_bad_5019_0 | /*
* vMTRR implementation
*
* Copyright (C) 2006 Qumranet, Inc.
* Copyright 2010 Red Hat, Inc. and/or its affiliates.
* Copyright(C) 2015 Intel Corporation.
*
* Authors:
* Yaniv Kamay <yaniv@qumranet.com>
* Avi Kivity <avi@qumranet.com>
* Marcelo Tosatti <mtosatti@redhat.com>
* Paolo Bonzini <pbon... | ./CrossVul/dataset_final_sorted/CWE-284/c/bad_5019_0 |
crossvul-cpp_data_bad_5093_0 | /*
* socket.c
*
* Copyright (C) 2012 Martin Szulecki <m.szulecki@libimobiledevice.org>
* Copyright (C) 2012 Nikias Bassen <nikias@gmx.li>
*
* 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 Fou... | ./CrossVul/dataset_final_sorted/CWE-284/c/bad_5093_0 |
crossvul-cpp_data_bad_880_3 | /*
* Copyright (C) 2014-2019 Firejail Authors
*
* This file is part of firejail 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 o... | ./CrossVul/dataset_final_sorted/CWE-284/c/bad_880_3 |
crossvul-cpp_data_bad_1571_8 | /*
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed i... | ./CrossVul/dataset_final_sorted/CWE-284/c/bad_1571_8 |
crossvul-cpp_data_bad_2374_0 | /* -*- mode: c; c-file-style: "bsd"; indent-tabs-mode: t -*- */
/*
* Copyright 1993 OpenVision Technologies, Inc., All Rights Reserved.
*
*/
#include <k5-platform.h>
#include <gssrpc/rpc.h>
#include <gssapi/gssapi_krb5.h> /* for gss_nt_krb5_name */
#include <syslog.h>
#include <kadm5/kadm_rpc.h>
#include <krb5.h>
#... | ./CrossVul/dataset_final_sorted/CWE-284/c/bad_2374_0 |
crossvul-cpp_data_good_4810_0 | /*
* Copyright (C) the libgit2 contributors. All rights reserved.
*
* This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file.
*/
#ifndef GIT_WINHTTP
#include "git2.h"
#include "http_parser.h"
#include "buffer.h"
#include "netops.h"
#... | ./CrossVul/dataset_final_sorted/CWE-284/c/good_4810_0 |
crossvul-cpp_data_bad_5016_0 | /*
* libndp.c - Neighbour discovery library
* Copyright (C) 2013-2015 Jiri Pirko <jiri@resnulli.us>
*
* 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... | ./CrossVul/dataset_final_sorted/CWE-284/c/bad_5016_0 |
crossvul-cpp_data_bad_5349_2 | /*
* TCP over IPv6
* Linux INET6 implementation
*
* Authors:
* Pedro Roque <roque@di.fc.ul.pt>
*
* Based on:
* linux/net/ipv4/tcp.c
* linux/net/ipv4/tcp_input.c
* linux/net/ipv4/tcp_output.c
*
* Fixes:
* Hideaki YOSHIFUJI : sin6_scope_id support
* YOSHIFUJI Hideaki @USAGI and: Support IPV6_V6ONLY socket ... | ./CrossVul/dataset_final_sorted/CWE-284/c/bad_5349_2 |
crossvul-cpp_data_bad_3852_0 | /*
* NETLINK Kernel-user communication protocol.
*
* Authors: Alan Cox <alan@lxorguk.ukuu.org.uk>
* Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Sof... | ./CrossVul/dataset_final_sorted/CWE-284/c/bad_3852_0 |
crossvul-cpp_data_good_880_1 | /*
* Copyright (C) 2014-2019 Firejail Authors
*
* This file is part of firejail 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 o... | ./CrossVul/dataset_final_sorted/CWE-284/c/good_880_1 |
crossvul-cpp_data_good_5396_2 | /*
* The Python Imaging Library
* $Id$
*
* imaging storage object
*
* This baseline implementation is designed to efficiently handle
* large images, provided they fit into the available memory.
*
* history:
* 1995-06-15 fl Created
* 1995-09-12 fl Updated API, compiles silently under ANSI C++
* 1995-11-2... | ./CrossVul/dataset_final_sorted/CWE-284/c/good_5396_2 |
crossvul-cpp_data_bad_4786_1 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-284/c/bad_4786_1 |
crossvul-cpp_data_bad_4811_0 | /*
* Copyright (C) the libgit2 contributors. All rights reserved.
*
* This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file.
*/
#ifndef GIT_WINHTTP
#include "git2.h"
#include "http_parser.h"
#include "buffer.h"
#include "netops.h"
#... | ./CrossVul/dataset_final_sorted/CWE-284/c/bad_4811_0 |
crossvul-cpp_data_good_1571_8 | /*
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed i... | ./CrossVul/dataset_final_sorted/CWE-284/c/good_1571_8 |
crossvul-cpp_data_good_4813_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-284/c/good_4813_0 |
crossvul-cpp_data_good_1571_6 | /*
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed i... | ./CrossVul/dataset_final_sorted/CWE-284/c/good_1571_6 |
crossvul-cpp_data_bad_4770_1 | /*****************************************************************************\
* src/slurmd/slurmd/req.c - slurmd request handling
*****************************************************************************
* Copyright (C) 2002-2007 The Regents of the University of California.
* Copyright (C) 2008-2010 Lawren... | ./CrossVul/dataset_final_sorted/CWE-284/c/bad_4770_1 |
crossvul-cpp_data_bad_1822_0 | /*
* Derived from "arch/i386/kernel/process.c"
* Copyright (C) 1995 Linus Torvalds
*
* Updated and modified by Cort Dougan (cort@cs.nmt.edu) and
* Paul Mackerras (paulus@cs.anu.edu.au)
*
* PowerPC version
* Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
*
* This program is free software; y... | ./CrossVul/dataset_final_sorted/CWE-284/c/bad_1822_0 |
crossvul-cpp_data_bad_1571_6 | /*
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed i... | ./CrossVul/dataset_final_sorted/CWE-284/c/bad_1571_6 |
crossvul-cpp_data_good_1571_2 | /*
Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed i... | ./CrossVul/dataset_final_sorted/CWE-284/c/good_1571_2 |
crossvul-cpp_data_good_880_2 | /*
* Copyright (C) 2014-2019 Firejail Authors
*
* This file is part of firejail 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 o... | ./CrossVul/dataset_final_sorted/CWE-284/c/good_880_2 |
crossvul-cpp_data_good_4786_1 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-284/c/good_4786_1 |
crossvul-cpp_data_bad_4896_2 | /*
* Common NFSv4 ACL handling code.
*
* Copyright (c) 2002, 2003 The Regents of the University of Michigan.
* All rights reserved.
*
* Marius Aamodt Eriksen <marius@umich.edu>
* Jeff Sedlak <jsedlak@umich.edu>
* J. Bruce Fields <bfields@umich.edu>
*
* Redistribution and use in source and binary forms,... | ./CrossVul/dataset_final_sorted/CWE-284/c/bad_4896_2 |
crossvul-cpp_data_bad_5075_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-284/c/bad_5075_1 |
crossvul-cpp_data_bad_4813_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-284/c/bad_4813_0 |
crossvul-cpp_data_bad_5017_0 | /*
* libndp.c - Neighbour discovery library
* Copyright (C) 2013-2015 Jiri Pirko <jiri@resnulli.us>
*
* 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... | ./CrossVul/dataset_final_sorted/CWE-284/c/bad_5017_0 |
crossvul-cpp_data_bad_5198_0 | /*
* linux/fs/open.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*/
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/file.h>
#include <linux/fdtable.h>
#include <linux/fsnotify.h>
#include <linux/module.h>
#include <linux/tty.h>
#include <linux/namei.h>
#include <linux/backing-dev.h>
#include <li... | ./CrossVul/dataset_final_sorted/CWE-284/c/bad_5198_0 |
crossvul-cpp_data_bad_4896_1 | /*
* Process version 3 NFSACL requests.
*
* Copyright (C) 2002-2003 Andreas Gruenbacher <agruen@suse.de>
*/
#include "nfsd.h"
/* FIXME: nfsacl.h is a broken header */
#include <linux/nfsacl.h>
#include <linux/gfp.h>
#include "cache.h"
#include "xdr3.h"
#include "vfs.h"
#define RETURN_STATUS(st) { resp->status = (... | ./CrossVul/dataset_final_sorted/CWE-284/c/bad_4896_1 |
crossvul-cpp_data_good_5093_0 | /*
* socket.c
*
* Copyright (C) 2012 Martin Szulecki <m.szulecki@libimobiledevice.org>
* Copyright (C) 2012 Nikias Bassen <nikias@gmx.li>
*
* 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 Fou... | ./CrossVul/dataset_final_sorted/CWE-284/c/good_5093_0 |
crossvul-cpp_data_bad_4786_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-284/c/bad_4786_0 |
crossvul-cpp_data_good_2374_0 | /* -*- mode: c; c-file-style: "bsd"; indent-tabs-mode: t -*- */
/*
* Copyright 1993 OpenVision Technologies, Inc., All Rights Reserved.
*
*/
#include <k5-int.h>
#include <gssrpc/rpc.h>
#include <gssapi/gssapi_krb5.h> /* for gss_nt_krb5_name */
#include <syslog.h>
#include <kadm5/kadm_rpc.h>
#include <krb5.h>
#inclu... | ./CrossVul/dataset_final_sorted/CWE-284/c/good_2374_0 |
crossvul-cpp_data_good_3852_0 | /*
* NETLINK Kernel-user communication protocol.
*
* Authors: Alan Cox <alan@lxorguk.ukuu.org.uk>
* Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Sof... | ./CrossVul/dataset_final_sorted/CWE-284/c/good_3852_0 |
crossvul-cpp_data_good_1571_5 | /*
Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed i... | ./CrossVul/dataset_final_sorted/CWE-284/c/good_1571_5 |
crossvul-cpp_data_good_5092_0 | /*
* socket.c
*
* Copyright (c) 2012 Martin Szulecki All Rights Reserved.
* Copyright (c) 2012 Nikias Bassen All Rights Reserved.
*
* 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;... | ./CrossVul/dataset_final_sorted/CWE-284/c/good_5092_0 |
crossvul-cpp_data_good_4896_0 | /*
* Process version 2 NFSACL requests.
*
* Copyright (C) 2002-2003 Andreas Gruenbacher <agruen@suse.de>
*/
#include "nfsd.h"
/* FIXME: nfsacl.h is a broken header */
#include <linux/nfsacl.h>
#include <linux/gfp.h>
#include "cache.h"
#include "xdr3.h"
#include "vfs.h"
#define NFSDDBG_FACILITY NFSDDBG_PROC
#defi... | ./CrossVul/dataset_final_sorted/CWE-284/c/good_4896_0 |
crossvul-cpp_data_good_880_3 | /*
* Copyright (C) 2014-2019 Firejail Authors
*
* This file is part of firejail 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 o... | ./CrossVul/dataset_final_sorted/CWE-284/c/good_880_3 |
crossvul-cpp_data_bad_5346_0 | /*
* IPv4 over IEEE 1394, per RFC 2734
* IPv6 over IEEE 1394, per RFC 3146
*
* Copyright (C) 2009 Jay Fenlason <fenlason@redhat.com>
*
* based on eth1394 by Ben Collins et al
*/
#include <linux/bug.h>
#include <linux/compiler.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/ethtool.h>
#incl... | ./CrossVul/dataset_final_sorted/CWE-284/c/bad_5346_0 |
crossvul-cpp_data_good_4811_0 | /*
* Copyright (C) the libgit2 contributors. All rights reserved.
*
* This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file.
*/
#ifndef GIT_WINHTTP
#include "git2.h"
#include "http_parser.h"
#include "buffer.h"
#include "netops.h"
#... | ./CrossVul/dataset_final_sorted/CWE-284/c/good_4811_0 |
crossvul-cpp_data_good_4786_2 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-284/c/good_4786_2 |
crossvul-cpp_data_good_5349_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.
*
* Implementation of the Transmission Control Protocol(TCP).
*
* IPv4 specific functions
*
*
* code split ... | ./CrossVul/dataset_final_sorted/CWE-284/c/good_5349_1 |
crossvul-cpp_data_bad_5349_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.
*
* Implementation of the Transmission Control Protocol(TCP).
*
* IPv4 specific functions
*
*
* code split ... | ./CrossVul/dataset_final_sorted/CWE-284/c/bad_5349_1 |
crossvul-cpp_data_good_5199_0 | /*
* linux/fs/namei.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*/
/*
* Some corrections by tytso.
*/
/* [Feb 1997 T. Schoebel-Theuer] Complete rewrite of the pathname
* lookup logic.
*/
/* [Feb-Apr 2000, AV] Rewrite to the new namespace architecture.
*/
#include <linux/init.h>
#include <linux/export.h... | ./CrossVul/dataset_final_sorted/CWE-284/c/good_5199_0 |
crossvul-cpp_data_good_2409_0 | /*
* linux/fs/namespace.c
*
* (C) Copyright Al Viro 2000, 2001
* Released under GPL v2.
*
* Based on code from fs/super.c, copyright Linus Torvalds and others.
* Heavily rewritten.
*/
#include <linux/syscalls.h>
#include <linux/export.h>
#include <linux/capability.h>
#include <linux/mnt_namespace.h>
#include ... | ./CrossVul/dataset_final_sorted/CWE-284/c/good_2409_0 |
crossvul-cpp_data_bad_1571_7 | /*
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed i... | ./CrossVul/dataset_final_sorted/CWE-284/c/bad_1571_7 |
crossvul-cpp_data_good_5017_0 | /*
* libndp.c - Neighbour discovery library
* Copyright (C) 2013-2015 Jiri Pirko <jiri@resnulli.us>
*
* 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... | ./CrossVul/dataset_final_sorted/CWE-284/c/good_5017_0 |
crossvul-cpp_data_bad_2421_0 | /*
* Copyright (c) 2005-2007 William Pitcock, et al.
* Rights to this code are as documented in doc/LICENSE.
*
* This file contains code for the CService FLAGS functions.
*
*/
#include "atheme.h"
#include "template.h"
DECLARE_MODULE_V1
(
"chanserv/flags", false, _modinit, _moddeinit,
PACKAGE_STRING,
"Atheme ... | ./CrossVul/dataset_final_sorted/CWE-284/c/bad_2421_0 |
crossvul-cpp_data_good_5019_0 | /*
* vMTRR implementation
*
* Copyright (C) 2006 Qumranet, Inc.
* Copyright 2010 Red Hat, Inc. and/or its affiliates.
* Copyright(C) 2015 Intel Corporation.
*
* Authors:
* Yaniv Kamay <yaniv@qumranet.com>
* Avi Kivity <avi@qumranet.com>
* Marcelo Tosatti <mtosatti@redhat.com>
* Paolo Bonzini <pbon... | ./CrossVul/dataset_final_sorted/CWE-284/c/good_5019_0 |
crossvul-cpp_data_good_1571_7 | /*
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed i... | ./CrossVul/dataset_final_sorted/CWE-284/c/good_1571_7 |
crossvul-cpp_data_bad_880_2 | /*
* Copyright (C) 2014-2019 Firejail Authors
*
* This file is part of firejail 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 o... | ./CrossVul/dataset_final_sorted/CWE-284/c/bad_880_2 |
crossvul-cpp_data_bad_5204_2 | /**************************************************************************
*
* Copyright (c) 2000-2003 Intel Corporation
* All rights reserved.
* Copyright (c) 2012 France Telecom All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provid... | ./CrossVul/dataset_final_sorted/CWE-284/c/bad_5204_2 |
crossvul-cpp_data_bad_1571_2 | /*
Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed i... | ./CrossVul/dataset_final_sorted/CWE-284/c/bad_1571_2 |
crossvul-cpp_data_good_5346_0 | /*
* IPv4 over IEEE 1394, per RFC 2734
* IPv6 over IEEE 1394, per RFC 3146
*
* Copyright (C) 2009 Jay Fenlason <fenlason@redhat.com>
*
* based on eth1394 by Ben Collins et al
*/
#include <linux/bug.h>
#include <linux/compiler.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/ethtool.h>
#incl... | ./CrossVul/dataset_final_sorted/CWE-284/c/good_5346_0 |
crossvul-cpp_data_bad_4896_0 | /*
* Process version 2 NFSACL requests.
*
* Copyright (C) 2002-2003 Andreas Gruenbacher <agruen@suse.de>
*/
#include "nfsd.h"
/* FIXME: nfsacl.h is a broken header */
#include <linux/nfsacl.h>
#include <linux/gfp.h>
#include "cache.h"
#include "xdr3.h"
#include "vfs.h"
#define NFSDDBG_FACILITY NFSDDBG_PROC
#defi... | ./CrossVul/dataset_final_sorted/CWE-284/c/bad_4896_0 |
crossvul-cpp_data_good_1822_0 | /*
* Derived from "arch/i386/kernel/process.c"
* Copyright (C) 1995 Linus Torvalds
*
* Updated and modified by Cort Dougan (cort@cs.nmt.edu) and
* Paul Mackerras (paulus@cs.anu.edu.au)
*
* PowerPC version
* Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
*
* This program is free software; y... | ./CrossVul/dataset_final_sorted/CWE-284/c/good_1822_0 |
crossvul-cpp_data_good_5075_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-284/c/good_5075_1 |
crossvul-cpp_data_good_5349_2 | /*
* TCP over IPv6
* Linux INET6 implementation
*
* Authors:
* Pedro Roque <roque@di.fc.ul.pt>
*
* Based on:
* linux/net/ipv4/tcp.c
* linux/net/ipv4/tcp_input.c
* linux/net/ipv4/tcp_output.c
*
* Fixes:
* Hideaki YOSHIFUJI : sin6_scope_id support
* YOSHIFUJI Hideaki @USAGI and: Support IPV6_V6ONLY socket ... | ./CrossVul/dataset_final_sorted/CWE-284/c/good_5349_2 |
crossvul-cpp_data_bad_4453_0 | // SPDX-License-Identifier: GPL-2.0
#include <linux/types.h>
#include <linux/tty.h>
#include <linux/tty_flip.h>
#include <linux/slab.h>
#include "speakup.h"
#include "spk_types.h"
#include "spk_priv.h"
struct spk_ldisc_data {
char buf;
struct completion completion;
bool buf_free;
};
static struct spk_synth *spk_t... | ./CrossVul/dataset_final_sorted/CWE-763/c/bad_4453_0 |
crossvul-cpp_data_good_4453_0 | // SPDX-License-Identifier: GPL-2.0
#include <linux/types.h>
#include <linux/tty.h>
#include <linux/tty_flip.h>
#include <linux/slab.h>
#include "speakup.h"
#include "spk_types.h"
#include "spk_priv.h"
struct spk_ldisc_data {
char buf;
struct completion completion;
bool buf_free;
};
static struct spk_synth *spk_t... | ./CrossVul/dataset_final_sorted/CWE-763/c/good_4453_0 |
crossvul-cpp_data_bad_4273_0 | /*
** $Id: lgc.c $
** Garbage Collector
** See Copyright Notice in lua.h
*/
#define lgc_c
#define LUA_CORE
#include "lprefix.h"
#include <stdio.h>
#include <string.h>
#include "lua.h"
#include "ldebug.h"
#include "ldo.h"
#include "lfunc.h"
#include "lgc.h"
#include "lmem.h"
#include "lobject.h"
#include "lstate.h... | ./CrossVul/dataset_final_sorted/CWE-763/c/bad_4273_0 |
crossvul-cpp_data_good_2997_0 | /*
* pcrypt - Parallel crypto wrapper.
*
* Copyright (C) 2009 secunet Security Networks AG
* Copyright (C) 2009 Steffen Klassert <steffen.klassert@secunet.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* versio... | ./CrossVul/dataset_final_sorted/CWE-763/c/good_2997_0 |
crossvul-cpp_data_bad_2997_0 | /*
* pcrypt - Parallel crypto wrapper.
*
* Copyright (C) 2009 secunet Security Networks AG
* Copyright (C) 2009 Steffen Klassert <steffen.klassert@secunet.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* versio... | ./CrossVul/dataset_final_sorted/CWE-763/c/bad_2997_0 |
crossvul-cpp_data_good_4273_0 | /*
** $Id: lgc.c $
** Garbage Collector
** See Copyright Notice in lua.h
*/
#define lgc_c
#define LUA_CORE
#include "lprefix.h"
#include <stdio.h>
#include <string.h>
#include "lua.h"
#include "ldebug.h"
#include "ldo.h"
#include "lfunc.h"
#include "lgc.h"
#include "lmem.h"
#include "lobject.h"
#include "lstate.h... | ./CrossVul/dataset_final_sorted/CWE-763/c/good_4273_0 |
crossvul-cpp_data_good_724_0 | /* Copyright (C) 2007-2017 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-347/c/good_724_0 |
crossvul-cpp_data_bad_315_0 | /*
* interfaces to the secrets.c library functions in libopenswan.
* for now, just stupid wrappers!
*
* Copyright (C) 1998-2001 D. Hugh Redelmeier.
* Copyright (C) 2003-2015 Michael Richardson <mcr@xelerance.com>
* Copyright (C) 2003-2010 Paul Wouters <paul@xelerance.com>
* Copyright (C) 2008 David McCullough ... | ./CrossVul/dataset_final_sorted/CWE-347/c/bad_315_0 |
crossvul-cpp_data_good_315_0 | /*
* interfaces to the secrets.c library functions in libopenswan.
* for now, just stupid wrappers!
*
* Copyright (C) 1998-2001 D. Hugh Redelmeier.
* Copyright (C) 2003-2015 Michael Richardson <mcr@xelerance.com>
* Copyright (C) 2003-2010 Paul Wouters <paul@xelerance.com>
* Copyright (C) 2008 David McCullough ... | ./CrossVul/dataset_final_sorted/CWE-347/c/good_315_0 |
crossvul-cpp_data_bad_327_1 | /*
* Copyright (c) 2007-2017, Cameron Rich
*
* 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 copyright notice,
* this list... | ./CrossVul/dataset_final_sorted/CWE-347/c/bad_327_1 |
crossvul-cpp_data_bad_3998_0 | #include "curveMath.h"
#include <string.h>
int pointZZ_pEqual(const PointZZ_p * op1, const PointZZ_p * op2) {
// check x coords
if(mpz_cmp(op1->x, op2->x) != 0) {
return 0;
}
// check y coords
if(mpz_cmp(op1->y, op2->y) != 0) {
return 0;
}
return 1;
}
void pointZZ_pDouble... | ./CrossVul/dataset_final_sorted/CWE-347/c/bad_3998_0 |
crossvul-cpp_data_good_327_1 | /*
* Copyright (c) 2007-2017, Cameron Rich
*
* 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 copyright notice,
* this list... | ./CrossVul/dataset_final_sorted/CWE-347/c/good_327_1 |
crossvul-cpp_data_good_3998_0 | #include "curveMath.h"
#include <string.h>
int pointZZ_pEqual(const PointZZ_p * op1, const PointZZ_p * op2) {
// check x coords
if(mpz_cmp(op1->x, op2->x) != 0) {
return 0;
}
// check y coords
if(mpz_cmp(op1->y, op2->y) != 0) {
return 0;
}
return 1;
}
int pointZZ_pIsIdent... | ./CrossVul/dataset_final_sorted/CWE-347/c/good_3998_0 |
crossvul-cpp_data_bad_724_0 | /* Copyright (C) 2007-2017 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-347/c/bad_724_0 |
crossvul-cpp_data_bad_4255_1 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "hermes/VM/JSObject.h"
#include "hermes/VM/BuildMetadata.h"
#include "hermes/VM/Callable.h"
#include "hermes/VM/HostModel... | ./CrossVul/dataset_final_sorted/CWE-843/cpp/bad_4255_1 |
crossvul-cpp_data_bad_4749_0 | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2016 Facebook, Inc. (http://www.facebook.com) |
| Copyrigh... | ./CrossVul/dataset_final_sorted/CWE-843/cpp/bad_4749_0 |
crossvul-cpp_data_good_2808_0 | /*****************************************************************
|
| AP4 - sample entries
|
| Copyright 2002-2008 Axiomatic Systems, LLC
|
|
| This file is part of Bento4/AP4 (MP4 Atom Processing Library).
|
| Unless you have obtained Bento4 under a difference license,
| this version of Bento4 is Bento... | ./CrossVul/dataset_final_sorted/CWE-843/cpp/good_2808_0 |
crossvul-cpp_data_good_4749_0 | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2016 Facebook, Inc. (http://www.facebook.com) |
| Copyrigh... | ./CrossVul/dataset_final_sorted/CWE-843/cpp/good_4749_0 |
crossvul-cpp_data_bad_2808_0 | /*****************************************************************
|
| AP4 - sample entries
|
| Copyright 2002-2008 Axiomatic Systems, LLC
|
|
| This file is part of Bento4/AP4 (MP4 Atom Processing Library).
|
| Unless you have obtained Bento4 under a difference license,
| this version of Bento4 is Bento... | ./CrossVul/dataset_final_sorted/CWE-843/cpp/bad_2808_0 |
crossvul-cpp_data_good_4255_1 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "hermes/VM/JSObject.h"
#include "hermes/VM/BuildMetadata.h"
#include "hermes/VM/Callable.h"
#include "hermes/VM/HostModel... | ./CrossVul/dataset_final_sorted/CWE-843/cpp/good_4255_1 |
crossvul-cpp_data_good_842_0 | /*
* Copyright (c) 2018-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <fizz/record/EncryptedRecordLayer.h>
#include <fizz/crypto/aead/IOBufUtil.h>
namespace fizz {... | ./CrossVul/dataset_final_sorted/CWE-400/cpp/good_842_0 |
crossvul-cpp_data_good_4323_0 | /**
* SPDX-FileCopyrightText: 2013 Albert Vaca <albertvaka@gmail.com>
* SPDX-FileCopyrightText: 2014 Alejandro Fiestas Olivares <afiestas@kde.org>
*
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#include "socketlinereader.h"
SocketLineReader::SocketLineReader(QSslSocke... | ./CrossVul/dataset_final_sorted/CWE-400/cpp/good_4323_0 |
crossvul-cpp_data_bad_4321_0 | /**
* SPDX-FileCopyrightText: 2013 Albert Vaca <albertvaka@gmail.com>
*
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#include "lanlinkprovider.h"
#include "core_debug.h"
#ifndef Q_OS_WIN
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include ... | ./CrossVul/dataset_final_sorted/CWE-400/cpp/bad_4321_0 |
crossvul-cpp_data_bad_455_0 | #include "sass.hpp"
#include "parser.hpp"
#include "file.hpp"
#include "inspect.hpp"
#include "constants.hpp"
#include "util.hpp"
#include "prelexer.hpp"
#include "color_maps.hpp"
#include "sass/functions.h"
#include "error_handling.hpp"
// Notes about delayed: some ast nodes can have delayed evaluation so
// they can... | ./CrossVul/dataset_final_sorted/CWE-400/cpp/bad_455_0 |
crossvul-cpp_data_good_4322_0 | /**
* SPDX-FileCopyrightText: 2013 Albert Vaca <albertvaka@gmail.com>
*
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#include "lanlinkprovider.h"
#include "core_debug.h"
#ifndef Q_OS_WIN
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include ... | ./CrossVul/dataset_final_sorted/CWE-400/cpp/good_4322_0 |
crossvul-cpp_data_bad_4324_0 | /**
* SPDX-FileCopyrightText: 2013 Albert Vaca <albertvaka@gmail.com>
*
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#include "lanlinkprovider.h"
#include "core_debug.h"
#ifndef Q_OS_WIN
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include ... | ./CrossVul/dataset_final_sorted/CWE-400/cpp/bad_4324_0 |
crossvul-cpp_data_good_843_0 | /*
* Copyright (c) 2018-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <fizz/record/EncryptedRecordLayer.h>
#include <fizz/crypto/aead/IOBufUtil.h>
namespace fizz {... | ./CrossVul/dataset_final_sorted/CWE-400/cpp/good_843_0 |
crossvul-cpp_data_bad_843_0 | /*
* Copyright (c) 2018-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <fizz/record/EncryptedRecordLayer.h>
#include <fizz/crypto/aead/IOBufUtil.h>
namespace fizz {... | ./CrossVul/dataset_final_sorted/CWE-400/cpp/bad_843_0 |
crossvul-cpp_data_bad_842_1 | /*
* Copyright (c) 2018-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <fizz/record/RecordLayer.h>
namespace fizz {
using HandshakeTypeType = typename std::underly... | ./CrossVul/dataset_final_sorted/CWE-400/cpp/bad_842_1 |
crossvul-cpp_data_good_4319_0 | /**
* SPDX-FileCopyrightText: 2013 Albert Vaca <albertvaka@gmail.com>
*
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#include "lanlinkprovider.h"
#include "core_debug.h"
#ifndef Q_OS_WIN
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include ... | ./CrossVul/dataset_final_sorted/CWE-400/cpp/good_4319_0 |
crossvul-cpp_data_bad_4322_0 | /**
* SPDX-FileCopyrightText: 2013 Albert Vaca <albertvaka@gmail.com>
*
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#include "lanlinkprovider.h"
#include "core_debug.h"
#ifndef Q_OS_WIN
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include ... | ./CrossVul/dataset_final_sorted/CWE-400/cpp/bad_4322_0 |
crossvul-cpp_data_good_4320_0 | /**
* SPDX-FileCopyrightText: 2013 Albert Vaca <albertvaka@gmail.com>
*
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#include "lanlinkprovider.h"
#include "core_debug.h"
#ifndef Q_OS_WIN
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include ... | ./CrossVul/dataset_final_sorted/CWE-400/cpp/good_4320_0 |
crossvul-cpp_data_bad_843_1 | /*
* Copyright (c) 2018-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <folly/portability/GMock.h>
#include <folly/portability/GTest.h>
#include <fizz/record/Encryp... | ./CrossVul/dataset_final_sorted/CWE-400/cpp/bad_843_1 |
crossvul-cpp_data_bad_4320_0 | /**
* SPDX-FileCopyrightText: 2013 Albert Vaca <albertvaka@gmail.com>
*
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#include "lanlinkprovider.h"
#include "core_debug.h"
#ifndef Q_OS_WIN
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include ... | ./CrossVul/dataset_final_sorted/CWE-400/cpp/bad_4320_0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.