id stringlengths 25 30 | content stringlengths 14 942k | max_stars_repo_path stringlengths 49 55 |
|---|---|---|
crossvul-cpp_data_bad_3927_3 | /*!
* \file soft-se.c
*
* \brief Secure Element software implementation
*
* \copyright Revised BSD License, see section \ref LICENSE.
*
* \code
* ______ _
* / _____) _ | |
* ( (____ _____ ____ _| |_ _____... | ./CrossVul/dataset_final_sorted/CWE-120/c/bad_3927_3 |
crossvul-cpp_data_good_3888_0 | /* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* memcached - memory caching daemon
*
* https://www.memcached.org/
*
* Copyright 2003 Danga Interactive, Inc. All rights reserved.
*
* Use and distribution licensed under the BSD license. See
* the LICENSE file for full... | ./CrossVul/dataset_final_sorted/CWE-120/c/good_3888_0 |
crossvul-cpp_data_good_3927_0 | /*!
* \file LoRaMac.c
*
* \brief LoRa MAC layer implementation
*
* \copyright Revised BSD License, see section \ref LICENSE.
*
* \code
* ______ _
* / _____) _ | |
* ( (____ _____ ____ _| |_ _____ ____| |... | ./CrossVul/dataset_final_sorted/CWE-120/c/good_3927_0 |
crossvul-cpp_data_bad_1769_0 | /* -*- mode: c; c-file-style: "openbsd" -*- */
/*
* Copyright (c) 2008 Vincent Bernat <bernat@luffy.cx>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all c... | ./CrossVul/dataset_final_sorted/CWE-120/c/bad_1769_0 |
crossvul-cpp_data_bad_4523_3 | /* NetHack 3.6 unixmain.c $NHDT-Date: 1570408210 2019/10/07 00:30:10 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.70 $ */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/*-Copyright (c) Robert Patrick Rankin, 2011. */
/* NetHack may be freely redistributed. See license for details. */
/* mai... | ./CrossVul/dataset_final_sorted/CWE-120/c/bad_4523_3 |
crossvul-cpp_data_bad_4523_1 | /* NetHack 3.6 topten.c $NHDT-Date: 1450451497 2015/12/18 15:11:37 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.44 $ */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/*-Copyright (c) Robert Patrick Rankin, 2012. */
/* NetHack may be freely redistributed. See license for details. */
#inclu... | ./CrossVul/dataset_final_sorted/CWE-120/c/bad_4523_1 |
crossvul-cpp_data_good_998_0 | /*
* Marvell Wireless LAN device driver: management IE handling- setting and
* deleting IE.
*
* Copyright (C) 2012-2014, Marvell International Ltd.
*
* This software file (the "File") is distributed by Marvell International
* Ltd. under the terms of the GNU General Public License Version 2, June 1991
* (the "Li... | ./CrossVul/dataset_final_sorted/CWE-120/c/good_998_0 |
crossvul-cpp_data_bad_4697_3 | /*
* irc-server.c - I/O communication with IRC servers
*
* Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org>
* Copyright (C) 2005-2010 Emmanuel Bouthenot <kolter@openics.org>
* Copyright (C) 2012 Simon Arlott
*
* This file is part of WeeChat, the extensible chat client.
*
* WeeChat is free soft... | ./CrossVul/dataset_final_sorted/CWE-120/c/bad_4697_3 |
crossvul-cpp_data_good_999_1 | /*
* Marvell Wireless LAN device driver: AP specific command handling
*
* Copyright (C) 2012-2014, Marvell International Ltd.
*
* This software file (the "File") is distributed by Marvell International
* Ltd. under the terms of the GNU General Public License Version 2, June 1991
* (the "License"). You may use, ... | ./CrossVul/dataset_final_sorted/CWE-120/c/good_999_1 |
crossvul-cpp_data_good_4697_3 | /*
* irc-server.c - I/O communication with IRC servers
*
* Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org>
* Copyright (C) 2005-2010 Emmanuel Bouthenot <kolter@openics.org>
* Copyright (C) 2012 Simon Arlott
*
* This file is part of WeeChat, the extensible chat client.
*
* WeeChat is free soft... | ./CrossVul/dataset_final_sorted/CWE-120/c/good_4697_3 |
crossvul-cpp_data_good_4588_2 | /*
* The Python Imaging Library.
* $Id$
*
* decoder for PCX image data.
*
* history:
* 95-09-14 fl Created
*
* Copyright (c) Fredrik Lundh 1995.
* Copyright (c) Secret Labs AB 1997.
*
* See the README file for information on usage and redistribution.
*/
#include "Imaging.h"
int
ImagingPcxDecode(Imaging ... | ./CrossVul/dataset_final_sorted/CWE-120/c/good_4588_2 |
crossvul-cpp_data_bad_3927_1 | /**
* @file atecc608a-tnglora-se.c
*
* @brief ATECC608A-TNGLORA Secure Element hardware implementation
*
* @remark Current implementation only supports LoRaWAN 1.0.x version
*
* @copyright Copyright (c) 2020 The Things Industries B.V.
*
* Revised BSD License
* Copyright The Things Industries B.V 2... | ./CrossVul/dataset_final_sorted/CWE-120/c/bad_3927_1 |
crossvul-cpp_data_good_2394_0 | /*****************************************************************************
* update.c: VLC update checking and downloading
*****************************************************************************
* Copyright © 2005-2008 VLC authors and VideoLAN
* $Id$
*
* Authors: Antoine Cellerier <dionoea -at- videolan... | ./CrossVul/dataset_final_sorted/CWE-120/c/good_2394_0 |
crossvul-cpp_data_good_4711_1 | /*
ettercap -- GTK+ GUI
Copyright (C) ALoR & NaGA
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-120/c/good_4711_1 |
crossvul-cpp_data_good_4403_1 | /* Generated by Cython 0.29.21 */
/* BEGIN: Cython Metadata
{
"distutils": {
"depends": [],
"name": "clickhouse_driver.bufferedreader",
"sources": [
"/home/klebedev/work/clickhouse-driver/clickhouse_driver/bufferedreader.pyx"
]
},
"module_name": "clickhouse_drive... | ./CrossVul/dataset_final_sorted/CWE-120/c/good_4403_1 |
crossvul-cpp_data_good_4587_3 | /*
* The Python Imaging Library.
* $Id$
*
* decoder for Sgi RLE data.
*
* history:
* 2017-07-28 mb fixed for images larger than 64KB
* 2017-07-20 mb created
*
* Copyright (c) Mickael Bonfill 2017.
*
* See the README file for information on usage and redistribution.
*/
#include "Imaging.h"
#include "Sgi... | ./CrossVul/dataset_final_sorted/CWE-120/c/good_4587_3 |
crossvul-cpp_data_bad_2396_0 | /*****************************************************************************
* schroedinger.c: Dirac decoder module making use of libschroedinger.
* (http://www.bbc.co.uk/rd/projects/dirac/index.shtml)
* (http://diracvideo.org)
********************************************************************... | ./CrossVul/dataset_final_sorted/CWE-120/c/bad_2396_0 |
crossvul-cpp_data_bad_3862_1 | /*
* Copyright (c) 2016 Intel Corporation.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <tc_util.h>
#include <mqtt_internal.h>
#include <sys/util.h> /* for ARRAY_SIZE */
#include <ztest.h>
#define CLIENTID MQTT_UTF8_LITERAL("zephyr")
#define TOPIC MQTT_UTF8_LITERAL("sensors")
#define WILL_TOPIC MQTT_UTF8_... | ./CrossVul/dataset_final_sorted/CWE-120/c/bad_3862_1 |
crossvul-cpp_data_bad_4587_3 | /*
* The Python Imaging Library.
* $Id$
*
* decoder for Sgi RLE data.
*
* history:
* 2017-07-28 mb fixed for images larger than 64KB
* 2017-07-20 mb created
*
* Copyright (c) Mickael Bonfill 2017.
*
* See the README file for information on usage and redistribution.
*/
#include "Imaging.h"
#include "Sgi... | ./CrossVul/dataset_final_sorted/CWE-120/c/bad_4587_3 |
crossvul-cpp_data_bad_4403_1 | /* Generated by Cython 0.29.17 */
/* BEGIN: Cython Metadata
{
"distutils": {
"depends": [],
"name": "clickhouse_driver.bufferedreader",
"sources": [
"clickhouse_driver/bufferedreader.pyx"
]
},
"module_name": "clickhouse_driver.bufferedreader"
}
END: Cython Metada... | ./CrossVul/dataset_final_sorted/CWE-120/c/bad_4403_1 |
crossvul-cpp_data_good_4658_0 | /*
* eap.c - Extensible Authentication Protocol for PPP (RFC 2284)
*
* Copyright (c) 2001 by Sun Microsystems, Inc.
* All rights reserved.
*
* Non-exclusive rights to redistribute, modify, translate, and use
* this software in source and binary forms, in whole or in part, is
* hereby granted, provided that the ... | ./CrossVul/dataset_final_sorted/CWE-120/c/good_4658_0 |
crossvul-cpp_data_bad_3862_0 | /*
* Copyright (c) 2018 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
/** @file mqtt_decoder.c
*
* @brief Decoder functions needed for decoding packets received from the
* broker.
*/
#include <logging/log.h>
LOG_MODULE_REGISTER(net_mqtt_dec, CONFIG_MQTT_LOG_LEVEL);
#include "mqtt... | ./CrossVul/dataset_final_sorted/CWE-120/c/bad_3862_0 |
crossvul-cpp_data_good_287_0 | /*
* Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 2000
* 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 ab... | ./CrossVul/dataset_final_sorted/CWE-120/c/good_287_0 |
crossvul-cpp_data_bad_3888_0 | /* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* memcached - memory caching daemon
*
* https://www.memcached.org/
*
* Copyright 2003 Danga Interactive, Inc. All rights reserved.
*
* Use and distribution licensed under the BSD license. See
* the LICENSE file for full... | ./CrossVul/dataset_final_sorted/CWE-120/c/bad_3888_0 |
crossvul-cpp_data_good_4697_1 | /*
* irc-nick.c - nick management for IRC plugin
*
* Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
* WeeChat is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publi... | ./CrossVul/dataset_final_sorted/CWE-120/c/good_4697_1 |
crossvul-cpp_data_good_1769_0 | /* -*- mode: c; c-file-style: "openbsd" -*- */
/*
* Copyright (c) 2008 Vincent Bernat <bernat@luffy.cx>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all c... | ./CrossVul/dataset_final_sorted/CWE-120/c/good_1769_0 |
crossvul-cpp_data_bad_3995_0 | // SPDX-License-Identifier: ISC
/*
* Copyright (C) 2016 Felix Fietkau <nbd@nbd.name>
*/
#include <linux/dma-mapping.h>
#include "mt76.h"
#include "dma.h"
static int
mt76_dma_alloc_queue(struct mt76_dev *dev, struct mt76_queue *q,
int idx, int n_desc, int bufsize,
u32 ring_base)
{
int size;
int i;
... | ./CrossVul/dataset_final_sorted/CWE-120/c/bad_3995_0 |
crossvul-cpp_data_bad_998_1 | /*
* Marvell Wireless LAN device driver: AP specific command handling
*
* Copyright (C) 2012-2014, Marvell International Ltd.
*
* This software file (the "File") is distributed by Marvell International
* Ltd. under the terms of the GNU General Public License Version 2, June 1991
* (the "License"). You may use, ... | ./CrossVul/dataset_final_sorted/CWE-120/c/bad_998_1 |
crossvul-cpp_data_bad_3861_0 | /*
* Copyright (c) 2018 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <logging/log.h>
LOG_MODULE_REGISTER(net_mqtt_rx, CONFIG_MQTT_LOG_LEVEL);
#include "mqtt_internal.h"
#include "mqtt_transport.h"
#include "mqtt_os.h"
/** @file mqtt_rx.c
*
* @brief MQTT Received data handling.
... | ./CrossVul/dataset_final_sorted/CWE-120/c/bad_3861_0 |
crossvul-cpp_data_bad_4658_0 | /*
* eap.c - Extensible Authentication Protocol for PPP (RFC 2284)
*
* Copyright (c) 2001 by Sun Microsystems, Inc.
* All rights reserved.
*
* Non-exclusive rights to redistribute, modify, translate, and use
* this software in source and binary forms, in whole or in part, is
* hereby granted, provided that the ... | ./CrossVul/dataset_final_sorted/CWE-120/c/bad_4658_0 |
crossvul-cpp_data_bad_1199_0 | /* FriBidi
* fribidi-bidi.c - bidirectional algorithm
*
* Authors:
* Behdad Esfahbod, 2001, 2002, 2004
* Dov Grobgeld, 1999, 2000, 2017
*
* Copyright (C) 2004 Sharif FarsiWeb, Inc
* Copyright (C) 2001,2002 Behdad Esfahbod
* Copyright (C) 1999,2000,2017 Dov Grobgeld
*
* This library is free software; you ... | ./CrossVul/dataset_final_sorted/CWE-120/c/bad_1199_0 |
crossvul-cpp_data_bad_3927_2 | /*!
* \file lr1110-se.c
*
* \brief LR1110 Secure Element hardware implementation
*
* \copyright Revised BSD License, see section \ref LICENSE.
*
* \code
* ______ _
* / _____) _ | |
* ( (____ _____ ____ _|... | ./CrossVul/dataset_final_sorted/CWE-120/c/bad_3927_2 |
crossvul-cpp_data_good_4424_0 | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | ./CrossVul/dataset_final_sorted/CWE-120/c/good_4424_0 |
crossvul-cpp_data_good_998_1 | /*
* Marvell Wireless LAN device driver: AP specific command handling
*
* Copyright (C) 2012-2014, Marvell International Ltd.
*
* This software file (the "File") is distributed by Marvell International
* Ltd. under the terms of the GNU General Public License Version 2, June 1991
* (the "License"). You may use, ... | ./CrossVul/dataset_final_sorted/CWE-120/c/good_998_1 |
crossvul-cpp_data_good_3995_0 | // SPDX-License-Identifier: ISC
/*
* Copyright (C) 2016 Felix Fietkau <nbd@nbd.name>
*/
#include <linux/dma-mapping.h>
#include "mt76.h"
#include "dma.h"
static int
mt76_dma_alloc_queue(struct mt76_dev *dev, struct mt76_queue *q,
int idx, int n_desc, int bufsize,
u32 ring_base)
{
int size;
int i;
... | ./CrossVul/dataset_final_sorted/CWE-120/c/good_3995_0 |
crossvul-cpp_data_bad_999_1 | /*
* Marvell Wireless LAN device driver: AP specific command handling
*
* Copyright (C) 2012-2014, Marvell International Ltd.
*
* This software file (the "File") is distributed by Marvell International
* Ltd. under the terms of the GNU General Public License Version 2, June 1991
* (the "License"). You may use, ... | ./CrossVul/dataset_final_sorted/CWE-120/c/bad_999_1 |
crossvul-cpp_data_bad_4075_0 | //
// Copyright (C) 1993-1996 Id Software, Inc.
// Copyright (C) 2016-2017 Alexey Khokholov (Nuke.YKT)
// Copyright (C) 2017 Alexandre-Xavier Labont�-Lamoureux
//
// 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 S... | ./CrossVul/dataset_final_sorted/CWE-120/c/bad_4075_0 |
crossvul-cpp_data_good_4489_0 | /*
* NXP Wireless LAN device driver: association and ad-hoc start/join
*
* Copyright 2011-2020 NXP
*
* This software file (the "File") is distributed by NXP
* under the terms of the GNU General Public License Version 2, June 1991
* (the "License"). You may use, redistribute and/or modify this File in
* accorda... | ./CrossVul/dataset_final_sorted/CWE-120/c/good_4489_0 |
crossvul-cpp_data_bad_1706_0 | /*
* A bus for connecting virtio serial and console ports
*
* Copyright (C) 2009, 2010 Red Hat, Inc.
*
* Author(s):
* Amit Shah <amit.shah@redhat.com>
*
* Some earlier parts are:
* Copyright IBM, Corp. 2008
* authored by
* Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
*
* This work is licensed under ... | ./CrossVul/dataset_final_sorted/CWE-120/c/bad_1706_0 |
crossvul-cpp_data_good_4522_0 | /*
* Copyright (c) 2003 Sun Microsystems, Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistribution of source code must retain the above copyright
* notice, this list of conditions ... | ./CrossVul/dataset_final_sorted/CWE-120/c/good_4522_0 |
crossvul-cpp_data_good_4012_3 | /* regcomp.c
*/
/*
* 'A fair jaw-cracker dwarf-language must be.' --Samwise Gamgee
*
* [p.285 of _The Lord of the Rings_, II/iii: "The Ring Goes South"]
*/
/* This file contains functions for compiling a regular expression. See
* also regexec.c which funnily enough, contains functions for exe... | ./CrossVul/dataset_final_sorted/CWE-120/c/good_4012_3 |
crossvul-cpp_data_good_4523_1 | /* NetHack 3.6 topten.c $NHDT-Date: 1450451497 2015/12/18 15:11:37 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.44 $ */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/*-Copyright (c) Robert Patrick Rankin, 2012. */
/* NetHack may be freely redistributed. See license for details. */
#inclu... | ./CrossVul/dataset_final_sorted/CWE-120/c/good_4523_1 |
crossvul-cpp_data_good_4523_2 | /* NetHack 3.6 windows.c $NHDT-Date: 1575245096 2019/12/02 00:04:56 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.60 $ */
/* Copyright (c) D. Cohrs, 1993. */
/* NetHack may be freely redistributed. See license for details. */
#include "hack.h"
#ifdef TTY_GRAPHICS
#include "wintty.h"
#endif
#ifdef CURSES_GRAPHICS
e... | ./CrossVul/dataset_final_sorted/CWE-120/c/good_4523_2 |
crossvul-cpp_data_bad_999_0 | /*
* Marvell Wireless LAN device driver: management IE handling- setting and
* deleting IE.
*
* Copyright (C) 2012-2014, Marvell International Ltd.
*
* This software file (the "File") is distributed by Marvell International
* Ltd. under the terms of the GNU General Public License Version 2, June 1991
* (the "Li... | ./CrossVul/dataset_final_sorted/CWE-120/c/bad_999_0 |
crossvul-cpp_data_bad_4522_0 | /*
* Copyright (c) 2003 Sun Microsystems, Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistribution of source code must retain the above copyright
* notice, this list of conditions ... | ./CrossVul/dataset_final_sorted/CWE-120/c/bad_4522_0 |
crossvul-cpp_data_bad_4711_0 | /*
ettercap -- GTK+ GUI
Copyright (C) ALoR & NaGA
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-120/c/bad_4711_0 |
crossvul-cpp_data_bad_998_0 | /*
* Marvell Wireless LAN device driver: management IE handling- setting and
* deleting IE.
*
* Copyright (C) 2012-2014, Marvell International Ltd.
*
* This software file (the "File") is distributed by Marvell International
* Ltd. under the terms of the GNU General Public License Version 2, June 1991
* (the "Li... | ./CrossVul/dataset_final_sorted/CWE-120/c/bad_998_0 |
crossvul-cpp_data_good_3871_3 | /*
* The Python Imaging Library.
* $Id: //modules/pil/libImaging/TiffDecode.c#1 $
*
* LibTiff-based Group3 and Group4 decoder
*
*
* started modding to use non-private tiff functions to port to libtiff 4.x
* eds 3/12/12
*
*/
#include "Imaging.h"
#ifdef HAVE_LIBTIFF
#ifndef uint
#define uint uint32
#endif
#... | ./CrossVul/dataset_final_sorted/CWE-120/c/good_3871_3 |
crossvul-cpp_data_good_3862_1 | /*
* Copyright (c) 2016 Intel Corporation.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <tc_util.h>
#include <mqtt_internal.h>
#include <sys/util.h> /* for ARRAY_SIZE */
#include <ztest.h>
#define CLIENTID MQTT_UTF8_LITERAL("zephyr")
#define TOPIC MQTT_UTF8_LITERAL("sensors")
#define WILL_TOPIC MQTT_UTF8_... | ./CrossVul/dataset_final_sorted/CWE-120/c/good_3862_1 |
crossvul-cpp_data_bad_4697_1 | /*
* irc-nick.c - nick management for IRC plugin
*
* Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
* WeeChat is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publi... | ./CrossVul/dataset_final_sorted/CWE-120/c/bad_4697_1 |
crossvul-cpp_data_good_1199_0 | /* FriBidi
* fribidi-bidi.c - bidirectional algorithm
*
* Authors:
* Behdad Esfahbod, 2001, 2002, 2004
* Dov Grobgeld, 1999, 2000, 2017
*
* Copyright (C) 2004 Sharif FarsiWeb, Inc
* Copyright (C) 2001,2002 Behdad Esfahbod
* Copyright (C) 1999,2000,2017 Dov Grobgeld
*
* This library is free software; you ... | ./CrossVul/dataset_final_sorted/CWE-120/c/good_1199_0 |
crossvul-cpp_data_good_1321_0 | /* NetHack 3.6 files.c $NHDT-Date: 1576626110 2019/12/17 23:41:50 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.276 $ */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/*-Copyright (c) Derek S. Ray, 2015. */
/* NetHack may be freely redistributed. See license for details. */
#define NEED_VARA... | ./CrossVul/dataset_final_sorted/CWE-120/c/good_1321_0 |
crossvul-cpp_data_bad_4847_0 | /*
* INET An implementation of the TCP/IP protocol suite for the LINUX
* operating system. INET is implemented using the BSD Socket
* interface as the means of communication with the user level.
*
* The User Datagram Protocol (UDP).
*
* Authors: Ross Biro
* Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG... | ./CrossVul/dataset_final_sorted/CWE-358/c/bad_4847_0 |
crossvul-cpp_data_good_3239_0 | /* Copyright (C) 2007-2012 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-358/c/good_3239_0 |
crossvul-cpp_data_bad_4847_1 | /*
* UDP over IPv6
* Linux INET6 implementation
*
* Authors:
* Pedro Roque <roque@di.fc.ul.pt>
*
* Based on linux/ipv4/udp.c
*
* Fixes:
* Hideaki YOSHIFUJI : sin6_scope_id support
* YOSHIFUJI Hideaki @USAGI and: Support IPV6_V6ONLY socket option, which
* Alexey Kuznetsov allow both IPv4 and IPv6 sockets t... | ./CrossVul/dataset_final_sorted/CWE-358/c/bad_4847_1 |
crossvul-cpp_data_good_4847_1 | /*
* UDP over IPv6
* Linux INET6 implementation
*
* Authors:
* Pedro Roque <roque@di.fc.ul.pt>
*
* Based on linux/ipv4/udp.c
*
* Fixes:
* Hideaki YOSHIFUJI : sin6_scope_id support
* YOSHIFUJI Hideaki @USAGI and: Support IPV6_V6ONLY socket option, which
* Alexey Kuznetsov allow both IPv4 and IPv6 sockets t... | ./CrossVul/dataset_final_sorted/CWE-358/c/good_4847_1 |
crossvul-cpp_data_good_4847_0 | /*
* INET An implementation of the TCP/IP protocol suite for the LINUX
* operating system. INET is implemented using the BSD Socket
* interface as the means of communication with the user level.
*
* The User Datagram Protocol (UDP).
*
* Authors: Ross Biro
* Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG... | ./CrossVul/dataset_final_sorted/CWE-358/c/good_4847_0 |
crossvul-cpp_data_bad_3239_0 | /* Copyright (C) 2007-2012 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-358/c/bad_3239_0 |
crossvul-cpp_data_bad_4196_0 | /*
* WindowsServiceControl.h - class for managing a Windows service
*
* Copyright (c) 2017-2020 Tobias Junghans <tobydox@veyon.io>
*
* This file is part of Veyon - https://veyon.io
*
* 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-428/cpp/bad_4196_0 |
crossvul-cpp_data_good_4196_0 | /*
* WindowsServiceControl.h - class for managing a Windows service
*
* Copyright (c) 2017-2020 Tobias Junghans <tobydox@veyon.io>
*
* This file is part of Veyon - https://veyon.io
*
* 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-428/cpp/good_4196_0 |
crossvul-cpp_data_good_2263_0 | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) |
| Copyrigh... | ./CrossVul/dataset_final_sorted/CWE-189/cpp/good_2263_0 |
crossvul-cpp_data_good_3618_0 | /***************************************************************************
copyright : (C) 2002 - 2008 by Scott Wheeler
email : wheeler@kde.org
***************************************************************************/
/************************************************************... | ./CrossVul/dataset_final_sorted/CWE-189/cpp/good_3618_0 |
crossvul-cpp_data_bad_1605_4 | /*
Copyright 2008-2013 LibRaw LLC (info@libraw.org)
LibRaw is free software; you can redistribute it and/or modify
it under the terms of the one of three licenses as you choose:
1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1
(See file LICENSE.LGPL provided in LibRaw distribution archive for details).
2. COMM... | ./CrossVul/dataset_final_sorted/CWE-189/cpp/bad_1605_4 |
crossvul-cpp_data_good_1605_4 | /*
Copyright 2008-2013 LibRaw LLC (info@libraw.org)
LibRaw is free software; you can redistribute it and/or modify
it under the terms of the one of three licenses as you choose:
1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1
(See file LICENSE.LGPL provided in LibRaw distribution archive for details).
2. COMM... | ./CrossVul/dataset_final_sorted/CWE-189/cpp/good_1605_4 |
crossvul-cpp_data_bad_2263_0 | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) |
| Copyrigh... | ./CrossVul/dataset_final_sorted/CWE-189/cpp/bad_2263_0 |
crossvul-cpp_data_bad_1605_3 | /*
Copyright 2008-2013 LibRaw LLC (info@libraw.org)
LibRaw is free software; you can redistribute it and/or modify
it under the terms of the one of three licenses as you choose:
1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1
(See file LICENSE.LGPL provided in LibRaw distribution archive for details).
2. COMM... | ./CrossVul/dataset_final_sorted/CWE-189/cpp/bad_1605_3 |
crossvul-cpp_data_good_1605_3 | /*
Copyright 2008-2013 LibRaw LLC (info@libraw.org)
LibRaw is free software; you can redistribute it and/or modify
it under the terms of the one of three licenses as you choose:
1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1
(See file LICENSE.LGPL provided in LibRaw distribution archive for details).
2. COMM... | ./CrossVul/dataset_final_sorted/CWE-189/cpp/good_1605_3 |
crossvul-cpp_data_bad_3618_0 | /***************************************************************************
copyright : (C) 2002 - 2008 by Scott Wheeler
email : wheeler@kde.org
***************************************************************************/
/************************************************************... | ./CrossVul/dataset_final_sorted/CWE-189/cpp/bad_3618_0 |
crossvul-cpp_data_good_2218_0 | /*
* Routines for driver control interface
* Copyright (c) by Jaroslav Kysela <perex@perex.cz>
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License,... | ./CrossVul/dataset_final_sorted/CWE-189/c/good_2218_0 |
crossvul-cpp_data_bad_3770_0 | /*
* TCP Illinois congestion control.
* Home page:
* http://www.ews.uiuc.edu/~shaoliu/tcpillinois/index.html
*
* The algorithm is described in:
* "TCP-Illinois: A Loss and Delay-Based Congestion Control Algorithm
* for High-Speed Networks"
* http://www.ifp.illinois.edu/~srikant/Papers/liubassri06perf.pdf
*
*... | ./CrossVul/dataset_final_sorted/CWE-189/c/bad_3770_0 |
crossvul-cpp_data_bad_4822_0 | /*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2016 The PHP Group |
+---------... | ./CrossVul/dataset_final_sorted/CWE-189/c/bad_4822_0 |
crossvul-cpp_data_good_5505_0 | /* inftrees.c -- generate Huffman trees for efficient decoding
* Copyright (C) 1995-2013 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
#include "zutil.h"
#include "inftrees.h"
#define MAXBITS 15
const char inflate_copyright[] =
" inflate 1.2.8.1 Copyright 1995-2013 Mark... | ./CrossVul/dataset_final_sorted/CWE-189/c/good_5505_0 |
crossvul-cpp_data_good_2124_0 | /*
* Linux Socket Filter - Kernel level socket filtering
*
* Based on the design of the Berkeley Packet Filter. The new
* internal format has been designed by PLUMgrid:
*
* Copyright (c) 2011 - 2014 PLUMgrid, http://plumgrid.com
*
* Authors:
*
* Jay Schulist <jschlst@samba.org>
* Alexei Starovoitov <ast@plum... | ./CrossVul/dataset_final_sorted/CWE-189/c/good_2124_0 |
crossvul-cpp_data_good_3653_0 | /*
* Copyright © 2008,2010 Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge... | ./CrossVul/dataset_final_sorted/CWE-189/c/good_3653_0 |
crossvul-cpp_data_good_4911_0 | /*
+----------------------------------------------------------------------+
| PHP Version 7 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2016 The PHP Group |
+---------... | ./CrossVul/dataset_final_sorted/CWE-189/c/good_4911_0 |
crossvul-cpp_data_good_3664_0 | /*
* Copyright 1988, 1989 Hans-J. Boehm, Alan J. Demers
* Copyright (c) 1991-1994 by Xerox Corporation. All rights reserved.
* Copyright (c) 1999-2004 Hewlett-Packard Development Company, L.P.
*
* THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
* OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
... | ./CrossVul/dataset_final_sorted/CWE-189/c/good_3664_0 |
crossvul-cpp_data_bad_5814_0 | /*
* DSP utils
* Copyright (c) 2000, 2001 Fabrice Bellard
* Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
*
* gmc & q-pel & 32/64 bit based MC by Michael Niedermayer <michaelni@gmx.at>
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it und... | ./CrossVul/dataset_final_sorted/CWE-189/c/bad_5814_0 |
crossvul-cpp_data_bad_5752_0 | /*
* linux/ipc/msg.c
* Copyright (C) 1992 Krishna Balasubramanian
*
* Removed all the remaining kerneld mess
* Catch the -EFAULT stuff properly
* Use GFP_KERNEL for messages as in 1.2
* Fixed up the unchecked user space derefs
* Copyright (C) 1998 Alan Cox & Andi Kleen
*
* /proc/sysvipc/msg support (c) 1999 D... | ./CrossVul/dataset_final_sorted/CWE-189/c/bad_5752_0 |
crossvul-cpp_data_good_1624_0 | /*
* inode.c
*
* PURPOSE
* Inode handling routines for the OSTA-UDF(tm) filesystem.
*
* COPYRIGHT
* This file is distributed under the terms of the GNU General Public
* License (GPL). Copies of the GPL can be obtained from:
* ftp://prep.ai.mit.edu/pub/gnu/GPL
* Each contributing author retains all righ... | ./CrossVul/dataset_final_sorted/CWE-189/c/good_1624_0 |
crossvul-cpp_data_bad_5508_0 | /* crc32.c -- compute the CRC-32 of a data stream
* Copyright (C) 1995-2006, 2010, 2011, 2012 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*
* Thanks to Rodney Brown <rbrown64@csc.com.au> for his contribution of faster
* CRC methods: exclusive-oring 32 bits of data at a time,... | ./CrossVul/dataset_final_sorted/CWE-189/c/bad_5508_0 |
crossvul-cpp_data_good_5640_0 | /*
* Performance events core code:
*
* Copyright (C) 2008 Thomas Gleixner <tglx@linutronix.de>
* Copyright (C) 2008-2011 Red Hat, Inc., Ingo Molnar
* Copyright (C) 2008-2011 Red Hat, Inc., Peter Zijlstra <pzijlstr@redhat.com>
* Copyright © 2009 Paul Mackerras, IBM Corp. <paulus@au1.ibm.com>
*
* For licens... | ./CrossVul/dataset_final_sorted/CWE-189/c/good_5640_0 |
crossvul-cpp_data_bad_3457_0 | /*
* arch/arm/kernel/sys_oabi-compat.c
*
* Compatibility wrappers for syscalls that are used from
* old ABI user space binaries with an EABI kernel.
*
* Author: Nicolas Pitre
* Created: Oct 7, 2005
* Copyright: MontaVista Software, Inc.
*
* This program is free software; you can redistribute it and/or ... | ./CrossVul/dataset_final_sorted/CWE-189/c/bad_3457_0 |
crossvul-cpp_data_good_5728_0 | /*
* fs/cifs/connect.c
*
* Copyright (C) International Business Machines Corp., 2002,2011
* 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-189/c/good_5728_0 |
crossvul-cpp_data_good_3457_0 | /*
* arch/arm/kernel/sys_oabi-compat.c
*
* Compatibility wrappers for syscalls that are used from
* old ABI user space binaries with an EABI kernel.
*
* Author: Nicolas Pitre
* Created: Oct 7, 2005
* Copyright: MontaVista Software, Inc.
*
* This program is free software; you can redistribute it and/or ... | ./CrossVul/dataset_final_sorted/CWE-189/c/good_3457_0 |
crossvul-cpp_data_good_1616_0 | /* -----------------------------------------------------------------------------
* Copyright (c) 2011 Ozmo Inc
* Released under the GNU General Public License Version 2 (GPLv2).
*
* This file implements the protocol specific parts of the USB service for a PD.
* -----------------------------------------------------... | ./CrossVul/dataset_final_sorted/CWE-189/c/good_1616_0 |
crossvul-cpp_data_bad_3447_3 | /*
* sound/oss/opl3.c
*
* A low level driver for Yamaha YM3812 and OPL-3 -chips
*
*
* Copyright (C) by Hannu Savolainen 1993-1997
*
* OSS/Free for Linux is distributed under the GNU GENERAL PUBLIC LICENSE (GPL)
* Version 2 (June 1991). See the "COPYING" file distributed with this software
* for more info.
*
... | ./CrossVul/dataset_final_sorted/CWE-189/c/bad_3447_3 |
crossvul-cpp_data_good_3498_0 | /*
* Support for n32 Linux/MIPS ELF binaries.
*
* Copyright (C) 1999, 2001 Ralf Baechle
* Copyright (C) 1999, 2001 Silicon Graphics, Inc.
*
* Heavily inspired by the 32-bit Sparc compat code which is
* Copyright (C) 1995, 1996, 1997, 1998 David S. Miller (davem@redhat.com)
* Copyright (C) 1995, 1996, 1997, 1998... | ./CrossVul/dataset_final_sorted/CWE-189/c/good_3498_0 |
crossvul-cpp_data_bad_4800_1 | /* $Id$
*
* tiff2pdf - converts a TIFF image to a PDF document
*
* Copyright (c) 2003 Ross Finlayson
*
* Permission to use, copy, modify, distribute, and sell this software and
* its documentation for any purpose is hereby granted without fee, provided
* that (i) the above copyright notices and this permission... | ./CrossVul/dataset_final_sorted/CWE-189/c/bad_4800_1 |
crossvul-cpp_data_bad_2201_0 | /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/* plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c */
/*
* Copyright (c) 2004-2005, Novell, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following con... | ./CrossVul/dataset_final_sorted/CWE-189/c/bad_2201_0 |
crossvul-cpp_data_bad_3654_0 | /*
* Copyright © 2008,2010 Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge... | ./CrossVul/dataset_final_sorted/CWE-189/c/bad_3654_0 |
crossvul-cpp_data_good_2020_6 | /*
* in/out function for ltree and lquery
* Teodor Sigaev <teodor@stack.net>
* contrib/ltree/ltree_io.c
*/
#include "postgres.h"
#include <ctype.h>
#include "ltree.h"
#include "utils/memutils.h"
#include "crc32.h"
PG_FUNCTION_INFO_V1(ltree_in);
Datum ltree_in(PG_FUNCTION_ARGS);
PG_FUNCTION_INFO_V1(ltree_out);
... | ./CrossVul/dataset_final_sorted/CWE-189/c/good_2020_6 |
crossvul-cpp_data_bad_5817_0 | /*
* Go2Webinar decoder
* Copyright (c) 2012 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-189/c/bad_5817_0 |
crossvul-cpp_data_good_3663_0 | /*
* Copyright 1988, 1989 Hans-J. Boehm, Alan J. Demers
* Copyright (c) 1991-1994 by Xerox Corporation. All rights reserved.
* Copyright (c) 1999-2004 Hewlett-Packard Development Company, L.P.
*
* THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
* OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
... | ./CrossVul/dataset_final_sorted/CWE-189/c/good_3663_0 |
crossvul-cpp_data_good_5669_0 | /*
* linux/drivers/video/fbmem.c
*
* Copyright (C) 1994 Martin Schaller
*
* 2001 - Documented with DocBook
* - Brad Douglas <brad@neruo.com>
*
* 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 detail... | ./CrossVul/dataset_final_sorted/CWE-189/c/good_5669_0 |
crossvul-cpp_data_bad_3498_6 | /*
* Implement CPU time clocks for the POSIX clock interface.
*/
#include <linux/sched.h>
#include <linux/posix-timers.h>
#include <asm/uaccess.h>
#include <linux/errno.h>
static int check_clock(const clockid_t which_clock)
{
int error = 0;
struct task_struct *p;
const pid_t pid = CPUCLOCK_PID(which_clock);
if... | ./CrossVul/dataset_final_sorted/CWE-189/c/bad_3498_6 |
crossvul-cpp_data_bad_3484_0 | /*
* pmcraid.c -- driver for PMC Sierra MaxRAID controller adapters
*
* Written By: Anil Ravindranath<anil_ravindranath@pmc-sierra.com>
* PMC-Sierra Inc
*
* Copyright (C) 2008, 2009 PMC Sierra Inc
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the G... | ./CrossVul/dataset_final_sorted/CWE-189/c/bad_3484_0 |
crossvul-cpp_data_bad_5669_0 | /*
* linux/drivers/video/fbmem.c
*
* Copyright (C) 1994 Martin Schaller
*
* 2001 - Documented with DocBook
* - Brad Douglas <brad@neruo.com>
*
* 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 detail... | ./CrossVul/dataset_final_sorted/CWE-189/c/bad_5669_0 |
crossvul-cpp_data_bad_2020_10 | /*-------------------------------------------------------------------------
*
* tsquery_util.c
* Utilities for tsquery datatype
*
* Portions Copyright (c) 1996-2014, PostgreSQL Global Development Group
*
*
* IDENTIFICATION
* src/backend/utils/adt/tsquery_util.c
*
*----------------------------------------... | ./CrossVul/dataset_final_sorted/CWE-189/c/bad_2020_10 |
crossvul-cpp_data_good_5817_0 | /*
* Go2Webinar decoder
* Copyright (c) 2012 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-189/c/good_5817_0 |
crossvul-cpp_data_bad_3689_0 | /****************************************************************************
* Driver for Solarflare Solarstorm network controllers and boards
* Copyright 2005-2006 Fen Systems Ltd.
* Copyright 2005-2011 Solarflare Communications Inc.
*
* This program is free software; you can redistribute it and/or modify it
* ... | ./CrossVul/dataset_final_sorted/CWE-189/c/bad_3689_0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.