id
stringlengths
25
30
content
stringlengths
14
942k
max_stars_repo_path
stringlengths
49
55
crossvul-cpp_data_good_3065_0
/*************************************************************************** ofx_preproc.cpp ------------------- copyright : (C) 2002 by Benoit Gr�oir email : benoitg@coeus.ca ***********************************************************************...
./CrossVul/dataset_final_sorted/CWE-119/cpp/good_3065_0
crossvul-cpp_data_good_1388_1
/*- * Copyright 2009 Colin Percival * 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 conditio...
./CrossVul/dataset_final_sorted/CWE-119/cpp/good_1388_1
crossvul-cpp_data_good_963_0
/**************************************************************************** ** libebml : parse EBML files, see http://embl.sourceforge.net/ ** ** <file/class description> ** ** Copyright (C) 2002-2010 Steve Lhomme. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it ...
./CrossVul/dataset_final_sorted/CWE-119/cpp/good_963_0
crossvul-cpp_data_bad_846_0
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) | | Copyrigh...
./CrossVul/dataset_final_sorted/CWE-119/cpp/bad_846_0
crossvul-cpp_data_good_2485_0
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
./CrossVul/dataset_final_sorted/CWE-119/cpp/good_2485_0
crossvul-cpp_data_bad_594_1
404: Not Found
./CrossVul/dataset_final_sorted/CWE-119/cpp/bad_594_1
crossvul-cpp_data_good_578_2
/* Copyright 2008-2017 LibRaw LLC (info@libraw.org) LibRaw is free software; you can redistribute it and/or modify it under the terms of the one of two 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. COMMON...
./CrossVul/dataset_final_sorted/CWE-119/cpp/good_578_2
crossvul-cpp_data_good_598_0
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) | | Copyrigh...
./CrossVul/dataset_final_sorted/CWE-119/cpp/good_598_0
crossvul-cpp_data_good_594_0
/* * Copyright 2011-present Facebook, Inc. * * 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
./CrossVul/dataset_final_sorted/CWE-119/cpp/good_594_0
crossvul-cpp_data_bad_594_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-119/cpp/bad_594_0
crossvul-cpp_data_good_2324_0
/* Copyright (c) 2008-2014, Arvid Norberg All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and ...
./CrossVul/dataset_final_sorted/CWE-119/cpp/good_2324_0
crossvul-cpp_data_bad_962_0
/**************************************************************************** ** libebml : parse EBML files, see http://embl.sourceforge.net/ ** ** <file/class description> ** ** Copyright (C) 2002-2010 Steve Lhomme. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it ...
./CrossVul/dataset_final_sorted/CWE-119/cpp/bad_962_0
crossvul-cpp_data_bad_2945_1
/* Copyright 2008-2017 LibRaw LLC (info@libraw.org) LibRaw is free software; you can redistribute it and/or modify it under the terms of the one of two 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. COMMON...
./CrossVul/dataset_final_sorted/CWE-119/cpp/bad_2945_1
crossvul-cpp_data_bad_5419_0
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */ /* If you are missing that file, acquire a complete release at teeworlds.com. */ #include <new> #include <stdlib.h> // qsort #include <stdarg.h> #include <base/math.h> #include <base/system.h> #include <eng...
./CrossVul/dataset_final_sorted/CWE-119/cpp/bad_5419_0
crossvul-cpp_data_good_3626_0
/* +------------------------------------+ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * * InspIRCd: (C) 2002-2010 InspIRCd Development Team * See: http://wiki.inspircd.org/Credits * * This program is free but copyrighted software; see * the fil...
./CrossVul/dataset_final_sorted/CWE-119/cpp/good_3626_0
crossvul-cpp_data_bad_598_0
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) | | Copyrigh...
./CrossVul/dataset_final_sorted/CWE-119/cpp/bad_598_0
crossvul-cpp_data_good_5419_0
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */ /* If you are missing that file, acquire a complete release at teeworlds.com. */ #include <new> #include <stdlib.h> // qsort #include <stdarg.h> #include <base/math.h> #include <base/system.h> #include <eng...
./CrossVul/dataset_final_sorted/CWE-119/cpp/good_5419_0
crossvul-cpp_data_bad_1382_1
/* * Copyright (c) 2018-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <folly/portability/GMock.h> #include <folly/portability/GTest.h> #include <fizz/record/Plaint...
./CrossVul/dataset_final_sorted/CWE-119/cpp/bad_1382_1
crossvul-cpp_data_good_2972_0
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, instal...
./CrossVul/dataset_final_sorted/CWE-119/cpp/good_2972_0
crossvul-cpp_data_bad_3065_0
/*************************************************************************** ofx_preproc.cpp ------------------- copyright : (C) 2002 by Benoit Gr�oir email : benoitg@coeus.ca ***********************************************************************...
./CrossVul/dataset_final_sorted/CWE-119/cpp/bad_3065_0
crossvul-cpp_data_bad_578_3
/* -*- C++ -*- * File: libraw_cxx.cpp * Copyright 2008-2017 LibRaw LLC (info@libraw.org) * Created: Sat Mar 8 , 2008 * * LibRaw C++ interface (implementation) LibRaw is free software; you can redistribute it and/or modify it under the terms of the one of two licenses as you choose: 1. GNU LESSER GENERAL PUBLIC ...
./CrossVul/dataset_final_sorted/CWE-119/cpp/bad_578_3
crossvul-cpp_data_bad_3219_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-119/cpp/bad_3219_0
crossvul-cpp_data_bad_2485_0
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
./CrossVul/dataset_final_sorted/CWE-119/cpp/bad_2485_0
crossvul-cpp_data_bad_2486_0
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
./CrossVul/dataset_final_sorted/CWE-119/cpp/bad_2486_0
crossvul-cpp_data_good_1636_2
// Copyright Benoit Blanchon 2014-2015 // MIT License // // Arduino JSON library // https://github.com/bblanchon/ArduinoJson #include <gtest/gtest.h> #include <ArduinoJson/Internals/QuotedString.hpp> using namespace ArduinoJson::Internals; class QuotedString_ExtractFrom_Tests : public testing::Test { protected: v...
./CrossVul/dataset_final_sorted/CWE-119/cpp/good_1636_2
crossvul-cpp_data_bad_3626_0
/* +------------------------------------+ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * * InspIRCd: (C) 2002-2010 InspIRCd Development Team * See: http://wiki.inspircd.org/Credits * * This program is free but copyrighted software; see * the fil...
./CrossVul/dataset_final_sorted/CWE-119/cpp/bad_3626_0
crossvul-cpp_data_good_1636_1
// Copyright Benoit Blanchon 2014-2015 // MIT License // // Arduino JSON library // https://github.com/bblanchon/ArduinoJson #include "../../include/ArduinoJson/Internals/QuotedString.hpp" using namespace ArduinoJson::Internals; // How to escape special chars: // specialChars[2*i+1] => the special char // specialCha...
./CrossVul/dataset_final_sorted/CWE-119/cpp/good_1636_1
crossvul-cpp_data_good_3219_0
/* Audio File Library Copyright (C) 1998-2000, 2003-2004, 2010-2013, Michael Pruett <michael@68k.org> Copyright (C) 2000-2002, Silicon Graphics, Inc. Copyright (C) 2002-2003, Davy Durham This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public Lice...
./CrossVul/dataset_final_sorted/CWE-119/cpp/good_3219_0
crossvul-cpp_data_bad_1384_0
/* * Copyright 2017-present Facebook, Inc. * * 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
./CrossVul/dataset_final_sorted/CWE-119/cpp/bad_1384_0
crossvul-cpp_data_good_1384_0
/* * Copyright 2017-present Facebook, Inc. * * 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
./CrossVul/dataset_final_sorted/CWE-119/cpp/good_1384_0
crossvul-cpp_data_good_578_3
/* -*- C++ -*- * File: libraw_cxx.cpp * Copyright 2008-2017 LibRaw LLC (info@libraw.org) * Created: Sat Mar 8 , 2008 * * LibRaw C++ interface (implementation) LibRaw is free software; you can redistribute it and/or modify it under the terms of the one of two licenses as you choose: 1. GNU LESSER GENERAL PUBLIC ...
./CrossVul/dataset_final_sorted/CWE-119/cpp/good_578_3
crossvul-cpp_data_good_962_0
/**************************************************************************** ** libebml : parse EBML files, see http://embl.sourceforge.net/ ** ** <file/class description> ** ** Copyright (C) 2002-2010 Steve Lhomme. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it ...
./CrossVul/dataset_final_sorted/CWE-119/cpp/good_962_0
crossvul-cpp_data_bad_1636_1
// Copyright Benoit Blanchon 2014-2015 // MIT License // // Arduino JSON library // https://github.com/bblanchon/ArduinoJson #include "../../include/ArduinoJson/Internals/QuotedString.hpp" using namespace ArduinoJson::Internals; // How to escape special chars: // specialChars[2*i+1] => the special char // specialCha...
./CrossVul/dataset_final_sorted/CWE-119/cpp/bad_1636_1
crossvul-cpp_data_bad_2486_1
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
./CrossVul/dataset_final_sorted/CWE-119/cpp/bad_2486_1
crossvul-cpp_data_bad_1384_1
/* * Copyright 2017-present Facebook, Inc. * * 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
./CrossVul/dataset_final_sorted/CWE-119/cpp/bad_1384_1
crossvul-cpp_data_good_3225_1
/* Copyright 2008-2016 LibRaw LLC (info@libraw.org) LibRaw is free software; you can redistribute it and/or modify it under the terms of the one of two 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. COMMON...
./CrossVul/dataset_final_sorted/CWE-119/cpp/good_3225_1
crossvul-cpp_data_bad_963_0
/**************************************************************************** ** libebml : parse EBML files, see http://embl.sourceforge.net/ ** ** <file/class description> ** ** Copyright (C) 2002-2010 Steve Lhomme. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it ...
./CrossVul/dataset_final_sorted/CWE-119/cpp/bad_963_0
crossvul-cpp_data_good_2486_1
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
./CrossVul/dataset_final_sorted/CWE-119/cpp/good_2486_1
crossvul-cpp_data_bad_2324_0
/* Copyright (c) 2008-2012, Arvid Norberg All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and ...
./CrossVul/dataset_final_sorted/CWE-119/cpp/bad_2324_0
crossvul-cpp_data_good_1382_1
/* * Copyright (c) 2018-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <folly/portability/GMock.h> #include <folly/portability/GTest.h> #include <fizz/record/Plaint...
./CrossVul/dataset_final_sorted/CWE-119/cpp/good_1382_1
crossvul-cpp_data_bad_851_0
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) | | Copyrigh...
./CrossVul/dataset_final_sorted/CWE-119/cpp/bad_851_0
crossvul-cpp_data_good_2945_1
/* Copyright 2008-2017 LibRaw LLC (info@libraw.org) LibRaw is free software; you can redistribute it and/or modify it under the terms of the one of two 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. COMMON...
./CrossVul/dataset_final_sorted/CWE-119/cpp/good_2945_1
crossvul-cpp_data_good_5643_0
/* -*- C++ -*- * File: libraw_cxx.cpp * Copyright 2008-2013 LibRaw LLC (info@libraw.org) * Created: Sat Mar 8 , 2008 * * LibRaw C++ interface (implementation) 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 PUBLI...
./CrossVul/dataset_final_sorted/CWE-119/cpp/good_5643_0
crossvul-cpp_data_bad_2972_0
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, instal...
./CrossVul/dataset_final_sorted/CWE-119/cpp/bad_2972_0
crossvul-cpp_data_bad_1388_1
/*- * Copyright 2009 Colin Percival * 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 conditio...
./CrossVul/dataset_final_sorted/CWE-119/cpp/bad_1388_1
crossvul-cpp_data_good_2486_0
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
./CrossVul/dataset_final_sorted/CWE-119/cpp/good_2486_0
crossvul-cpp_data_good_851_0
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) | | Copyrigh...
./CrossVul/dataset_final_sorted/CWE-119/cpp/good_851_0
crossvul-cpp_data_bad_1382_0
/* * Copyright (c) 2018-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <fizz/record/PlaintextRecordLayer.h> #include <folly/String.h> namespace fizz { using Conte...
./CrossVul/dataset_final_sorted/CWE-119/cpp/bad_1382_0
crossvul-cpp_data_good_1382_0
/* * Copyright (c) 2018-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <fizz/record/PlaintextRecordLayer.h> #include <folly/String.h> namespace fizz { using Conte...
./CrossVul/dataset_final_sorted/CWE-119/cpp/good_1382_0
crossvul-cpp_data_good_594_1
/* * Copyright 2012-present Facebook, Inc. * * 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
./CrossVul/dataset_final_sorted/CWE-119/cpp/good_594_1
crossvul-cpp_data_bad_3225_1
/* Copyright 2008-2016 LibRaw LLC (info@libraw.org) LibRaw is free software; you can redistribute it and/or modify it under the terms of the one of two 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. COMMON...
./CrossVul/dataset_final_sorted/CWE-119/cpp/bad_3225_1
crossvul-cpp_data_bad_5643_0
/* -*- C++ -*- * File: libraw_cxx.cpp * Copyright 2008-2013 LibRaw LLC (info@libraw.org) * Created: Sat Mar 8 , 2008 * * LibRaw C++ interface (implementation) 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 PUBLI...
./CrossVul/dataset_final_sorted/CWE-119/cpp/bad_5643_0
crossvul-cpp_data_bad_2333_0
/* * TTUSB DEC Frontend Driver * * Copyright (C) 2003-2004 Alex Woods <linux-dvb@giblets.org> * * 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 ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_2333_0
crossvul-cpp_data_bad_3407_0
/* radare - LGPL - Copyright 2009-2017 // pancake */ static int cmd_mkdir(void *data, const char *input) { char *res = r_syscmd_mkdir (input); if (res) { r_cons_print (res); free (res); } return 0; } static int cmd_mv(void *data, const char *input) { return r_syscmd_mv (input)? 1: 0; } static int cmd_mount(...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_3407_0
crossvul-cpp_data_good_344_8
/* * cryptoflex-tool.c: Tool for doing various Cryptoflex related stuff * * 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 Public * License as published by the Free Software Foundation; e...
./CrossVul/dataset_final_sorted/CWE-119/c/good_344_8
crossvul-cpp_data_bad_5127_2
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % W W PPPP GGGG ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_5127_2
crossvul-cpp_data_bad_341_1
/* * Support for ePass2003 smart cards * * Copyright (C) 2008, Weitao Sun <weitao@ftsafe.com> * Copyright (C) 2011, Xiaoshuo Wu <xiaoshuo@ftsafe.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-119/c/bad_341_1
crossvul-cpp_data_bad_4906_0
/** * eCryptfs: Linux filesystem encryption layer * * Copyright (C) 1997-2004 Erez Zadok * Copyright (C) 2001-2004 Stony Brook University * Copyright (C) 2004-2007 International Business Machines Corp. * Author(s): Michael A. Halcrow <mhalcrow@us.ibm.com> * Michael C. Thompson <mcthomps@us.ibm.com> * * T...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_4906_0
crossvul-cpp_data_good_5359_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_5359_0
crossvul-cpp_data_bad_234_0
/* radare - LGPL - Copyright 2012-2017 - pancake, Fedor Sakharov */ #define D0 if(1) #define D1 if(1) #include <errno.h> #define DWARF_DUMP 0 #if DWARF_DUMP #define DBGFD stdout #else #define DBGFD NULL #endif #include <r_bin.h> #include <r_bin_dwarf.h> #include <r_core.h> #define STANDARD_OPERAND_COUNT_DWARF2 9 ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_234_0
crossvul-cpp_data_bad_5280_0
/* +----------------------------------------------------------------------+ | Zend Engine | +----------------------------------------------------------------------+ | Copyright (c) 1998-2016 Zend Technologies Ltd. (http://www.zend.com) | +---------...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_5280_0
crossvul-cpp_data_bad_3314_0
/* * CCM: Counter with CBC-MAC * * (C) Copyright IBM Corp. 2007 - Joy Latten <latten@us.ibm.com> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation; either version 2 of the License, or (at ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_3314_0
crossvul-cpp_data_good_4950_0
/* $Id$ * * Copyright (C) 2006-2007 VozTelecom Sistemas S.L * * This file is part of Kamailio, a free SIP server. * * Kamailio 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 Li...
./CrossVul/dataset_final_sorted/CWE-119/c/good_4950_0
crossvul-cpp_data_bad_3259_0
/*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | * / __| | | | |_) | | * | (__| |_| | _ <| |___ * \___|\...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_3259_0
crossvul-cpp_data_good_340_4
/* * PKCS15 emulation layer for EstEID card. * * Copyright (C) 2004, Martin Paljak <martin@martinpaljak.net> * Copyright (C) 2004, Bud P. Bruegger <bud@comune.grosseto.it> * Copyright (C) 2004, Antonino Iacono <ant_iacono@tin.it> * Copyright (C) 2003, Olaf Kirch <okir@suse.de> * * This library is free software;...
./CrossVul/dataset_final_sorted/CWE-119/c/good_340_4
crossvul-cpp_data_bad_3310_0
/* dvb-usb-firmware.c is part of the DVB USB library. * * Copyright (C) 2004-6 Patrick Boettcher (patrick.boettcher@posteo.de) * see dvb-usb-init.c for copyright information. * * This file contains functions for downloading the firmware to Cypress FX 1 and 2 based devices. * * FIXME: This part does actually not ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_3310_0
crossvul-cpp_data_bad_4787_22
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_4787_22
crossvul-cpp_data_good_4806_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-119/c/good_4806_0
crossvul-cpp_data_bad_4787_16
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_4787_16
crossvul-cpp_data_bad_1709_0
/* $Id: igd_desc_parse.c,v 1.16 2014/11/17 17:19:13 nanard Exp $ */ /* Project : miniupnp * http://miniupnp.free.fr/ * Author : Thomas Bernard * Copyright (c) 2005-2014 Thomas Bernard * This software is subject to the conditions detailed in the * LICENCE file provided in this distribution. */ #include "igd_desc_p...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_1709_0
crossvul-cpp_data_bad_118_0
/* * PowerPC version * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * Derived from "arch/m68k/kernel/ptrace.c" * Copyright (C) 1994 by Hamish Macdonald * Taken from linux/kernel/ptrace.c and modified for M680x0. * linux/kernel/ptrace.c is by Ross Biro 1/23/92, edited by Linus Torvalds * * M...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_118_0
crossvul-cpp_data_bad_5028_0
/* * The Python Imaging Library * $Id$ * * Pillow image resampling support * * history: * 2002-03-09 fl Created (for PIL 1.1.3) * 2002-03-10 fl Added support for mode "F" * * Copyright (c) 1997-2002 by Secret Labs AB * * See the README file for information on usage and redistribution. */ #include "Imagi...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_5028_0
crossvul-cpp_data_good_3315_0
/* CAN driver for Geschwister Schneider USB/CAN devices * and bytewerk.org candleLight USB CAN interfaces. * * Copyright (C) 2013-2016 Geschwister Schneider Technologie-, * Entwicklungs- und Vertriebs UG (Haftungsbeschränkt). * Copyright (C) 2016 Hubert Denkmair * * Many thanks to all socketcan devs! * * This ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_3315_0
crossvul-cpp_data_good_4999_2
/* * Packet matching code. * * Copyright (C) 1999 Paul `Rusty' Russell & Michael J. Neuling * Copyright (C) 2000-2005 Netfilter Core Team <coreteam@netfilter.org> * Copyright (c) 2006-2010 Patrick McHardy <kaber@trash.net> * * This program is free software; you can redistribute it and/or modify * it under the t...
./CrossVul/dataset_final_sorted/CWE-119/c/good_4999_2
crossvul-cpp_data_bad_2133_0
/*************************************************************************** * Copyright (C) 2010-2012 by Bruno Prémont <bonbons@linux-vserver.org> * * * * Based on Logitech G13 driver (v0.4) * * Copyr...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_2133_0
crossvul-cpp_data_good_343_7
/* * sc.c: General functions * * 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 of the License, ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_343_7
crossvul-cpp_data_good_2019_4
/* src/interfaces/ecpg/pgtypeslib/interval.c */ #include "postgres_fe.h" #include <time.h> #include <math.h> #include <limits.h> #ifdef __FAST_MATH__ #error -ffast-math is known to break this code #endif #include "extern.h" #include "dt.h" #include "pgtypes_error.h" #include "pgtypes_interval.h" /* copy&pasted from...
./CrossVul/dataset_final_sorted/CWE-119/c/good_2019_4
crossvul-cpp_data_good_4409_0
// SPDX-License-Identifier: GPL-2.0-only /* Copyright (c) 2011-2014 PLUMgrid, http://plumgrid.com * Copyright (c) 2016 Facebook * Copyright (c) 2018 Covalent IO, Inc. http://covalent.io */ #include <uapi/linux/btf.h> #include <linux/kernel.h> #include <linux/types.h> #include <linux/slab.h> #include <linux/bpf.h> #i...
./CrossVul/dataset_final_sorted/CWE-119/c/good_4409_0
crossvul-cpp_data_good_3187_1
/* * Glue code for libmspack handling. * Author: 웃 Sebastian Andrzej Siewior * ✉ sebastian @ breakpoint ̣cc */ #include <stdio.h> #include <stdlib.h> #include <sys/stat.h> #include <fcntl.h> #include <mspack.h> #include "clamav.h" #include "fmap.h" #include "scanners.h" #include "others.h" enum mspack_type { F...
./CrossVul/dataset_final_sorted/CWE-119/c/good_3187_1
crossvul-cpp_data_bad_2686_3
/* * Copyright (c) 1990, 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...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_2686_3
crossvul-cpp_data_good_4359_0
/* pb_decode.c -- decode a protobuf using minimal resources * * 2011 Petteri Aimonen <jpa@kapsi.fi> */ /* Use the GCC warn_unused_result attribute to check that all return values * are propagated correctly. On other compilers and gcc before 3.4.0 just * ignore the annotation. */ #if !defined(__GNUC__) || ( __GNU...
./CrossVul/dataset_final_sorted/CWE-119/c/good_4359_0
crossvul-cpp_data_good_345_5
/* * 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 of the License, or (at your option) any later version. * * This library is distributed in the hope that it wi...
./CrossVul/dataset_final_sorted/CWE-119/c/good_345_5
crossvul-cpp_data_bad_3173_0
/* radare - LGPL - Copyright 2011-2016 - pancake */ #include <r_cons.h> #include <r_types.h> #include <r_util.h> #include <r_lib.h> #include <r_bin.h> #include "dex/dex.h" #define r_hash_adler32 __adler32 #include "../../hash/adler32.c" extern struct r_bin_dbginfo_t r_bin_dbginfo_dex; #define DEBUG_PRINTF 0 #if DEB...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_3173_0
crossvul-cpp_data_good_3191_0
/* * bplist.c * Binary plist implementation * * Copyright (c) 2011-2017 Nikias Bassen, All Rights Reserved. * Copyright (c) 2008-2010 Jonathan Beck, All Rights Reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as p...
./CrossVul/dataset_final_sorted/CWE-119/c/good_3191_0
crossvul-cpp_data_bad_3111_1
/********************************************************************** * $Id$ * * Project: MapServer * Purpose: OGC Filter Encoding implementation * Author: Y. Assefa, DM Solutions Group (assefa@dmsolutions.ca) * ********************************************************************** * Copyright (c) 2003, Y...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_3111_1
crossvul-cpp_data_bad_343_4
/* * PKCS15 emulation layer for EstEID card. * * Copyright (C) 2004, Martin Paljak <martin@martinpaljak.net> * Copyright (C) 2004, Bud P. Bruegger <bud@comune.grosseto.it> * Copyright (C) 2004, Antonino Iacono <ant_iacono@tin.it> * Copyright (C) 2003, Olaf Kirch <okir@suse.de> * * This library is free software;...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_343_4
crossvul-cpp_data_bad_2919_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % W W PPPP GGGG ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_2919_0
crossvul-cpp_data_bad_2132_0
/* * USB ConnectTech WhiteHEAT driver * * Copyright (C) 2002 * Connect Tech Inc. * * Copyright (C) 1999 - 2001 * Greg Kroah-Hartman (greg@kroah.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 Fr...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_2132_0
crossvul-cpp_data_good_900_0
/* Ming, an SWF output library Copyright (C) 2002 Opaque Industries - http://www.opaque.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 published by the Free Software Foundation; either version 2.1 of the ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_900_0
crossvul-cpp_data_good_2333_0
/* * TTUSB DEC Frontend Driver * * Copyright (C) 2003-2004 Alex Woods <linux-dvb@giblets.org> * * 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 ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_2333_0
crossvul-cpp_data_good_5661_0
/* * net/key/af_key.c An implementation of PF_KEYv2 sockets. * * 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-119/c/good_5661_0
crossvul-cpp_data_good_2038_1
/*- * Copyright (c) 2008 Christos Zoulas * 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 con...
./CrossVul/dataset_final_sorted/CWE-119/c/good_2038_1
crossvul-cpp_data_bad_732_0
// SPDX-License-Identifier: BSD-2-Clause /* * Copyright (c) 2014, STMicroelectronics International N.V. */ #include <assert.h> #include <compiler.h> #include <crypto/crypto.h> #include <kernel/tee_ta_manager.h> #include <mm/tee_mmu.h> #include <string_ext.h> #include <string.h> #include <sys/queue.h> #include <tee_a...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_732_0
crossvul-cpp_data_bad_5635_0
/* * host.c - ChipIdea USB host controller driver * * Copyright (c) 2012 Intel Corporation * * Author: Alexander Shishkin * * 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. * ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_5635_0
crossvul-cpp_data_bad_2018_0
/* * Kernel-based Virtual Machine driver for Linux * * derived from drivers/kvm/kvm_main.c * * Copyright (C) 2006 Qumranet, Inc. * Copyright (C) 2008 Qumranet, Inc. * Copyright IBM Corporation, 2008 * Copyright 2010 Red Hat, Inc. and/or its affiliates. * * Authors: * Avi Kivity <avi@qumranet.com> * Ya...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_2018_0
crossvul-cpp_data_bad_107_0
#ifndef NGIFLIB_NO_FILE #include <stdio.h> #endif /* NGIFLIB_NO_FILE */ #include "ngiflib.h" /* decodeur GIF en C portable (pas de pb big/little endian) * Thomas BERNARD. janvier 2004. * (c) 2004-2017 Thomas Bernard. All rights reserved */ /* Fonction de debug */ #ifdef DEBUG void fprintf_ngiflib_img(FILE * f, st...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_107_0
crossvul-cpp_data_bad_3110_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_3110_0
crossvul-cpp_data_good_4905_0
/** * eCryptfs: Linux filesystem encryption layer * * Copyright (C) 2008 International Business Machines Corp. * Author(s): Michael A. Halcrow <mahalcro@us.ibm.com> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by...
./CrossVul/dataset_final_sorted/CWE-119/c/good_4905_0
crossvul-cpp_data_bad_1848_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_1848_0
crossvul-cpp_data_good_412_2
/* 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-119/c/good_412_2