id
stringlengths
25
30
content
stringlengths
14
942k
max_stars_repo_path
stringlengths
49
55
crossvul-cpp_data_bad_538_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-369/c/bad_538_0
crossvul-cpp_data_good_5311_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-369/c/good_5311_0
crossvul-cpp_data_good_817_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-369/c/good_817_0
crossvul-cpp_data_good_257_0
/* * MOV, 3GP, MP4 muxer * Copyright (c) 2003 Thomas Raivio * Copyright (c) 2004 Gildas Bazin <gbazin at videolan dot org> * Copyright (c) 2009 Baptiste Coudurier <baptiste dot coudurier at gmail dot com> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it u...
./CrossVul/dataset_final_sorted/CWE-369/c/good_257_0
crossvul-cpp_data_bad_817_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-369/c/bad_817_0
crossvul-cpp_data_bad_952_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % L AAA Y Y EEEEE RRRR ...
./CrossVul/dataset_final_sorted/CWE-369/c/bad_952_0
crossvul-cpp_data_bad_3035_0
/* * Edgeport USB Serial Converter driver * * Copyright (C) 2000-2002 Inside Out Networks, All rights reserved. * Copyright (C) 2001-2002 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 publishe...
./CrossVul/dataset_final_sorted/CWE-369/c/bad_3035_0
crossvul-cpp_data_good_952_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % L AAA Y Y EEEEE RRRR ...
./CrossVul/dataset_final_sorted/CWE-369/c/good_952_0
crossvul-cpp_data_good_1009_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-369/c/good_1009_0
crossvul-cpp_data_bad_2768_0
/* * INET An implementation of the TCP/IP protocol suite for the LINUX * operating system. INET is implemented using the BSD Socket * interface as the means of communication with the user level. * * Implementation of the Transmission Control Protocol(TCP). * * Authors: Ross Biro * Fred N. van Kempen, <wa...
./CrossVul/dataset_final_sorted/CWE-369/c/bad_2768_0
crossvul-cpp_data_bad_967_0
// SPDX-License-Identifier: GPL-2.0-only /* * linux/drivers/block/floppy.c * * Copyright (C) 1991, 1992 Linus Torvalds * Copyright (C) 1993, 1994 Alain Knaff * Copyright (C) 1998 Alan Cox */ /* * 02.12.91 - Changed to static variables to indicate need for reset * and recalibrate. This makes some things e...
./CrossVul/dataset_final_sorted/CWE-369/c/bad_967_0
crossvul-cpp_data_good_2580_0
/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* vim: set sw=4 sts=4 expandtab: */ /* rsvg-filter.c: Provides filters Copyright (C) 2004 Caleb Moore This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as pub...
./CrossVul/dataset_final_sorted/CWE-369/c/good_2580_0
crossvul-cpp_data_good_3367_0
// imagew-api.c // Part of ImageWorsener, Copyright (c) 2011 by Jason Summers. // For more information, see the readme.txt file. // Most of the functions declared in imagew.h are defined here. #include "imagew-config.h" #include <stdlib.h> #include <string.h> #include <stdarg.h> #include "imagew-internals.h" // Tr...
./CrossVul/dataset_final_sorted/CWE-369/c/good_3367_0
crossvul-cpp_data_bad_225_0
/* pngrutil.c - utilities to read a PNG file * * Last changed in libpng 1.6.35 [(PENDING RELEASE)] * Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) * * This code is ...
./CrossVul/dataset_final_sorted/CWE-369/c/bad_225_0
crossvul-cpp_data_bad_951_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % L AAA Y Y EEEEE RRRR ...
./CrossVul/dataset_final_sorted/CWE-369/c/bad_951_0
crossvul-cpp_data_bad_2303_3
/* $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-369/c/bad_2303_3
crossvul-cpp_data_good_153_1
/* * rdbmp.c * * This file was part of the Independent JPEG Group's software: * Copyright (C) 1994-1996, Thomas G. Lane. * Modified 2009-2010 by Guido Vollbeding. * libjpeg-turbo Modifications: * Modified 2011 by Siarhei Siamashka. * Copyright (C) 2015, 2017-2018, D. R. Commander. * For conditions of distribut...
./CrossVul/dataset_final_sorted/CWE-369/c/good_153_1
crossvul-cpp_data_bad_4854_1
/* $Id$ */ /* WARNING: The type of JPEG encapsulation defined by the TIFF Version 6.0 specification is now totally obsolete and deprecated for new applications and images. This file was was created solely in order to read unconverted images still present on some users' computer systems. It will never be exten...
./CrossVul/dataset_final_sorted/CWE-369/c/bad_4854_1
crossvul-cpp_data_good_4413_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % L AAA Y Y EEEEE RRRR ...
./CrossVul/dataset_final_sorted/CWE-369/c/good_4413_0
crossvul-cpp_data_bad_5364_0
/* * Copyright (c) 1999-2000 Image Power, Inc. and the University of * British Columbia. * Copyright (c) 2001-2002 Michael David Adams. * All rights reserved. */ /* __START_OF_JASPER_LICENSE__ * * JasPer License Version 2.0 * * Copyright (c) 2001-2006 Michael David Adams * Copyright (c) 1999-2000 Image P...
./CrossVul/dataset_final_sorted/CWE-369/c/bad_5364_0
crossvul-cpp_data_bad_3308_0
// imagew-gif.c // Part of ImageWorsener, Copyright (c) 2011 by Jason Summers. // For more information, see the readme.txt file. // This is a self-contained GIF image decoder. // It supports a single image only, so it does not support animated GIFs, // or any GIF where the main image is constructed from multiple sub-i...
./CrossVul/dataset_final_sorted/CWE-369/c/bad_3308_0
crossvul-cpp_data_bad_5311_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-369/c/bad_5311_0
crossvul-cpp_data_good_4866_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-369/c/good_4866_0
crossvul-cpp_data_good_2768_0
/* * INET An implementation of the TCP/IP protocol suite for the LINUX * operating system. INET is implemented using the BSD Socket * interface as the means of communication with the user level. * * Implementation of the Transmission Control Protocol(TCP). * * Authors: Ross Biro * Fred N. van Kempen, <wa...
./CrossVul/dataset_final_sorted/CWE-369/c/good_2768_0
crossvul-cpp_data_good_258_0
/* * MOV, 3GP, MP4 muxer * Copyright (c) 2003 Thomas Raivio * Copyright (c) 2004 Gildas Bazin <gbazin at videolan dot org> * Copyright (c) 2009 Baptiste Coudurier <baptiste dot coudurier at gmail dot com> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it u...
./CrossVul/dataset_final_sorted/CWE-369/c/good_258_0
crossvul-cpp_data_bad_4866_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-369/c/bad_4866_0
crossvul-cpp_data_bad_4853_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-369/c/bad_4853_1
crossvul-cpp_data_good_737_0
//////////////////////////////////////////////////////////////////////////// // **** WAVPACK **** // // Hybrid Lossless Wavefile Compressor // // Copyright (c) 1998 - 2019 David Bryant. // // ...
./CrossVul/dataset_final_sorted/CWE-369/c/good_737_0
crossvul-cpp_data_bad_737_0
//////////////////////////////////////////////////////////////////////////// // **** WAVPACK **** // // Hybrid Lossless Wavefile Compressor // // Copyright (c) 1998 - 2019 David Bryant. // // ...
./CrossVul/dataset_final_sorted/CWE-369/c/bad_737_0
crossvul-cpp_data_good_5063_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-369/c/good_5063_0
crossvul-cpp_data_bad_1009_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-369/c/bad_1009_0
crossvul-cpp_data_good_2303_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 n...
./CrossVul/dataset_final_sorted/CWE-369/c/good_2303_1
crossvul-cpp_data_good_3035_0
/* * Edgeport USB Serial Converter driver * * Copyright (C) 2000-2002 Inside Out Networks, All rights reserved. * Copyright (C) 2001-2002 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 publishe...
./CrossVul/dataset_final_sorted/CWE-369/c/good_3035_0
crossvul-cpp_data_bad_257_0
/* * MOV, 3GP, MP4 muxer * Copyright (c) 2003 Thomas Raivio * Copyright (c) 2004 Gildas Bazin <gbazin at videolan dot org> * Copyright (c) 2009 Baptiste Coudurier <baptiste dot coudurier at gmail dot com> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it u...
./CrossVul/dataset_final_sorted/CWE-369/c/bad_257_0
crossvul-cpp_data_bad_2303_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 ...
./CrossVul/dataset_final_sorted/CWE-369/c/bad_2303_2
crossvul-cpp_data_bad_3367_0
// imagew-api.c // Part of ImageWorsener, Copyright (c) 2011 by Jason Summers. // For more information, see the readme.txt file. // Most of the functions declared in imagew.h are defined here. #include "imagew-config.h" #include <stdlib.h> #include <string.h> #include <stdarg.h> #include "imagew-internals.h" // Tr...
./CrossVul/dataset_final_sorted/CWE-369/c/bad_3367_0
crossvul-cpp_data_good_4853_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-369/c/good_4853_1
crossvul-cpp_data_bad_4413_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % L AAA Y Y EEEEE RRRR ...
./CrossVul/dataset_final_sorted/CWE-369/c/bad_4413_0
crossvul-cpp_data_bad_2580_0
/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* vim: set sw=4 sts=4 expandtab: */ /* rsvg-filter.c: Provides filters Copyright (C) 2004 Caleb Moore This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as pub...
./CrossVul/dataset_final_sorted/CWE-369/c/bad_2580_0
crossvul-cpp_data_good_951_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % L AAA Y Y EEEEE RRRR ...
./CrossVul/dataset_final_sorted/CWE-369/c/good_951_0
crossvul-cpp_data_good_5310_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-369/c/good_5310_0
crossvul-cpp_data_good_2303_3
/* $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-369/c/good_2303_3
crossvul-cpp_data_bad_1008_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-369/c/bad_1008_0
crossvul-cpp_data_good_4778_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-369/c/good_4778_1
crossvul-cpp_data_good_2303_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 ...
./CrossVul/dataset_final_sorted/CWE-369/c/good_2303_2
crossvul-cpp_data_bad_5310_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-369/c/bad_5310_0
crossvul-cpp_data_good_967_0
// SPDX-License-Identifier: GPL-2.0-only /* * linux/drivers/block/floppy.c * * Copyright (C) 1991, 1992 Linus Torvalds * Copyright (C) 1993, 1994 Alain Knaff * Copyright (C) 1998 Alan Cox */ /* * 02.12.91 - Changed to static variables to indicate need for reset * and recalibrate. This makes some things e...
./CrossVul/dataset_final_sorted/CWE-369/c/good_967_0
crossvul-cpp_data_good_538_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-369/c/good_538_0
crossvul-cpp_data_good_225_0
/* pngrutil.c - utilities to read a PNG file * * Last changed in libpng 1.6.35 [(PENDING RELEASE)] * Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) * * This code is ...
./CrossVul/dataset_final_sorted/CWE-369/c/good_225_0
crossvul-cpp_data_good_3308_0
// imagew-gif.c // Part of ImageWorsener, Copyright (c) 2011 by Jason Summers. // For more information, see the readme.txt file. // This is a self-contained GIF image decoder. // It supports a single image only, so it does not support animated GIFs, // or any GIF where the main image is constructed from multiple sub-i...
./CrossVul/dataset_final_sorted/CWE-369/c/good_3308_0
crossvul-cpp_data_bad_258_0
/* * MOV, 3GP, MP4 muxer * Copyright (c) 2003 Thomas Raivio * Copyright (c) 2004 Gildas Bazin <gbazin at videolan dot org> * Copyright (c) 2009 Baptiste Coudurier <baptiste dot coudurier at gmail dot com> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it u...
./CrossVul/dataset_final_sorted/CWE-369/c/bad_258_0
crossvul-cpp_data_good_1008_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-369/c/good_1008_0
crossvul-cpp_data_bad_4778_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-369/c/bad_4778_1
crossvul-cpp_data_bad_2303_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 n...
./CrossVul/dataset_final_sorted/CWE-369/c/bad_2303_1
crossvul-cpp_data_good_4277_0
/* * Copyright (c) 2011-2020 Meltytech, LLC * * 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 3 of the License, or * (at your option) any later version. * * This program i...
./CrossVul/dataset_final_sorted/CWE-327/cpp/good_4277_0
crossvul-cpp_data_bad_4277_0
/* * Copyright (c) 2011-2020 Meltytech, LLC * * 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 3 of the License, or * (at your option) any later version. * * This program i...
./CrossVul/dataset_final_sorted/CWE-327/cpp/bad_4277_0
crossvul-cpp_data_good_1336_0
/* signature.c * * Copyright (C) 2006-2019 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 opt...
./CrossVul/dataset_final_sorted/CWE-327/c/good_1336_0
crossvul-cpp_data_bad_1336_0
/* signature.c * * Copyright (C) 2006-2019 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 opt...
./CrossVul/dataset_final_sorted/CWE-327/c/bad_1336_0
crossvul-cpp_data_bad_4053_0
/* // Copyright (c) 2018 Intel Corporation // // 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...
./CrossVul/dataset_final_sorted/CWE-276/cpp/bad_4053_0
crossvul-cpp_data_good_4053_0
/* // Copyright (c) 2018 Intel Corporation // // 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...
./CrossVul/dataset_final_sorted/CWE-276/cpp/good_4053_0
crossvul-cpp_data_bad_4225_4
// SPDX-License-Identifier: GPL-2.0 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/errno.h> #include <linux/kernel.h> #include <linux/mm.h> #include <linux/smp.h> #include <linux/prctl.h> #include <linux/slab.h> #include <linux/sched.h> #include <linux/sched/idle.h> #include <linux/sched/debug.h> #include...
./CrossVul/dataset_final_sorted/CWE-276/c/bad_4225_4
crossvul-cpp_data_good_4225_3
// SPDX-License-Identifier: GPL-2.0-or-later /* Paravirtualization interfaces Copyright (C) 2006 Rusty Russell IBM Corporation 2007 - x86_64 support added by Glauber de Oliveira Costa, Red Hat Inc */ #include <linux/errno.h> #include <linux/init.h> #include <linux/export.h> #include <linux/efi.h> #include <...
./CrossVul/dataset_final_sorted/CWE-276/c/good_4225_3
crossvul-cpp_data_good_4309_0
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2011 Instituto Nokia de Tecnologia * * Authors: * Aloisio Almeida Jr <aloisio.almeida@openbossa.org> * Lauro Ramos Venancio <lauro.venancio@openbossa.org> */ #define pr_fmt(fmt) KBUILD_MODNAME ": %s: " fmt, __func__ #include <net/tcp_states.h...
./CrossVul/dataset_final_sorted/CWE-276/c/good_4309_0
crossvul-cpp_data_good_4225_4
// SPDX-License-Identifier: GPL-2.0 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/errno.h> #include <linux/kernel.h> #include <linux/mm.h> #include <linux/smp.h> #include <linux/prctl.h> #include <linux/slab.h> #include <linux/sched.h> #include <linux/sched/idle.h> #include <linux/sched/debug.h> #include...
./CrossVul/dataset_final_sorted/CWE-276/c/good_4225_4
crossvul-cpp_data_bad_4309_0
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2011 Instituto Nokia de Tecnologia * * Authors: * Aloisio Almeida Jr <aloisio.almeida@openbossa.org> * Lauro Ramos Venancio <lauro.venancio@openbossa.org> */ #define pr_fmt(fmt) KBUILD_MODNAME ": %s: " fmt, __func__ #include <net/tcp_states.h...
./CrossVul/dataset_final_sorted/CWE-276/c/bad_4309_0
crossvul-cpp_data_bad_4225_3
// SPDX-License-Identifier: GPL-2.0-or-later /* Paravirtualization interfaces Copyright (C) 2006 Rusty Russell IBM Corporation 2007 - x86_64 support added by Glauber de Oliveira Costa, Red Hat Inc */ #include <linux/errno.h> #include <linux/init.h> #include <linux/export.h> #include <linux/efi.h> #include <...
./CrossVul/dataset_final_sorted/CWE-276/c/bad_4225_3
crossvul-cpp_data_good_4225_5
// SPDX-License-Identifier: GPL-2.0 /* * Core of Xen paravirt_ops implementation. * * This file contains the xen_paravirt_ops structure itself, and the * implementations for: * - privileged instructions * - interrupt flags * - segment operations * - booting and setup * * Jeremy Fitzhardinge <jeremy@xensource....
./CrossVul/dataset_final_sorted/CWE-276/c/good_4225_5
crossvul-cpp_data_bad_4225_5
// SPDX-License-Identifier: GPL-2.0 /* * Core of Xen paravirt_ops implementation. * * This file contains the xen_paravirt_ops structure itself, and the * implementations for: * - privileged instructions * - interrupt flags * - segment operations * - booting and setup * * Jeremy Fitzhardinge <jeremy@xensource....
./CrossVul/dataset_final_sorted/CWE-276/c/bad_4225_5
crossvul-cpp_data_bad_5205_2
/** @file bzrtpParserTests.c @brief Test parsing and building ZRTP packet. @author Johan Pascal @copyright Copyright (C) 2014 Belledonne Communications, Grenoble, France 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 th...
./CrossVul/dataset_final_sorted/CWE-254/c/bad_5205_2
crossvul-cpp_data_bad_4886_0
/* * libvirt-domain.c: entry points for virDomainPtr APIs * * Copyright (C) 2006-2015 Red Hat, Inc. * * 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 L...
./CrossVul/dataset_final_sorted/CWE-254/c/bad_4886_0
crossvul-cpp_data_good_480_1
/* Copyright (c) 2009-2018 Roger Light <roger@atchoo.org> All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 and Eclipse Distribution License v1.0 which accompany this distribution. The Eclipse Public License is available at http:/...
./CrossVul/dataset_final_sorted/CWE-254/c/good_480_1
crossvul-cpp_data_bad_1547_0
/* * linux/fs/namei.c * * Copyright (C) 1991, 1992 Linus Torvalds */ /* * Some corrections by tytso. */ /* [Feb 1997 T. Schoebel-Theuer] Complete rewrite of the pathname * lookup logic. */ /* [Feb-Apr 2000, AV] Rewrite to the new namespace architecture. */ #include <linux/init.h> #include <linux/export.h...
./CrossVul/dataset_final_sorted/CWE-254/c/bad_1547_0
crossvul-cpp_data_good_2305_0
/* (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-254/c/good_2305_0
crossvul-cpp_data_good_1547_0
/* * linux/fs/namei.c * * Copyright (C) 1991, 1992 Linus Torvalds */ /* * Some corrections by tytso. */ /* [Feb 1997 T. Schoebel-Theuer] Complete rewrite of the pathname * lookup logic. */ /* [Feb-Apr 2000, AV] Rewrite to the new namespace architecture. */ #include <linux/init.h> #include <linux/export.h...
./CrossVul/dataset_final_sorted/CWE-254/c/good_1547_0
crossvul-cpp_data_good_5205_2
/** @file bzrtpParserTests.c @brief Test parsing and building ZRTP packet. @author Johan Pascal @copyright Copyright (C) 2014 Belledonne Communications, Grenoble, France 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 th...
./CrossVul/dataset_final_sorted/CWE-254/c/good_5205_2
crossvul-cpp_data_bad_5010_0
/* * Flexible mmap layout support * * Based on code by Ingo Molnar and Andi Kleen, copyrighted * as follows: * * Copyright 2003-2009 Red Hat Inc. * All Rights Reserved. * Copyright 2005 Andi Kleen, SUSE Labs. * Copyright 2007 Jiri Kosina, SUSE Labs. * * This program is free software; you can redistribute it ...
./CrossVul/dataset_final_sorted/CWE-254/c/bad_5010_0
crossvul-cpp_data_bad_480_1
/* Copyright (c) 2009-2018 Roger Light <roger@atchoo.org> All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 and Eclipse Distribution License v1.0 which accompany this distribution. The Eclipse Public License is available at http:/...
./CrossVul/dataset_final_sorted/CWE-254/c/bad_480_1
crossvul-cpp_data_good_5205_1
/** @file packetParser.c @brief functions to parse and generate a ZRTP packet @author Johan Pascal @copyright Copyright (C) 2014 Belledonne Communications, Grenoble, France This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as publish...
./CrossVul/dataset_final_sorted/CWE-254/c/good_5205_1
crossvul-cpp_data_bad_1761_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-254/c/bad_1761_0
crossvul-cpp_data_bad_5328_0
/* * Copyright (c) 2012 David Vossel <davidvossel@gmail.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 Software Foundation; either * version 2.1 of the License, or (at your option) any later ver...
./CrossVul/dataset_final_sorted/CWE-254/c/bad_5328_0
crossvul-cpp_data_good_1761_0
/* * Kexec bzImage loader * * Copyright (C) 2014 Red Hat Inc. * Authors: * Vivek Goyal <vgoyal@redhat.com> * * This source code is licensed under the GNU General Public License, * Version 2. See the file COPYING for more details. */ #define pr_fmt(fmt) "kexec-bzImage64: " fmt #include <linux/string.h> ...
./CrossVul/dataset_final_sorted/CWE-254/c/good_1761_0
crossvul-cpp_data_good_4872_0
/* * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * 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 co...
./CrossVul/dataset_final_sorted/CWE-254/c/good_4872_0
crossvul-cpp_data_bad_5205_4
/** @file bzrtpTests.c @author Johan Pascal @copyright Copyright (C) 2014 Belledonne Communications, Grenoble, France 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...
./CrossVul/dataset_final_sorted/CWE-254/c/bad_5205_4
crossvul-cpp_data_good_5010_0
/* * Flexible mmap layout support * * Based on code by Ingo Molnar and Andi Kleen, copyrighted * as follows: * * Copyright 2003-2009 Red Hat Inc. * All Rights Reserved. * Copyright 2005 Andi Kleen, SUSE Labs. * Copyright 2007 Jiri Kosina, SUSE Labs. * * This program is free software; you can redistribute it ...
./CrossVul/dataset_final_sorted/CWE-254/c/good_5010_0
crossvul-cpp_data_bad_1548_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-254/c/bad_1548_0
crossvul-cpp_data_good_5328_0
/* * Copyright (c) 2012 David Vossel <davidvossel@gmail.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 Software Foundation; either * version 2.1 of the License, or (at your option) any later ver...
./CrossVul/dataset_final_sorted/CWE-254/c/good_5328_0
crossvul-cpp_data_good_4872_1
/* * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * 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 co...
./CrossVul/dataset_final_sorted/CWE-254/c/good_4872_1
crossvul-cpp_data_good_5205_4
/** @file bzrtpTests.c @author Johan Pascal @copyright Copyright (C) 2014 Belledonne Communications, Grenoble, France 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...
./CrossVul/dataset_final_sorted/CWE-254/c/good_5205_4
crossvul-cpp_data_bad_2305_0
/* (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-254/c/bad_2305_0
crossvul-cpp_data_bad_5205_1
/** @file packetParser.c @brief functions to parse and generate a ZRTP packet @author Johan Pascal @copyright Copyright (C) 2014 Belledonne Communications, Grenoble, France This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as publish...
./CrossVul/dataset_final_sorted/CWE-254/c/bad_5205_1
crossvul-cpp_data_bad_4872_0
/* * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * 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 co...
./CrossVul/dataset_final_sorted/CWE-254/c/bad_4872_0
crossvul-cpp_data_good_4886_0
/* * libvirt-domain.c: entry points for virDomainPtr APIs * * Copyright (C) 2006-2015 Red Hat, Inc. * * 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 L...
./CrossVul/dataset_final_sorted/CWE-254/c/good_4886_0
crossvul-cpp_data_bad_4872_1
/* * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * 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 co...
./CrossVul/dataset_final_sorted/CWE-254/c/bad_4872_1
crossvul-cpp_data_good_1548_0
/* * fs/dcache.c * * Complete reimplementation * (C) 1997 Thomas Schoebel-Theuer, * with heavy changes by Linus Torvalds */ /* * Notes on the allocation strategy: * * The dcache is a master of the icache - whenever a dcache entry * exists, the inode will always exist. "iput()" is done either when * the dcac...
./CrossVul/dataset_final_sorted/CWE-254/c/good_1548_0
crossvul-cpp_data_bad_3331_1
// imagew-util.c // Part of ImageWorsener, Copyright (c) 2011 by Jason Summers. // For more information, see the readme.txt file. // This file is mainly for portability wrappers, and any code that // may require unusual header files (malloc.h, strsafe.h). #include "imagew-config.h" #include <stdio.h> #include <stdli...
./CrossVul/dataset_final_sorted/CWE-682/c/bad_3331_1
crossvul-cpp_data_good_3331_1
// imagew-util.c // Part of ImageWorsener, Copyright (c) 2011 by Jason Summers. // For more information, see the readme.txt file. // This file is mainly for portability wrappers, and any code that // may require unusual header files (malloc.h, strsafe.h). #include "imagew-config.h" #include <stdio.h> #include <stdli...
./CrossVul/dataset_final_sorted/CWE-682/c/good_3331_1
crossvul-cpp_data_good_278_1
/* This file is part of libmspack. * (C) 2003-2011 Stuart Caie. * * libmspack is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License (LGPL) version 2.1 * * For further details, see the file COPYING.LIB distributed with libmspack */ /* CHM decompress...
./CrossVul/dataset_final_sorted/CWE-682/c/good_278_1
crossvul-cpp_data_bad_3331_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-682/c/bad_3331_0
crossvul-cpp_data_good_276_1
/* This file is part of libmspack. * (C) 2003-2018 Stuart Caie. * * libmspack is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License (LGPL) version 2.1 * * For further details, see the file COPYING.LIB distributed with libmspack */ /* CHM decompress...
./CrossVul/dataset_final_sorted/CWE-682/c/good_276_1
crossvul-cpp_data_bad_278_1
/* This file is part of libmspack. * (C) 2003-2011 Stuart Caie. * * libmspack is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License (LGPL) version 2.1 * * For further details, see the file COPYING.LIB distributed with libmspack */ /* CHM decompress...
./CrossVul/dataset_final_sorted/CWE-682/c/bad_278_1