id
stringlengths
25
30
content
stringlengths
14
942k
max_stars_repo_path
stringlengths
49
55
crossvul-cpp_data_good_3339_0
/* * Driver for the NXP SAA7164 PCIe bridge * * Copyright (c) 2010-2015 Steven Toth <stoth@kernellabs.com> * * 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 L...
./CrossVul/dataset_final_sorted/CWE-125/c/good_3339_0
crossvul-cpp_data_good_2777_0
/*- * Copyright (c) 2009 Michihiro NAKAJIMA * 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 ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_2777_0
crossvul-cpp_data_good_580_0
#ifndef IGNOREALL /* dcraw.c -- Dave Coffin's raw photo decoder Copyright 1997-2015 by Dave Coffin, dcoffin a cybercom o net This is a command-line ANSI C program to convert raw photos from any digital camera on any computer running any operating system. No license is required to download and use dcraw...
./CrossVul/dataset_final_sorted/CWE-125/c/good_580_0
crossvul-cpp_data_good_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/good_2641_0
crossvul-cpp_data_bad_351_0
/* * asn1.c: ASN.1 decoding functions (DER) * * Copyright (C) 2001, 2002 Juha Yrjölä <juha.yrjola@iki.fi> * * 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 o...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_351_0
crossvul-cpp_data_bad_5481_1
/* $Id$ */ /* tiffcrop.c -- a port of tiffcp.c extended to include manipulations of * the image data through additional options listed below * * Original code: * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * Additions (c) Richard Nolde 2006-2010 * * Permission to use, ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_5481_1
crossvul-cpp_data_good_4214_0
/* * ndpi_main.c * * Copyright (C) 2011-20 - ntop.org * * This file is part of nDPI, an open source deep packet inspection * library based on the OpenDPI and PACE technology by ipoque GmbH * * nDPI is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public Lic...
./CrossVul/dataset_final_sorted/CWE-125/c/good_4214_0
crossvul-cpp_data_good_2677_0
/* * Copyright (c) 2003 Bruce M. Simpson <bms@spc.org> * 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, th...
./CrossVul/dataset_final_sorted/CWE-125/c/good_2677_0
crossvul-cpp_data_good_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/good_2925_0
crossvul-cpp_data_good_411_0
/* regcomp.c */ /* * 'A fair jaw-cracker dwarf-language must be.' --Samwise Gamgee * * [p.285 of _The Lord of the Rings_, II/iii: "The Ring Goes South"] */ /* This file contains functions for compiling a regular expression. See * also regexec.c which funnily enough, contains functions for exe...
./CrossVul/dataset_final_sorted/CWE-125/c/good_411_0
crossvul-cpp_data_good_2687_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/good_2687_0
crossvul-cpp_data_bad_2746_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_2746_0
crossvul-cpp_data_bad_1328_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/bad_1328_0
crossvul-cpp_data_good_2747_0
/* * Copyright (c) 1998-2007 The TCPDUMP project * Copyright (c) 2009 Florian Forster * * 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...
./CrossVul/dataset_final_sorted/CWE-125/c/good_2747_0
crossvul-cpp_data_good_288_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_288_0
crossvul-cpp_data_bad_1851_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_1851_0
crossvul-cpp_data_good_5294_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_5294_0
crossvul-cpp_data_good_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/good_351_12
crossvul-cpp_data_good_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/good_351_15
crossvul-cpp_data_bad_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/bad_458_0
crossvul-cpp_data_good_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/good_2680_0
crossvul-cpp_data_bad_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/bad_2722_0
crossvul-cpp_data_bad_5296_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_5296_0
crossvul-cpp_data_bad_4019_2
/* exif-mnote-data-olympus.c * * Copyright (c) 2002, 2003 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 Lice...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_4019_2
crossvul-cpp_data_good_629_0
//////////////////////////////////////////////////////////////////////////// // **** WAVPACK **** // // Hybrid Lossless Wavefile Compressor // // Copyright (c) 1998 - 2016 David Bryant. // // ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_629_0
crossvul-cpp_data_good_2592_0
/* * VC3/DNxHD decoder. * Copyright (c) 2007 SmartJog S.A., Baptiste Coudurier <baptiste dot coudurier at smartjog dot com> * Copyright (c) 2011 MirriAd Ltd * Copyright (c) 2015 Christophe Gisquet * * 10 bit support added by MirriAd Ltd, Joseph Artsimovich <joseph@mirriad.com> * Slice multithreading and MB inter...
./CrossVul/dataset_final_sorted/CWE-125/c/good_2592_0
crossvul-cpp_data_good_4540_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_4540_0
crossvul-cpp_data_good_391_0
/* * Copyright (c) 2008-2017 Nicira, 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...
./CrossVul/dataset_final_sorted/CWE-125/c/good_391_0
crossvul-cpp_data_good_5301_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_5301_0
crossvul-cpp_data_bad_3909_0
/** * 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_3909_0
crossvul-cpp_data_bad_3943_0
/** * WinPR: Windows Portable Runtime * NTLM Security Package (Compute) * * 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_3943_0
crossvul-cpp_data_bad_2649_0
/* * Copyright (c) 1998-2004 Hannes Gredler <hannes@gredler.at> * 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, a...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_2649_0
crossvul-cpp_data_good_2644_8
/* * 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_2644_8
crossvul-cpp_data_good_702_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_702_0
crossvul-cpp_data_good_3946_0
/** * FreeRDP: A Remote Desktop Protocol Implementation * File System Virtual Channel * * Copyright 2010-2011 Vic Lee * Copyright 2010-2012 Marc-Andre Moreau <marcandre.moreau@gmail.com> * Copyright 2015 Thincast Technologies GmbH * Copyright 2015 DI (FH) Martin Haimberger <martin.haimberger@thincast.com> * Cop...
./CrossVul/dataset_final_sorted/CWE-125/c/good_3946_0
crossvul-cpp_data_bad_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/bad_268_0
crossvul-cpp_data_good_4215_1
/* * h323.c * * Copyright (C) 2015-20 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/good_4215_1
crossvul-cpp_data_good_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/good_2861_0
crossvul-cpp_data_bad_288_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_288_0
crossvul-cpp_data_bad_4216_0
/* * openvpn.c * * Copyright (C) 2011-20 - ntop.org * * OpenVPN TCP / UDP Detection - 128/160 hmac * * Detection based upon these openvpn protocol properties: * - opcode * - packet ID * - session ID * * Two (good) packets are needed to perform detection. * - First packet from client: save session ID...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_4216_0
crossvul-cpp_data_bad_3910_0
/** * FreeRDP: A Remote Desktop Protocol Implementation * RDP Core * * Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com> * Copyright 2014 DI (FH) Martin Haimberger <martin.haimberger@thincast.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_3910_0
crossvul-cpp_data_bad_329_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/bad_329_0
crossvul-cpp_data_bad_351_10
/* * card-openpgp.c: Support for OpenPGP card * * Copyright (C) 2003 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 Licen...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_351_10
crossvul-cpp_data_good_270_3
/* * 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, D. R. Commander. * For conditions of distribution and use, see the accompanying ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_270_3
crossvul-cpp_data_bad_2651_0
/* * Decode and print Zephyr packets. * * http://web.mit.edu/zephyr/doc/protocol * * Copyright (c) 2001 Nickolai Zeldovich <kolya@MIT.EDU> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that: (1) source code * distributions ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_2651_0
crossvul-cpp_data_good_331_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_331_0
crossvul-cpp_data_good_4019_0
/* exif-mnote-data-canon.c * * Copyright (c) 2002, 2003 Lutz Mueller <lutz@users.sourceforge.net> * Copyright (c) 2003 Matthieu Castet <mat-c@users.sourceforge.net> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as publishe...
./CrossVul/dataset_final_sorted/CWE-125/c/good_4019_0
crossvul-cpp_data_good_2726_0
/* * Copyright (c) 1998-2011 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_2726_0
crossvul-cpp_data_bad_5300_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_5300_0
crossvul-cpp_data_bad_290_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_290_0
crossvul-cpp_data_bad_4838_0
/* Copyright 2006-2007 Niels Provos * Copyright 2007-2012 Nick Mathewson and Niels Provos * * 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 * ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_4838_0
crossvul-cpp_data_good_3946_2
/** * FreeRDP: A Remote Desktop Protocol Implementation * Input Virtual Channel Extension * * Copyright 2013 Marc-Andre Moreau <marcandre.moreau@gmail.com> * Copyright 2015 Thincast Technologies GmbH * Copyright 2015 DI (FH) Martin Haimberger <martin.haimberger@thincast.com> * * Licensed under the Apache Licens...
./CrossVul/dataset_final_sorted/CWE-125/c/good_3946_2
crossvul-cpp_data_good_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/good_2669_0
crossvul-cpp_data_good_2672_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_2672_0
crossvul-cpp_data_good_5308_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_5308_0
crossvul-cpp_data_good_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/good_801_0
crossvul-cpp_data_good_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/good_2704_0
crossvul-cpp_data_bad_1056_0
/* * fs/cifs/smb2pdu.c * * Copyright (C) International Business Machines Corp., 2009, 2013 * Etersoft, 2012 * Author(s): Steve French (sfrench@us.ibm.com) * Pavel Shilovsky (pshilovsky@samba.org) 2012 * * Contains the routines for constructing the SMB2 PDUs themselves * *...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_1056_0
crossvul-cpp_data_bad_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/bad_700_0
crossvul-cpp_data_good_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/good_3396_1
crossvul-cpp_data_bad_5293_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_5293_0
crossvul-cpp_data_good_351_5
/* * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it wi...
./CrossVul/dataset_final_sorted/CWE-125/c/good_351_5
crossvul-cpp_data_good_5238_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_5238_0
crossvul-cpp_data_good_113_1
#include "clar_libgit2.h" #include "delta.h" void test_delta_apply__read_at_off(void) { unsigned char base[16] = { 0 }, delta[] = { 0x10, 0x10, 0xff, 0xff, 0xff, 0xff, 0xff, 0x10, 0x00, 0x00 }; void *out; size_t outlen; cl_git_fail(git_delta_apply(&out, &outlen, base, sizeof(base), delta, sizeof(delta))); } voi...
./CrossVul/dataset_final_sorted/CWE-125/c/good_113_1
crossvul-cpp_data_good_5362_0
/*- * Copyright (c) 2011 Michihiro NAKAJIMA * 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 ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_5362_0
crossvul-cpp_data_bad_5239_0
/** * File: TGA Input * * Read TGA images. */ #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" /* Function: gdImageCreateFromTga ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_5239_0
crossvul-cpp_data_good_922_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_922_0
crossvul-cpp_data_good_4496_0
/** * FreeRDP: A Remote Desktop Protocol Implementation * RLE Compressed Bitmap Stream * * Copyright 2011 Jay Sorg <jay.sorg@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"); * you m...
./CrossVul/dataset_final_sorted/CWE-125/c/good_4496_0
crossvul-cpp_data_bad_270_2
/* * rdbmp.c * * This file was part of the Independent JPEG Group's software: * Copyright (C) 1994-1996, Thomas G. Lane. * Modified 2009-2010 by Guido Vollbeding. * libjpeg-turbo Modifications: * Modified 2011 by Siarhei Siamashka. * Copyright (C) 2015, 2017-2018, D. R. Commander. * For conditions of distribut...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_270_2
crossvul-cpp_data_good_262_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_262_0
crossvul-cpp_data_bad_236_0
/* Apache 2.0 - Copyright 2007-2018 - pancake and dso class.c rewrite: Adam Pridgen <dso@rice.edu || adam.pridgen@thecoverofnight.com> */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdarg.h> #include <unistd.h> #include <r_types.h> #include <r_util.h> #include <r_bin.h> #include <math.h> #...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_236_0
crossvul-cpp_data_bad_411_0
/* regcomp.c */ /* * 'A fair jaw-cracker dwarf-language must be.' --Samwise Gamgee * * [p.285 of _The Lord of the Rings_, II/iii: "The Ring Goes South"] */ /* This file contains functions for compiling a regular expression. See * also regexec.c which funnily enough, contains functions for exe...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_411_0
crossvul-cpp_data_good_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/good_2693_0
crossvul-cpp_data_good_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/good_3955_0
crossvul-cpp_data_bad_5211_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_5211_0
crossvul-cpp_data_bad_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/bad_4843_0
crossvul-cpp_data_good_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/good_394_0
crossvul-cpp_data_good_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/good_4857_1
crossvul-cpp_data_good_3911_0
/** * FreeRDP: A Remote Desktop Protocol Implementation * Bitmap Cache V2 * * Copyright 2011 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 Licens...
./CrossVul/dataset_final_sorted/CWE-125/c/good_3911_0
crossvul-cpp_data_good_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/good_3068_0
crossvul-cpp_data_bad_270_3
/* * 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, D. R. Commander. * For conditions of distribution and use, see the accompanying ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_270_3
crossvul-cpp_data_good_4589_2
/* * The Python Imaging Library. * $Id$ * * decoder for Autodesk Animator FLI/FLC animations * * history: * 97-01-03 fl Created * 97-01-17 fl Added SS2 support (FLC) * * Copyright (c) Fredrik Lundh 1997. * Copyright (c) Secret Labs AB 1997. * * See the README file for information on usage and redistributio...
./CrossVul/dataset_final_sorted/CWE-125/c/good_4589_2
crossvul-cpp_data_bad_5306_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % W W PPPP GGGG ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_5306_0
crossvul-cpp_data_bad_351_4
/* * card-coolkey.c: Support for Coolkey * * Copyright (C) 2001, 2002 Juha Yrjölä <juha.yrjola@iki.fi> * Copyright (C) 2005,2006,2007,2008,2009,2010 Douglas E. Engert <deengert@anl.gov> * Copyright (C) 2006, Identity Alliance, Thomas Harning <thomas.harning@identityalliance.com> * Copyright (C) 2007, EMC, Russel...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_351_4
crossvul-cpp_data_good_3131_0
/*- * Copyright (c) 2008-2014 Michihiro NAKAJIMA * 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 lis...
./CrossVul/dataset_final_sorted/CWE-125/c/good_3131_0
crossvul-cpp_data_bad_2644_4
/* * Copyright (c) 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 notice and this ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_2644_4
crossvul-cpp_data_good_1851_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_1851_0
crossvul-cpp_data_bad_2648_3
/* * Decode and print Zephyr packets. * * http://web.mit.edu/zephyr/doc/protocol * * Copyright (c) 2001 Nickolai Zeldovich <kolya@MIT.EDU> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that: (1) source code * distributions ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_2648_3
crossvul-cpp_data_bad_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/bad_3372_0
crossvul-cpp_data_good_4887_0
/* Copyright (c) 2009 Dave Gamble 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, distr...
./CrossVul/dataset_final_sorted/CWE-125/c/good_4887_0
crossvul-cpp_data_good_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/good_4025_0
crossvul-cpp_data_bad_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/bad_2588_3
crossvul-cpp_data_bad_3951_2
/** * 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_3951_2
crossvul-cpp_data_bad_950_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_950_0
crossvul-cpp_data_good_4856_1
/* $Id$ */ /* * Copyright (c) 1997 Greg Ward Larson * Copyright (c) 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 notic...
./CrossVul/dataset_final_sorted/CWE-125/c/good_4856_1
crossvul-cpp_data_good_351_10
/* * card-openpgp.c: Support for OpenPGP card * * Copyright (C) 2003 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 Licen...
./CrossVul/dataset_final_sorted/CWE-125/c/good_351_10
crossvul-cpp_data_bad_1274_0
/*- * Copyright (c) 2003-2011 Tim Kientzle * Copyright (c) 2011-2012 Michihiro NAKAJIMA * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain th...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_1274_0
crossvul-cpp_data_bad_2709_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_2709_0
crossvul-cpp_data_bad_3186_0
/* * Copyright (C) 2015 Cisco Systems, Inc. and/or its affiliates. All rights reserved. * Copyright (C) 2007-2008 Sourcefire, Inc. * * Authors: Nigel Horne * * 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 * publish...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_3186_0
crossvul-cpp_data_good_2890_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_2890_0