id stringlengths 25 30 | content stringlengths 14 942k | max_stars_repo_path stringlengths 49 55 |
|---|---|---|
crossvul-cpp_data_good_5845_14 | /*
* iovec manipulation routines.
*
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*
* Fixes:
* Andrew... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_5845_14 |
crossvul-cpp_data_good_1562_0 | #include <gio/gio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <pwd.h>
#include <grp.h>
#include "libabrt.h"
#include "abrt-polkit.h"
#include "abrt_glib.h"
#include <libreport/dump_dir.h>
#include "problem_api.h"
static GMainLoop *loop;
static guint g_timeout_source;
/* default, settable with -t: */
static ... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_1562_0 |
crossvul-cpp_data_bad_405_0 | /*
* Copyright (C) 2012,2013 - ARM Ltd
* Author: Marc Zyngier <marc.zyngier@arm.com>
*
* Derived from arch/arm/kvm/guest.c:
* Copyright (C) 2012 - Virtual Open Systems and Columbia University
* Author: Christoffer Dall <c.dall@virtualopensystems.com>
*
* This program is free software; you can redistribute it an... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_405_0 |
crossvul-cpp_data_bad_3988_1 | #include "clar_libgit2.h"
#include "path.h"
static char *gitmodules_altnames[] = {
".gitmodules",
/*
* Equivalent to the ".git\u200cmodules" string from git but hard-coded
* as a UTF-8 sequence
*/
".git\xe2\x80\x8cmodules",
".Gitmodules",
".gitmoduleS",
".gitmodules ",
".gitmodules.",
".gitmodules ",... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_3988_1 |
crossvul-cpp_data_bad_5819_0 | /*
* Flash Screen Video decoder
* Copyright (C) 2004 Alex Beregszaszi
* Copyright (C) 2006 Benjamin Larsson
*
* 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 Found... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_5819_0 |
crossvul-cpp_data_bad_2802_3 | /* nautilus-metadata.c - metadata utils
*
* Copyright (C) 2009 Red Hatl, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your opti... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_2802_3 |
crossvul-cpp_data_bad_1560_0 | /*
* Copyright (c) 1993, 1994, 1995, 1996
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that: (1) source code distributions
* retain the above copyright notice and this paragraph in... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_1560_0 |
crossvul-cpp_data_bad_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/bad_3509_0 |
crossvul-cpp_data_bad_2089_0 | /*
* linux/fs/nfs/write.c
*
* Write file data over NFS.
*
* Copyright (C) 1996, 1997, Olaf Kirch <okir@monad.swb.de>
*/
#include <linux/types.h>
#include <linux/slab.h>
#include <linux/mm.h>
#include <linux/pagemap.h>
#include <linux/file.h>
#include <linux/writeback.h>
#include <linux/swap.h>
#include <linux/mi... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_2089_0 |
crossvul-cpp_data_good_5845_9 | /*
BlueZ - Bluetooth protocol stack for Linux
Copyright (C) 2000-2001 Qualcomm Incorporated
Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.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 t... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_5845_9 |
crossvul-cpp_data_good_1762_1 | /* 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/good_1762_1 |
crossvul-cpp_data_good_1745_0 | /*
* linux/fs/ext4/namei.c
*
* Copyright (C) 1992, 1993, 1994, 1995
* Remy Card (card@masi.ibp.fr)
* Laboratoire MASI - Institut Blaise Pascal
* Universite Pierre et Marie Curie (Paris VI)
*
* from
*
* linux/fs/minix/namei.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*
* Big-endian to little-endian... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_1745_0 |
crossvul-cpp_data_good_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/good_5185_0 |
crossvul-cpp_data_bad_3480_0 | // TODO some minor issues
/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 2001 - 2007 Tensilica Inc.
*
* Joe Taylor <joe@tensilica.com, joetylr@yahoo.com>
* Chris Zanke... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_3480_0 |
crossvul-cpp_data_good_1053_0 | /* $OpenBSD: doas.c,v 1.57 2016/06/19 19:29:43 martijn Exp $ */
/*
* Copyright (c) 2015 Ted Unangst <tedu@openbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice app... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_1053_0 |
crossvul-cpp_data_bad_5653_0 | /*
* Per core/cpu state
*
* Used to coordinate shared registers between HT threads or
* among events on a single PMU.
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/stddef.h>
#include <linux/types.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/export.h>
#include <asm/hardirq.... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_5653_0 |
crossvul-cpp_data_bad_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/bad_5110_0 |
crossvul-cpp_data_bad_5109_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/bad_5109_0 |
crossvul-cpp_data_good_5285_0 | /*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2016 The PHP Group |
+---------... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_5285_0 |
crossvul-cpp_data_good_2627_0 | /*
* 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 source code must retain the above copyright
* notice,... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_2627_0 |
crossvul-cpp_data_bad_5845_16 | /*********************************************************************
*
* Filename: af_irda.c
* Version: 0.9
* Description: IrDA sockets implementation
* Status: Stable
* Author: Dag Brattli <dagb@cs.uit.no>
* Created at: Sun May 31 10:12:43 1998
* Modified at: Sat Dec 25 21:10:... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_5845_16 |
crossvul-cpp_data_good_2433_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_2433_0 |
crossvul-cpp_data_bad_1563_0 | #include <gio/gio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <pwd.h>
#include <grp.h>
#include "libabrt.h"
#include "abrt-polkit.h"
#include "abrt_glib.h"
#include <libreport/dump_dir.h>
#include "problem_api.h"
static GMainLoop *loop;
static guint g_timeout_source;
/* default, settable with -t: */
static ... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_1563_0 |
crossvul-cpp_data_good_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/good_3290_0 |
crossvul-cpp_data_bad_5415_1 | /*
* Copyright (c) 1999-2000 Image Power, Inc. and the University of
* British Columbia.
* Copyright (c) 2001-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 P... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_5415_1 |
crossvul-cpp_data_good_2253_1 | /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* Monkey HTTP Server
* ==================
* Copyright 2001-2014 Monkey Software LLC <eduardo@monkey.io>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_2253_1 |
crossvul-cpp_data_good_3987_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_3987_1 |
crossvul-cpp_data_good_3019_0 | /*
* linux/mm/mlock.c
*
* (C) Copyright 1995 Linus Torvalds
* (C) Copyright 2002 Christoph Hellwig
*/
#include <linux/capability.h>
#include <linux/mman.h>
#include <linux/mm.h>
#include <linux/sched/user.h>
#include <linux/swap.h>
#include <linux/swapops.h>
#include <linux/pagemap.h>
#include <linux/pagevec.h>... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_3019_0 |
crossvul-cpp_data_good_5183_0 | /* Crop support
* manual crop using a gdRect or automatic crop using a background
* color (automatic detections or using either the transparent color,
* black or white).
* An alternative method allows to crop using a given color and a
* threshold. It works relatively well but it can be improved.
* Maybe L*a*b* an... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_5183_0 |
crossvul-cpp_data_good_5845_15 | /*
* 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-20/c/good_5845_15 |
crossvul-cpp_data_good_5845_8 | /*
BlueZ - Bluetooth protocol stack for Linux
Copyright (C) 2000-2001 Qualcomm Incorporated
Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.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 t... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_5845_8 |
crossvul-cpp_data_bad_3580_0 | /*
* Functions related to io context handling
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/bio.h>
#include <linux/blkdev.h>
#include <linux/bootmem.h> /* for max_pfn/max_low_pfn */
#include "blk.h"
/*
* For io context allocations
*/
static struct kmem_cache *iocon... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_3580_0 |
crossvul-cpp_data_bad_4783_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_4783_0 |
crossvul-cpp_data_bad_365_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_365_0 |
crossvul-cpp_data_good_2162_3 | /*
* Kernel-based Virtual Machine driver for Linux
*
* This module enables machines with Intel VT-x extensions to run virtual
* machines without emulation or binary translation.
*
* Copyright (C) 2006 Qumranet, Inc.
* Copyright 2010 Red Hat, Inc. and/or its affiliates.
*
* Authors:
* Avi Kivity <avi@qumra... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_2162_3 |
crossvul-cpp_data_good_3025_1 | /*
* IPP routines for the CUPS scheduler.
*
* Copyright 2007-2016 by Apple Inc.
* Copyright 1997-2007 by Easy Software Products, all rights reserved.
*
* This file contains Kerberos support code, copyright 2006 by
* Jelmer Vernooij.
*
* These coded instructions, statements, and computer programs are the
* pro... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_3025_1 |
crossvul-cpp_data_good_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/good_5845_24 |
crossvul-cpp_data_good_5845_13 | /*
* 32bit Socket syscall emulation. Based on arch/sparc64/kernel/sys_sparc32.c.
*
* Copyright (C) 2000 VA Linux Co
* Copyright (C) 2000 Don Dugger <n0ano@valinux.com>
* Copyright (C) 1999 Arun Sharma <arun.sharma@intel.com>
* Copyright (C) 1997,1998 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
* Copyright (C) 19... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_5845_13 |
crossvul-cpp_data_bad_3192_0 | /*
* bplist.c
* Binary plist implementation
*
* Copyright (c) 2011-2017 Nikias Bassen, All Rights Reserved.
* Copyright (c) 2008-2010 Jonathan Beck, 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 p... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_3192_0 |
crossvul-cpp_data_good_5415_1 | /*
* Copyright (c) 1999-2000 Image Power, Inc. and the University of
* British Columbia.
* Copyright (c) 2001-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 P... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_5415_1 |
crossvul-cpp_data_good_1763_0 | /* Key garbage collector
*
* Copyright (C) 2009-2011 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 Licence
* as published by the Free Software Foundation; ... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_1763_0 |
crossvul-cpp_data_bad_5544_1 | /*
* Network-device interface management.
*
* Copyright (c) 2004-2005, Keir Fraser
*
* 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; or, when distributed
* separately from the ... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_5544_1 |
crossvul-cpp_data_good_5544_2 | /*
* Back-end of the driver for virtual network devices. This portion of the
* driver exports a 'unified' network-device interface that can be accessed
* by any operating system that implements a compatible front end. A
* reference front-end implementation can be found in:
* drivers/net/xen-netfront.c
*
* Copyr... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_5544_2 |
crossvul-cpp_data_good_3174_0 | /*
* llc_conn.c - Driver routines for connection component.
*
* Copyright (c) 1997 by Procom Technology, Inc.
* 2001-2003 by Arnaldo Carvalho de Melo <acme@conectiva.com.br>
*
* This program can be redistributed or modified under the terms of the
* GNU General Public License as published by the Free Software F... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_3174_0 |
crossvul-cpp_data_good_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/good_5115_2 |
crossvul-cpp_data_bad_1762_0 | /* Key garbage collector
*
* Copyright (C) 2009-2011 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 Licence
* as published by the Free Software Foundation; ... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_1762_0 |
crossvul-cpp_data_bad_5711_2 | /* Generated by re2c 0.13.5 on Wed Mar 27 23:52:29 2013 */
#line 1 "Zend/zend_language_scanner.l"
/*
+----------------------------------------------------------------------+
| Zend Engine |
+---------------------------------------------------------------... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_5711_2 |
crossvul-cpp_data_bad_4965_0 | /*
* ALSA timer back-end using hrtimer
* Copyright (C) 2008 Takashi Iwai
*
* 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) a... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_4965_0 |
crossvul-cpp_data_bad_2035_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/module.h... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_2035_0 |
crossvul-cpp_data_bad_2802_1 | /* nautilus-file-operations.c - Nautilus file operations.
*
* Copyright (C) 1999, 2000 Free Software Foundation
* Copyright (C) 2000, 2001 Eazel, Inc.
* Copyright (C) 2007 Red Hat, Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public Li... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_2802_1 |
crossvul-cpp_data_good_2089_0 | /*
* linux/fs/nfs/write.c
*
* Write file data over NFS.
*
* Copyright (C) 1996, 1997, Olaf Kirch <okir@monad.swb.de>
*/
#include <linux/types.h>
#include <linux/slab.h>
#include <linux/mm.h>
#include <linux/pagemap.h>
#include <linux/file.h>
#include <linux/writeback.h>
#include <linux/swap.h>
#include <linux/mi... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_2089_0 |
crossvul-cpp_data_bad_406_0 | /*
* Copyright (C) 2012,2013 - ARM Ltd
* Author: Marc Zyngier <marc.zyngier@arm.com>
*
* Derived from arch/arm/kvm/guest.c:
* Copyright (C) 2012 - Virtual Open Systems and Columbia University
* Author: Christoffer Dall <c.dall@virtualopensystems.com>
*
* This program is free software; you can redistribute it an... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_406_0 |
crossvul-cpp_data_good_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/good_5845_12 |
crossvul-cpp_data_bad_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/bad_190_0 |
crossvul-cpp_data_bad_2891_7 | /* Keyring handling
*
* Copyright (C) 2004-2005, 2008, 2013 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_7 |
crossvul-cpp_data_good_1448_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... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_1448_1 |
crossvul-cpp_data_bad_243_0 | /**
* @file
* Send/receive commands to/from an IMAP server
*
* @authors
* Copyright (C) 1996-1998,2010,2012 Michael R. Elkins <me@mutt.org>
* Copyright (C) 1996-1999 Brandon Long <blong@fiction.net>
* Copyright (C) 1999-2009,2011 Brendan Cully <brendan@kublai.com>
*
* @copyright
* This program is free softwar... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_243_0 |
crossvul-cpp_data_good_5114_0 | /* netscreen.c
*
* Juniper NetScreen snoop output parser
* Created by re-using a lot of code from cosine.c
* Copyright (c) 2007 by Sake Blok <sake@euronet.nl>
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
*
* This program is free software; you can redistribute it and/or
* ... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_5114_0 |
crossvul-cpp_data_bad_5608_2 | /*
* 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_2 |
crossvul-cpp_data_good_2891_13 | /* user_defined.c: user defined key type
*
* Copyright (C) 2004 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 F... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_2891_13 |
crossvul-cpp_data_bad_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/bad_3661_0 |
crossvul-cpp_data_bad_2976_1 | /*
* Salsa20: Salsa20 stream cipher algorithm
*
* Copyright (c) 2007 Tan Swee Heng <thesweeheng@gmail.com>
*
* Derived from:
* - salsa20.c: Public domain C code by Daniel J. Bernstein <djb@cr.yp.to>
*
* Salsa20 is a stream cipher candidate in eSTREAM, the ECRYPT Stream
* Cipher Project. It is designed by Danie... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_2976_1 |
crossvul-cpp_data_good_5315_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_5315_0 |
crossvul-cpp_data_bad_1562_0 | #include <gio/gio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <pwd.h>
#include <grp.h>
#include "libabrt.h"
#include "abrt-polkit.h"
#include "abrt_glib.h"
#include <libreport/dump_dir.h>
#include "problem_api.h"
static GMainLoop *loop;
static guint g_timeout_source;
/* default, settable with -t: */
static ... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_1562_0 |
crossvul-cpp_data_good_3581_3 | /*
* 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-20/c/good_3581_3 |
crossvul-cpp_data_good_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/good_5845_23 |
crossvul-cpp_data_good_5844_3 | /*
* INET An implementation of the TCP/IP protocol suite for the LINUX
* operating system. INET is implemented using the BSD Socket
* interface as the means of communication with the user level.
*
* The User Datagram Protocol (UDP).
*
* Authors: Ross Biro
* Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_5844_3 |
crossvul-cpp_data_bad_5117_0 | /* State machine for IKEv1
* Copyright (C) 1997 Angelos D. Keromytis.
* Copyright (C) 1998-2010,2013-2015 D. Hugh Redelmeier <hugh@mimosa.com>
* Copyright (C) 2003-2008 Michael Richardson <mcr@xelerance.com>
* Copyright (C) 2008-2009 David McCullough <david_mccullough@securecomputing.com>
* Copyright (C) 2008-2010... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_5117_0 |
crossvul-cpp_data_good_4286_0 | /* CBOR-to-JSON translation utility */
#include "rtjsonsrc/osrtjson.h"
#include "rtcborsrc/osrtcbor.h"
#include "rtxsrc/rtxCharStr.h"
#include "rtxsrc/rtxContext.h"
#include "rtxsrc/rtxFile.h"
#include "rtxsrc/rtxHexDump.h"
#include <stdio.h>
#ifndef _NO_INT64_SUPPORT
#define OSUINTTYPE OSUINT64
#define OSINTTYPE OS... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_4286_0 |
crossvul-cpp_data_good_1563_0 | #include <gio/gio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <pwd.h>
#include <grp.h>
#include "libabrt.h"
#include "abrt-polkit.h"
#include "abrt_glib.h"
#include <libreport/dump_dir.h>
#include "problem_api.h"
static GMainLoop *loop;
static guint g_timeout_source;
/* default, settable with -t: */
static ... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_1563_0 |
crossvul-cpp_data_bad_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/bad_1821_2 |
crossvul-cpp_data_bad_2628_0 | /* dlist.c - list protocol for dump and sync
*
* 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 source code ... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_2628_0 |
crossvul-cpp_data_bad_1752_1 | #include <ruby.h>
#include <fiddle.h>
VALUE rb_cHandle;
struct dl_handle {
void *ptr;
int open;
int enable_close;
};
#ifdef _WIN32
# ifndef _WIN32_WCE
static void *
w32_coredll(void)
{
MEMORY_BASIC_INFORMATION m;
memset(&m, 0, sizeof(m));
if( !VirtualQuery(_errno, &m, sizeof(m)) ) return NU... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_1752_1 |
crossvul-cpp_data_good_245_0 | /**
* @file
* Send/receive commands to/from an IMAP server
*
* @authors
* Copyright (C) 1996-1998,2010,2012 Michael R. Elkins <me@mutt.org>
* Copyright (C) 1996-1999 Brandon Long <blong@fiction.net>
* Copyright (C) 1999-2009,2011 Brendan Cully <brendan@kublai.com>
*
* @copyright
* This program is free softwar... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_245_0 |
crossvul-cpp_data_good_4900_0 | /* 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.
*/
/*
* Code to handle user-settable options.... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_4900_0 |
crossvul-cpp_data_good_4701_2 | /*
server.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 version.... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_4701_2 |
crossvul-cpp_data_bad_2214_0 | /*
* LZ4 Decompressor for Linux kernel
*
* Copyright (C) 2013, LG Electronics, Kyungsik Lee <kyungsik.lee@lge.com>
*
* Based on LZ4 implementation by Yann Collet.
*
* LZ4 - Fast LZ compression algorithm
* Copyright (C) 2011-2012, Yann Collet.
* BSD 2-Clause License (http://www.opensource.org/licenses/bsd-licen... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_2214_0 |
crossvul-cpp_data_bad_2738_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_2738_0 |
crossvul-cpp_data_good_3174_1 | /*
* llc_sap.c - driver routines for SAP component.
*
* Copyright (c) 1997 by Procom Technology, Inc.
* 2001-2003 by Arnaldo Carvalho de Melo <acme@conectiva.com.br>
*
* This program can be redistributed or modified under the terms of the
* GNU General Public License as published by the Free Software Foundati... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_3174_1 |
crossvul-cpp_data_bad_3070_4 | /*
* 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_4 |
crossvul-cpp_data_bad_2739_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_2739_0 |
crossvul-cpp_data_good_1658_2 | /* ntp_config.c
*
* This file contains the ntpd configuration code.
*
* Written By: Sachin Kamboj
* University of Delaware
* Newark, DE 19711
* Some parts borrowed from the older ntp_config.c
* Copyright (c) 2006
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#ifdef HAVE_NETINFO
# include <netinfo/ni.... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_1658_2 |
crossvul-cpp_data_good_4790_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% M M AAA TTTTT L AAA BBBB ... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_4790_0 |
crossvul-cpp_data_bad_2627_0 | /*
* 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 source code must retain the above copyright
* notice,... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_2627_0 |
crossvul-cpp_data_good_5845_25 | /*
* 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-20/c/good_5845_25 |
crossvul-cpp_data_bad_5845_9 | /*
BlueZ - Bluetooth protocol stack for Linux
Copyright (C) 2000-2001 Qualcomm Incorporated
Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.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 t... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_5845_9 |
crossvul-cpp_data_bad_5613_1 | /*
* 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-20/c/bad_5613_1 |
crossvul-cpp_data_good_1564_0 | /*
Copyright (C) 2010 ABRT team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in th... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_1564_0 |
crossvul-cpp_data_bad_5039_4 | /*
* Copyright (c) 2009-2014 Petri Lehtinen <petri@digip.org>
*
* Jansson is free software; you can redistribute it and/or modify
* it under the terms of the MIT license. See LICENSE for details.
*/
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <errno.h>
#include <limits.h>
#include <stdio.h>
#include ... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_5039_4 |
crossvul-cpp_data_good_2739_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_2739_0 |
crossvul-cpp_data_bad_5845_1 | /*
* algif_skcipher: User-space interface for skcipher algorithms
*
* This file provides the user-space API for symmetric key ciphers.
*
* Copyright (c) 2010 Herbert Xu <herbert@gondor.apana.org.au>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General ... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_5845_1 |
crossvul-cpp_data_good_2891_12 | /*
* Copyright (C) 2010 IBM Corporation
*
* Author:
* David Safford <safford@us.ibm.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 Foundation, version 2 of the License.
*
* See Documentati... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_2891_12 |
crossvul-cpp_data_good_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/good_2080_0 |
crossvul-cpp_data_good_3379_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_3379_0 |
crossvul-cpp_data_bad_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/bad_4718_0 |
crossvul-cpp_data_good_1718_1 | /* $OpenBSD: monitor_wrap.c,v 1.85 2015/05/01 03:23:51 djm Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* Copyright 2002 Markus Friedl <markus@openbsd.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_1718_1 |
crossvul-cpp_data_bad_4286_0 | /* CBOR-to-JSON translation utility */
#include "rtjsonsrc/osrtjson.h"
#include "rtcborsrc/osrtcbor.h"
#include "rtxsrc/rtxCharStr.h"
#include "rtxsrc/rtxContext.h"
#include "rtxsrc/rtxFile.h"
#include "rtxsrc/rtxHexDump.h"
#include <stdio.h>
#ifndef _NO_INT64_SUPPORT
#define OSUINTTYPE OSUINT64
#define OSINTTYPE OS... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_4286_0 |
crossvul-cpp_data_good_2989_1 | /* Copyright (c) 2011-2014 PLUMgrid, http://plumgrid.com
* Copyright (c) 2016 Facebook
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public
* License as published by the Free Software Foundation.
*
* This program is distributed in th... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_2989_1 |
crossvul-cpp_data_bad_1221_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_1221_0 |
crossvul-cpp_data_good_3443_0 | /*
* ebtables
*
* Author:
* Bart De Schuymer <bdschuym@pandora.be>
*
* ebtables.c,v 2.0, July, 2002
*
* This code is stongly inspired on the iptables code which is
* Copyright (C) 1999 Paul `Rusty' Russell & Michael J. Neuling
*
* This program is free software; you can redistribute it and/or
* modi... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_3443_0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.