id stringlengths 25 30 | content stringlengths 14 942k | max_stars_repo_path stringlengths 49 55 |
|---|---|---|
crossvul-cpp_data_bad_4689_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-125/c/bad_4689_0 |
crossvul-cpp_data_bad_417_0 | /* Copyright (c) 2011-2014 PLUMgrid, http://plumgrid.com
* Copyright (c) 2016 Facebook
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public
* License as published by the Free Software Foundation.
*
* This program is distributed in th... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_417_0 |
crossvul-cpp_data_bad_2717_0 | /*
* Copyright (c) 1988, 1989, 1990, 1991, 1993, 1994
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that: (1) source code distributions
* retain the above copyright notice and this ... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_2717_0 |
crossvul-cpp_data_good_2671_0 | /*
* Copyright (c) 1992, 1993, 1994, 1995, 1996
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that: (1) source code distributions
* retain the above copyright notice and this paragr... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_2671_0 |
crossvul-cpp_data_good_210_1 | /*
* GPAC - Multimedia Framework C SDK
*
* Authors: Jean Le Feuvre
* Copyright (c) Telecom ParisTech 2000-2012
* All rights reserved
*
* This file is part of GPAC / ISO Media File Format sub-project
*
* GPAC is free software; you can redistribute it and/or modify
* it under the terms of the GNU L... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_210_1 |
crossvul-cpp_data_bad_2572_0 | /*
* Monkey's Audio lossless audio decoder
* Copyright (c) 2007 Benjamin Zores <ben@geexbox.org>
* based upon libdemac from Dave Chapman.
*
* 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 publi... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_2572_0 |
crossvul-cpp_data_good_1018_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_1018_0 |
crossvul-cpp_data_bad_2713_0 | /*
* Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that: (1) source code distributions
* retain the above co... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_2713_0 |
crossvul-cpp_data_good_3190_0 | /*
etterfilter -- the actual compiler
Copyright (C) ALoR & NaGA
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_3190_0 |
crossvul-cpp_data_bad_140_0 | /* radare - LGPL - Copyright 2009-2018 - nibble, pancake */
#include <assert.h>
#include <stdio.h>
#include <r_types.h>
#include <r_util.h>
#include <r_lib.h>
#include <r_bin.h>
#include <r_io.h>
#include <r_cons.h>
#include "elf/elf.h"
static RBinInfo* info(RBinFile *bf);
//TODO: implement r_bin_symbol_dup() and r_... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_140_0 |
crossvul-cpp_data_bad_923_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_923_0 |
crossvul-cpp_data_bad_4857_2 | /* $Id$ */
/*
* Copyright (c) 1991-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-125/c/bad_4857_2 |
crossvul-cpp_data_good_2644_7 | /* NetBSD: print-juniper.c,v 1.2 2007/07/24 11:53:45 drochner Exp */
/*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that: (1) source code
* distributions retain the above copyright notice and this paragraph
* in its entirety, and (2) distri... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_2644_7 |
crossvul-cpp_data_bad_351_2 | /*
* card-authentic.c: Support for the Oberthur smart cards
* with PKI applet AuthentIC v3.2
*
* Copyright (C) 2010 Viktor Tarasov <vtarasov@opentrust.com>
* OpenTrust <www.opentrust.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General P... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_351_2 |
crossvul-cpp_data_bad_701_0 | /*
* SSLv3/TLSv1 client-side functions
*
* Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the L... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_701_0 |
crossvul-cpp_data_good_2676_0 | /*
* Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that: (1) source code distributions
* retain the above co... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_2676_0 |
crossvul-cpp_data_bad_267_0 | /*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notic... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_267_0 |
crossvul-cpp_data_bad_801_0 | /*
* MPEG-4 decoder
* Copyright (c) 2000,2001 Fabrice Bellard
* Copyright (c) 2002-2010 Michael Niedermayer <michaelni@gmx.at>
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the ... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_801_0 |
crossvul-cpp_data_bad_486_5 | /* -*- c-basic-offset: 8 -*-
rdesktop: A Remote Desktop Protocol client.
Support for the Matrox "lspci" channel
Copyright (C) 2005 Matrox Graphics Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free ... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_486_5 |
crossvul-cpp_data_bad_2588_1 | /*
* hmi.c -- Midi Wavetable Processing library
*
* Copyright (C) WildMIDI Developers 2001-2016
*
* This file is part of WildMIDI.
*
* WildMIDI is free software: you can redistribute and/or modify the player
* under the terms of the GNU General Public License and you can redistribute
* and/or modify the librar... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_2588_1 |
crossvul-cpp_data_bad_1277_0 | /**********************************************************************
regexec.c - Oniguruma (regular expression library)
**********************************************************************/
/*-
* Copyright (c) 2002-2019 K.Kosako
* All rights reserved.
*
* Redistribution and use in source and binary forms, ... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_1277_0 |
crossvul-cpp_data_bad_351_12 | /*
* card-rtecp.c: Support for Rutoken ECP cards
*
* Copyright (C) 2009 Aleksey Samsonov <samsonov@guardant.ru>
*
* 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... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_351_12 |
crossvul-cpp_data_good_700_0 | /*
* SSLv3/TLSv1 client-side functions
*
* Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the L... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_700_0 |
crossvul-cpp_data_bad_3946_3 | /**
* FreeRDP: A Remote Desktop Protocol Implementation
* Serial Port Device Service Virtual Channel
*
* Copyright 2011 O.S. Systems Software Ltda.
* Copyright 2011 Eduardo Fiss Beloni <beloni@ossystems.com.br>
* Copyright 2014 Hewlett-Packard Development Company, L.P.
*
* Licensed under the Apache License, Ver... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_3946_3 |
crossvul-cpp_data_bad_1282_1 | /*
* This file includes functions to transform a concrete syntax tree (CST) to
* an abstract syntax tree (AST). The main function is Ta27AST_FromNode().
*
*/
#include "Python.h"
#include "Python-ast.h"
#include "grammar.h"
#include "node.h"
#include "pyarena.h"
#include "ast.h"
#include "token.h"
#include "parseto... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_1282_1 |
crossvul-cpp_data_good_4843_0 | /*
* linux/fs/ext4/super.c
*
* Copyright (C) 1992, 1993, 1994, 1995
* Remy Card (card@masi.ibp.fr)
* Laboratoire MASI - Institut Blaise Pascal
* Universite Pierre et Marie Curie (Paris VI)
*
* from
*
* linux/fs/minix/inode.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*
* Big-endian to little-endian... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_4843_0 |
crossvul-cpp_data_good_5241_5 | /*
We're testing that reading corrupt TIFF files doesn't cause any memory issues,
and that the operation gracefully fails (i.e. gdImageCreateFromTiffPtr() returns
NULL).
*/
#include "gd.h"
#include "gdtest.h"
static void check_file(char *basename);
static size_t read_test_file(char **buffer, char *basename);
int m... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_5241_5 |
crossvul-cpp_data_bad_210_2 | /*
* GPAC - Multimedia Framework C SDK
*
* Authors: Jean Le Feuvre
* Copyright (c) Telecom ParisTech 2000-2012
* All rights reserved
*
* This file is part of GPAC / ISO Media File Format sub-project
*
* GPAC is free software; you can redistribute it and/or modify
* it under the terms of the GNU L... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_210_2 |
crossvul-cpp_data_bad_351_7 | /*
* card-gpk: Driver for GPK 4000 cards
*
* Copyright (C) 2002 Olaf Kirch <okir@suse.de>
*
* 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, o... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_351_7 |
crossvul-cpp_data_bad_2706_0 | /*
* 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-125/c/bad_2706_0 |
crossvul-cpp_data_bad_2719_0 | /*
* Copyright (C) 1999 WIDE Project.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condit... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_2719_0 |
crossvul-cpp_data_bad_2682_0 | /*
* Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 2000
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that: (1) source code distributions
* retain the ab... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_2682_0 |
crossvul-cpp_data_bad_3358_2 | /*
* IPv6 library code, needed by static components when full IPv6 support is
* not configured or static. These functions are needed by GSO/GRO implementation.
*/
#include <linux/export.h>
#include <net/ip.h>
#include <net/ipv6.h>
#include <net/ip6_fib.h>
#include <net/addrconf.h>
#include <net/secure_seq.h>
#inclu... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_3358_2 |
crossvul-cpp_data_bad_4215_0 | /*
* ndpiReader.c
*
* Copyright (C) 2011-19 - ntop.org
*
* nDPI 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 3 of the License, or
* (at your option) any later version.
*
* nD... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_4215_0 |
crossvul-cpp_data_good_5314_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_5314_0 |
crossvul-cpp_data_good_4686_0 |
#include <config.h>
#include "ftpd.h"
#include "utils.h"
#ifdef WITH_DMALLOC
# include <dmalloc.h>
#endif
#ifdef HAVE_LIBSODIUM
# if !defined(pure_memzero) || !defined(pure_memcmp)
# error pure_memzero/pure_memcmp not defined
# endif
#else
void pure_memzero(void * const pnt, const size_t len)
{
# ifdef HAVE_EXPLI... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_4686_0 |
crossvul-cpp_data_good_2644_2 | /*
* 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-125/c/good_2644_2 |
crossvul-cpp_data_good_2685_0 | /*
* Copyright (C) 2000, Richard Sharpe
*
* This software may be distributed either under the terms of the
* BSD-style license that accompanies tcpdump or under the GNU GPL
* version 2 or later.
*
* print-beep.c
*
*/
/* \summary: Blocks Extensible Exchange Protocol (BEEP) printer */
#ifdef HAVE_CONFIG_H
#inc... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_2685_0 |
crossvul-cpp_data_good_3946_4 | /**
* FreeRDP: A Remote Desktop Protocol Implementation
* Remote Desktop Gateway (RDG)
*
* Copyright 2015 Denis Vincent <dvincent@devolutions.net>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_3946_4 |
crossvul-cpp_data_good_2694_0 | /*
* Copyright (c) 1998-2007 The TCPDUMP project
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that: (1) source code
* distributions retain the above copyright notice and this paragraph
* in its entirety, and (2) distributions including binary code i... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_2694_0 |
crossvul-cpp_data_bad_138_0 | /**
* Simple engine for creating PDF files.
* It supports text, shapes, images etc...
* Capable of handling millions of objects without too much performance
* penalty.
* Public domain license - no warrenty implied; use at your own risk.
*/
/**
* PDF HINTS & TIPS
* The following sites have various bits & pieces... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_138_0 |
crossvul-cpp_data_good_3946_3 | /**
* FreeRDP: A Remote Desktop Protocol Implementation
* Serial Port Device Service Virtual Channel
*
* Copyright 2011 O.S. Systems Software Ltda.
* Copyright 2011 Eduardo Fiss Beloni <beloni@ossystems.com.br>
* Copyright 2014 Hewlett-Packard Development Company, L.P.
*
* Licensed under the Apache License, Ver... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_3946_3 |
crossvul-cpp_data_good_1329_0 | /*
* Copyright (c) Red Hat Inc.
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, dist... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_1329_0 |
crossvul-cpp_data_good_4019_1 | /* exif-mnote-data-fuji.c
*
* Copyright (c) 2002 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 (... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_4019_1 |
crossvul-cpp_data_bad_669_3 | /*
* Record values functions
*
* Copyright (C) 2011-2018, Joachim Metz <joachim.metz@gmail.com>
*
* Refer to AUTHORS for acknowledgements.
*
* This software 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 ... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_669_3 |
crossvul-cpp_data_bad_1019_2 | /*! @file GPMF_demo.c
*
* @brief Demo to extract GPMF from an MP4
*
* @version 1.0.1
*
* (C) Copyright 2017 GoPro Inc (http://gopro.com/).
*
* Licensed under either:
* - Apache License, Version 2.0, http://www.apache.org/licenses/LICENSE-2.0
* - MIT license, http://opensource.org/licenses/MIT
* at ... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_1019_2 |
crossvul-cpp_data_good_2683_0 | /*
* Copyright (c) 2001
* Fortress Technologies, Inc. All rights reserved.
* Charlie Lenahan (clenahan@fortresstech.com)
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that: (1) source code distributions
* retain the above copyright notice and ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_2683_0 |
crossvul-cpp_data_good_5249_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_5249_0 |
crossvul-cpp_data_good_5082_0 | /*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_5082_0 |
crossvul-cpp_data_good_417_0 | /* Copyright (c) 2011-2014 PLUMgrid, http://plumgrid.com
* Copyright (c) 2016 Facebook
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public
* License as published by the Free Software Foundation.
*
* This program is distributed in th... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_417_0 |
crossvul-cpp_data_bad_3358_0 | /*
* IPV6 GSO/GRO offload support
* Linux INET6 implementation
*
* 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 ... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_3358_0 |
crossvul-cpp_data_good_2644_6 | /*
* Copyright (c) 1992, 1993, 1994, 1995, 1996
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that: (1) source code distributions
* retain the above copyright notice and this paragr... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_2644_6 |
crossvul-cpp_data_bad_457_0 | ////////////////////////////////////////////////////////////////////////////
// **** WAVPACK **** //
// Hybrid Lossless Wavefile Compressor //
// Copyright (c) 1998 - 2018 David Bryant. //
// ... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_457_0 |
crossvul-cpp_data_bad_2665_0 | /*
* Copyright (c) 1989, 1990, 1991, 1993, 1994
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that: (1) source code distributions
* retain the above copyright notice and this paragr... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_2665_0 |
crossvul-cpp_data_bad_1369_0 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | ./CrossVul/dataset_final_sorted/CWE-601/c/bad_1369_0 |
crossvul-cpp_data_bad_1002_2 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | ./CrossVul/dataset_final_sorted/CWE-601/c/bad_1002_2 |
crossvul-cpp_data_good_1002_2 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | ./CrossVul/dataset_final_sorted/CWE-601/c/good_1002_2 |
crossvul-cpp_data_good_1001_3 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | ./CrossVul/dataset_final_sorted/CWE-601/c/good_1001_3 |
crossvul-cpp_data_bad_1392_0 | /*
*
* auth_mellon_util.c: an authentication apache module
* Copyright © 2003-2007 UNINETT (http://www.uninett.no/)
*
* 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 vers... | ./CrossVul/dataset_final_sorted/CWE-601/c/bad_1392_0 |
crossvul-cpp_data_good_1392_0 | /*
*
* auth_mellon_util.c: an authentication apache module
* Copyright © 2003-2007 UNINETT (http://www.uninett.no/)
*
* 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 vers... | ./CrossVul/dataset_final_sorted/CWE-601/c/good_1392_0 |
crossvul-cpp_data_bad_1001_3 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | ./CrossVul/dataset_final_sorted/CWE-601/c/bad_1001_3 |
crossvul-cpp_data_good_1369_0 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | ./CrossVul/dataset_final_sorted/CWE-601/c/good_1369_0 |
crossvul-cpp_data_bad_1981_0 | 404: Not Found | ./CrossVul/dataset_final_sorted/CWE-295/cpp/bad_1981_0 |
crossvul-cpp_data_good_1981_0 | #include "MCWin32.h" // Should be included first.
#include "MCIMAPSession.h"
#include <libetpan/libetpan.h>
#include <string.h>
#include <stdlib.h>
#include "MCDefines.h"
#include "MCIMAPSearchExpression.h"
#include "MCIMAPFolder.h"
#include "MCIMAPMessage.h"
#include "MCIMAPPart.h"
#include "MCMessageHeader.h"
#inc... | ./CrossVul/dataset_final_sorted/CWE-295/cpp/good_1981_0 |
crossvul-cpp_data_bad_4031_1 | #include <pichi/config.hpp>
// Include config.hpp first
#include <array>
#include <boost/asio/connect.hpp>
#include <boost/asio/io_context.hpp>
#include <boost/asio/ip/tcp.hpp>
#include <boost/asio/read.hpp>
#include <boost/asio/spawn2.hpp>
#include <boost/asio/write.hpp>
#include <pichi/api/balancer.hpp>
#include <pic... | ./CrossVul/dataset_final_sorted/CWE-295/cpp/bad_4031_1 |
crossvul-cpp_data_good_4031_1 | #include <pichi/config.hpp>
// Include config.hpp first
#include <array>
#include <boost/asio/connect.hpp>
#include <boost/asio/io_context.hpp>
#include <boost/asio/ip/tcp.hpp>
#include <boost/asio/read.hpp>
#include <boost/asio/spawn2.hpp>
#include <boost/asio/write.hpp>
#include <pichi/api/balancer.hpp>
#include <pic... | ./CrossVul/dataset_final_sorted/CWE-295/cpp/good_4031_1 |
crossvul-cpp_data_bad_4600_1 | 404: Not Found | ./CrossVul/dataset_final_sorted/CWE-295/c/bad_4600_1 |
crossvul-cpp_data_bad_4599_0 | /*
* Copyright (C) 2015 Adrien Vergé
*
* 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 is... | ./CrossVul/dataset_final_sorted/CWE-295/c/bad_4599_0 |
crossvul-cpp_data_bad_4597_0 | /*
* Copyright (C) 2015 Adrien Vergé
*
* 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 is... | ./CrossVul/dataset_final_sorted/CWE-295/c/bad_4597_0 |
crossvul-cpp_data_good_4599_0 | /*
* Copyright (C) 2015 Adrien Vergé
*
* 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 is... | ./CrossVul/dataset_final_sorted/CWE-295/c/good_4599_0 |
crossvul-cpp_data_good_4597_0 | /*
* Copyright (C) 2015 Adrien Vergé
*
* 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 is... | ./CrossVul/dataset_final_sorted/CWE-295/c/good_4597_0 |
crossvul-cpp_data_bad_3203_1 | /*
* Copyright (c) 1997-2008 Kungliga Tekniska Högskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* 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 ... | ./CrossVul/dataset_final_sorted/CWE-295/c/bad_3203_1 |
crossvul-cpp_data_good_4600_1 | /* Obtained from: https://github.com/iSECPartners/ssl-conservatory */
/*
* Helper functions to perform basic hostname validation using OpenSSL.
*
* Author: Alban Diquet
*
* Copyright (C) 2012, iSEC Partners.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software an... | ./CrossVul/dataset_final_sorted/CWE-295/c/good_4600_1 |
crossvul-cpp_data_good_1607_0 | /* libinfinity - a GObject-based infinote implementation
* Copyright (C) 2007-2014 Armin Burgmeier <armin@arbur.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
* versi... | ./CrossVul/dataset_final_sorted/CWE-295/c/good_1607_0 |
crossvul-cpp_data_good_4600_3 | /*
* Copyright (C) 2015 Adrien Vergé
*
* 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 is... | ./CrossVul/dataset_final_sorted/CWE-295/c/good_4600_3 |
crossvul-cpp_data_good_682_0 | /* $OpenBSD: x509_vpm.c,v 1.17 2018/03/22 15:54:46 beck Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2004.
*/
/* ====================================================================
* Copyright (c) 2004 The OpenSSL Project. All rights reserved.
*
* Redistribution and us... | ./CrossVul/dataset_final_sorted/CWE-295/c/good_682_0 |
crossvul-cpp_data_bad_4693_0 | /***
x509 modules for lua-openssl binding
create and manage x509 certificate
@module x509
@usage
x509 = require'openssl'.x509
*/
#include "openssl.h"
#include "private.h"
#define CRYPTO_LOCK_REF
#include "sk.h"
#define MYNAME "x509"
#define MYVERSION MYNAME " library for " LUA_VERSION " / Nov 2014 / "\
"based ... | ./CrossVul/dataset_final_sorted/CWE-295/c/bad_4693_0 |
crossvul-cpp_data_bad_1607_0 | /* libinfinity - a GObject-based infinote implementation
* Copyright (C) 2007-2014 Armin Burgmeier <armin@arbur.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
* versi... | ./CrossVul/dataset_final_sorted/CWE-295/c/bad_1607_0 |
crossvul-cpp_data_good_3203_1 | /*
* Copyright (c) 1997-2008 Kungliga Tekniska Högskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* 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 ... | ./CrossVul/dataset_final_sorted/CWE-295/c/good_3203_1 |
crossvul-cpp_data_good_4693_0 | /***
x509 modules for lua-openssl binding
create and manage x509 certificate
@module x509
@usage
x509 = require'openssl'.x509
*/
#include "openssl.h"
#include "private.h"
#define CRYPTO_LOCK_REF
#include "sk.h"
#define MYNAME "x509"
#define MYVERSION MYNAME " library for " LUA_VERSION " / Nov 2014 / "\
"based ... | ./CrossVul/dataset_final_sorted/CWE-295/c/good_4693_0 |
crossvul-cpp_data_bad_4600_3 | /*
* Copyright (C) 2015 Adrien Vergé
*
* 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 is... | ./CrossVul/dataset_final_sorted/CWE-295/c/bad_4600_3 |
crossvul-cpp_data_bad_682_0 | /* $OpenBSD: x509_vpm.c,v 1.16 2017/12/09 07:09:25 deraadt Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2004.
*/
/* ====================================================================
* Copyright (c) 2004 The OpenSSL Project. All rights reserved.
*
* Redistribution and... | ./CrossVul/dataset_final_sorted/CWE-295/c/bad_682_0 |
crossvul-cpp_data_good_608_0 | /*
* Copyright © 2015 Red Hat, Inc
*
* This program 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 i... | ./CrossVul/dataset_final_sorted/CWE-436/c/good_608_0 |
crossvul-cpp_data_bad_608_0 | /*
* Copyright © 2015 Red Hat, Inc
*
* This program 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 i... | ./CrossVul/dataset_final_sorted/CWE-436/c/bad_608_0 |
crossvul-cpp_data_bad_1395_1 | 404: Not Found | ./CrossVul/dataset_final_sorted/CWE-216/c/bad_1395_1 |
crossvul-cpp_data_bad_1396_1 |
#define _GNU_SOURCE
#include <endian.h>
#include <errno.h>
#include <fcntl.h>
#include <grp.h>
#include <sched.h>
#include <setjmp.h>
#include <signal.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <unistd.h>
#in... | ./CrossVul/dataset_final_sorted/CWE-216/c/bad_1396_1 |
crossvul-cpp_data_bad_1396_0 | 404: Not Found | ./CrossVul/dataset_final_sorted/CWE-216/c/bad_1396_0 |
crossvul-cpp_data_bad_1395_0 | 404: Not Found | ./CrossVul/dataset_final_sorted/CWE-216/c/bad_1395_0 |
crossvul-cpp_data_good_1396_0 | /*
* Copyright (C) 2019 Aleksa Sarai <cyphar@cyphar.com>
* Copyright (C) 2019 SUSE LLC
*
* 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... | ./CrossVul/dataset_final_sorted/CWE-216/c/good_1396_0 |
crossvul-cpp_data_good_1395_1 |
#define _GNU_SOURCE
#include <endian.h>
#include <errno.h>
#include <fcntl.h>
#include <grp.h>
#include <sched.h>
#include <setjmp.h>
#include <signal.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <unistd.h>
#in... | ./CrossVul/dataset_final_sorted/CWE-216/c/good_1395_1 |
crossvul-cpp_data_good_1396_1 |
#define _GNU_SOURCE
#include <endian.h>
#include <errno.h>
#include <fcntl.h>
#include <grp.h>
#include <sched.h>
#include <setjmp.h>
#include <signal.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <unistd.h>
#in... | ./CrossVul/dataset_final_sorted/CWE-216/c/good_1396_1 |
crossvul-cpp_data_good_1395_0 | /*
* Copyright (C) 2019 Aleksa Sarai <cyphar@cyphar.com>
* Copyright (C) 2019 SUSE LLC
*
* 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... | ./CrossVul/dataset_final_sorted/CWE-216/c/good_1395_0 |
crossvul-cpp_data_bad_5254_2 | /* Generated by re2c 0.13.5 */
#line 1 "ext/standard/var_unserializer.re"
/*
+----------------------------------------------------------------------+
| PHP Version 7 |
+----------------------------------------------------------------------+
| Copyright (c) ... | ./CrossVul/dataset_final_sorted/CWE-502/c/bad_5254_2 |
crossvul-cpp_data_bad_297_0 | /*
+----------------------------------------------------------------------+
| Swoole |
+----------------------------------------------------------------------+
| This source file is subject to version 2.0 of the Apache license, |
| that is bundl... | ./CrossVul/dataset_final_sorted/CWE-502/c/bad_297_0 |
crossvul-cpp_data_good_297_0 | /*
+----------------------------------------------------------------------+
| Swoole |
+----------------------------------------------------------------------+
| This source file is subject to version 2.0 of the Apache license, |
| that is bundl... | ./CrossVul/dataset_final_sorted/CWE-502/c/good_297_0 |
crossvul-cpp_data_good_5254_2 | /* Generated by re2c 0.13.7.5 */
#line 1 "ext/standard/var_unserializer.re"
/*
+----------------------------------------------------------------------+
| PHP Version 7 |
+----------------------------------------------------------------------+
| Copyright (c... | ./CrossVul/dataset_final_sorted/CWE-502/c/good_5254_2 |
crossvul-cpp_data_good_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/good_1384_1 |
crossvul-cpp_data_bad_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/bad_578_2 |
crossvul-cpp_data_bad_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/bad_1636_2 |
crossvul-cpp_data_good_846_0 | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
| Copyrigh... | ./CrossVul/dataset_final_sorted/CWE-119/cpp/good_846_0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.