id
stringlengths
25
30
content
stringlengths
14
942k
max_stars_repo_path
stringlengths
49
55
crossvul-cpp_data_good_596_0
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) | | Copyrigh...
./CrossVul/dataset_final_sorted/CWE-125/cpp/good_596_0
crossvul-cpp_data_bad_2813_1
/***************************************************************** | | AP4 - hvcC Atoms | | Copyright 2002-2016 Axiomatic Systems, LLC | | | This file is part of Bento4/AP4 (MP4 Atom Processing Library). | | Unless you have obtained Bento4 under a difference license, | this version of Bento4 is Bento4|GP...
./CrossVul/dataset_final_sorted/CWE-125/cpp/bad_2813_1
crossvul-cpp_data_good_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/good_138_0
crossvul-cpp_data_good_3394_0
/* Copyright 1998 by the Massachusetts Institute of Technology. * * 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 appear in all copies and that both that copyright * notice and t...
./CrossVul/dataset_final_sorted/CWE-125/c/good_3394_0
crossvul-cpp_data_bad_1374_0
/* * GPAC - Multimedia Framework C SDK * * Authors: Jean Le Feuvre * Copyright (c) Telecom ParisTech 2005-2012 * * This file is part of GPAC / MPEG2-TS sub-project * * GPAC 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-125/c/bad_1374_0
crossvul-cpp_data_good_950_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_950_0
crossvul-cpp_data_good_2910_0
/* * (Tentative) USB Audio Driver for ALSA * * Copyright (c) 2002 by Takashi Iwai <tiwai@suse.de> * * Many codes borrowed from audio.c by * Alan Cox (alan@lxorguk.ukuu.org.uk) * Thomas Sailer (sailer@ife.ee.ethz.ch) * * * This program is free software; you can redistribute it and/or modify * ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_2910_0
crossvul-cpp_data_bad_351_13
/* * card-setcos.c: Support for PKI cards by Setec * * Copyright (C) 2001, 2002 Juha Yrjölä <juha.yrjola@iki.fi> * Copyright (C) 2005 Antti Tapaninen <aet@cc.hut.fi> * Copyright (C) 2005 Zetes * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser Gene...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_351_13
crossvul-cpp_data_bad_2669_0
/* * Copyright (c) 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 paragraph in its entiret...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_2669_0
crossvul-cpp_data_bad_2644_11
/* * 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_2644_11
crossvul-cpp_data_good_351_6
/* * Support for ePass2003 smart cards * * Copyright (C) 2008, Weitao Sun <weitao@ftsafe.com> * Copyright (C) 2011, Xiaoshuo Wu <xiaoshuo@ftsafe.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_351_6
crossvul-cpp_data_bad_2641_0
/* * Copyright (c) 1988, 1989, 1990, 1991, 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 noti...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_2641_0
crossvul-cpp_data_bad_89_0
/* * Copyright (c) Christos Zoulas 2003. * 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 immediately at t...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_89_0
crossvul-cpp_data_bad_3951_0
/** * FreeRDP: A Remote Desktop Protocol Implementation * Drawing Orders * * Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com> * Copyright 2016 Armin Novak <armin.novak@thincast.com> * Copyright 2016 Thincast Technologies GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * yo...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_3951_0
crossvul-cpp_data_bad_5201_0
#ifdef HAVE_CONFIG_H #include "config.h" #endif /* HAVE_CONFIG_H */ #include <stdio.h> #include <stddef.h> #include <stdlib.h> #include <string.h> #include "gd_tga.h" #include "gd.h" #include "gd_errors.h" #include "gdhelpers.h" /*! \brief Creates a gdImage from a TGA file * Creates a gdImage from a TGA binary file...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_5201_0
crossvul-cpp_data_good_3907_0
/** * FreeRDP: A Remote Desktop Protocol Implementation * Update Data PDUs * * Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com> * Copyright 2016 Armin Novak <armin.novak@thincast.com> * Copyright 2016 Thincast Technologies GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_3907_0
crossvul-cpp_data_bad_2730_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/bad_2730_0
crossvul-cpp_data_good_4250_0
/* State machine for IKEv1 * * Copyright (C) 1997 Angelos D. Keromytis. * Copyright (C) 1998-2010,2013-2016 D. Hugh Redelmeier <hugh@mimosa.com> * Copyright (C) 2003-2008 Michael Richardson <mcr@xelerance.com> * Copyright (C) 2008-2009 David McCullough <david_mccullough@securecomputing.com> * Copyright (C) 2008-2...
./CrossVul/dataset_final_sorted/CWE-125/c/good_4250_0
crossvul-cpp_data_good_146_0
/* radare2 - LGPL - Copyright 2009-2018 - pancake, nibble, dso */ #include <r_bin.h> // maybe too big sometimes? 2KB of stack eaten here.. #define R_STRING_SCAN_BUFFER_SIZE 2048 static void print_string(RBinString *string, RBinFile *bf) { if (!string || !bf) { return; } int mode = bf->strmode; ut64 addr , vadd...
./CrossVul/dataset_final_sorted/CWE-125/c/good_146_0
crossvul-cpp_data_good_2588_4
/* * mus_wm.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 lib...
./CrossVul/dataset_final_sorted/CWE-125/c/good_2588_4
crossvul-cpp_data_bad_5312_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_5312_0
crossvul-cpp_data_bad_4825_1
/* Generated by re2c 0.13.7.5 */ #line 1 "ext/standard/var_unserializer.re" /* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_4825_1
crossvul-cpp_data_bad_3944_0
/** * WinPR: Windows Portable Runtime * NTLM Security Package (Message) * * Copyright 2011-2014 Marc-Andre Moreau <marcandre.moreau@gmail.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the Lic...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_3944_0
crossvul-cpp_data_good_5492_1
/* * Copyright (c) 1999-2000 Image Power, Inc. and the University of * British Columbia. * Copyright (c) 2001-2003 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-125/c/good_5492_1
crossvul-cpp_data_good_1178_0
/** @file mat4.c * Matlab MAT version 4 file functions * @ingroup MAT */ /* * Copyright (c) 2005-2019, Christopher C. Hulbert * 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. Redis...
./CrossVul/dataset_final_sorted/CWE-125/c/good_1178_0
crossvul-cpp_data_good_2697_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_2697_0
crossvul-cpp_data_bad_145_0
/* radare - LGPL - Copyright 2010-2018 - nibble, pancake */ #include <stdio.h> #include <r_types.h> #include <r_util.h> #include "mach0.h" #define bprintf if (bin->verbose) eprintf typedef struct _ulebr { ut8 *p; } ulebr; // OMG; THIS SHOULD BE KILLED; this var exposes the local native endian, which is completely ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_145_0
crossvul-cpp_data_bad_2646_0
/* * Copyright (c) 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 copyright notice and this ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_2646_0
crossvul-cpp_data_good_2889_0
/* radare - LGPL - Copyright 2008-2017 - nibble, pancake, alvaro_fe */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <r_types.h> #include <r_util.h> #include "elf.h" #ifdef IFDBG #undef IFDBG #endif #define DO_THE_DBG 0 #define IFDBG if (DO_THE_DBG) #define IFINT if (0) #de...
./CrossVul/dataset_final_sorted/CWE-125/c/good_2889_0
crossvul-cpp_data_good_5298_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_5298_0
crossvul-cpp_data_bad_2697_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_2697_0
crossvul-cpp_data_good_3944_0
/** * WinPR: Windows Portable Runtime * NTLM Security Package (Message) * * Copyright 2011-2014 Marc-Andre Moreau <marcandre.moreau@gmail.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the Lic...
./CrossVul/dataset_final_sorted/CWE-125/c/good_3944_0
crossvul-cpp_data_bad_3181_0
/* radare - LGPL - Copyright 2011-2016 - pancake */ #include <r_cons.h> #include <r_types.h> #include <r_util.h> #include <r_lib.h> #include <r_bin.h> #include "dex/dex.h" #define r_hash_adler32 __adler32 #include "../../hash/adler32.c" extern struct r_bin_dbginfo_t r_bin_dbginfo_dex; #define DEBUG_PRINTF 0 #if DEB...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_3181_0
crossvul-cpp_data_bad_351_15
/* * PKCS15 emulation layer for Italian CNS. * * Copyright (C) 2008, Emanuele Pucciarelli <ep@acm.org> * Many snippets have been taken out from other PKCS15 emulation layer * modules in this directory; their copyright is their authors'. * * This library is free software; you can redistribute it and/or * modify ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_351_15
crossvul-cpp_data_bad_2861_0
/* radare - LGPL - Copyright 2017 - pancake, cgvwzq */ // http://webassembly.org/docs/binary-encoding/#module-structure #include <stdio.h> #include <string.h> #include <stdint.h> #include <stdarg.h> #include <sys/types.h> #include "../../bin/format/wasm/wasm.h" typedef enum { // Control flow operators WASM_OP_TRAP...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_2861_0
crossvul-cpp_data_good_259_0
/* * 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 include * the above copyright notice and this para...
./CrossVul/dataset_final_sorted/CWE-125/c/good_259_0
crossvul-cpp_data_bad_144_0
/* radare - LGPL - Copyright 2008-2017 nibble, pancake, inisider */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <r_types.h> #include <r_util.h> #include "pe.h" #include <time.h> #define PE_IMAGE_FILE_MACHINE_RPI2 452 #define MAX_METADATA_STRING_LENGTH 256 #define bprintf if(bin->verbose) eprin...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_144_0
crossvul-cpp_data_bad_2657_1
/* * Copyright (C) 2002 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_2657_1
crossvul-cpp_data_bad_215_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-125/c/bad_215_0
crossvul-cpp_data_good_459_0
/* Copyright (C) 2008-2018 - pancake, unlogic, emvivre */ #include <r_flag.h> #include <r_core.h> #include <r_asm.h> #include <r_lib.h> #include <r_types.h> #include <stdio.h> #include <string.h> static ut64 getnum(RAsm *a, const char *s); #define ENCODING_SHIFT 0 #define OPTYPE_SHIFT 6 #define REGMASK_SHIFT 16 #...
./CrossVul/dataset_final_sorted/CWE-125/c/good_459_0
crossvul-cpp_data_bad_5302_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_5302_0
crossvul-cpp_data_bad_2644_10
/* * Copyright (c) 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 this ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_2644_10
crossvul-cpp_data_bad_4901_1
/* * DBD::mysql - DBI driver for the mysql database * * Copyright (c) 2004-2014 Patrick Galbraith * Copyright (c) 2013-2014 Michiel Beijen * Copyright (c) 2004-2007 Alexey Stroganov * Copyright (c) 2003-2005 Rudolf Lippan * Copyright (c) 1997-2003 Jochen Wiedmann * * You may distribute this under th...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_4901_1
crossvul-cpp_data_bad_4791_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % M M AAA TTTTT L AAA BBBB ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_4791_0
crossvul-cpp_data_good_949_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_949_0
crossvul-cpp_data_bad_4856_2
/* $Id$ */ /* * Copyright (c) 1996-1997 Sam Leffler * Copyright (c) 1996 Pixar * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * that (i) the above copyright notices and this permission notice appear in * al...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_4856_2
crossvul-cpp_data_good_977_0
/* * Copyright © 2001-2011 Stéphane Raimbault <stephane.raimbault@gmail.com> * * SPDX-License-Identifier: LGPL-2.1+ * * This library implements the Modbus protocol. * http://libmodbus.org/ */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdarg.h> #include <errno.h> #include <limits.h> #i...
./CrossVul/dataset_final_sorted/CWE-125/c/good_977_0
crossvul-cpp_data_good_265_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/good_265_0
crossvul-cpp_data_bad_514_1
/* * uriparser - RFC 3986 URI parsing library * * Copyright (C) 2007, Weijia Song <songweijia@gmail.com> * Copyright (C) 2007, Sebastian Pipping <sebastian@pipping.org> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_514_1
crossvul-cpp_data_bad_2693_0
/* * 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 include * the above copyright notice and this para...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_2693_0
crossvul-cpp_data_good_2660_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_2660_0
crossvul-cpp_data_bad_1329_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-125/c/bad_1329_0
crossvul-cpp_data_bad_4493_0
/************************************************************************* * * $Id: trio.c,v 1.131 2010/09/12 11:08:08 breese Exp $ * * Copyright (C) 1998, 2009 Bjorn Reese and Daniel Stenberg. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby grant...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_4493_0
crossvul-cpp_data_bad_2701_1
/* * Copyright (C) 2002 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_2701_1
crossvul-cpp_data_bad_2748_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_2748_0
crossvul-cpp_data_bad_3952_0
/** * FreeRDP: A Remote Desktop Protocol Implementation * Drawing Orders * * Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com> * Copyright 2016 Armin Novak <armin.novak@thincast.com> * Copyright 2016 Thincast Technologies GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * yo...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_3952_0
crossvul-cpp_data_bad_2889_0
/* radare - LGPL - Copyright 2008-2017 - nibble, pancake, alvaro_fe */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <r_types.h> #include <r_util.h> #include "elf.h" #ifdef IFDBG #undef IFDBG #endif #define DO_THE_DBG 0 #define IFDBG if (DO_THE_DBG) #define IFINT if (0) #de...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_2889_0
crossvul-cpp_data_bad_2640_0
/* * Copyright (c) 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 copyright noti...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_2640_0
crossvul-cpp_data_good_2724_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_2724_0
crossvul-cpp_data_bad_2708_0
/* * Copyright (C) 2000 Alfredo Andres Omella. 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 ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_2708_0
crossvul-cpp_data_bad_4025_0
/** * WinPR: Windows Portable Runtime * NTLM Security Package (Message) * * Copyright 2011-2014 Marc-Andre Moreau <marcandre.moreau@gmail.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the Lic...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_4025_0
crossvul-cpp_data_good_699_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_699_0
crossvul-cpp_data_good_1370_1
/*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 2001-2008, by Cisco Systems, Inc. All rights reserved. * Copyright (c) 2008-2012, by Randall Stewart. All rights reserved. * Copyright (c) 2008-2012, by Michael Tuexen. All rights reserved. * * Redistribution and use in source and binary forms, with o...
./CrossVul/dataset_final_sorted/CWE-125/c/good_1370_1
crossvul-cpp_data_good_2588_3
/* * midi.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 libra...
./CrossVul/dataset_final_sorted/CWE-125/c/good_2588_3
crossvul-cpp_data_good_504_0
/* radare - LGPL - Copyright 2009-2018 - pancake, maijin */ #include "r_util.h" #include "r_core.h" #include "r_anal.h" static const char *help_msg_a[] = { "Usage:", "a", "[abdefFghoprxstc] [...]", "aa", "[?]", "analyze all (fcns + bbs) (aa0 to avoid sub renaming)", "a8", " [hexpairs]", "analyze bytes", "ab", "[b...
./CrossVul/dataset_final_sorted/CWE-125/c/good_504_0
crossvul-cpp_data_bad_2644_1
/* * Copyright (c) 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 this paragraph in...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_2644_1
crossvul-cpp_data_good_2722_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/good_2722_0
crossvul-cpp_data_good_5330_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_5330_0
crossvul-cpp_data_good_2725_0
/* * Copyright: (c) 2000 United States Government as represented by the * Secretary of the Navy. 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 mus...
./CrossVul/dataset_final_sorted/CWE-125/c/good_2725_0
crossvul-cpp_data_bad_351_11
/* * card-piv.c: Support for PIV-II from NIST SP800-73 * card-default.c: Support for cards with no driver * * Copyright (C) 2001, 2002 Juha Yrjölä <juha.yrjola@iki.fi> * Copyright (C) 2005-2016 Douglas E. Engert <deengert@gmail.com> * Copyright (C) 2006, Identity Alliance, Thomas Harning <thomas.harning@identit...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_351_11
crossvul-cpp_data_bad_2661_0
/* $NetBSD: print-telnet.c,v 1.2 1999/10/11 12:40:12 sjg Exp $ */ /*- * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Simon J. Gerraty. * * Redistribution and use in source and binary forms, with or w...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_2661_0
crossvul-cpp_data_good_2612_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_2612_0
crossvul-cpp_data_bad_501_1
404: Not Found
./CrossVul/dataset_final_sorted/CWE-125/c/bad_501_1
crossvul-cpp_data_bad_394_0
/* liblouis Braille Translation and Back-Translation Library Based on the Linux screenreader BRLTTY, copyright (C) 1999-2006 by The BRLTTY Team Copyright (C) 2004, 2005, 2006 ViewPlus Technologies, Inc. www.viewplus.com Copyright (C) 2004, 2005, 2006 JJB Software, Inc. www.jjb-software.com Copyright (C...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_394_0
crossvul-cpp_data_bad_3953_0
/** * WinPR: Windows Portable Runtime * NTLM Security Package (AV_PAIRs) * * Copyright 2011-2014 Marc-Andre Moreau <marcandre.moreau@gmail.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the Li...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_3953_0
crossvul-cpp_data_bad_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/bad_2694_0
crossvul-cpp_data_good_486_5
/* -*- c-basic-offset: 8 -*- rdesktop: A Remote Desktop Protocol client. Support for the Matrox "lspci" channel Copyright (C) 2005 Matrox Graphics Inc. Copyright 2018 Henrik Andersson <hean01@cendio.se> for Cendio AB This program is free software: you can redistribute it and/or modify it under the t...
./CrossVul/dataset_final_sorted/CWE-125/c/good_486_5
crossvul-cpp_data_bad_2704_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_2704_0
crossvul-cpp_data_good_3293_0
/* radare2 - LGPL - Copyright 2017 - pancake, cgvwzq */ #include <r_types.h> #include <r_util.h> #include <r_lib.h> #include <r_bin.h> #include "wasm.h" // Consume functions static size_t consume_u32 (ut8 *buf, ut8 *max, ut32 *out, ut32 *offset) { size_t n; if (!buf || !max || !out) { return 0; } if (!(n = rea...
./CrossVul/dataset_final_sorted/CWE-125/c/good_3293_0
crossvul-cpp_data_bad_699_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_699_0
crossvul-cpp_data_good_3951_0
/** * FreeRDP: A Remote Desktop Protocol Implementation * Drawing Orders * * Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com> * Copyright 2016 Armin Novak <armin.novak@thincast.com> * Copyright 2016 Thincast Technologies GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * yo...
./CrossVul/dataset_final_sorted/CWE-125/c/good_3951_0
crossvul-cpp_data_good_543_0
// SPDX-License-Identifier: (GPL-2.0 OR MIT) /* * SerDes PHY driver for Microsemi Ocelot * * Copyright (c) 2018 Microsemi * */ #include <linux/err.h> #include <linux/mfd/syscon.h> #include <linux/module.h> #include <linux/of.h> #include <linux/of_platform.h> #include <linux/phy/phy.h> #include <linux/platform_dev...
./CrossVul/dataset_final_sorted/CWE-125/c/good_543_0
crossvul-cpp_data_bad_3955_0
/** * FreeRDP: A Remote Desktop Protocol Implementation * RDP Licensing * * Copyright 2011-2013 Marc-Andre Moreau <marcandre.moreau@gmail.com> * Copyright 2014 Norbert Federa <norbert.federa@thincast.com> * Copyright 2018 David Fort <contact@hardening-consulting.com> * * Licensed under the Apache License, Versi...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_3955_0
crossvul-cpp_data_bad_5240_4
404: Not Found
./CrossVul/dataset_final_sorted/CWE-125/c/bad_5240_4
crossvul-cpp_data_bad_1852_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_1852_0
crossvul-cpp_data_bad_5314_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_5314_1
crossvul-cpp_data_good_5870_0
/* * Filtered Image Rescaling * Based on Gems III * - Schumacher general filtered image rescaling * (pp. 414-424) * by Dale Schumacher * * Additional changes by Ray Gardener, Daylon Graphics Ltd. * December 4, 1999 * * Ported to libgd by Pierre Joye. Support for multiple channels * added (argb for now)....
./CrossVul/dataset_final_sorted/CWE-125/c/good_5870_0
crossvul-cpp_data_good_463_0
/* * MMS protocol common definitions. * Copyright (c) 2006,2007 Ryan Martell * Copyright (c) 2007 Björn Axelsson * Copyright (c) 2010 Zhentan Feng <spyfeng at gmail dot com> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesse...
./CrossVul/dataset_final_sorted/CWE-125/c/good_463_0
crossvul-cpp_data_bad_949_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_949_1
crossvul-cpp_data_bad_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/bad_2644_6
crossvul-cpp_data_good_263_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_263_0
crossvul-cpp_data_bad_265_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_265_0
crossvul-cpp_data_good_5241_0
/* * io_dp.c * * Implements the dynamic pointer interface. * * Based on GD.pm code by Lincoln Stein for interfacing to libgd. * Added support for reading as well as support for 'tell' and 'seek'. * * As will all I/O modules, most functions are for local use only (called * via function pointers in the I/O conte...
./CrossVul/dataset_final_sorted/CWE-125/c/good_5241_0
crossvul-cpp_data_good_2702_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_2702_0
crossvul-cpp_data_good_2688_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_2688_0
crossvul-cpp_data_good_17_0
/* * Copyright (C) 2015 Cisco Systems, Inc. and/or its affiliates. All rights reserved. * Copyright (C) 2013 Sourcefire, Inc. * * Authors: Steven Morgan <smorgan@sourcefire.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License ve...
./CrossVul/dataset_final_sorted/CWE-125/c/good_17_0
crossvul-cpp_data_bad_2925_0
/* * Driver for IMS Passenger Control Unit Devices * * Copyright (C) 2013 The IMS Company * * 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/completion.h> #i...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_2925_0
crossvul-cpp_data_bad_5294_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_5294_0
crossvul-cpp_data_good_351_9
/* * card-oberthur.c: Support for Oberthur smart cards * CosmopolIC v5; * * Copyright (C) 2001, 2002 Juha Yrjölä <juha.yrjola@iki.fi> * Copyright (C) 2009 Viktor Tarasov <viktor.tarasov@opentrust.com>, * OpenTrust <www.opentrust.com> * * This library is free software; you can redistribut...
./CrossVul/dataset_final_sorted/CWE-125/c/good_351_9
crossvul-cpp_data_good_4039_1
/* * rdppm.c * * This file was part of the Independent JPEG Group's software: * Copyright (C) 1991-1997, Thomas G. Lane. * Modified 2009 by Bill Allombert, Guido Vollbeding. * libjpeg-turbo Modifications: * Copyright (C) 2015-2017, 2020, D. R. Commander. * For conditions of distribution and use, see the accompa...
./CrossVul/dataset_final_sorted/CWE-125/c/good_4039_1