id
stringlengths
25
30
content
stringlengths
14
942k
max_stars_repo_path
stringlengths
49
55
crossvul-cpp_data_good_3984_0
/* Copyright (C) 2001-2019 Artifex Software, Inc. All Rights Reserved. This software is provided AS-IS with no warranty, either express or implied. This software is distributed under license and may not be copied, modified or distributed except as expressly authorized under the terms of the license ...
./CrossVul/dataset_final_sorted/CWE-787/c/good_3984_0
crossvul-cpp_data_bad_3301_0
/* wallpaper.c Copyright (C) 1999-2003 Tom Gilbert. Copyright (C) 2010-2011 Daniel Friesel. 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 r...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_3301_0
crossvul-cpp_data_good_5499_1
/* (C) 1999-2001 Paul `Rusty' Russell * (C) 2002-2004 Netfilter Core Team <coreteam@netfilter.org> * * 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. */ #include <linux/types.h> ...
./CrossVul/dataset_final_sorted/CWE-787/c/good_5499_1
crossvul-cpp_data_good_3411_2
/* ext2.c - Second Extended filesystem */ /* * GRUB -- GRand Unified Bootloader * Copyright (C) 2003,2004,2005,2007,2008,2009 Free Software Foundation, Inc. * * GRUB 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 So...
./CrossVul/dataset_final_sorted/CWE-787/c/good_3411_2
crossvul-cpp_data_good_3172_1
/* * tnef.c -- extract files from microsoft TNEF format * * Copyright (C)1999-2006 Mark Simpson <damned@theworld.com> * Copyright (C)1997 Thomas Boll <tb@boll.ch> [ORIGINAL AUTHOR] * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as ...
./CrossVul/dataset_final_sorted/CWE-787/c/good_3172_1
crossvul-cpp_data_good_3992_0
/* * 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, or (at your option) any later version. * * FFmpeg is distributed...
./CrossVul/dataset_final_sorted/CWE-787/c/good_3992_0
crossvul-cpp_data_good_5479_4
/* $Id$ */ /* tiffcrop.c -- a port of tiffcp.c extended to include manipulations of * the image data through additional options listed below * * Original code: * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * Additions (c) Richard Nolde 2006-2010 * * Permission to use, ...
./CrossVul/dataset_final_sorted/CWE-787/c/good_5479_4
crossvul-cpp_data_bad_3984_0
/* Copyright (C) 2001-2019 Artifex Software, Inc. All Rights Reserved. This software is provided AS-IS with no warranty, either express or implied. This software is distributed under license and may not be copied, modified or distributed except as expressly authorized under the terms of the license ...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_3984_0
crossvul-cpp_data_bad_526_0
/* * GPAC - Multimedia Framework C SDK * * Authors: Jean Le Feuvre * Copyright (c) Telecom ParisTech 2005-2012 * All rights reserved * * This file is part of GPAC / command-line client * * GPAC is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General ...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_526_0
crossvul-cpp_data_good_1805_1
/* $Id$ */ /* * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * 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-787/c/good_1805_1
crossvul-cpp_data_good_96_0
//////////////////////////////////////////////////////////////////////////// // **** WAVPACK **** // // Hybrid Lossless Wavefile Compressor // // Copyright (c) 1998 - 2016 David Bryant. // // ...
./CrossVul/dataset_final_sorted/CWE-787/c/good_96_0
crossvul-cpp_data_bad_2311_0
/* * pcap-compatible 802.11 packet sniffer * * Copyright (C) 2006-2013 Thomas d'Otreppe * Copyright (C) 2004, 2005 Christophe Devine * * 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 Foundatio...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_2311_0
crossvul-cpp_data_good_5499_0
/* * IPv6 fragment reassembly for connection tracking * * Copyright (C)2004 USAGI/WIDE Project * * Author: * Yasuyuki Kozakai @USAGI <yasuyuki.kozakai@toshiba.co.jp> * * Based on: net/ipv6/reassembly.c * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Ge...
./CrossVul/dataset_final_sorted/CWE-787/c/good_5499_0
crossvul-cpp_data_bad_523_0
/* * rfbserver.c - deal with server-side of the RFB protocol. */ /* * Copyright (C) 2011-2012 D. R. Commander * Copyright (C) 2005 Rohit Kumar, Johannes E. Schindelin * Copyright (C) 2002 RealVNC Ltd. * OSXvnc Copyright (C) 2001 Dan McGuirk <mcguirk@incompleteness.net>. * Original Xvnc code Copyright (C) 1...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_523_0
crossvul-cpp_data_good_3411_3
/* fshelp.c -- Filesystem helper functions */ /* * GRUB -- GRand Unified Bootloader * Copyright (C) 2004,2005,2006,2007,2008 Free Software Foundation, Inc. * * GRUB is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Sof...
./CrossVul/dataset_final_sorted/CWE-787/c/good_3411_3
crossvul-cpp_data_good_4028_0
/** * FreeRDP: A Remote Desktop Protocol Implementation * Cryptographic Abstraction Layer * * Copyright 2011-2012 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...
./CrossVul/dataset_final_sorted/CWE-787/c/good_4028_0
crossvul-cpp_data_bad_3374_0
/********************************************************************** regparse.c - Oniguruma (regular expression library) **********************************************************************/ /*- * Copyright (c) 2002-2016 K.Kosako <sndgk393 AT ybb DOT ne DOT jp> * All rights reserved. * * Redistribution an...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_3374_0
crossvul-cpp_data_good_5482_1
/* $Id$ */ /* * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * Revised: 2/18/01 BAR -- added syntax for extracting single images from * multi-image TIFF files. * * New syntax is: sourceFileName,image# * * image# ranges from 0..<n-1> wher...
./CrossVul/dataset_final_sorted/CWE-787/c/good_5482_1
crossvul-cpp_data_bad_4485_0
/* * OpenEXR (.exr) image decoder * Copyright (c) 2006 Industrial Light & Magic, a division of Lucas Digital Ltd. LLC * Copyright (c) 2009 Jimmy Christensen * * B44/B44A, Tile, UINT32 added by Jokyo Images support by CNC - French National Center for Cinema * * This file is part of FFmpeg. * * FFmpeg is free so...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_4485_0
crossvul-cpp_data_good_96_2
//////////////////////////////////////////////////////////////////////////// // **** WAVPACK **** // // Hybrid Lossless Wavefile Compressor // // Copyright (c) 1998 - 2016 David Bryant. // // ...
./CrossVul/dataset_final_sorted/CWE-787/c/good_96_2
crossvul-cpp_data_bad_3377_0
/********************************************************************** regparse.c - Oniguruma (regular expression library) **********************************************************************/ /*- * Copyright (c) 2002-2016 K.Kosako <sndgk393 AT ybb DOT ne DOT jp> * All rights reserved. * * Redistribution an...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_3377_0
crossvul-cpp_data_bad_5273_0
/* * The copyright in this software is being made available under the 2-clauses * BSD License, included below. This software may be subject to other third * party and contributor rights, including patent rights, and no such rights * are granted under this license. * * Copyright (c) 2002-2014, Universite catholi...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_5273_0
crossvul-cpp_data_good_2759_0
/* * The copyright in this software is being made available under the 2-clauses * BSD License, included below. This software may be subject to other third * party and contributor rights, including patent rights, and no such rights * are granted under this license. * * Copyright (c) 2002-2014, Universite catholiqu...
./CrossVul/dataset_final_sorted/CWE-787/c/good_2759_0
crossvul-cpp_data_good_4217_0
/* * tls.c - SSL/TLS/DTLS dissector * * Copyright (C) 2016-20 - ntop.org * * This file is part of nDPI, an open source deep packet inspection * library based on the OpenDPI and PACE technology by ipoque GmbH * * nDPI is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser...
./CrossVul/dataset_final_sorted/CWE-787/c/good_4217_0
crossvul-cpp_data_bad_5317_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_5317_0
crossvul-cpp_data_bad_5474_1
/* $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-787/c/bad_5474_1
crossvul-cpp_data_good_5478_4
/* $Id$ */ /* tiffcrop.c -- a port of tiffcp.c extended to include manipulations of * the image data through additional options listed below * * Original code: * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * Additions (c) Richard Nolde 2006-2010 * * Permission to use, ...
./CrossVul/dataset_final_sorted/CWE-787/c/good_5478_4
crossvul-cpp_data_bad_2977_1
/* * Synchronous Cryptographic Hash operations. * * Copyright (c) 2008 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 Public License as published by the Free * Software Foundation; either version 2 of the L...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_2977_1
crossvul-cpp_data_good_3873_0
/* 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-787/c/good_3873_0
crossvul-cpp_data_good_5273_0
/* * The copyright in this software is being made available under the 2-clauses * BSD License, included below. This software may be subject to other third * party and contributor rights, including patent rights, and no such rights * are granted under this license. * * Copyright (c) 2002-2014, Universite catholi...
./CrossVul/dataset_final_sorted/CWE-787/c/good_5273_0
crossvul-cpp_data_good_4464_0
/********************************************************************* Blosc - Blocked Shuffling and Compression Library Author: Francesc Alted <francesc@blosc.org> Creation date: 2009-05-20 See LICENSE.txt for details about copyright and rights to use. ********************************************************...
./CrossVul/dataset_final_sorted/CWE-787/c/good_4464_0
crossvul-cpp_data_bad_3297_0
/* * utils for libavcodec * Copyright (c) 2001 Fabrice Bellard * Copyright (c) 2002-2004 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-787/c/bad_3297_0
crossvul-cpp_data_bad_5478_2
/* $Id$ */ /* * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * 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 n...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_5478_2
crossvul-cpp_data_bad_1287_0
/** * @file parser.c * @author Radek Krejci <rkrejci@cesnet.cz> * @brief common libyang parsers routines implementations * * Copyright (c) 2015-2017 CESNET, z.s.p.o. * * This source code is licensed under BSD 3-Clause License (the "License"). * You may not use this file except in compliance with the License. *...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_1287_0
crossvul-cpp_data_good_3368_0
// imagew-bmp.c // Part of ImageWorsener, Copyright (c) 2011 by Jason Summers. // For more information, see the readme.txt file. #include "imagew-config.h" #include <stdio.h> // for SEEK_SET #include <stdlib.h> #include <string.h> #define IW_INCLUDE_UTIL_FUNCTIONS #include "imagew.h" #define IWBMP_BI_RGB 0 //...
./CrossVul/dataset_final_sorted/CWE-787/c/good_3368_0
crossvul-cpp_data_good_520_0
/* * Copyright (C) 2000-2002 Constantin Kaplinsky. All Rights Reserved. * Copyright (C) 2000 Tridia Corporation. All Rights Reserved. * Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved. * * This is free software; you can redistribute it and/or modify * it under the terms of the GNU Gene...
./CrossVul/dataset_final_sorted/CWE-787/c/good_520_0
crossvul-cpp_data_good_4009_0
// SPDX-License-Identifier: GPL-2.0 /* XDP user-space packet buffer * Copyright(c) 2018 Intel Corporation. */ #include <linux/init.h> #include <linux/sched/mm.h> #include <linux/sched/signal.h> #include <linux/sched/task.h> #include <linux/uaccess.h> #include <linux/slab.h> #include <linux/bpf.h> #include <linux/mm....
./CrossVul/dataset_final_sorted/CWE-787/c/good_4009_0
crossvul-cpp_data_good_1881_0
/* * $Id: pam_radius_auth.c,v 1.39 2007/03/26 05:35:31 fcusack Exp $ * pam_radius_auth * Authenticate a user via a RADIUS session * * 0.9.0 - Didn't compile quite right. * 0.9.1 - Hands off passwords properly. Solaris still isn't completely happy * 0.9.2 - Solaris now does challenge-response. Added config...
./CrossVul/dataset_final_sorted/CWE-787/c/good_1881_0
crossvul-cpp_data_good_3108_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-787/c/good_3108_0
crossvul-cpp_data_bad_520_0
/* * Copyright (C) 2000-2002 Constantin Kaplinsky. All Rights Reserved. * Copyright (C) 2000 Tridia Corporation. All Rights Reserved. * Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved. * * This is free software; you can redistribute it and/or modify * it under the terms of the GNU Gene...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_520_0
crossvul-cpp_data_good_519_0
/* * Copyright (C) 2000-2002 Constantin Kaplinsky. All Rights Reserved. * Copyright (C) 2000 Tridia Corporation. All Rights Reserved. * Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved. * * This is free software; you can redistribute it and/or modify * it under the terms of the GNU Gene...
./CrossVul/dataset_final_sorted/CWE-787/c/good_519_0
crossvul-cpp_data_bad_4217_0
/* * tls.c - SSL/TLS/DTLS dissector * * Copyright (C) 2016-20 - ntop.org * * This file is part of nDPI, an open source deep packet inspection * library based on the OpenDPI and PACE technology by ipoque GmbH * * nDPI is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_4217_0
crossvul-cpp_data_good_3106_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-787/c/good_3106_0
crossvul-cpp_data_bad_363_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % CCC U U TTTTT ...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_363_0
crossvul-cpp_data_bad_205_2
/* * ring buffer based function tracer * * Copyright (C) 2007-2012 Steven Rostedt <srostedt@redhat.com> * Copyright (C) 2008 Ingo Molnar <mingo@redhat.com> * * Originally taken from the RT patch by: * Arnaldo Carvalho de Melo <acme@redhat.com> * * Based on code from the latency_tracer, that is: * Copyrigh...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_205_2
crossvul-cpp_data_good_1040_0
/* * auth.c - deal with authentication. * * This file implements authentication when setting up an RFB connection. */ /* * Copyright (C) 2010, 2012-2019 D. R. Commander. All Rights Reserved. * Copyright (C) 2010 University Corporation for Atmospheric Research. * All Rights Reserved. * C...
./CrossVul/dataset_final_sorted/CWE-787/c/good_1040_0
crossvul-cpp_data_bad_5256_0
/* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2016 The PHP Group | +---------...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_5256_0
crossvul-cpp_data_bad_5478_1
/* $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-787/c/bad_5478_1
crossvul-cpp_data_bad_4402_0
/* * card-tcos.c: Support for TCOS cards * * Copyright (C) 2011 Peter Koch <pk@opensc-project.org> * Copyright (C) 2002 g10 Code GmbH * Copyright (C) 2001 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 P...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_4402_0
crossvul-cpp_data_bad_2312_0
/* * 802.11 WEP replay & injection attacks * * Copyright (C) 2006-2013 Thomas d'Otreppe * Copyright (C) 2004, 2005 Christophe Devine * * WEP decryption attack (chopchop) developed by KoreK * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Pub...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_2312_0
crossvul-cpp_data_bad_5474_4
/* $Id$ */ /* tiffcrop.c -- a port of tiffcp.c extended to include manipulations of * the image data through additional options listed below * * Original code: * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * Additions (c) Richard Nolde 2006-2010 * * Permission to use, ...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_5474_4
crossvul-cpp_data_bad_4263_1
/****************************************************************************** * pdf.c * * pdfresurrect - PDF history extraction tool * * Copyright (C) 2008-2010, 2012-2013, 2017-20, Matt Davis (enferex). * * Special thanks to all of the contributors: See AUTHORS. * * Special thanks to 757labs (757 crew), t...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_4263_1
crossvul-cpp_data_bad_158_0
/* * 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-787/c/bad_158_0
crossvul-cpp_data_good_4401_0
/* * PKCS15 emulation layer for Oberthur card. * * Copyright (C) 2010, Viktor Tarasov <vtarasov@opentrust.com> * Copyright (C) 2005, Andrea Frigido <andrea@frisoft.it> * Copyright (C) 2005, Sirio Capizzi <graaf@virgilio.it> * Copyright (C) 2004, Antonino Iacono <ant_iacono@tin.it> * Copyright (C) 2003, Olaf Kirc...
./CrossVul/dataset_final_sorted/CWE-787/c/good_4401_0
crossvul-cpp_data_bad_1338_2
/* Copyright 2016 Christian Hoene, Symonics GmbH */ #include <errno.h> #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include "mysofa_export.h" #include "mysofa.h" #include "../hdf/reader.h" #include "../config.h" /* checks file address. * NULL is an invalid a...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_1338_2
crossvul-cpp_data_good_3105_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-787/c/good_3105_0
crossvul-cpp_data_bad_2758_0
/* * The copyright in this software is being made available under the 2-clauses * BSD License, included below. This software may be subject to other third * party and contributor rights, including patent rights, and no such rights * are granted under this license. * * Copyright (c) 2002-2014, Universite catholiqu...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_2758_0
crossvul-cpp_data_good_4491_0
/* rsa.c * * Copyright (C) 2006-2020 wolfSSL Inc. * * This file is part of wolfSSL. * * wolfSSL 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-787/c/good_4491_0
crossvul-cpp_data_good_3274_4
//**********************************************************************; // Copyright (c) 2015, Intel Corporation // 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 s...
./CrossVul/dataset_final_sorted/CWE-522/c/good_3274_4
crossvul-cpp_data_good_3274_2
//**********************************************************************; // Copyright (c) 2015, Intel Corporation // 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 s...
./CrossVul/dataset_final_sorted/CWE-522/c/good_3274_2
crossvul-cpp_data_bad_4451_0
/** * @file * IMAP network mailbox * * @authors * Copyright (C) 1996-1998,2012 Michael R. Elkins <me@mutt.org> * Copyright (C) 1996-1999 Brandon Long <blong@fiction.net> * Copyright (C) 1999-2009,2012,2017 Brendan Cully <brendan@kublai.com> * Copyright (C) 2018 Richard Russon <rich@flatcap.org> * * @copyright...
./CrossVul/dataset_final_sorted/CWE-522/c/bad_4451_0
crossvul-cpp_data_good_4557_0
#include "cache.h" #include "config.h" #include "credential.h" #include "string-list.h" #include "run-command.h" #include "url.h" #include "prompt.h" void credential_init(struct credential *c) { memset(c, 0, sizeof(*c)); c->helpers.strdup_strings = 1; } void credential_clear(struct credential *c) { free(c->protoco...
./CrossVul/dataset_final_sorted/CWE-522/c/good_4557_0
crossvul-cpp_data_good_4451_0
/** * @file * IMAP network mailbox * * @authors * Copyright (C) 1996-1998,2012 Michael R. Elkins <me@mutt.org> * Copyright (C) 1996-1999 Brandon Long <blong@fiction.net> * Copyright (C) 1999-2009,2012,2017 Brendan Cully <brendan@kublai.com> * Copyright (C) 2018 Richard Russon <rich@flatcap.org> * * @copyright...
./CrossVul/dataset_final_sorted/CWE-522/c/good_4451_0
crossvul-cpp_data_good_3894_0
#include "cache.h" #include "config.h" #include "credential.h" #include "string-list.h" #include "run-command.h" #include "url.h" #include "prompt.h" void credential_init(struct credential *c) { memset(c, 0, sizeof(*c)); c->helpers.strdup_strings = 1; } void credential_clear(struct credential *c) { free(c->protoco...
./CrossVul/dataset_final_sorted/CWE-522/c/good_3894_0
crossvul-cpp_data_bad_3894_0
#include "cache.h" #include "config.h" #include "credential.h" #include "string-list.h" #include "run-command.h" #include "url.h" #include "prompt.h" void credential_init(struct credential *c) { memset(c, 0, sizeof(*c)); c->helpers.strdup_strings = 1; } void credential_clear(struct credential *c) { free(c->protoco...
./CrossVul/dataset_final_sorted/CWE-522/c/bad_3894_0
crossvul-cpp_data_bad_4557_0
#include "cache.h" #include "config.h" #include "credential.h" #include "string-list.h" #include "run-command.h" #include "url.h" #include "prompt.h" void credential_init(struct credential *c) { memset(c, 0, sizeof(*c)); c->helpers.strdup_strings = 1; } void credential_clear(struct credential *c) { free(c->protoco...
./CrossVul/dataset_final_sorted/CWE-522/c/bad_4557_0
crossvul-cpp_data_bad_3274_2
//**********************************************************************; // Copyright (c) 2015, Intel Corporation // 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 s...
./CrossVul/dataset_final_sorted/CWE-522/c/bad_3274_2
crossvul-cpp_data_bad_3274_4
//**********************************************************************; // Copyright (c) 2015, Intel Corporation // 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 s...
./CrossVul/dataset_final_sorted/CWE-522/c/bad_3274_4
crossvul-cpp_data_bad_3894_1
#include "cache.h" #include "object.h" #include "blob.h" #include "tree.h" #include "tree-walk.h" #include "commit.h" #include "tag.h" #include "fsck.h" #include "refs.h" #include "url.h" #include "utf8.h" #include "sha1-array.h" #include "decorate.h" #include "oidset.h" #include "packfile.h" #include "submodule-config...
./CrossVul/dataset_final_sorted/CWE-522/c/bad_3894_1
crossvul-cpp_data_good_3894_1
#include "cache.h" #include "object.h" #include "blob.h" #include "tree.h" #include "tree-walk.h" #include "commit.h" #include "tag.h" #include "fsck.h" #include "refs.h" #include "url.h" #include "utf8.h" #include "sha1-array.h" #include "decorate.h" #include "oidset.h" #include "packfile.h" #include "submodule-config...
./CrossVul/dataset_final_sorted/CWE-522/c/good_3894_1
crossvul-cpp_data_bad_850_0
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) | | Copyrigh...
./CrossVul/dataset_final_sorted/CWE-120/cpp/bad_850_0
crossvul-cpp_data_good_850_0
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) | | Copyrigh...
./CrossVul/dataset_final_sorted/CWE-120/cpp/good_850_0
crossvul-cpp_data_bad_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/bad_3927_0
crossvul-cpp_data_bad_1321_0
/* NetHack 3.6 files.c $NHDT-Date: 1574116097 2019/11/18 22:28:17 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.272 $ */ /* 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/bad_1321_0
crossvul-cpp_data_good_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/good_3927_2
crossvul-cpp_data_good_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/good_2396_0
crossvul-cpp_data_good_1322_1
/* NetHack 3.6 files.c $NHDT-Date: 1574116097 2019/11/18 22:28:17 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.272 $ */ /* 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_1322_1
crossvul-cpp_data_bad_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/bad_287_0
crossvul-cpp_data_good_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/good_999_0
crossvul-cpp_data_good_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/good_3927_3
crossvul-cpp_data_bad_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/bad_4523_2
crossvul-cpp_data_bad_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/bad_2394_0
crossvul-cpp_data_good_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/good_3861_0
crossvul-cpp_data_bad_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/bad_4489_0
crossvul-cpp_data_good_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/good_4711_0
crossvul-cpp_data_bad_1167_0
/* * libopenmpt_modplug.c * -------------------- * Purpose: libopenmpt emulation of the libmodplug interface * Notes : (currently none) * Authors: OpenMPT Devs * The OpenMPT source code is released under the BSD license. Read LICENSE for more details. */ #ifndef NO_LIBMODPLUG #ifdef LIBOPENMPT_BUILD_DLL #unde...
./CrossVul/dataset_final_sorted/CWE-120/c/bad_1167_0
crossvul-cpp_data_good_1167_0
/* * libopenmpt_modplug.c * -------------------- * Purpose: libopenmpt emulation of the libmodplug interface * Notes : (currently none) * Authors: OpenMPT Devs * The OpenMPT source code is released under the BSD license. Read LICENSE for more details. */ #ifndef NO_LIBMODPLUG #ifdef LIBOPENMPT_BUILD_DLL #unde...
./CrossVul/dataset_final_sorted/CWE-120/c/good_1167_0
crossvul-cpp_data_bad_1322_1
/* NetHack 3.6 files.c $NHDT-Date: 1574116097 2019/11/18 22:28:17 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.272 $ */ /* 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/bad_1322_1
crossvul-cpp_data_bad_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/bad_4711_1
crossvul-cpp_data_good_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/good_3927_1
crossvul-cpp_data_bad_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/bad_4424_0
crossvul-cpp_data_bad_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/bad_4012_3
crossvul-cpp_data_good_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/good_3862_0
crossvul-cpp_data_bad_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/bad_4588_2
crossvul-cpp_data_bad_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/bad_3871_3
crossvul-cpp_data_good_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/good_4075_0
crossvul-cpp_data_good_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/good_1706_0
crossvul-cpp_data_bad_4681_1
/* * irc-mode.c - IRC channel/user modes management * * 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 pu...
./CrossVul/dataset_final_sorted/CWE-120/c/bad_4681_1
crossvul-cpp_data_good_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/good_4523_3
crossvul-cpp_data_good_4681_1
/* * irc-mode.c - IRC channel/user modes management * * 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 pu...
./CrossVul/dataset_final_sorted/CWE-120/c/good_4681_1