id
stringlengths
25
30
content
stringlengths
14
942k
max_stars_repo_path
stringlengths
49
55
crossvul-cpp_data_bad_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/bad_463_0
crossvul-cpp_data_good_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/good_4825_1
crossvul-cpp_data_good_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/good_351_4
crossvul-cpp_data_good_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/good_4027_0
crossvul-cpp_data_bad_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/bad_259_0
crossvul-cpp_data_bad_5215_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_5215_1
crossvul-cpp_data_bad_5271_0
/* Capstone Disassembly Engine */ /* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2015 */ #ifdef CAPSTONE_HAS_X86 #include <string.h> #include <stdlib.h> #include "X86Mapping.h" #include "X86DisassemblerDecoder.h" #include "../../utils.h" uint64_t arch_masks[9] = { 0, 0xff, 0xffff, 0, 0xffffffff, 0, 0, 0, 0...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_5271_0
crossvul-cpp_data_good_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/good_141_0
crossvul-cpp_data_bad_376_0
/*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | * / __| | | | |_) | | * | (__| |_| | _ <| |___ * \___|\...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_376_0
crossvul-cpp_data_good_5297_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_5297_0
crossvul-cpp_data_bad_2911_1
/* * USB Attached SCSI * Note that this is not the same as the USB Mass Storage driver * * Copyright Hans de Goede <hdegoede@redhat.com> for Red Hat, Inc. 2013 - 2016 * Copyright Matthew Wilcox for Intel Corp, 2010 * Copyright Sarah Sharp for Intel Corp, 2010 * * Distributed under the terms of the GNU GPL, vers...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_2911_1
crossvul-cpp_data_good_3412_0
/* * Copyright (c) by Jaroslav Kysela <perex@perex.cz> * Copyright (c) 2009 by Krzysztof Helt * Routines for control of MPU-401 in UART mode * * MPU-401 supports UART mode which is not capable generate transmit * interrupts thus output is done via polling. Also, if irq < 0, then * input is done also via po...
./CrossVul/dataset_final_sorted/CWE-125/c/good_3412_0
crossvul-cpp_data_good_2935_0
/* radare - LGPL - Copyright 2012-2017 - pancake, Fedor Sakharov */ #define D0 if(1) #define D1 if(1) #include <errno.h> #define DWARF_DUMP 0 #if DWARF_DUMP #define DBGFD stdout #else #define DBGFD NULL #endif #include <r_bin.h> #include <r_bin_dwarf.h> #include <r_core.h> #define STANDARD_OPERAND_COUNT_DWARF2 9 ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_2935_0
crossvul-cpp_data_bad_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/bad_4496_0
crossvul-cpp_data_good_3142_0
/* GStreamer ASF/WMV/WMA demuxer * Copyright (C) 1999 Erik Walthinsen <omega@cse.ogi.edu> * Copyright (C) 2006-2009 Tim-Philipp Müller <tim centricular net> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the...
./CrossVul/dataset_final_sorted/CWE-125/c/good_3142_0
crossvul-cpp_data_bad_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/bad_3911_0
crossvul-cpp_data_good_4689_0
// SPDX-License-Identifier: GPL-2.0-only /* * linux/drivers/block/floppy.c * * Copyright (C) 1991, 1992 Linus Torvalds * Copyright (C) 1993, 1994 Alain Knaff * Copyright (C) 1998 Alan Cox */ /* * 02.12.91 - Changed to static variables to indicate need for reset * and recalibrate. This makes some things e...
./CrossVul/dataset_final_sorted/CWE-125/c/good_4689_0
crossvul-cpp_data_good_486_6
/* -*- c-basic-offset: 8 -*- rdesktop: A Remote Desktop Protocol client. Protocol services - Multipoint Communications Service Copyright (C) Matthew Chapman <matthewc.unsw.edu.au> 1999-2008 Copyright 2005-2011 Peter Astrand <astrand@cendio.se> for Cendio AB Copyright 2018 Henrik Andersson <hean01@cendio....
./CrossVul/dataset_final_sorted/CWE-125/c/good_486_6
crossvul-cpp_data_bad_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/bad_4250_0
crossvul-cpp_data_good_1853_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_1853_0
crossvul-cpp_data_good_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/good_4019_2
crossvul-cpp_data_bad_2924_0
/* -*- linux-c -*- GTCO digitizer USB driver TO CHECK: Is pressure done right on report 5? Copyright (C) 2006 GTCO CalComp 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; version 2 of the Lic...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_2924_0
crossvul-cpp_data_bad_467_0
/* * MXF demuxer. * Copyright (c) 2006 SmartJog S.A., Baptiste Coudurier <baptiste dot coudurier at smartjog 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 Lesser General Public * License as published by the Free Softw...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_467_0
crossvul-cpp_data_bad_2716_0
/** * Copyright (c) 2012 * * Gregory Detal <gregory.detal@uclouvain.be> * Christoph Paasch <christoph.paasch@uclouvain.be> * * 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 cod...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_2716_0
crossvul-cpp_data_good_701_0
/* * SSLv3/TLSv1 client-side functions * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the L...
./CrossVul/dataset_final_sorted/CWE-125/c/good_701_0
crossvul-cpp_data_bad_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/bad_331_0
crossvul-cpp_data_good_2698_0
/* * 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/good_2698_0
crossvul-cpp_data_bad_220_0
/* * VC-1 and WMV3 decoder * Copyright (c) 2011 Mashiat Sarker Shakkhar * Copyright (c) 2006-2007 Konstantin Shishkov * Partly based on vc9.c (c) 2005 Anonymous, Alex Beregszaszi, Michael Niedermayer * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_220_0
crossvul-cpp_data_good_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/good_2643_0
crossvul-cpp_data_bad_3412_0
/* * Copyright (c) by Jaroslav Kysela <perex@perex.cz> * Copyright (c) 2009 by Krzysztof Helt * Routines for control of MPU-401 in UART mode * * MPU-401 supports UART mode which is not capable generate transmit * interrupts thus output is done via polling. Also, if irq < 0, then * input is done also via po...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_3412_0
crossvul-cpp_data_good_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/good_2644_1
crossvul-cpp_data_good_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/good_2708_0
crossvul-cpp_data_bad_2714_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_2714_0
crossvul-cpp_data_bad_4792_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % M M AAA TTTTT L AAA BBBB ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_4792_0
crossvul-cpp_data_bad_949_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_949_0
crossvul-cpp_data_bad_351_3
/* * card-cac.c: Support for CAC 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,2006,2007,2008,2009,2010 Douglas E. Engert <deengert@anl.gov> * Copyright (C) 2006, Identity Alliance, Thomas Harning <thomas.h...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_351_3
crossvul-cpp_data_bad_5330_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_5330_0
crossvul-cpp_data_bad_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/bad_351_9
crossvul-cpp_data_bad_2644_9
/* * Copyright (C) 2001 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 conditio...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_2644_9
crossvul-cpp_data_good_468_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_468_0
crossvul-cpp_data_bad_1357_0
/* * Copyright (c) 2018, SUSE LLC. * * This program is licensed under the BSD license, read LICENSE.BSD * for further information */ /* * repodata.c * * Manage data coming from one repository * * a repository can contain multiple repodata entries, consisting of * different sets of keys and different sets of...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_1357_0
crossvul-cpp_data_good_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/good_144_0
crossvul-cpp_data_good_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/good_181_0
crossvul-cpp_data_bad_2723_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/bad_2723_0
crossvul-cpp_data_good_3905_0
/** * FreeRDP: A Remote Desktop Protocol Implementation * Windowing Alternate Secondary Orders * * Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com> * Copyright 2011 Roman Barabanov <romanbarabanov@gmail.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_3905_0
crossvul-cpp_data_bad_5249_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_5249_0
crossvul-cpp_data_good_1283_0
/* * This file includes functions to transform a concrete syntax tree (CST) to * an abstract syntax tree (AST). The main function is Ta3AST_FromNode(). * */ #include "Python.h" #include "Python-ast.h" #include "node.h" #include "ast.h" #include "token.h" #include "pythonrun.h" #include <assert.h> // VS 2010 doesn...
./CrossVul/dataset_final_sorted/CWE-125/c/good_1283_0
crossvul-cpp_data_good_157_2
/* * 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/good_157_2
crossvul-cpp_data_good_5316_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_5316_0
crossvul-cpp_data_good_2924_0
/* -*- linux-c -*- GTCO digitizer USB driver TO CHECK: Is pressure done right on report 5? Copyright (C) 2006 GTCO CalComp 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; version 2 of the Lic...
./CrossVul/dataset_final_sorted/CWE-125/c/good_2924_0
crossvul-cpp_data_bad_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/bad_4539_0
crossvul-cpp_data_good_2657_0
/* * Copyright (c) 1988, 1989, 1990, 1991, 1992, 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...
./CrossVul/dataset_final_sorted/CWE-125/c/good_2657_0
crossvul-cpp_data_bad_2914_0
/* * USB HID support for Linux * * Copyright (c) 1999 Andreas Gal * Copyright (c) 2000-2005 Vojtech Pavlik <vojtech@suse.cz> * Copyright (c) 2005 Michael Haboustak <mike-@cinci.rr.com> for Concept2, Inc * Copyright (c) 2007-2008 Oliver Neukum * Copyright (c) 2006-2010 Jiri Kosina */ /* * This program is...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_2914_0
crossvul-cpp_data_good_5491_2
/* * 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_5491_2
crossvul-cpp_data_bad_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/bad_351_5
crossvul-cpp_data_bad_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/bad_4540_0
crossvul-cpp_data_good_2442_0
/* * base64.c * base64 encode/decode implementation * * Copyright (c) 2011 Nikias Bassen, All Rights Reserved. * * 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_2442_0
crossvul-cpp_data_good_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/good_4838_0
crossvul-cpp_data_good_1282_1
/* * This file includes functions to transform a concrete syntax tree (CST) to * an abstract syntax tree (AST). The main function is Ta27AST_FromNode(). * */ #include "Python.h" #include "Python-ast.h" #include "grammar.h" #include "node.h" #include "pyarena.h" #include "ast.h" #include "token.h" #include "parseto...
./CrossVul/dataset_final_sorted/CWE-125/c/good_1282_1
crossvul-cpp_data_bad_922_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_922_0
crossvul-cpp_data_good_3176_0
/* * INET An implementation of the TCP/IP protocol suite for the LINUX * operating system. INET is implemented using the BSD Socket * interface as the means of communication with the user level. * * The IP to API glue. * * Authors: see ip.c * * Fixes: * Many : Split from ip.c , see ip.c for history. ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_3176_0
crossvul-cpp_data_good_2715_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_2715_0
crossvul-cpp_data_good_140_1
/* radare - LGPL - Copyright 2011-2018 - earada, pancake */ #include <r_core.h> #include "r_util.h" #define DBSPATH "/share/radare2/" R2_VERSION "/fcnsign" #define is_in_range(at, from, sz) ((at) >= (from) && (at) < ((from) + (sz))) #define VA_FALSE 0 #define VA_TRUE 1 #define VA_NOREBASE 2 #define IS_MODE_S...
./CrossVul/dataset_final_sorted/CWE-125/c/good_140_1
crossvul-cpp_data_bad_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/bad_263_0
crossvul-cpp_data_bad_3942_0
/** * FreeRDP: A Remote Desktop Protocol Implementation * Cliprdr common * * Copyright 2013 Marc-Andre Moreau <marcandre.moreau@gmail.com> * Copyright 2015 Thincast Technologies GmbH * Copyright 2015 DI (FH) Martin Haimberger <martin.haimberger@thincast.com> * Copyright 2019 Kobi Mizrachi <kmizrachi18@gmail.com>...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_3942_0
crossvul-cpp_data_good_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/good_2667_0
crossvul-cpp_data_good_5300_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_5300_0
crossvul-cpp_data_good_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/good_2649_0
crossvul-cpp_data_bad_4019_3
/* exif-mnote-data-pentax.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 Licen...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_4019_3
crossvul-cpp_data_good_4840_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/good_4840_0
crossvul-cpp_data_good_3254_1
/* * Routines having to do with the 'struct sk_buff' memory handlers. * * Authors: Alan Cox <alan@lxorguk.ukuu.org.uk> * Florian La Roche <rzsfl@rz.uni-sb.de> * * Fixes: * Alan Cox : Fixed the worst of the load * balancer bugs. * Dave Platt : Interrupt stacking fix. * Richard Kooijman : Timestamp fixe...
./CrossVul/dataset_final_sorted/CWE-125/c/good_3254_1
crossvul-cpp_data_bad_139_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_139_0
crossvul-cpp_data_good_3208_0
/* * Yerase's TNEF Stream Reader Library * Copyright (C) 2003 Randall E. Hand * * 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 ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_3208_0
crossvul-cpp_data_good_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/good_3953_0
crossvul-cpp_data_bad_2916_0
/* * Released under the GPLv2 only. * SPDX-License-Identifier: GPL-2.0 */ #include <linux/usb.h> #include <linux/usb/ch9.h> #include <linux/usb/hcd.h> #include <linux/usb/quirks.h> #include <linux/module.h> #include <linux/slab.h> #include <linux/device.h> #include <asm/byteorder.h> #include "usb.h" #define USB_M...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_2916_0
crossvul-cpp_data_bad_926_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_926_0
crossvul-cpp_data_bad_5491_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/bad_5491_1
crossvul-cpp_data_good_2692_0
/* * Copyright (C) 1998 and 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 ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_2692_0
crossvul-cpp_data_bad_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/bad_3394_0
crossvul-cpp_data_bad_5308_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_5308_0
crossvul-cpp_data_bad_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/bad_2712_0
crossvul-cpp_data_good_2916_0
/* * Released under the GPLv2 only. * SPDX-License-Identifier: GPL-2.0 */ #include <linux/usb.h> #include <linux/usb/ch9.h> #include <linux/usb/hcd.h> #include <linux/usb/quirks.h> #include <linux/module.h> #include <linux/slab.h> #include <linux/device.h> #include <asm/byteorder.h> #include "usb.h" #define USB_M...
./CrossVul/dataset_final_sorted/CWE-125/c/good_2916_0
crossvul-cpp_data_good_508_2
/* $Id$ */ /* * Copyright (c) 2001-2010 Aaron Turner <aturner at synfin dot net> * Copyright (c) 2013-2018 Fred Klassen <tcpreplay at appneta dot com> - AppNeta * * The Tcpreplay Suite of tools is free software: you can redistribute it * and/or modify it under the terms of the GNU General Public License ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_508_2
crossvul-cpp_data_good_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/good_4216_0
crossvul-cpp_data_good_2723_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_2723_0
crossvul-cpp_data_bad_140_1
/* radare - LGPL - Copyright 2011-2018 - earada, pancake */ #include <r_core.h> #include "r_util.h" #define DBSPATH "/share/radare2/" R2_VERSION "/fcnsign" #define is_in_range(at, from, sz) ((at) >= (from) && (at) < ((from) + (sz))) #define VA_FALSE 0 #define VA_TRUE 1 #define VA_NOREBASE 2 #define IS_MODE_S...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_140_1
crossvul-cpp_data_bad_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/bad_459_0
crossvul-cpp_data_good_266_0
/* * 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/good_266_0
crossvul-cpp_data_bad_5007_1
/* $Id: minissdpd.c,v 1.50 2015/08/06 14:05:49 nanard Exp $ */ /* vim: tabstop=4 shiftwidth=4 noexpandtab * MiniUPnP project * (c) 2007-2016 Thomas Bernard * website : http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ * This software is subject to the conditions detailed * in the LICENCE file provided wit...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_5007_1
crossvul-cpp_data_good_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/good_2746_0
crossvul-cpp_data_bad_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/bad_4887_0
crossvul-cpp_data_bad_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/bad_3328_2
crossvul-cpp_data_bad_3396_0
/* 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/bad_3396_0
crossvul-cpp_data_bad_2648_1
/* * 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_2648_1
crossvul-cpp_data_good_5211_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/good_5211_0
crossvul-cpp_data_bad_1016_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_1016_0
crossvul-cpp_data_bad_2710_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_2710_0
crossvul-cpp_data_bad_3974_0
/* * ssh.c * * Copyright (C) 2009-2011 by ipoque GmbH * 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 ...
./CrossVul/dataset_final_sorted/CWE-125/c/bad_3974_0
crossvul-cpp_data_good_2721_0
/* * Copyright (c) 1998-2006 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_2721_0
crossvul-cpp_data_good_5237_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_5237_0