id
stringlengths
25
30
content
stringlengths
14
942k
max_stars_repo_path
stringlengths
49
55
crossvul-cpp_data_good_486_4
/* -*- c-basic-offset: 8 -*- rdesktop: A Remote Desktop Protocol client. CredSSP layer and Kerberos support. Copyright 2012-2017 Henrik Andersson <hean01@cendio.se> for Cendio AB This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_486_4
crossvul-cpp_data_good_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/good_3952_0
crossvul-cpp_data_bad_113_0
/* * Copyright (C) the libgit2 contributors. All rights reserved. * * This file is part of libgit2, distributed under the GNU GPL v2 with * a Linking Exception. For full terms see the included COPYING file. */ #include "delta.h" /* maximum hash entry list for the same hash bucket */ #define HASH_LIMIT 64 #defin...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_113_0
crossvul-cpp_data_good_2644_3
/* * 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/good_2644_3
crossvul-cpp_data_bad_147_0
/* radare - LGPL - Copyright 2011-2018 - pancake, Roc Valles, condret, killabyte */ #if 0 http://www.atmel.com/images/atmel-0856-avr-instruction-set-manual.pdf https://en.wikipedia.org/wiki/Atmel_AVR_instruction_set #endif #include <string.h> #include <r_types.h> #include <r_util.h> #include <r_lib.h> #include <r_asm...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_147_0
crossvul-cpp_data_bad_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/bad_977_0
crossvul-cpp_data_bad_768_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_768_1
crossvul-cpp_data_bad_3911_1
/** * FreeRDP: A Remote Desktop Protocol Implementation * Auto-Detect PDUs * * Copyright 2014 Dell Software <Mike.McDonald@software.dell.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 Lice...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_3911_1
crossvul-cpp_data_bad_2680_0
/* 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/bad_2680_0
crossvul-cpp_data_bad_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/bad_2644_7
crossvul-cpp_data_good_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/good_351_2
crossvul-cpp_data_bad_1854_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_1854_0
crossvul-cpp_data_good_2718_0
/* * Copyright (c) 2016 Antonin Décimo, Jean-Raphaël Gaglione * * 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_2718_0
crossvul-cpp_data_bad_628_0
//////////////////////////////////////////////////////////////////////////// // **** WAVPACK **** // // Hybrid Lossless Wavefile Compressor // // Copyright (c) 1998 - 2016 David Bryant. // // ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_628_0
crossvul-cpp_data_bad_675_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_675_0
crossvul-cpp_data_bad_1019_0
/*! @file GPMF_parser.c * * @brief GPMF Parser library * * @version 1.2.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 your opti...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_1019_0
crossvul-cpp_data_good_3372_0
/********************************************************************** regexec.c - Oniguruma (regular expression library) **********************************************************************/ /*- * Copyright (c) 2002-2016 K.Kosako <sndgk393 AT ybb DOT ne DOT jp> * All rights reserved. * * Redistribution and...
./CrossVul/dataset_final_sorted/CWE-125/c/good_3372_0
crossvul-cpp_data_good_372_0
/* * Copyright 2013-2014 MongoDB, 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 agree...
./CrossVul/dataset_final_sorted/CWE-125/c/good_372_0
crossvul-cpp_data_good_3254_2
/* * NET An implementation of the SOCKET network access protocol. * * Version: @(#)socket.c 1.1.93 18/02/95 * * Authors: Orest Zborowski, <obz@Kodak.COM> * Ross Biro * Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG> * * Fixes: * Anonymous : NOTSOCK/BADF cleanup. Error fix in * shutdown() * Alan Co...
./CrossVul/dataset_final_sorted/CWE-125/c/good_3254_2
crossvul-cpp_data_good_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/good_2719_0
crossvul-cpp_data_good_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/good_2665_0
crossvul-cpp_data_good_501_0
/* radare - LGPL - Copyright 2010-2018 - pancake */ #include <stdio.h> #include <string.h> #include <ctype.h> #include <stdlib.h> #include <r_util.h> #include "armass16_const.h" // TODO: only lo registers accessible in thumb arm typedef struct { ut64 off; ut32 o; char op[128]; char opstr[128]; char *a[16]; /* o...
./CrossVul/dataset_final_sorted/CWE-125/c/good_501_0
crossvul-cpp_data_bad_2681_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_2681_0
crossvul-cpp_data_bad_5241_5
404: Not Found
./CrossVul/dataset_final_sorted/CWE-125/c/bad_5241_5
crossvul-cpp_data_good_628_0
//////////////////////////////////////////////////////////////////////////// // **** WAVPACK **** // // Hybrid Lossless Wavefile Compressor // // Copyright (c) 1998 - 2016 David Bryant. // // ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_628_0
crossvul-cpp_data_good_149_0
/* radare - LGPL - Copyright 2010-2013 eloi<limited-entropy.com> */ #include <string.h> #include <r_types.h> #include <r_lib.h> #include <r_asm.h> #include <r_anal.h> #define API static #define LONG_SIZE 4 #define WORD_SIZE 2 #define BYTE_SIZE 1 /* missing opcodes : - FPU (opcodes 0xF___) - opcodes > SH2E - cmp*...
./CrossVul/dataset_final_sorted/CWE-125/c/good_149_0
crossvul-cpp_data_good_2639_0
/* * Copyright (C) Andrew Tridgell 1995-1999 * * This software may be distributed either under the terms of the * BSD-style license that accompanies tcpdump or the GNU GPL version 2 * or later */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <netdissect-stdinc.h> #include <stdio.h> #include <stdlib....
./CrossVul/dataset_final_sorted/CWE-125/c/good_2639_0
crossvul-cpp_data_bad_181_0
/* radare - Apache 2.0 - Copyright 2010-2015 - pancake and Adam Pridgen <dso@rice.edu || adam.pridgen@thecoverofnight.com> */ #include <string.h> #include <r_types.h> #include <r_lib.h> #include <r_asm.h> #include <r_anal.h> #include <r_anal_ex.h> #include <r_cons.h> #include "../../../shlr/java/code.h" #include "....
./CrossVul/dataset_final_sorted/CWE-125/c/bad_181_0
crossvul-cpp_data_bad_2727_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_2727_0
crossvul-cpp_data_bad_5295_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_5295_0
crossvul-cpp_data_bad_5201_4
404: Not Found
./CrossVul/dataset_final_sorted/CWE-125/c/bad_5201_4
crossvul-cpp_data_bad_1011_0
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * memcached - memory caching daemon * * https://www.memcached.org/ * * Copyright 2003 Danga Interactive, Inc. All rights reserved. * * Use and distribution licensed under the BSD license. See * the LICENSE file for full...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_1011_0
crossvul-cpp_data_good_5295_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_5295_0
crossvul-cpp_data_bad_296_0
/* * Copyright (C) the libgit2 contributors. All rights reserved. * * This file is part of libgit2, distributed under the GNU GPL v2 with * a Linking Exception. For full terms see the included COPYING file. */ #include "common.h" #include "git2/types.h" #include "git2/errors.h" #include "git2/refs.h" #include "g...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_296_0
crossvul-cpp_data_good_3911_1
/** * FreeRDP: A Remote Desktop Protocol Implementation * Auto-Detect PDUs * * Copyright 2014 Dell Software <Mike.McDonald@software.dell.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 Lice...
./CrossVul/dataset_final_sorted/CWE-125/c/good_3911_1
crossvul-cpp_data_bad_351_8
/* * card-iasecc.c: Support for IAS/ECC smart cards * * Copyright (C) 2010 Viktor Tarasov <vtarasov@gmail.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 Public * License as published by the Free Soft...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_351_8
crossvul-cpp_data_bad_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/bad_2688_0
crossvul-cpp_data_bad_330_0
/* * Copyright (C) Arnaldo Carvalho de Melo 2004 * Copyright (C) Ian McDonald 2005 * Copyright (C) Yoshifumi Nishida 2005 * * This software may be distributed either under the terms of the * BSD-style license that accompanies tcpdump or the GNU GPL version 2 */ /* \summary: Datagram Congestion Control Protocol ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_330_0
crossvul-cpp_data_bad_2443_0
/* * plistutil.c * Simple tool to convert a plist into different formats * * Copyright (c) 2009-2015 Martin Szulecki All Rights Reserved. * Copyright (c) 2008 Zach C. All Rights Reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Publ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_2443_0
crossvul-cpp_data_bad_2729_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_2729_0
crossvul-cpp_data_good_2712_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/good_2712_0
crossvul-cpp_data_bad_3068_0
/* * Copyright 2001-2016 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/lice...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_3068_0
crossvul-cpp_data_bad_5501_0
/* * Copyright (C) 2001 MandrakeSoft S.A. * Copyright 2010 Red Hat, Inc. and/or its affiliates. * * MandrakeSoft S.A. * 43, rue d'Aboukir * 75002 Paris - France * http://www.linux-mandrake.com/ * http://www.mandrakesoft.com/ * * This library is free software; you can redistribute it and/or ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_5501_0
crossvul-cpp_data_good_932_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_932_0
crossvul-cpp_data_bad_486_4
/* -*- c-basic-offset: 8 -*- rdesktop: A Remote Desktop Protocol client. CredSSP layer and Kerberos support. Copyright 2012-2017 Henrik Andersson <hean01@cendio.se> for Cendio AB This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_486_4
crossvul-cpp_data_good_933_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_933_0
crossvul-cpp_data_good_5307_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_5307_0
crossvul-cpp_data_good_2754_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/good_2754_0
crossvul-cpp_data_good_2681_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_2681_0
crossvul-cpp_data_good_2648_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_2648_0
crossvul-cpp_data_good_5314_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_5314_1
crossvul-cpp_data_good_5303_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_5303_0
crossvul-cpp_data_bad_2957_0
/* * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * FFmpeg is distributed...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_2957_0
crossvul-cpp_data_good_5483_0
/* SCTP kernel implementation * (C) Copyright IBM Corp. 2001, 2004 * Copyright (c) 1999-2000 Cisco, Inc. * Copyright (c) 1999-2001 Motorola, Inc. * Copyright (c) 2001-2002 Intel Corp. * Copyright (c) 2002 Nokia Corp. * * This is part of the SCTP Linux Kernel Implementation. * * These are the state functio...
./CrossVul/dataset_final_sorted/CWE-125/c/good_5483_0
crossvul-cpp_data_bad_351_14
/* * ef-atr.c: Stuff for handling EF(GDO) * * Copyright (C) 2017 Frank Morgner <frankmorgner@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 ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_351_14
crossvul-cpp_data_bad_3396_1
/* Copyright (c) 2014. The YARA Authors. 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 conditions and the followi...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_3396_1
crossvul-cpp_data_good_2749_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/good_2749_0
crossvul-cpp_data_good_3190_2
/* 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_2
crossvul-cpp_data_bad_3328_0
/* Copyright (c) 2013-2014. The YARA Authors. 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 conditions and the fo...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_3328_0
crossvul-cpp_data_bad_2667_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_2667_0
crossvul-cpp_data_bad_163_1
/* * This file is part of Espruino, a JavaScript interpreter for Microcontrollers * * Copyright (C) 2013 Gordon Williams <gw@pur3.co.uk> * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_163_1
crossvul-cpp_data_bad_4215_1
/* * h323.c * * Copyright (C) 2015-18 ntop.org * Copyright (C) 2013 Remy Mudingay <mudingay@ill.fr> * */ #include "ndpi_protocol_ids.h" #define NDPI_CURRENT_PROTO NDPI_PROTOCOL_H323 #include "ndpi_api.h" struct tpkt { u_int8_t version, reserved; u_int16_t len; }; void ndpi_search_h323(struct ndpi_detect...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_4215_1
crossvul-cpp_data_good_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/good_5201_0
crossvul-cpp_data_bad_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/bad_146_0
crossvul-cpp_data_good_5009_1
/* * 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-125/c/good_5009_1
crossvul-cpp_data_bad_3255_1
/* * NET An implementation of the SOCKET network access protocol. * * Version: @(#)socket.c 1.1.93 18/02/95 * * Authors: Orest Zborowski, <obz@Kodak.COM> * Ross Biro * Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG> * * Fixes: * Anonymous : NOTSOCK/BADF cleanup. Error fix in * shutdown() * Alan Co...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_3255_1
crossvul-cpp_data_good_486_2
/* -*- c-basic-offset: 8 -*- rdesktop: A Remote Desktop Protocol client. Protocol services - Clipboard functions Copyright 2003 Erik Forsberg <forsberg@cendio.se> for Cendio AB Copyright (C) Matthew Chapman <matthewc.unsw.edu.au> 2003-2008 Copyright 2017 Henrik Andersson <hean01@cendio.se> for Cendio AB ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_486_2
crossvul-cpp_data_good_5515_1
/* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2016 The PHP Group | +---------...
./CrossVul/dataset_final_sorted/CWE-125/c/good_5515_1
crossvul-cpp_data_bad_2900_0
/* radare - LGPL - Copyright 2009-2017 - pancake, nibble, dso */ // TODO: dlopen library and show address #include <r_bin.h> #include <r_types.h> #include <r_util.h> #include <r_lib.h> #include <r_io.h> #include <config.h> R_LIB_VERSION (r_bin); #define bprintf if(binfile->rbin->verbose)eprintf #define DB a->sdb; #...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_2900_0
crossvul-cpp_data_bad_5316_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_5316_0
crossvul-cpp_data_good_458_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_458_0
crossvul-cpp_data_good_268_0
/* * Copyright (c) 2007-2011 Grégoire Henry, Juliusz Chroboczek * * 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 cond...
./CrossVul/dataset_final_sorted/CWE-125/c/good_268_0
crossvul-cpp_data_good_5312_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_5312_0
crossvul-cpp_data_bad_2664_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_2664_0
crossvul-cpp_data_bad_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/bad_3907_0
crossvul-cpp_data_good_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/good_3358_0
crossvul-cpp_data_bad_932_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_932_0
crossvul-cpp_data_bad_3032_0
/* * linux/kernel/posix-timers.c * * * 2002-10-15 Posix Clocks & timers * by George Anzinger george@mvista.com * * Copyright (C) 2002 2003 by MontaVista Software. * * 2004-06-01 Fix CLOCK_REALTIME clock/timer TIMER_ABSTIME bug. * Copyright (C) 2004 Boris Hu * * This...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_3032_0
crossvul-cpp_data_good_3328_2
/* Copyright (c) 2013. The YARA Authors. 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 conditions and the followi...
./CrossVul/dataset_final_sorted/CWE-125/c/good_3328_2
crossvul-cpp_data_good_3870_0
/* * The Python Imaging Library. * $Id$ * * decoder for PCX image data. * * history: * 95-09-14 fl Created * * Copyright (c) Fredrik Lundh 1995. * Copyright (c) Secret Labs AB 1997. * * See the README file for information on usage and redistribution. */ #include "Imaging.h" int ImagingPcxDecode(Imaging ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_3870_0
crossvul-cpp_data_bad_5009_1
/* * 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-125/c/bad_5009_1
crossvul-cpp_data_bad_3190_1
404: Not Found
./CrossVul/dataset_final_sorted/CWE-125/c/bad_3190_1
crossvul-cpp_data_bad_486_1
/* -*- c-basic-offset: 8 -*- rdesktop: A Remote Desktop Protocol client. Bitmap decompression routines Copyright (C) Matthew Chapman <matthewc.unsw.edu.au> 1999-2008 This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_486_1
crossvul-cpp_data_bad_141_0
/* radare - LGPL - Copyright 2011-2018 - pancake, Roc Valles, condret, killabyte */ #if 0 http://www.atmel.com/images/atmel-0856-avr-instruction-set-manual.pdf https://en.wikipedia.org/wiki/Atmel_AVR_instruction_set #endif #include <string.h> #include <r_types.h> #include <r_util.h> #include <r_lib.h> #include <r_asm...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_141_0
crossvul-cpp_data_bad_4857_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-125/c/bad_4857_1
crossvul-cpp_data_good_501_1
/* radare - LGPL - Copyright 2015-2018 - pancake */ #include <stdio.h> #include <string.h> #include <ctype.h> #include <stdlib.h> #include <r_util.h> typedef enum optype_t { ARM_NOTYPE = -1, ARM_GPR = 1, ARM_CONSTANT = 2, ARM_FP = 4, ARM_MEM_OPT = 8 } OpType; typedef enum regtype_t { ARM_UNDEFINED = -1, ARM_R...
./CrossVul/dataset_final_sorted/CWE-125/c/good_501_1
crossvul-cpp_data_bad_1280_0
/* * This file includes functions to transform a concrete syntax tree (CST) to * an abstract syntax tree (AST). The main function is PyAST_FromNode(). * */ #include "Python.h" #include "Python-ast.h" #include "node.h" #include "ast.h" #include "token.h" #include "pythonrun.h" #include <assert.h> #include <stdbool....
./CrossVul/dataset_final_sorted/CWE-125/c/bad_1280_0
crossvul-cpp_data_bad_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/bad_4019_1
crossvul-cpp_data_good_5094_0
/* $Id: fpm_status.c 312262 2011-06-18 17:41:56Z felipe $ */ /* (c) 2009 Jerome Loyet */ #include "php.h" #include "SAPI.h" #include <stdio.h> #include <unistd.h> #include <fcntl.h> #ifdef HAVE_TIMES #include <sys/times.h> #endif #include "fpm_config.h" #include "fpm_log.h" #include "fpm_clock.h" #include "fpm_pr...
./CrossVul/dataset_final_sorted/CWE-125/c/good_5094_0
crossvul-cpp_data_good_4493_1
/************************************************************************* * * $Id: triostr.c,v 1.36 2010/01/26 13:02:02 breese Exp $ * * Copyright (C) 2001 Bjorn Reese and Daniel Stenberg. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_4493_1
crossvul-cpp_data_bad_4027_0
/** * FreeRDP: A Remote Desktop Protocol Implementation * RDP Security * * Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com> * Copyright 2014 Norbert Federa <norbert.federa@thincast.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in complia...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_4027_0
crossvul-cpp_data_good_950_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_950_1
crossvul-cpp_data_bad_2643_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_2643_0
crossvul-cpp_data_bad_2588_2
/* * hmp.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_2
crossvul-cpp_data_bad_5515_1
/* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2016 The PHP Group | +---------...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_5515_1
crossvul-cpp_data_bad_3328_3
/* Copyright (c) 2014. The YARA Authors. 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 conditions and the followi...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_3328_3
crossvul-cpp_data_good_457_0
//////////////////////////////////////////////////////////////////////////// // **** WAVPACK **** // // Hybrid Lossless Wavefile Compressor // // Copyright (c) 1998 - 2018 David Bryant. // // ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_457_0
crossvul-cpp_data_good_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/good_2713_0
crossvul-cpp_data_good_2703_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_2703_0
crossvul-cpp_data_good_4539_0
/* pb_decode.c -- decode a protobuf using minimal resources * * 2011 Petteri Aimonen <jpa@kapsi.fi> */ /* Use the GCC warn_unused_result attribute to check that all return values * are propagated correctly. On other compilers and gcc before 3.4.0 just * ignore the annotation. */ #if !defined(__GNUC__) || ( __GNU...
./CrossVul/dataset_final_sorted/CWE-125/c/good_4539_0