id stringlengths 25 30 | content stringlengths 14 942k | max_stars_repo_path stringlengths 49 55 |
|---|---|---|
crossvul-cpp_data_good_296_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.
*/
#include "common.h"
#include "git2/types.h"
#include "git2/errors.h"
#include "git2/refs.h"
#include "g... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_296_0 |
crossvul-cpp_data_good_3947_0 | /**
* FreeRDP: A Remote Desktop Protocol Implementation
* Redirected Parallel Port Device Service
*
* Copyright 2010 O.S. Systems Software Ltda.
* Copyright 2010 Eduardo Fiss Beloni <beloni@ossystems.com.br>
* Copyright 2015 Thincast Technologies GmbH
* Copyright 2015 DI (FH) Martin Haimberger <martin.haimberger... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_3947_0 |
crossvul-cpp_data_good_3942_0 | /**
* FreeRDP: A Remote Desktop Protocol Implementation
* Cliprdr common
*
* Copyright 2013 Marc-Andre Moreau <marcandre.moreau@gmail.com>
* Copyright 2015 Thincast Technologies GmbH
* Copyright 2015 DI (FH) Martin Haimberger <martin.haimberger@thincast.com>
* Copyright 2019 Kobi Mizrachi <kmizrachi18@gmail.com>... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_3942_0 |
crossvul-cpp_data_bad_2698_0 | /*
* Copyright (C) 2002 WIDE Project.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condit... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_2698_0 |
crossvul-cpp_data_bad_2702_0 | /*
* Copyright (c) 1992, 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 paragr... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_2702_0 |
crossvul-cpp_data_bad_4019_0 | /* exif-mnote-data-canon.c
*
* Copyright (c) 2002, 2003 Lutz Mueller <lutz@users.sourceforge.net>
* Copyright (c) 2003 Matthieu Castet <mat-c@users.sourceforge.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as publishe... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_4019_0 |
crossvul-cpp_data_bad_2639_0 | /*
* Copyright (C) Andrew Tridgell 1995-1999
*
* This software may be distributed either under the terms of the
* BSD-style license that accompanies tcpdump or the GNU GPL version 2
* or later
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <netdissect-stdinc.h>
#include <stdio.h>
#include <stdlib.... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_2639_0 |
crossvul-cpp_data_good_3032_0 | /*
* linux/kernel/posix-timers.c
*
*
* 2002-10-15 Posix Clocks & timers
* by George Anzinger george@mvista.com
*
* Copyright (C) 2002 2003 by MontaVista Software.
*
* 2004-06-01 Fix CLOCK_REALTIME clock/timer TIMER_ABSTIME bug.
* Copyright (C) 2004 Boris Hu
*
* This... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_3032_0 |
crossvul-cpp_data_bad_1878_0 | /*
Conexant cx24116/cx24118 - DVBS/S2 Satellite demod/tuner driver
Copyright (C) 2006-2008 Steven Toth <stoth@hauppauge.com>
Copyright (C) 2006-2007 Georg Acher
Copyright (C) 2007-2008 Darron Broad
March 2007
Fixed some bugs.
Added diseqc support.
Added corrected signal strength support... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_1878_0 |
crossvul-cpp_data_good_2701_1 | /*
* Copyright (C) 2002 WIDE Project.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condit... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_2701_1 |
crossvul-cpp_data_good_502_0 | /* radare - LGPL - Copyright 2010-2018 - nibble, pancake */
#include <stdio.h>
#include <r_types.h>
#include <r_util.h>
#include "dyldcache.h"
static int r_bin_dyldcache_init(struct r_bin_dyldcache_obj_t* bin) {
int len = r_buf_fread_at (bin->b, 0, (ut8*)&bin->hdr, "16c4i7l", 1);
if (len == -1) {
perror ("read (... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_502_0 |
crossvul-cpp_data_bad_486_2 | /* -*- c-basic-offset: 8 -*-
rdesktop: A Remote Desktop Protocol client.
Protocol services - Clipboard functions
Copyright 2003 Erik Forsberg <forsberg@cendio.se> for Cendio AB
Copyright (C) Matthew Chapman <matthewc.unsw.edu.au> 2003-2008
Copyright 2017 Henrik Andersson <hean01@cendio.se> for Cendio AB
... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_486_2 |
crossvul-cpp_data_good_2646_0 | /*
* Copyright (c) 1992, 1993, 1994, 1995, 1996, 1997
* 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 ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_2646_0 |
crossvul-cpp_data_bad_702_0 | /*
* SSLv3/TLSv1 client-side functions
*
* Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the L... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_702_0 |
crossvul-cpp_data_bad_4840_0 | /* Copyright 2006-2007 Niels Provos
* Copyright 2007-2012 Nick Mathewson and Niels Provos
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* ... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_4840_0 |
crossvul-cpp_data_bad_2718_0 | /*
* Copyright (c) 2016 Antonin Décimo, Jean-Raphaël Gaglione
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condit... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_2718_0 |
crossvul-cpp_data_bad_2703_0 | /*
* Copyright (c) 1998-2007 The TCPDUMP project
*
* 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 its entirety, and (2) distributions including binary code i... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_2703_0 |
crossvul-cpp_data_bad_3254_1 | /*
* Routines having to do with the 'struct sk_buff' memory handlers.
*
* Authors: Alan Cox <alan@lxorguk.ukuu.org.uk>
* Florian La Roche <rzsfl@rz.uni-sb.de>
*
* Fixes:
* Alan Cox : Fixed the worst of the load
* balancer bugs.
* Dave Platt : Interrupt stacking fix.
* Richard Kooijman : Timestamp fixe... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_3254_1 |
crossvul-cpp_data_good_5869_0 | /*
* The two pass scaling function is based on:
* Filtered Image Rescaling
* Based on Gems III
* - Schumacher general filtered image rescaling
* (pp. 414-424)
* by Dale Schumacher
*
* Additional changes by Ray Gardener, Daylon Graphics Ltd.
* December 4, 1999
*
* Ported to libgd by Pierre Joye. Support f... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_5869_0 |
crossvul-cpp_data_good_2717_0 | /*
* Copyright (c) 1988, 1989, 1990, 1991, 1993, 1994
* 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 ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_2717_0 |
crossvul-cpp_data_bad_5870_0 | /*
* Filtered Image Rescaling
* Based on Gems III
* - Schumacher general filtered image rescaling
* (pp. 414-424)
* by Dale Schumacher
*
* Additional changes by Ray Gardener, Daylon Graphics Ltd.
* December 4, 1999
*
* Ported to libgd by Pierre Joye. Support for multiple channels
* added (argb for now).... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_5870_0 |
crossvul-cpp_data_good_351_16 | /*
* PKCS15 emulation layer for TCOS based preformatted cards
*
* Copyright (C) 2011, Peter Koch <pk@opensc-project.org>
*
* 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
*... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_351_16 |
crossvul-cpp_data_bad_5248_1 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_5248_1 |
crossvul-cpp_data_good_1835_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_1835_0 |
crossvul-cpp_data_good_1280_0 | /*
* This file includes functions to transform a concrete syntax tree (CST) to
* an abstract syntax tree (AST). The main function is PyAST_FromNode().
*
*/
#include "Python.h"
#include "Python-ast.h"
#include "node.h"
#include "ast.h"
#include "token.h"
#include "pythonrun.h"
#include <assert.h>
#include <stdbool.... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_1280_0 |
crossvul-cpp_data_good_2664_0 | /*
* Copyright (C) 1999 WIDE Project.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condit... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_2664_0 |
crossvul-cpp_data_bad_5491_2 | /*
* 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-125/c/bad_5491_2 |
crossvul-cpp_data_bad_2673_0 | /*
* Copyright (c) 2009
* Siemens AG, All rights reserved.
* Dmitry Eremin-Solenikov (dbaryshkov@gmail.com)
*
* 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-125/c/bad_2673_0 |
crossvul-cpp_data_bad_2666_0 | /* NetBSD: print-juniper.c,v 1.2 2007/07/24 11:53:45 drochner Exp */
/*
* 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 its entirety, and (2) distri... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_2666_0 |
crossvul-cpp_data_bad_3946_2 | /**
* FreeRDP: A Remote Desktop Protocol Implementation
* Input Virtual Channel Extension
*
* Copyright 2013 Marc-Andre Moreau <marcandre.moreau@gmail.com>
* Copyright 2015 Thincast Technologies GmbH
* Copyright 2015 DI (FH) Martin Haimberger <martin.haimberger@thincast.com>
*
* Licensed under the Apache Licens... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_3946_2 |
crossvul-cpp_data_bad_2657_0 | /*
* Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994
* 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... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_2657_0 |
crossvul-cpp_data_good_2644_10 | /*
* Copyright (c) 1991, 1993, 1994, 1995, 1996, 1997
* 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 ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_2644_10 |
crossvul-cpp_data_bad_5240_0 | /**
* File: TGA Input
*
* Read TGA images.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif /* HAVE_CONFIG_H */
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include "gd_tga.h"
#include "gd.h"
#include "gd_errors.h"
#include "gdhelpers.h"
/*
Function: gdImageCreateFromTga
... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_5240_0 |
crossvul-cpp_data_bad_2715_0 | /*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
* 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
* notic... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_2715_0 |
crossvul-cpp_data_bad_266_0 | /*
* Copyright (c) 1990, 1991, 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 ... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_266_0 |
crossvul-cpp_data_good_2674_0 | /*
* Copyright (c) 2009
* Siemens AG, All rights reserved.
* Dmitry Eremin-Solenikov (dbaryshkov@gmail.com)
*
* 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-125/c/good_2674_0 |
crossvul-cpp_data_bad_629_0 | ////////////////////////////////////////////////////////////////////////////
// **** WAVPACK **** //
// Hybrid Lossless Wavefile Compressor //
// Copyright (c) 1998 - 2016 David Bryant. //
// ... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_629_0 |
crossvul-cpp_data_good_163_1 | /*
* This file is part of Espruino, a JavaScript interpreter for Microcontrollers
*
* Copyright (C) 2013 Gordon Williams <gw@pur3.co.uk>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_163_1 |
crossvul-cpp_data_bad_4938_0 | /*
* Copyright 2006-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-125/c/bad_4938_0 |
crossvul-cpp_data_bad_2890_0 | /* radare - LGPL - Copyright 2008-2017 - nibble, pancake, alvaro_fe */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <r_types.h>
#include <r_util.h>
#include "elf.h"
#ifdef IFDBG
#undef IFDBG
#endif
#define DO_THE_DBG 0
#define IFDBG if (DO_THE_DBG)
#define IFINT if (0)
#de... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_2890_0 |
crossvul-cpp_data_good_5240_0 | /**
* File: TGA Input
*
* Read TGA images.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif /* HAVE_CONFIG_H */
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include "gd_tga.h"
#include "gd.h"
#include "gd_errors.h"
#include "gdhelpers.h"
/*
Function: gdImageCreateFromTga
... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_5240_0 |
crossvul-cpp_data_good_210_2 | /*
* GPAC - Multimedia Framework C SDK
*
* Authors: Jean Le Feuvre
* Copyright (c) Telecom ParisTech 2000-2012
* All rights reserved
*
* This file is part of GPAC / ISO Media File Format sub-project
*
* GPAC is free software; you can redistribute it and/or modify
* it under the terms of the GNU L... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_210_2 |
crossvul-cpp_data_good_3190_1 | /*
etterfilter -- filter compiler for ettercap content filtering engine
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,... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_3190_1 |
crossvul-cpp_data_good_5007_1 | /* $Id: minissdpd.c,v 1.53 2016/03/01 18:06:46 nanard Exp $ */
/* vim: tabstop=4 shiftwidth=4 noexpandtab
* MiniUPnP project
* (c) 2007-2016 Thomas Bernard
* website : http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
* This software is subject to the conditions detailed
* in the LICENCE file provided wit... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_5007_1 |
crossvul-cpp_data_bad_2588_5 | /*
* xmi.c -- Midi Wavetable Processing library
*
* Copyright (C) WildMIDI Developers 2001-2016
*
* This file is part of WildMIDI.
*
* WildMIDI is free software: you can redistribute and/or modify the player
* under the terms of the GNU General Public License and you can redistribute
* and/or modify the librar... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_2588_5 |
crossvul-cpp_data_good_2716_0 | /**
* Copyright (c) 2012
*
* Gregory Detal <gregory.detal@uclouvain.be>
* Christoph Paasch <christoph.paasch@uclouvain.be>
*
* 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 cod... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_2716_0 |
crossvul-cpp_data_good_2588_5 | /*
* xmi.c -- Midi Wavetable Processing library
*
* Copyright (C) WildMIDI Developers 2001-2016
*
* This file is part of WildMIDI.
*
* WildMIDI is free software: you can redistribute and/or modify the player
* under the terms of the GNU General Public License and you can redistribute
* and/or modify the librar... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_2588_5 |
crossvul-cpp_data_bad_2691_1 | /*
* Copyright (c) 1992, 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 paragr... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_2691_1 |
crossvul-cpp_data_good_3255_1 | /*
* NET An implementation of the SOCKET network access protocol.
*
* Version: @(#)socket.c 1.1.93 18/02/95
*
* Authors: Orest Zborowski, <obz@Kodak.COM>
* Ross Biro
* Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
*
* Fixes:
* Anonymous : NOTSOCK/BADF cleanup. Error fix in
* shutdown()
* Alan Co... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_3255_1 |
crossvul-cpp_data_bad_543_0 | // SPDX-License-Identifier: (GPL-2.0 OR MIT)
/*
* SerDes PHY driver for Microsemi Ocelot
*
* Copyright (c) 2018 Microsemi
*
*/
#include <linux/err.h>
#include <linux/mfd/syscon.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_platform.h>
#include <linux/phy/phy.h>
#include <linux/platform_dev... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_543_0 |
crossvul-cpp_data_bad_5361_1 | /*-
* Copyright (c) 2003-2007 Tim Kientzle
* Copyright (c) 2008 Joerg Sonnenberger
* Copyright (c) 2011-2012 Michihiro NAKAJIMA
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redi... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_5361_1 |
crossvul-cpp_data_bad_800_0 | /*
* MPEG-4 decoder
* 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-125/c/bad_800_0 |
crossvul-cpp_data_bad_3946_4 | /**
* FreeRDP: A Remote Desktop Protocol Implementation
* Remote Desktop Gateway (RDG)
*
* Copyright 2015 Denis Vincent <dvincent@devolutions.net>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_3946_4 |
crossvul-cpp_data_bad_2725_0 | /*
* Copyright: (c) 2000 United States Government as represented by the
* Secretary of the Navy. 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 mus... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_2725_0 |
crossvul-cpp_data_bad_3176_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 IP to API glue.
*
* Authors: see ip.c
*
* Fixes:
* Many : Split from ip.c , see ip.c for history.
... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_3176_0 |
crossvul-cpp_data_good_4831_0 | ////////////////////////////////////////////////////////////////////////////
// **** WAVPACK **** //
// Hybrid Lossless Wavefile Compressor //
// Copyright (c) 1998 - 2016 David Bryant. //
// ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_4831_0 |
crossvul-cpp_data_bad_3142_0 | /* GStreamer ASF/WMV/WMA demuxer
* Copyright (C) 1999 Erik Walthinsen <omega@cse.ogi.edu>
* Copyright (C) 2006-2009 Tim-Philipp Müller <tim centricular net>
*
* 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... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_3142_0 |
crossvul-cpp_data_good_140_0 | /* radare - LGPL - Copyright 2009-2018 - nibble, pancake */
#include <assert.h>
#include <stdio.h>
#include <r_types.h>
#include <r_util.h>
#include <r_lib.h>
#include <r_bin.h>
#include <r_io.h>
#include <r_cons.h>
#include "elf/elf.h"
static RBinInfo* info(RBinFile *bf);
//TODO: implement r_bin_symbol_dup() and r_... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_140_0 |
crossvul-cpp_data_bad_502_0 | /* radare - LGPL - Copyright 2010-2016 - nibble, pancake */
#include <stdio.h>
#include <r_types.h>
#include <r_util.h>
#include "dyldcache.h"
static int r_bin_dyldcache_init(struct r_bin_dyldcache_obj_t* bin) {
int len = r_buf_fread_at (bin->b, 0, (ut8*)&bin->hdr, "16c4i7l", 1);
if (len == -1) {
perror ("read (... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_502_0 |
crossvul-cpp_data_good_177_0 | #include <mruby.h>
#include <mruby/array.h>
#include <mruby/class.h>
#include <mruby/proc.h>
#define fiber_ptr(o) ((struct RFiber*)mrb_ptr(o))
#define FIBER_STACK_INIT_SIZE 64
#define FIBER_CI_INIT_SIZE 8
#define CI_ACC_RESUMED -3
/*
* call-seq:
* Fiber.new{...} -> obj
*
* Creates a fiber, whose execution ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_177_0 |
crossvul-cpp_data_bad_5341_0 | /*
* Copyright (C) 2006 Evgeniy Stepanov <eugeni.stepanov@gmail.com>
*
* This file is part of libass.
*
* 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 appear in all copi... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_5341_0 |
crossvul-cpp_data_good_1277_0 | /**********************************************************************
regexec.c - Oniguruma (regular expression library)
**********************************************************************/
/*-
* Copyright (c) 2002-2019 K.Kosako
* All rights reserved.
*
* Redistribution and use in source and binary forms, ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_1277_0 |
crossvul-cpp_data_good_5240_4 | /**
* Test that the crafted TGA file doesn't trigger OOB reads.
*/
#include "gd.h"
#include "gdtest.h"
static size_t read_test_file(char **buffer, char *basename);
int main()
{
gdImagePtr im;
char *buffer;
size_t size;
size = read_test_file(&buffer, "heap_overflow.tga");
im = gdImageCreateF... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_5240_4 |
crossvul-cpp_data_good_5341_0 | /*
* Copyright (C) 2006 Evgeniy Stepanov <eugeni.stepanov@gmail.com>
*
* This file is part of libass.
*
* 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 appear in all copi... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_5341_0 |
crossvul-cpp_data_good_3358_1 | /*
* 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-125/c/good_3358_1 |
crossvul-cpp_data_good_2673_0 | /*
* Copyright (c) 2009
* Siemens AG, All rights reserved.
* Dmitry Eremin-Solenikov (dbaryshkov@gmail.com)
*
* 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-125/c/good_2673_0 |
crossvul-cpp_data_bad_262_0 | /*
* 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 its entirety, and (2) distributions including binary code include
* the above copyright notice and this para... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_262_0 |
crossvul-cpp_data_bad_1984_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-125/c/bad_1984_1 |
crossvul-cpp_data_good_4687_0 |
#include <config.h>
#include "ftpd.h"
#include "utils.h"
#ifdef WITH_DMALLOC
# include <dmalloc.h>
#endif
#ifdef HAVE_LIBSODIUM
# if !defined(pure_memzero) || !defined(pure_memcmp)
# error pure_memzero/pure_memcmp not defined
# endif
#else
void pure_memzero(void * const pnt, const size_t len)
{
# ifdef HAVE_EXPLI... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_4687_0 |
crossvul-cpp_data_bad_2687_0 | /*
* Copyright (c) 1988, 1989, 1990, 1991, 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 noti... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_2687_0 |
crossvul-cpp_data_bad_501_0 | 404: Not Found | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_501_0 |
crossvul-cpp_data_good_1282_2 | #include "Python.h"
#include "Python-ast.h"
#include "compile-ast3.h"
#include "node.h"
#include "grammar.h"
#include "token.h"
#include "ast.h"
#include "parsetok.h"
#include "errcode.h"
extern grammar _Ta3Parser_Grammar; /* from graminit.c */
// from Python/bltinmodule.c
static const char *
source_as_string(PyObjec... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_1282_2 |
crossvul-cpp_data_good_3197_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_3197_0 |
crossvul-cpp_data_bad_1370_1 | /*-
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright (c) 2001-2008, by Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2008-2012, by Randall Stewart. All rights reserved.
* Copyright (c) 2008-2012, by Michael Tuexen. All rights reserved.
*
* Redistribution and use in source and binary forms, with o... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_1370_1 |
crossvul-cpp_data_bad_4589_2 | /*
* The Python Imaging Library.
* $Id$
*
* decoder for Autodesk Animator FLI/FLC animations
*
* history:
* 97-01-03 fl Created
* 97-01-17 fl Added SS2 support (FLC)
*
* Copyright (c) Fredrik Lundh 1997.
* Copyright (c) Secret Labs AB 1997.
*
* See the README file for information on usage and redistributio... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_4589_2 |
crossvul-cpp_data_bad_3946_0 | /**
* FreeRDP: A Remote Desktop Protocol Implementation
* File System Virtual Channel
*
* Copyright 2010-2011 Vic Lee
* Copyright 2010-2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
* Copyright 2015 Thincast Technologies GmbH
* Copyright 2015 DI (FH) Martin Haimberger <martin.haimberger@thincast.com>
* Cop... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_3946_0 |
crossvul-cpp_data_good_2645_0 | /*
* Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
* 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 co... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_2645_0 |
crossvul-cpp_data_bad_3339_0 | /*
* Driver for the NXP SAA7164 PCIe bridge
*
* Copyright (c) 2010-2015 Steven Toth <stoth@kernellabs.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; either version 2 of the L... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_3339_0 |
crossvul-cpp_data_good_1878_0 | /*
Conexant cx24116/cx24118 - DVBS/S2 Satellite demod/tuner driver
Copyright (C) 2006-2008 Steven Toth <stoth@hauppauge.com>
Copyright (C) 2006-2007 Georg Acher
Copyright (C) 2007-2008 Darron Broad
March 2007
Fixed some bugs.
Added diseqc support.
Added corrected signal strength support... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_1878_0 |
crossvul-cpp_data_good_3954_0 | /**
* FreeRDP: A Remote Desktop Protocol Implementation
* Glyph Cache
*
* Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_3954_0 |
crossvul-cpp_data_bad_2724_0 | /*
* Copyright (c) 1998-2007 The TCPDUMP project
*
* 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 its entirety, and (2) distributions including binary code i... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_2724_0 |
crossvul-cpp_data_good_467_0 | /*
* MXF demuxer.
* Copyright (c) 2006 SmartJog S.A., Baptiste Coudurier <baptiste dot coudurier at smartjog dot com>
*
* 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 Softw... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_467_0 |
crossvul-cpp_data_good_351_0 | /*
* asn1.c: ASN.1 decoding functions (DER)
*
* Copyright (C) 2001, 2002 Juha Yrjölä <juha.yrjola@iki.fi>
*
* 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.1 o... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_351_0 |
crossvul-cpp_data_bad_706_0 | /*-
* Copyright (c) 2011 Michihiro NAKAJIMA
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of ... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_706_0 |
crossvul-cpp_data_good_3909_0 | /**
* FreeRDP: A Remote Desktop Protocol Implementation
* Auto-Detect PDUs
*
* Copyright 2014 Dell Software <Mike.McDonald@software.dell.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the Lice... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_3909_0 |
crossvul-cpp_data_bad_3207_0 | /*
* Yerase's TNEF Stream Reader Library
* Copyright (C) 2003 Randall E. Hand
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your ... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_3207_0 |
crossvul-cpp_data_good_4856_2 | /* $Id$ */
/*
* Copyright (c) 1996-1997 Sam Leffler
* Copyright (c) 1996 Pixar
*
* 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 notice appear in
* al... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_4856_2 |
crossvul-cpp_data_bad_5241_1 | /*
TIFF - Tagged Image File Format Encapsulation for GD Library
gd_tiff.c
Copyright (C) Pierre-A. Joye, M. Retallack
---------------------------------------------------------------------------
**
** Permission to use, copy, modify, and distribute this software and its
** documentation for any pur... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_5241_1 |
crossvul-cpp_data_bad_5483_0 | /* SCTP kernel implementation
* (C) Copyright IBM Corp. 2001, 2004
* Copyright (c) 1999-2000 Cisco, Inc.
* Copyright (c) 1999-2001 Motorola, Inc.
* Copyright (c) 2001-2002 Intel Corp.
* Copyright (c) 2002 Nokia Corp.
*
* This is part of the SCTP Linux Kernel Implementation.
*
* These are the state functio... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_5483_0 |
crossvul-cpp_data_bad_1330_0 | /*
* Copyright (c) Red Hat Inc.
* 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, publish, dist... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_1330_0 |
crossvul-cpp_data_good_2914_0 | /*
* USB HID support for Linux
*
* Copyright (c) 1999 Andreas Gal
* Copyright (c) 2000-2005 Vojtech Pavlik <vojtech@suse.cz>
* Copyright (c) 2005 Michael Haboustak <mike-@cinci.rr.com> for Concept2, Inc
* Copyright (c) 2007-2008 Oliver Neukum
* Copyright (c) 2006-2010 Jiri Kosina
*/
/*
* This program is... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_2914_0 |
crossvul-cpp_data_good_4791_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% M M AAA TTTTT L AAA BBBB ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_4791_0 |
crossvul-cpp_data_bad_3209_1 | /*
* Yerase's TNEF Stream Reader Library
* Copyright (C) 2003 Randall E. Hand
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your ... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_3209_1 |
crossvul-cpp_data_good_2684_0 | /*
* Copyright (C) 2002 WIDE Project.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condit... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_2684_0 |
crossvul-cpp_data_good_1297_0 | /*
* card-setcos.c: Support for PKI cards by Setec
*
* Copyright (C) 2001, 2002 Juha Yrjölä <juha.yrjola@iki.fi>
* Copyright (C) 2005 Antti Tapaninen <aet@cc.hut.fi>
* Copyright (C) 2005 Zetes
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser Gene... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_1297_0 |
crossvul-cpp_data_good_1374_0 | /*
* GPAC - Multimedia Framework C SDK
*
* Authors: Jean Le Feuvre
* Copyright (c) Telecom ParisTech 2005-2012
*
* This file is part of GPAC / MPEG2-TS sub-project
*
* GPAC is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as publishe... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_1374_0 |
crossvul-cpp_data_good_4827_0 | //---------------------------------------------------------------------------------
//
// Little Color Management System
// Copyright (c) 1998-2016 Marti Maria Saguer
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the "Softwar... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_4827_0 |
crossvul-cpp_data_good_514_1 | /*
* uriparser - RFC 3986 URI parsing library
*
* Copyright (C) 2007, Weijia Song <songweijia@gmail.com>
* Copyright (C) 2007, Sebastian Pipping <sebastian@pipping.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_514_1 |
crossvul-cpp_data_good_4792_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% M M AAA TTTTT L AAA BBBB ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_4792_0 |
crossvul-cpp_data_bad_2684_0 | /*
* Copyright (C) 2002 WIDE Project.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condit... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_2684_0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.