id
stringlengths
25
30
content
stringlengths
14
942k
max_stars_repo_path
stringlengths
49
55
crossvul-cpp_data_good_843_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/Encryp...
./CrossVul/dataset_final_sorted/CWE-400/cpp/good_843_1
crossvul-cpp_data_bad_842_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/EncryptedRecordLayer.h> #include <fizz/crypto/aead/IOBufUtil.h> namespace fizz {...
./CrossVul/dataset_final_sorted/CWE-400/cpp/bad_842_0
crossvul-cpp_data_good_4324_0
/** * SPDX-FileCopyrightText: 2013 Albert Vaca <albertvaka@gmail.com> * * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL */ #include "lanlinkprovider.h" #include "core_debug.h" #ifndef Q_OS_WIN #include <sys/socket.h> #include <netinet/in.h> #include <netinet/tcp.h> #include ...
./CrossVul/dataset_final_sorted/CWE-400/cpp/good_4324_0
crossvul-cpp_data_bad_4319_0
/** * SPDX-FileCopyrightText: 2013 Albert Vaca <albertvaka@gmail.com> * * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL */ #include "lanlinkprovider.h" #include "core_debug.h" #ifndef Q_OS_WIN #include <sys/socket.h> #include <netinet/in.h> #include <netinet/tcp.h> #include ...
./CrossVul/dataset_final_sorted/CWE-400/cpp/bad_4319_0
crossvul-cpp_data_bad_852_0
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "CarbonProtocolReader.h" namespace carbon { void CarbonProtocolReader::skipLinearContainer() { const auto pr = readLine...
./CrossVul/dataset_final_sorted/CWE-400/cpp/bad_852_0
crossvul-cpp_data_bad_3980_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 <base/math.h> #include <base/system.h> #include <engine/config.h> #include <engine/console.h> #include <engine/engine...
./CrossVul/dataset_final_sorted/CWE-400/cpp/bad_3980_0
crossvul-cpp_data_good_852_0
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "CarbonProtocolReader.h" namespace carbon { void CarbonProtocolReader::skipLinearContainer() { const auto pr = readLine...
./CrossVul/dataset_final_sorted/CWE-400/cpp/good_852_0
crossvul-cpp_data_good_842_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 <fizz/record/RecordLayer.h> namespace fizz { using HandshakeTypeType = typename std::underly...
./CrossVul/dataset_final_sorted/CWE-400/cpp/good_842_1
crossvul-cpp_data_good_3980_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 <base/math.h> #include <base/system.h> #include <engine/config.h> #include <engine/console.h> #include <engine/engine...
./CrossVul/dataset_final_sorted/CWE-400/cpp/good_3980_0
crossvul-cpp_data_good_4321_0
/** * SPDX-FileCopyrightText: 2013 Albert Vaca <albertvaka@gmail.com> * * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL */ #include "lanlinkprovider.h" #include "core_debug.h" #ifndef Q_OS_WIN #include <sys/socket.h> #include <netinet/in.h> #include <netinet/tcp.h> #include ...
./CrossVul/dataset_final_sorted/CWE-400/cpp/good_4321_0
crossvul-cpp_data_good_455_0
#include "sass.hpp" #include "parser.hpp" #include "file.hpp" #include "inspect.hpp" #include "constants.hpp" #include "util.hpp" #include "prelexer.hpp" #include "color_maps.hpp" #include "sass/functions.h" #include "error_handling.hpp" // Notes about delayed: some ast nodes can have delayed evaluation so // they can...
./CrossVul/dataset_final_sorted/CWE-400/cpp/good_455_0
crossvul-cpp_data_bad_4323_0
/** * SPDX-FileCopyrightText: 2013 Albert Vaca <albertvaka@gmail.com> * SPDX-FileCopyrightText: 2014 Alejandro Fiestas Olivares <afiestas@kde.org> * * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL */ #include "socketlinereader.h" SocketLineReader::SocketLineReader(QSslSocke...
./CrossVul/dataset_final_sorted/CWE-400/cpp/bad_4323_0
crossvul-cpp_data_bad_527_0
/* * Completely Fair Scheduling (CFS) Class (SCHED_NORMAL/SCHED_BATCH) * * Copyright (C) 2007 Red Hat, Inc., Ingo Molnar <mingo@redhat.com> * * Interactivity improvements by Mike Galbraith * (C) 2007 Mike Galbraith <efault@gmx.de> * * Various enhancements by Dmitry Adamushko. * (C) 2007 Dmitry Adamushko <...
./CrossVul/dataset_final_sorted/CWE-400/c/bad_527_0
crossvul-cpp_data_bad_4472_0
/* This file is copied from the libsrs2 sources */ /* Modified by Timo Röhling <timo.roehling@gmx.de> */ /* Copyright (c) 2004 Shevek (srs@anarres.org) * All rights reserved. * * This file is a part of libsrs2 from http://www.libsrs2.org/ * * Redistribution and use in source and binary forms, with or without * m...
./CrossVul/dataset_final_sorted/CWE-400/c/bad_4472_0
crossvul-cpp_data_good_485_1
// SPDX-License-Identifier: GPL-2.0 /* * drivers/usb/core/usb.c * * (C) Copyright Linus Torvalds 1999 * (C) Copyright Johannes Erdfelt 1999-2001 * (C) Copyright Andreas Gal 1999 * (C) Copyright Gregory P. Smith 1999 * (C) Copyright Deti Fliegl 1999 (new USB architecture) * (C) Copyright Randy Dunlap 2000 * (C)...
./CrossVul/dataset_final_sorted/CWE-400/c/good_485_1
crossvul-cpp_data_bad_477_1
/* exif-data.c * * Copyright (c) 2001 Lutz Mueller <lutz@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 published by the Free Software Foundation; either * version 2 of the License, or (at your opt...
./CrossVul/dataset_final_sorted/CWE-400/c/bad_477_1
crossvul-cpp_data_good_485_0
// SPDX-License-Identifier: GPL-2.0 /* * USB hub driver. * * (C) Copyright 1999 Linus Torvalds * (C) Copyright 1999 Johannes Erdfelt * (C) Copyright 1999 Gregory P. Smith * (C) Copyright 2001 Brad Hards (bhards@bigpond.net.au) * * Released under the GPLv2 only. */ #include <linux/kernel.h> #include <linux/err...
./CrossVul/dataset_final_sorted/CWE-400/c/good_485_0
crossvul-cpp_data_good_1253_0
// SPDX-License-Identifier: GPL-2.0 /* Copyright(c) 2009-2012 Realtek Corporation.*/ #include "wifi.h" #include "core.h" #include "usb.h" #include "base.h" #include "ps.h" #include "rtl8192c/fw_common.h" #include <linux/export.h> #include <linux/module.h> MODULE_AUTHOR("lizhaoming <chaoming_li@realsil.com.cn>"); MOD...
./CrossVul/dataset_final_sorted/CWE-400/c/good_1253_0
crossvul-cpp_data_good_1215_0
// SPDX-License-Identifier: GPL-2.0-or-later /* DVB USB compliant Linux driver for the Afatech 9005 * USB1.1 DVB-T receiver. * * Copyright (C) 2007 Luca Olivetti (luca@ventoso.org) * * Thanks to Afatech who kindly provided information. * * see Documentation/media/dvb-drivers/dvb-usb.rst for more information */ ...
./CrossVul/dataset_final_sorted/CWE-400/c/good_1215_0
crossvul-cpp_data_good_1234_0
// SPDX-License-Identifier: GPL-2.0+ /* Copyright (C) 2014-2018 Broadcom */ #include <linux/device.h> #include <linux/dma-mapping.h> #include <linux/io.h> #include <linux/module.h> #include <linux/platform_device.h> #include <linux/pm_runtime.h> #include <linux/reset.h> #include <linux/sched/signal.h> #include <linux/...
./CrossVul/dataset_final_sorted/CWE-400/c/good_1234_0
crossvul-cpp_data_good_1216_0
// SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) // // This file is provided under a dual BSD/GPLv2 license. When using or // redistributing this file, you may do so under either license. // // Copyright(c) 2018 Intel Corporation. All rights reserved. // // Author: Liam Girdwood <liam.r.girdwood@linux.intel.com> ...
./CrossVul/dataset_final_sorted/CWE-400/c/good_1216_0
crossvul-cpp_data_good_1255_0
/* * Copyright(c) 2015 - 2018 Intel Corporation. * * This file is provided under a dual BSD/GPLv2 license. When using or * redistributing this file, you may do so under either license. * * GPL LICENSE SUMMARY * * This program is free software; you can redistribute it and/or modify * it under the terms of vers...
./CrossVul/dataset_final_sorted/CWE-400/c/good_1255_0
crossvul-cpp_data_good_1243_0
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2016, Linaro Ltd. * Copyright (c) 2012, Michal Simek <monstr@monstr.eu> * Copyright (c) 2012, PetaLogix * Copyright (c) 2011, Texas Instruments, Inc. * Copyright (c) 2011, Google, Inc. * * Based on rpmsg performance statistics driver by Michal Simek, which i...
./CrossVul/dataset_final_sorted/CWE-400/c/good_1243_0
crossvul-cpp_data_good_1233_0
// SPDX-License-Identifier: GPL-2.0 /* Copyright(c) 2013 - 2018 Intel Corporation. */ #include <linux/etherdevice.h> #include <linux/of_net.h> #include <linux/pci.h> #include <linux/bpf.h> /* Local includes */ #include "i40e.h" #include "i40e_diag.h" #include "i40e_xsk.h" #include <net/udp_tunnel.h> #include <net/xdp...
./CrossVul/dataset_final_sorted/CWE-400/c/good_1233_0
crossvul-cpp_data_bad_1273_2
/* * Copyright 2012-15 Advanced Micro Devices, 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,...
./CrossVul/dataset_final_sorted/CWE-400/c/bad_1273_2
crossvul-cpp_data_good_5356_2
/* * 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. * * PF_INET protocol family socket handler. * * Authors: Ross Biro * Fred N. van Kempen, <waltje@uWalt.NL.Mugn...
./CrossVul/dataset_final_sorted/CWE-400/c/good_5356_2
crossvul-cpp_data_bad_1241_0
// SPDX-License-Identifier: GPL-2.0-only /* * Intel Wireless WiMAX Connection 2400m * Implement backend for the WiMAX stack rfkill support * * Copyright (C) 2007-2008 Intel Corporation <linux-wimax@intel.com> * Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> * * The WiMAX kernel stack integrates into RF-Ki...
./CrossVul/dataset_final_sorted/CWE-400/c/bad_1241_0
crossvul-cpp_data_good_2795_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % W W PPPP GGGG ...
./CrossVul/dataset_final_sorted/CWE-400/c/good_2795_0
crossvul-cpp_data_good_1273_5
/* * Copyright 2016 Advanced Micro Devices, 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, me...
./CrossVul/dataset_final_sorted/CWE-400/c/good_1273_5
crossvul-cpp_data_bad_4006_0
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2000-2002,2005 Silicon Graphics, Inc. * All Rights Reserved. */ #include "xfs.h" #include "xfs_fs.h" #include "xfs_format.h" #include "xfs_log_format.h" #include "xfs_shared.h" #include "xfs_trans_resv.h" #include "xfs_bit.h" #include "xfs_sb.h" #include "xfs_mo...
./CrossVul/dataset_final_sorted/CWE-400/c/bad_4006_0
crossvul-cpp_data_bad_1264_0
/* * Copyright (c) 2010-2011 Atheros Communications Inc. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" A...
./CrossVul/dataset_final_sorted/CWE-400/c/bad_1264_0
crossvul-cpp_data_bad_1876_1
/* $Id: fpm_children.c,v 1.32.2.2 2008/12/13 03:21:18 anight Exp $ */ /* (c) 2007,2008 Andrei Nigmatulin */ #include "fpm_config.h" #include <sys/types.h> #include <sys/wait.h> #include <time.h> #include <unistd.h> #include <string.h> #include <stdio.h> #include "fpm.h" #include "fpm_children.h" #include "fpm_sig...
./CrossVul/dataset_final_sorted/CWE-400/c/bad_1876_1
crossvul-cpp_data_good_5356_1
/* * NET3 Protocol independent device support routines. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. * ...
./CrossVul/dataset_final_sorted/CWE-400/c/good_5356_1
crossvul-cpp_data_bad_1265_0
/* * http://www.cascoda.com/products/ca-821x/ * Copyright (c) 2016, Cascoda, Ltd. * All rights reserved. * * This code is dual-licensed under both GPLv2 and 3-clause BSD. What follows is * the license notice for both respectively. * *******************************************************************************...
./CrossVul/dataset_final_sorted/CWE-400/c/bad_1265_0
crossvul-cpp_data_bad_1216_0
// SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) // // This file is provided under a dual BSD/GPLv2 license. When using or // redistributing this file, you may do so under either license. // // Copyright(c) 2018 Intel Corporation. All rights reserved. // // Author: Liam Girdwood <liam.r.girdwood@linux.intel.com> ...
./CrossVul/dataset_final_sorted/CWE-400/c/bad_1216_0
crossvul-cpp_data_good_1273_2
/* * Copyright 2012-15 Advanced Micro Devices, 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,...
./CrossVul/dataset_final_sorted/CWE-400/c/good_1273_2
crossvul-cpp_data_good_4021_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-400/c/good_4021_0
crossvul-cpp_data_good_1264_0
/* * Copyright (c) 2010-2011 Atheros Communications Inc. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" A...
./CrossVul/dataset_final_sorted/CWE-400/c/good_1264_0
crossvul-cpp_data_good_1214_0
// SPDX-License-Identifier: GPL-2.0-only /* * AMD Cryptographic Coprocessor (CCP) driver * * Copyright (C) 2013-2019 Advanced Micro Devices, Inc. * * Author: Tom Lendacky <thomas.lendacky@amd.com> * Author: Gary R Hook <gary.hook@amd.com> */ #include <linux/module.h> #include <linux/kernel.h> #include <linux/in...
./CrossVul/dataset_final_sorted/CWE-400/c/good_1214_0
crossvul-cpp_data_bad_1273_4
/* * Copyright 2012-15 Advanced Micro Devices, 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...
./CrossVul/dataset_final_sorted/CWE-400/c/bad_1273_4
crossvul-cpp_data_bad_1323_1
// SPDX-License-Identifier: GPL-2.0 /* * Completely Fair Scheduling (CFS) Class (SCHED_NORMAL/SCHED_BATCH) * * Copyright (C) 2007 Red Hat, Inc., Ingo Molnar <mingo@redhat.com> * * Interactivity improvements by Mike Galbraith * (C) 2007 Mike Galbraith <efault@gmx.de> * * Various enhancements by Dmitry Adamus...
./CrossVul/dataset_final_sorted/CWE-400/c/bad_1323_1
crossvul-cpp_data_bad_1071_0
/********************************************************************** regparse.c - Oniguruma (regular expression library) **********************************************************************/ /*- * Copyright (c) 2002-2019 K.Kosako <sndgk393 AT ybb DOT ne DOT jp> * All rights reserved. * * Redistribution an...
./CrossVul/dataset_final_sorted/CWE-400/c/bad_1071_0
crossvul-cpp_data_good_707_0
/*- * Copyright (c) 2003-2007 Tim Kientzle * Copyright (c) 2009 Andreas Henriksson <andreas@fatal.se> * Copyright (c) 2009-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 * ...
./CrossVul/dataset_final_sorted/CWE-400/c/good_707_0
crossvul-cpp_data_bad_812_2
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <setjmp.h> #include <limits.h> #include "regexp.h" #include "utf.h" #define emit regemit #define next regnext #define accept regaccept #define nelem(a) (int)(sizeof (a) / sizeof (a)[0]) #define REPINF 255 #define MAXSUB REG_MAXSUB #define MAXPROG (...
./CrossVul/dataset_final_sorted/CWE-400/c/bad_812_2
crossvul-cpp_data_good_5200_6
/* * sysctl.c: General linux system control interface * * Begun 24 March 1995, Stephen Tweedie * Added /proc support, Dec 1995 * Added bdflush entry and intvec min/max checking, 2/23/96, Tom Dyas. * Added hooks for /proc/sys/net (minor, minor patch), 96/4/1, Mike Shaver. * Added kernel/java-{interpreter,appletvi...
./CrossVul/dataset_final_sorted/CWE-400/c/good_5200_6
crossvul-cpp_data_bad_2562_0
/* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2016 The PHP Group | +---------...
./CrossVul/dataset_final_sorted/CWE-400/c/bad_2562_0
crossvul-cpp_data_good_1267_0
/* * Broadcom NetXtreme-E RoCE driver. * * Copyright (c) 2016 - 2017, Broadcom. All rights reserved. The term * Broadcom refers to Broadcom Limited and/or its subsidiaries. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU *...
./CrossVul/dataset_final_sorted/CWE-400/c/good_1267_0
crossvul-cpp_data_good_815_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-400/c/good_815_0
crossvul-cpp_data_good_1272_2
/* * Copyright 2012-15 Advanced Micro Devices, 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,...
./CrossVul/dataset_final_sorted/CWE-400/c/good_1272_2
crossvul-cpp_data_bad_5200_2
/* * linux/fs/namespace.c * * (C) Copyright Al Viro 2000, 2001 * Released under GPL v2. * * Based on code from fs/super.c, copyright Linus Torvalds and others. * Heavily rewritten. */ #include <linux/syscalls.h> #include <linux/export.h> #include <linux/capability.h> #include <linux/mnt_namespace.h> #include ...
./CrossVul/dataset_final_sorted/CWE-400/c/bad_5200_2
crossvul-cpp_data_good_812_1
#include "jsi.h" #include "jsvalue.h" #include "jsbuiltin.h" #include "utf.h" #include "regexp.h" static int js_doregexec(js_State *J, Reprog *prog, const char *string, Resub *sub, int eflags) { int result = js_regexec(prog, string, sub, eflags); if (result < 0) js_error(J, "regexec failed"); return result; } st...
./CrossVul/dataset_final_sorted/CWE-400/c/good_812_1
crossvul-cpp_data_bad_1215_0
// SPDX-License-Identifier: GPL-2.0-or-later /* DVB USB compliant Linux driver for the Afatech 9005 * USB1.1 DVB-T receiver. * * Copyright (C) 2007 Luca Olivetti (luca@ventoso.org) * * Thanks to Afatech who kindly provided information. * * see Documentation/media/dvb-drivers/dvb-usb.rst for more information */ ...
./CrossVul/dataset_final_sorted/CWE-400/c/bad_1215_0
crossvul-cpp_data_good_2787_0
/* * ASF compatible demuxer * Copyright (c) 2000, 2001 Fabrice Bellard * * 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 Li...
./CrossVul/dataset_final_sorted/CWE-400/c/good_2787_0
crossvul-cpp_data_good_1258_0
// SPDX-License-Identifier: GPL-2.0-only /* * RTL8XXXU mac80211 USB driver * * Copyright (c) 2014 - 2017 Jes Sorensen <Jes.Sorensen@gmail.com> * * Portions, notably calibration code: * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. * * This driver was written as a replacement for the vendor ...
./CrossVul/dataset_final_sorted/CWE-400/c/good_1258_0
crossvul-cpp_data_bad_1217_0
// SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) // // This file is provided under a dual BSD/GPLv2 license. When using or // redistributing this file, you may do so under either license. // // Copyright(c) 2018 Intel Corporation. All rights reserved. // // Author: Liam Girdwood <liam.r.girdwood@linux.intel.com> ...
./CrossVul/dataset_final_sorted/CWE-400/c/bad_1217_0
crossvul-cpp_data_good_1259_0
// SPDX-License-Identifier: GPL-2.0 // Copyright (c) 2011-2018, The Linux Foundation. All rights reserved. // Copyright (c) 2018, Linaro Limited #include <linux/completion.h> #include <linux/device.h> #include <linux/dma-buf.h> #include <linux/dma-mapping.h> #include <linux/idr.h> #include <linux/list.h> #include <lin...
./CrossVul/dataset_final_sorted/CWE-400/c/good_1259_0
crossvul-cpp_data_good_1244_0
// SPDX-License-Identifier: GPL-2.0-or-later /* * Driver for the Conexant CX23885/7/8 PCIe bridge * * CX23888 Integrated Consumer Infrared Controller * * Copyright (C) 2009 Andy Walls <awalls@md.metrocast.net> */ #include "cx23885.h" #include "cx23888-ir.h" #include <linux/kfifo.h> #include <linux/slab.h> ...
./CrossVul/dataset_final_sorted/CWE-400/c/good_1244_0
crossvul-cpp_data_good_1249_0
/****************************************************************************** * * This file is provided under a dual BSD/GPLv2 license. When using or * redistributing this file, you may do so under either license. * * GPL LICENSE SUMMARY * * Copyright(c) 2018 - 2019 Intel Corporation * * This program is fre...
./CrossVul/dataset_final_sorted/CWE-400/c/good_1249_0
crossvul-cpp_data_good_1242_0
// SPDX-License-Identifier: GPL-2.0-only /* 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 ...
./CrossVul/dataset_final_sorted/CWE-400/c/good_1242_0
crossvul-cpp_data_bad_1272_2
/* * Copyright 2012-15 Advanced Micro Devices, 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,...
./CrossVul/dataset_final_sorted/CWE-400/c/bad_1272_2
crossvul-cpp_data_good_316_0
/************************************************************ * Copyright (c) 1994 by Silicon Graphics Computer Systems, Inc. * * Permission to use, copy, modify, and distribute this * software and its documentation for any purpose and without * fee is hereby granted, provided that the above copyright * notice ap...
./CrossVul/dataset_final_sorted/CWE-400/c/good_316_0
crossvul-cpp_data_good_4006_0
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2000-2002,2005 Silicon Graphics, Inc. * All Rights Reserved. */ #include "xfs.h" #include "xfs_fs.h" #include "xfs_format.h" #include "xfs_log_format.h" #include "xfs_shared.h" #include "xfs_trans_resv.h" #include "xfs_bit.h" #include "xfs_sb.h" #include "xfs_mo...
./CrossVul/dataset_final_sorted/CWE-400/c/good_4006_0
crossvul-cpp_data_good_1245_0
// SPDX-License-Identifier: GPL-2.0-only /* * This is the new netlink-based wireless configuration interface. * * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net> * Copyright 2013-2014 Intel Mobile Communications GmbH * Copyright 2015-2017 Intel Deutschland GmbH * Copyright (C) 2018-2019 Intel Corpo...
./CrossVul/dataset_final_sorted/CWE-400/c/good_1245_0
crossvul-cpp_data_good_1270_0
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) /* Copyright (C) 2017-2018 Netronome Systems, Inc. */ #include <linux/etherdevice.h> #include <linux/lockdep.h> #include <linux/pci.h> #include <linux/skbuff.h> #include <linux/vmalloc.h> #include <net/devlink.h> #include <net/dst_metadata.h> #include "main.h...
./CrossVul/dataset_final_sorted/CWE-400/c/good_1270_0
crossvul-cpp_data_bad_1250_0
// SPDX-License-Identifier: GPL-2.0-or-later /* * Common library for ADIS16XXX devices * * Copyright 2012 Analog Devices Inc. * Author: Lars-Peter Clausen <lars@metafoo.de> */ #include <linux/export.h> #include <linux/interrupt.h> #include <linux/mutex.h> #include <linux/kernel.h> #include <linux/spi/spi.h> #in...
./CrossVul/dataset_final_sorted/CWE-400/c/bad_1250_0
crossvul-cpp_data_good_1256_0
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (c) 2005-2014 Brocade Communications Systems, Inc. * Copyright (c) 2014- QLogic Corporation. * All rights reserved * www.qlogic.com * * Linux driver for QLogic BR-series Fibre Channel Host Bus Adapter. */ /* * bfa_attr.c Linux driver configuration interf...
./CrossVul/dataset_final_sorted/CWE-400/c/good_1256_0
crossvul-cpp_data_good_1236_0
// SPDX-License-Identifier: GPL-2.0+ /* * ipmi_msghandler.c * * Incoming and outgoing message routing for an IPMI interface. * * Author: MontaVista Software, Inc. * Corey Minyard <minyard@mvista.com> * source@mvista.com * * Copyright 2002 MontaVista Software Inc. */ #define pr_fmt(fmt) "%s" f...
./CrossVul/dataset_final_sorted/CWE-400/c/good_1236_0
crossvul-cpp_data_good_1250_0
// SPDX-License-Identifier: GPL-2.0-or-later /* * Common library for ADIS16XXX devices * * Copyright 2012 Analog Devices Inc. * Author: Lars-Peter Clausen <lars@metafoo.de> */ #include <linux/export.h> #include <linux/interrupt.h> #include <linux/mutex.h> #include <linux/kernel.h> #include <linux/spi/spi.h> #in...
./CrossVul/dataset_final_sorted/CWE-400/c/good_1250_0
crossvul-cpp_data_bad_3405_0
/* $Id: gssstdio.c,v 1.6 2010/04/14 11:26:50 dowdes Exp $ */ /*- * Copyright 2009 Morgan Stanley and Co. Incorporated * * 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 restrict...
./CrossVul/dataset_final_sorted/CWE-400/c/bad_3405_0
crossvul-cpp_data_bad_1252_0
// SPDX-License-Identifier: GPL-2.0-only /* * Crypto user configuration API. * * Copyright (C) 2011 secunet Security Networks AG * Copyright (C) 2011 Steffen Klassert <steffen.klassert@secunet.com> */ #include <linux/module.h> #include <linux/crypto.h> #include <linux/cryptouser.h> #include <linux/sched.h> #inclu...
./CrossVul/dataset_final_sorted/CWE-400/c/bad_1252_0
crossvul-cpp_data_bad_1351_0
#include <config.h> #include "ftpd.h" #include "ls_p.h" #include "bsd-glob.h" #include "messages.h" #include "dynamic.h" #include "ftpwho-update.h" #include "globals.h" #include "safe_rw.h" #ifdef WITH_TLS # include "tls.h" #endif #ifdef WITH_DMALLOC # include <dmalloc.h> #endif static void wrstr(const int f, void *...
./CrossVul/dataset_final_sorted/CWE-400/c/bad_1351_0
crossvul-cpp_data_bad_4021_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-400/c/bad_4021_0
crossvul-cpp_data_good_4422_1
// SPDX-License-Identifier: GPL-2.0 /* * Xen event channels (2-level ABI) * * Jeremy Fitzhardinge <jeremy@xensource.com>, XenSource Inc, 2007 */ #define pr_fmt(fmt) "xen:" KBUILD_MODNAME ": " fmt #include <linux/linkage.h> #include <linux/interrupt.h> #include <linux/irq.h> #include <asm/sync_bitops.h> #include ...
./CrossVul/dataset_final_sorted/CWE-400/c/good_4422_1
crossvul-cpp_data_bad_1258_0
// SPDX-License-Identifier: GPL-2.0-only /* * RTL8XXXU mac80211 USB driver * * Copyright (c) 2014 - 2017 Jes Sorensen <Jes.Sorensen@gmail.com> * * Portions, notably calibration code: * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. * * This driver was written as a replacement for the vendor ...
./CrossVul/dataset_final_sorted/CWE-400/c/bad_1258_0
crossvul-cpp_data_bad_1260_0
// SPDX-License-Identifier: GPL-2.0-or-later /* * SPI master driver using generic bitbanged GPIO * * Copyright (C) 2006,2008 David Brownell * Copyright (C) 2017 Linus Walleij */ #include <linux/kernel.h> #include <linux/module.h> #include <linux/platform_device.h> #include <linux/gpio/consumer.h> #include <linux/o...
./CrossVul/dataset_final_sorted/CWE-400/c/bad_1260_0
crossvul-cpp_data_good_1273_1
/* * Copyright 2012-15 Advanced Micro Devices, 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...
./CrossVul/dataset_final_sorted/CWE-400/c/good_1273_1
crossvul-cpp_data_good_1272_0
/* * Copyright 2012-15 Advanced Micro Devices, 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...
./CrossVul/dataset_final_sorted/CWE-400/c/good_1272_0
crossvul-cpp_data_bad_5356_2
/* * 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. * * PF_INET protocol family socket handler. * * Authors: Ross Biro * Fred N. van Kempen, <waltje@uWalt.NL.Mugn...
./CrossVul/dataset_final_sorted/CWE-400/c/bad_5356_2
crossvul-cpp_data_bad_2795_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % W W PPPP GGGG ...
./CrossVul/dataset_final_sorted/CWE-400/c/bad_2795_0
crossvul-cpp_data_good_1217_0
// SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) // // This file is provided under a dual BSD/GPLv2 license. When using or // redistributing this file, you may do so under either license. // // Copyright(c) 2018 Intel Corporation. All rights reserved. // // Author: Liam Girdwood <liam.r.girdwood@linux.intel.com> ...
./CrossVul/dataset_final_sorted/CWE-400/c/good_1217_0
crossvul-cpp_data_good_1240_0
// SPDX-License-Identifier: GPL-2.0 /* * Crypto user configuration API. * * Copyright (C) 2017-2018 Corentin Labbe <clabbe@baylibre.com> * */ #include <linux/crypto.h> #include <linux/cryptouser.h> #include <linux/sched.h> #include <net/netlink.h> #include <net/sock.h> #include <crypto/internal/skcipher.h> #inclu...
./CrossVul/dataset_final_sorted/CWE-400/c/good_1240_0
crossvul-cpp_data_good_1248_0
/****************************************************************************** * * This file is provided under a dual BSD/GPLv2 license. When using or * redistributing this file, you may do so under either license. * * GPL LICENSE SUMMARY * * Copyright(c) 2008 - 2014 Intel Corporation. All rights reserved. * ...
./CrossVul/dataset_final_sorted/CWE-400/c/good_1248_0
crossvul-cpp_data_good_812_0
#include "jsi.h" #include "jsvalue.h" #include "jsbuiltin.h" #include "regexp.h" void js_newregexp(js_State *J, const char *pattern, int flags) { const char *error; js_Object *obj; Reprog *prog; int opts; obj = jsV_newobject(J, JS_CREGEXP, J->RegExp_prototype); opts = 0; if (flags & JS_REGEXP_I) opts |= REG_I...
./CrossVul/dataset_final_sorted/CWE-400/c/good_812_0
crossvul-cpp_data_bad_1236_0
// SPDX-License-Identifier: GPL-2.0+ /* * ipmi_msghandler.c * * Incoming and outgoing message routing for an IPMI interface. * * Author: MontaVista Software, Inc. * Corey Minyard <minyard@mvista.com> * source@mvista.com * * Copyright 2002 MontaVista Software Inc. */ #define pr_fmt(fmt) "%s" f...
./CrossVul/dataset_final_sorted/CWE-400/c/bad_1236_0
crossvul-cpp_data_good_1876_2
/* $Id: fpm_stdio.c,v 1.22.2.2 2008/12/13 03:32:24 anight Exp $ */ /* (c) 2007,2008 Andrei Nigmatulin */ #include "fpm_config.h" #include <sys/types.h> #include <sys/stat.h> #include <string.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> #include "php_syslog.h" #include "fpm.h" #include "fpm_childr...
./CrossVul/dataset_final_sorted/CWE-400/c/good_1876_2
crossvul-cpp_data_bad_551_0
/* * 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-400/c/bad_551_0
crossvul-cpp_data_bad_1248_0
/****************************************************************************** * * This file is provided under a dual BSD/GPLv2 license. When using or * redistributing this file, you may do so under either license. * * GPL LICENSE SUMMARY * * Copyright(c) 2008 - 2014 Intel Corporation. All rights reserved. * ...
./CrossVul/dataset_final_sorted/CWE-400/c/bad_1248_0
crossvul-cpp_data_good_1169_0
/****************************************************************************** * Xen balloon driver - enables returning/claiming memory to/from Xen. * * Copyright (c) 2003, B Dragovic * Copyright (c) 2003-2004, M Williamson, K Fraser * Copyright (c) 2005 Dan M. Smith, IBM Corporation * Copyright (c) 2010 Daniel ...
./CrossVul/dataset_final_sorted/CWE-400/c/good_1169_0
crossvul-cpp_data_bad_4422_1
// SPDX-License-Identifier: GPL-2.0 /* * Xen event channels (2-level ABI) * * Jeremy Fitzhardinge <jeremy@xensource.com>, XenSource Inc, 2007 */ #define pr_fmt(fmt) "xen:" KBUILD_MODNAME ": " fmt #include <linux/linkage.h> #include <linux/interrupt.h> #include <linux/irq.h> #include <asm/sync_bitops.h> #include ...
./CrossVul/dataset_final_sorted/CWE-400/c/bad_4422_1
crossvul-cpp_data_good_3405_0
/* $Id: gssstdio.c,v 1.6 2010/04/14 11:26:50 dowdes Exp $ */ /*- * Copyright 2009 Morgan Stanley and Co. Incorporated * * 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 restrict...
./CrossVul/dataset_final_sorted/CWE-400/c/good_3405_0
crossvul-cpp_data_bad_4773_2
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-400/c/bad_4773_2
crossvul-cpp_data_good_371_1
// url.c -- Object representing uniform resource locators // Copyright (C) 2008-2010 Markus Gutschke <markus@shellinabox.com> // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as // published by the Free Software Foundation. // /...
./CrossVul/dataset_final_sorted/CWE-400/c/good_371_1
crossvul-cpp_data_bad_1246_0
/* * Marvell Wireless LAN device driver: PCIE specific handling * * Copyright (C) 2011-2014, Marvell International Ltd. * * This software file (the "File") is distributed by Marvell International * Ltd. under the terms of the GNU General Public License Version 2, June 1991 * (the "License"). You may use, redist...
./CrossVul/dataset_final_sorted/CWE-400/c/bad_1246_0
crossvul-cpp_data_bad_897_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-400/c/bad_897_0
crossvul-cpp_data_good_5200_3
/* * linux/fs/pnode.c * * (C) Copyright IBM Corporation 2005. * Released under GPL v2. * Author : Ram Pai (linuxram@us.ibm.com) * */ #include <linux/mnt_namespace.h> #include <linux/mount.h> #include <linux/fs.h> #include <linux/nsproxy.h> #include "internal.h" #include "pnode.h" /* return the next shared peer...
./CrossVul/dataset_final_sorted/CWE-400/c/good_5200_3
crossvul-cpp_data_bad_1245_0
// SPDX-License-Identifier: GPL-2.0-only /* * This is the new netlink-based wireless configuration interface. * * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net> * Copyright 2013-2014 Intel Mobile Communications GmbH * Copyright 2015-2017 Intel Deutschland GmbH * Copyright (C) 2018-2019 Intel Corpo...
./CrossVul/dataset_final_sorted/CWE-400/c/bad_1245_0
crossvul-cpp_data_bad_2787_0
/* * ASF compatible demuxer * Copyright (c) 2000, 2001 Fabrice Bellard * * 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 Li...
./CrossVul/dataset_final_sorted/CWE-400/c/bad_2787_0
crossvul-cpp_data_good_898_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-400/c/good_898_0
crossvul-cpp_data_good_485_2
// SPDX-License-Identifier: GPL-2.0 /* * Host Wire Adapter: * Driver glue, HWA-specific functions, bridges to WAHC and WUSBHC * * Copyright (C) 2005-2006 Intel Corporation * Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> * * The HWA driver is a simple layer that forwards requests to the WAHC * (Wire Adat...
./CrossVul/dataset_final_sorted/CWE-400/c/good_485_2
crossvul-cpp_data_bad_1273_0
/* * Copyright 2012-15 Advanced Micro Devices, 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...
./CrossVul/dataset_final_sorted/CWE-400/c/bad_1273_0