id stringlengths 25 30 | content stringlengths 14 942k | max_stars_repo_path stringlengths 49 55 |
|---|---|---|
crossvul-cpp_data_good_4232_0 | /*
** $Id: lgc.c $
** Garbage Collector
** See Copyright Notice in lua.h
*/
#define lgc_c
#define LUA_CORE
#include "lprefix.h"
#include <stdio.h>
#include <string.h>
#include "lua.h"
#include "ldebug.h"
#include "ldo.h"
#include "lfunc.h"
#include "lgc.h"
#include "lmem.h"
#include "lobject.h"
#include "lstate.h... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_4232_0 |
crossvul-cpp_data_good_2657_1 | /*
* Copyright (C) 2002 WIDE Project.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condit... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_2657_1 |
crossvul-cpp_data_good_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/good_147_0 |
crossvul-cpp_data_good_4831_1 | ////////////////////////////////////////////////////////////////////////////
// **** WAVPACK **** //
// Hybrid Lossless Wavefile Compressor //
// Copyright (c) 1998 - 2013 Conifer Software. //
// ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_4831_1 |
crossvul-cpp_data_good_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/good_3943_0 |
crossvul-cpp_data_bad_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/bad_5237_0 |
crossvul-cpp_data_good_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/good_1274_0 |
crossvul-cpp_data_good_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/good_220_0 |
crossvul-cpp_data_bad_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/bad_2747_0 |
crossvul-cpp_data_good_2804_1 | #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_2804_1 |
crossvul-cpp_data_good_1852_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_1852_0 |
crossvul-cpp_data_bad_3255_0 | /*
* 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/bad_3255_0 |
crossvul-cpp_data_good_5299_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_5299_0 |
crossvul-cpp_data_bad_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/bad_2721_0 |
crossvul-cpp_data_bad_2588_4 | /*
* mus_wm.c -- Midi Wavetable Processing library
*
* Copyright (C) WildMIDI Developers 2001-2016
*
* This file is part of WildMIDI.
*
* WildMIDI is free software: you can redistribute and/or modify the player
* under the terms of the GNU General Public License and you can redistribute
* and/or modify the lib... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_2588_4 |
crossvul-cpp_data_good_2640_0 | /*
* Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that: (1) source code distributions
* retain the above copyright noti... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_2640_0 |
crossvul-cpp_data_good_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/good_2911_1 |
crossvul-cpp_data_bad_486_7 | /* -*- c-basic-offset: 8 -*-
rdesktop: A Remote Desktop Protocol client.
RDP order processing
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
the Fr... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_486_7 |
crossvul-cpp_data_good_1330_0 | /*
* Copyright (c) Red Hat Inc.
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, dist... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_1330_0 |
crossvul-cpp_data_good_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/good_3328_0 |
crossvul-cpp_data_good_5248_1 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_5248_1 |
crossvul-cpp_data_good_89_0 | /*
* Copyright (c) Christos Zoulas 2003.
* All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice immediately at t... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_89_0 |
crossvul-cpp_data_good_3376_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_3376_0 |
crossvul-cpp_data_bad_925_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_925_0 |
crossvul-cpp_data_bad_5307_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_5307_0 |
crossvul-cpp_data_bad_3197_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_3197_0 |
crossvul-cpp_data_good_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/good_139_0 |
crossvul-cpp_data_good_264_0 | /*
* Copyright: (c) 2000 United States Government as represented by the
* Secretary of the Navy. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code mus... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_264_0 |
crossvul-cpp_data_good_5296_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_5296_0 |
crossvul-cpp_data_bad_2690_0 | /*
* Copyright (c) 2004 - Michael Richardson <mcr@xelerance.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that: (1) source code distributions
* retain the above copyright notice and this paragraph in its entirety, (2)
* distributions including b... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_2690_0 |
crossvul-cpp_data_bad_5297_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_5297_0 |
crossvul-cpp_data_good_923_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_923_0 |
crossvul-cpp_data_bad_3293_0 | /* radare2 - LGPL - Copyright 2017 - pancake, cgvwzq */
#include <r_types.h>
#include <r_util.h>
#include <r_lib.h>
#include <r_bin.h>
#include "wasm.h"
// Consume functions
static size_t consume_u32 (ut8 *buf, ut8 *max, ut32 *out, ut32 *offset) {
size_t n;
if (!buf || !max || !out) {
return 0;
}
if (!(n = rea... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_3293_0 |
crossvul-cpp_data_bad_2612_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_2612_0 |
crossvul-cpp_data_bad_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/bad_3208_0 |
crossvul-cpp_data_good_3255_0 | /*
* 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_3255_0 |
crossvul-cpp_data_bad_5338_0 | /*
* 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) 2006-2012 Jiri Kosina
*/
/*
* This program is free software; you can redistribute it and/or... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_5338_0 |
crossvul-cpp_data_good_2691_1 | /*
* 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_2691_1 |
crossvul-cpp_data_good_768_1 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_768_1 |
crossvul-cpp_data_good_2572_0 | /*
* Monkey's Audio lossless audio decoder
* Copyright (c) 2007 Benjamin Zores <ben@geexbox.org>
* based upon libdemac from Dave Chapman.
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as publi... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_2572_0 |
crossvul-cpp_data_good_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/good_2900_0 |
crossvul-cpp_data_good_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/good_290_0 |
crossvul-cpp_data_good_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/good_3910_0 |
crossvul-cpp_data_bad_1178_0 | /** @file mat4.c
* Matlab MAT version 4 file functions
* @ingroup MAT
*/
/*
* Copyright (c) 2005-2019, Christopher C. Hulbert
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redis... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_1178_0 |
crossvul-cpp_data_bad_3946_5 | /**
* FreeRDP: A Remote Desktop Protocol Implementation
* RDP Protocol Security Negotiation
*
* Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
* Copyright 2014 Norbert Federa <norbert.federa@thincast.com>
* Copyright 2015 Thincast Technologies GmbH
* Copyright 2015 DI (FH) Martin Haimberger <marti... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_3946_5 |
crossvul-cpp_data_bad_2644_5 | /* $OpenBSD: print-gre.c,v 1.6 2002/10/30 03:04:04 fgsch Exp $ */
/*
* Copyright (c) 2002 Jason L. Wright (jason@thought.net)
* 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. Redistr... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_2644_5 |
crossvul-cpp_data_bad_235_0 | /* radare2 - LGPL - Copyright 2016-2017 - Davis, Alex Kornitzer */
#include <r_util.h>
#include "mdmp.h"
ut64 r_bin_mdmp_get_paddr(struct r_bin_mdmp_obj *obj, ut64 vaddr) {
/* FIXME: Will only resolve exact matches, probably no need to fix as
** this function will become redundant on the optimisation stage */
str... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_235_0 |
crossvul-cpp_data_bad_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/bad_5238_0 |
crossvul-cpp_data_bad_210_1 | /*
* GPAC - Multimedia Framework C SDK
*
* Authors: Jean Le Feuvre
* Copyright (c) Telecom ParisTech 2000-2012
* All rights reserved
*
* This file is part of GPAC / ISO Media File Format sub-project
*
* GPAC is free software; you can redistribute it and/or modify
* it under the terms of the GNU L... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_210_1 |
crossvul-cpp_data_bad_264_0 | /*
* Copyright: (c) 2000 United States Government as represented by the
* Secretary of the Navy. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code mus... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_264_0 |
crossvul-cpp_data_bad_2685_0 | /*
* Copyright (C) 2000, Richard Sharpe
*
* This software may be distributed either under the terms of the
* BSD-style license that accompanies tcpdump or under the GNU GPL
* version 2 or later.
*
* print-beep.c
*
*/
/* \summary: Blocks Extensible Exchange Protocol (BEEP) printer */
#ifdef HAVE_CONFIG_H
#inc... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_2685_0 |
crossvul-cpp_data_good_615_0 | ////////////////////////////////////////////////////////////////////////////
// **** WAVPACK **** //
// Hybrid Lossless Wavefile Compressor //
// Copyright (c) 1998 - 2016 David Bryant. //
// ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_615_0 |
crossvul-cpp_data_good_2730_0 | /*
* Copyright (c) 1998-2007 The TCPDUMP project
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that: (1) source code
* distributions retain the above copyright notice and this paragraph
* in its entirety, and (2) distributions including binary code i... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_2730_0 |
crossvul-cpp_data_good_706_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_706_0 |
crossvul-cpp_data_good_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/good_2714_0 |
crossvul-cpp_data_good_2690_0 | /*
* Copyright (c) 2004 - Michael Richardson <mcr@xelerance.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that: (1) source code distributions
* retain the above copyright notice and this paragraph in its entirety, (2)
* distributions including b... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_2690_0 |
crossvul-cpp_data_bad_950_1 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_950_1 |
crossvul-cpp_data_bad_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/bad_5362_0 |
crossvul-cpp_data_good_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/good_351_14 |
crossvul-cpp_data_good_260_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_260_0 |
crossvul-cpp_data_good_486_7 | /* -*- c-basic-offset: 8 -*-
rdesktop: A Remote Desktop Protocol client.
RDP order processing
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
the Fr... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_486_7 |
crossvul-cpp_data_bad_5303_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_5303_0 |
crossvul-cpp_data_good_3412_1 | /*********************************************************************
*
* Linux multisound pinnacle/fiji driver for ALSA.
*
* 2002/06/30 Karsten Wiese:
* for now this is only used to build a pinnacle / fiji driver.
* the OSS parent of this code is designed to also support
* the multisound classic via the file m... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_3412_1 |
crossvul-cpp_data_bad_5492_1 | /*
* Copyright (c) 1999-2000 Image Power, Inc. and the University of
* British Columbia.
* Copyright (c) 2001-2003 Michael David Adams.
* All rights reserved.
*/
/* __START_OF_JASPER_LICENSE__
*
* JasPer License Version 2.0
*
* Copyright (c) 2001-2006 Michael David Adams
* Copyright (c) 1999-2000 Image P... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_5492_1 |
crossvul-cpp_data_good_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/good_113_0 |
crossvul-cpp_data_good_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/good_1056_0 |
crossvul-cpp_data_bad_2660_0 | /*
* Copyright (c) 2001
* Fortress Technologies, Inc. All rights reserved.
* Charlie Lenahan (clenahan@fortresstech.com)
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that: (1) source code distributions
* retain the above copyright notice and ... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_2660_0 |
crossvul-cpp_data_bad_142_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_142_0 |
crossvul-cpp_data_good_145_0 | /* radare - LGPL - Copyright 2010-2018 - nibble, pancake */
#include <stdio.h>
#include <r_types.h>
#include <r_util.h>
#include "mach0.h"
#define bprintf if (bin->verbose) eprintf
typedef struct _ulebr {
ut8 *p;
} ulebr;
// OMG; THIS SHOULD BE KILLED; this var exposes the local native endian, which is completely ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_145_0 |
crossvul-cpp_data_good_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/good_2651_0 |
crossvul-cpp_data_good_2861_1 | /* radare - LGPL - Copyright 2007-2017 - pancake */
#include <r_flag.h>
#include <r_util.h>
#include <r_cons.h>
#include <stdio.h>
R_LIB_VERSION(r_flag);
#define ISNULLSTR(x) (!(x) || !*(x))
#define IS_IN_SPACE(f, i) ((f)->space_idx != -1 && (i)->space != (f)->space_idx)
static const char *str_callback(RNum *user, ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_2861_1 |
crossvul-cpp_data_bad_3190_2 | 404: Not Found | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_3190_2 |
crossvul-cpp_data_good_3946_1 | /**
* FreeRDP: A Remote Desktop Protocol Implementation
* Print Virtual Channel
*
* Copyright 2010-2011 Vic Lee
* Copyright 2015 Thincast Technologies GmbH
* Copyright 2015 DI (FH) Martin Haimberger <martin.haimberger@thincast.com>
* Copyright 2016 Armin Novak <armin.novak@gmail.com>
* Copyright 2016 David PHAM... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_3946_1 |
crossvul-cpp_data_good_5302_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_5302_0 |
crossvul-cpp_data_bad_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/bad_2644_3 |
crossvul-cpp_data_good_2946_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_2946_0 |
crossvul-cpp_data_good_2666_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_2666_0 |
crossvul-cpp_data_bad_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/bad_391_0 |
crossvul-cpp_data_bad_260_0 | /*
* Copyright (c) 1988, 1989, 1990, 1991, 1993, 1994, 1995, 1996
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that: (1) source code distributions
* retain the above copyright noti... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_260_0 |
crossvul-cpp_data_good_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/good_675_0 |
crossvul-cpp_data_bad_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/bad_2726_0 |
crossvul-cpp_data_good_351_11 | /*
* card-piv.c: Support for PIV-II from NIST SP800-73
* card-default.c: Support for cards with no driver
*
* Copyright (C) 2001, 2002 Juha Yrjölä <juha.yrjola@iki.fi>
* Copyright (C) 2005-2016 Douglas E. Engert <deengert@gmail.com>
* Copyright (C) 2006, Identity Alliance, Thomas Harning <thomas.harning@identit... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_351_11 |
crossvul-cpp_data_bad_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/bad_2442_0 |
crossvul-cpp_data_bad_2728_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/bad_2728_0 |
crossvul-cpp_data_bad_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/bad_3254_2 |
crossvul-cpp_data_bad_2676_0 | /*
* Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that: (1) source code distributions
* retain the above co... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_2676_0 |
crossvul-cpp_data_good_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/good_1011_0 |
crossvul-cpp_data_bad_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/bad_580_0 |
crossvul-cpp_data_good_5215_1 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_5215_1 |
crossvul-cpp_data_bad_3412_1 | /*********************************************************************
*
* Linux multisound pinnacle/fiji driver for ALSA.
*
* 2002/06/30 Karsten Wiese:
* for now this is only used to build a pinnacle / fiji driver.
* the OSS parent of this code is designed to also support
* the multisound classic via the file m... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_3412_1 |
crossvul-cpp_data_bad_1282_2 | #include "Python.h"
#include "Python-ast.h"
#include "compile.h"
#include "node.h"
#include "grammar.h"
#include "token.h"
#include "ast.h"
#include "parsetok.h"
#include "errcode.h"
extern grammar _Ta3Parser_Grammar; /* from graminit.c */
// from Python/bltinmodule.c
static const char *
source_as_string(PyObject *cm... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_1282_2 |
crossvul-cpp_data_bad_177_0 | #include <mruby.h>
#include <mruby/array.h>
#include <mruby/class.h>
#include <mruby/proc.h>
#define fiber_ptr(o) ((struct RFiber*)mrb_ptr(o))
#define FIBER_STACK_INIT_SIZE 64
#define FIBER_CI_INIT_SIZE 8
#define CI_ACC_RESUMED -3
/*
* call-seq:
* Fiber.new{...} -> obj
*
* Creates a fiber, whose execution ... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_177_0 |
crossvul-cpp_data_bad_4219_0 | /*
* oracle.c
*
* Copyright (C) 2013 Remy Mudingay <mudingay@ill.fr>
*
* This module is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any la... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_4219_0 |
crossvul-cpp_data_good_2728_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_2728_0 |
crossvul-cpp_data_good_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/good_3396_0 |
crossvul-cpp_data_good_4219_0 | /*
* oracle.c
*
* Copyright (C) 2013 Remy Mudingay <mudingay@ill.fr>
*
* This module is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any la... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_4219_0 |
crossvul-cpp_data_good_1014_0 | /*
* QLogic iSCSI Offload Driver
* Copyright (c) 2016 Cavium Inc.
*
* This software is available under the terms of the GNU General Public License
* (GPL) Version 2, available from the file COPYING in the main directory of
* this source tree.
*/
#include "qedi_dbg.h"
#include <linux/vmalloc.h>
void
qedi_dbg_er... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_1014_0 |
crossvul-cpp_data_bad_261_0 | /*
* Copyright (c) 2000 William C. Fenner.
* All rights reserved.
*
* Kevin Steves <ks@hp.se> July 2000
* Modified to:
* - print version, type string and packet length
* - print IP address count if > 1 (-v)
* - verify checksum (-v)
* - print authentication string (-v)
*
* Redistribution and us... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_261_0 |
crossvul-cpp_data_bad_2935_0 | /* radare - LGPL - Copyright 2012-2016 - 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/bad_2935_0 |
crossvul-cpp_data_bad_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/bad_2692_0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.