id stringlengths 25 30 | content stringlengths 14 942k | max_stars_repo_path stringlengths 49 55 |
|---|---|---|
crossvul-cpp_data_good_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/good_3951_2 |
crossvul-cpp_data_bad_2749_0 | /*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notic... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_2749_0 |
crossvul-cpp_data_good_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/good_2648_3 |
crossvul-cpp_data_good_4857_2 | /* $Id$ */
/*
* Copyright (c) 1991-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 ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_4857_2 |
crossvul-cpp_data_good_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/good_5338_0 |
crossvul-cpp_data_bad_2683_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_2683_0 |
crossvul-cpp_data_bad_1018_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_1018_0 |
crossvul-cpp_data_good_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/good_351_3 |
crossvul-cpp_data_bad_2734_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_2734_0 |
crossvul-cpp_data_bad_1423_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 th... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_1423_0 |
crossvul-cpp_data_bad_372_0 | /*
* Copyright 2013-2014 MongoDB, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_372_0 |
crossvul-cpp_data_bad_5301_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_5301_0 |
crossvul-cpp_data_bad_353_0 | /*
* Copyright (C) Andrew Tridgell 1995-1999
*
* This software may be distributed either under the terms of the
* BSD-style license that accompanies tcpdump or the GNU GPL version 2
* or later
*/
/* \summary: SMB/CIFS printer */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <netdissect-stdinc.h>
#i... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_353_0 |
crossvul-cpp_data_good_3181_0 | /* radare - LGPL - Copyright 2011-2016 - pancake */
#include <r_cons.h>
#include <r_types.h>
#include <r_util.h>
#include <r_lib.h>
#include <r_bin.h>
#include "dex/dex.h"
#define r_hash_adler32 __adler32
#include "../../hash/adler32.c"
extern struct r_bin_dbginfo_t r_bin_dbginfo_dex;
#define DEBUG_PRINTF 0
#if DEB... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_3181_0 |
crossvul-cpp_data_good_4901_1 | /*
* DBD::mysql - DBI driver for the mysql database
*
* Copyright (c) 2004-2014 Patrick Galbraith
* Copyright (c) 2013-2014 Michiel Beijen
* Copyright (c) 2004-2007 Alexey Stroganov
* Copyright (c) 2003-2005 Rudolf Lippan
* Copyright (c) 1997-2003 Jochen Wiedmann
*
* You may distribute this under th... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_4901_1 |
crossvul-cpp_data_good_4493_0 | /*************************************************************************
*
* $Id: trio.c,v 1.131 2010/09/12 11:08:08 breese Exp $
*
* Copyright (C) 1998, 2009 Bjorn Reese and Daniel Stenberg.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby grant... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_4493_0 |
crossvul-cpp_data_good_3358_3 | /*
* IPV6 GSO/GRO offload support
* Linux INET6 implementation
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_3358_3 |
crossvul-cpp_data_bad_1297_0 | /*
* card-setcos.c: Support for PKI cards by Setec
*
* Copyright (C) 2001, 2002 Juha Yrjölä <juha.yrjola@iki.fi>
* Copyright (C) 2005 Antti Tapaninen <aet@cc.hut.fi>
* Copyright (C) 2005 Zetes
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser Gene... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_1297_0 |
crossvul-cpp_data_good_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/good_2648_1 |
crossvul-cpp_data_good_3956_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_3956_0 |
crossvul-cpp_data_bad_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/bad_2946_0 |
crossvul-cpp_data_good_486_0 | /* -*- c-basic-offset: 8 -*-
rdesktop: A Remote Desktop Protocol client.
ASN.1 utility functions
Copyright 2012-2017 Henrik Andersson <hean01@cendio.se> for Cendio AB
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_486_0 |
crossvul-cpp_data_bad_3190_0 | 404: Not Found | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_3190_0 |
crossvul-cpp_data_bad_5082_0 | /*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is ... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_5082_0 |
crossvul-cpp_data_bad_289_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_289_0 |
crossvul-cpp_data_good_5293_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_5293_0 |
crossvul-cpp_data_good_2734_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_2734_0 |
crossvul-cpp_data_good_351_8 | /*
* card-iasecc.c: Support for IAS/ECC smart cards
*
* Copyright (C) 2010 Viktor Tarasov <vtarasov@gmail.com>
* OpenTrust <www.opentrust.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Soft... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_351_8 |
crossvul-cpp_data_bad_2645_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_2645_0 |
crossvul-cpp_data_bad_2689_0 | /*
* Copyright (c) 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 paragraph in... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_2689_0 |
crossvul-cpp_data_good_157_1 | /*
* This file is part of Espruino, a JavaScript interpreter for Microcontrollers
*
* Copyright (C) 2013 Gordon Williams <gw@pur3.co.uk>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_157_1 |
crossvul-cpp_data_good_4652_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_4652_0 |
crossvul-cpp_data_bad_5314_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_5314_0 |
crossvul-cpp_data_bad_3358_3 | /*
* IPV6 GSO/GRO offload support
* Linux INET6 implementation
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any ... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_3358_3 |
crossvul-cpp_data_bad_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/bad_4232_0 |
crossvul-cpp_data_bad_3947_0 | /**
* FreeRDP: A Remote Desktop Protocol Implementation
* Redirected Parallel Port Device Service
*
* Copyright 2010 O.S. Systems Software Ltda.
* Copyright 2010 Eduardo Fiss Beloni <beloni@ossystems.com.br>
* Copyright 2015 Thincast Technologies GmbH
* Copyright 2015 DI (FH) Martin Haimberger <martin.haimberger... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_3947_0 |
crossvul-cpp_data_bad_2648_0 | /*
* Copyright (C) 1999 WIDE Project.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condit... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_2648_0 |
crossvul-cpp_data_bad_2754_0 | /*
* Copyright (c) 1988, 1989, 1990, 1991, 1993, 1994
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that: (1) source code distributions
* retain the above copyright notice and this ... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_2754_0 |
crossvul-cpp_data_good_2588_2 | /*
* hmp.c -- Midi Wavetable Processing library
*
* Copyright (C) WildMIDI Developers 2001-2016
*
* This file is part of WildMIDI.
*
* WildMIDI is free software: you can redistribute and/or modify the player
* under the terms of the GNU General Public License and you can redistribute
* and/or modify the librar... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_2588_2 |
crossvul-cpp_data_bad_486_0 | /* -*- c-basic-offset: 8 -*-
rdesktop: A Remote Desktop Protocol client.
ASN.1 utility functions
Copyright 2012-2017 Henrik Andersson <hean01@cendio.se> for Cendio AB
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_486_0 |
crossvul-cpp_data_good_2682_0 | /*
* Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 2000
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that: (1) source code distributions
* retain the ab... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_2682_0 |
crossvul-cpp_data_good_5313_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% W W PPPP GGGG ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_5313_0 |
crossvul-cpp_data_bad_5239_2 | /**
* Test that the crafted TGA file doesn't trigger OOB reads.
*/
#include "gd.h"
#include "gdtest.h"
static size_t read_test_file(char **buffer, char *basename);
int main()
{
gdImagePtr im;
char *buffer;
size_t size;
size = read_test_file(&buffer, "heap_overflow.tga");
im = gdImageCreateF... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_5239_2 |
crossvul-cpp_data_good_3209_1 | /*
* 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_3209_1 |
crossvul-cpp_data_good_2727_0 | /*
* Copyright (c) 1998-2007 The TCPDUMP project
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that: (1) source code
* distributions retain the above copyright notice and this paragraph
* in its entirety, and (2) distributions including binary code i... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_2727_0 |
crossvul-cpp_data_good_3328_3 | /*
Copyright (c) 2014. The YARA Authors. All Rights Reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the followi... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_3328_3 |
crossvul-cpp_data_good_1854_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_1854_0 |
crossvul-cpp_data_bad_351_6 | /*
* Support for ePass2003 smart cards
*
* Copyright (C) 2008, Weitao Sun <weitao@ftsafe.com>
* Copyright (C) 2011, Xiaoshuo Wu <xiaoshuo@ftsafe.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free ... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_351_6 |
crossvul-cpp_data_good_2700_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_2700_0 |
crossvul-cpp_data_good_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/good_2644_9 |
crossvul-cpp_data_bad_766_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_766_0 |
crossvul-cpp_data_bad_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/bad_2861_1 |
crossvul-cpp_data_good_2588_1 | /*
* hmi.c -- Midi Wavetable Processing library
*
* Copyright (C) WildMIDI Developers 2001-2016
*
* This file is part of WildMIDI.
*
* WildMIDI is free software: you can redistribute and/or modify the player
* under the terms of the GNU General Public License and you can redistribute
* and/or modify the librar... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_2588_1 |
crossvul-cpp_data_good_1016_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_1016_0 |
crossvul-cpp_data_good_5239_2 | /**
* Test that crafted TGA files don't trigger OOB reads.
*/
#include "gd.h"
#include "gdtest.h"
static void check_file(char *basename);
static size_t read_test_file(char **buffer, char *basename);
int main()
{
check_file("heap_overflow_1.tga");
check_file("heap_overflow_2.tga");
return gdNumFailu... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_5239_2 |
crossvul-cpp_data_good_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/good_5491_1 |
crossvul-cpp_data_good_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/good_2644_5 |
crossvul-cpp_data_bad_3068_1 | /*
* Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/lice... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_3068_1 |
crossvul-cpp_data_good_5306_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% W W PPPP GGGG ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_5306_0 |
crossvul-cpp_data_bad_2671_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_2671_0 |
crossvul-cpp_data_bad_3358_1 | /*
* IPv6 output functions
* Linux INET6 implementation
*
* Authors:
* Pedro Roque <roque@di.fc.ul.pt>
*
* Based on linux/net/ipv4/ip_output.c
*
* 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 ... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_3358_1 |
crossvul-cpp_data_bad_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/bad_2777_0 |
crossvul-cpp_data_good_328_0 | /*
* Copyright (c) 2001
* Fortress Technologies, Inc. All rights reserved.
* Charlie Lenahan (clenahan@fortresstech.com)
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that: (1) source code distributions
* retain the above copyright notice and ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_328_0 |
crossvul-cpp_data_good_767_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_767_0 |
crossvul-cpp_data_bad_933_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_933_0 |
crossvul-cpp_data_bad_2711_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_2711_0 |
crossvul-cpp_data_good_353_0 | /*
* Copyright (C) Andrew Tridgell 1995-1999
*
* This software may be distributed either under the terms of the
* BSD-style license that accompanies tcpdump or the GNU GPL version 2
* or later
*/
/* \summary: SMB/CIFS printer */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <netdissect-stdinc.h>
#i... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_353_0 |
crossvul-cpp_data_good_2443_0 | /*
* plistutil.c
* Simple tool to convert a plist into different formats
*
* Copyright (c) 2009-2015 Martin Szulecki All Rights Reserved.
* Copyright (c) 2008 Zach C. All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Publ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_2443_0 |
crossvul-cpp_data_good_5241_1 | /*
TIFF - Tagged Image File Format Encapsulation for GD Library
gd_tiff.c
Copyright (C) Pierre-A. Joye, M. Retallack
---------------------------------------------------------------------------
**
** Permission to use, copy, modify, and distribute this software and its
** documentation for any pur... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_5241_1 |
crossvul-cpp_data_good_1984_1 | /*
* Copyright (c) 1999-2000 Image Power, Inc. and the University of
* British Columbia.
* Copyright (c) 2001-2003 Michael David Adams.
* All rights reserved.
*/
/* __START_OF_JASPER_LICENSE__
*
* JasPer License Version 2.0
*
* Copyright (c) 2001-2006 Michael David Adams
* Copyright (c) 1999-2000 Image P... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_1984_1 |
crossvul-cpp_data_good_4541_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_4541_0 |
crossvul-cpp_data_good_5201_4 | /*
We test that a 8bpp TGA file will be gracefully rejected by
gdImageCreateFromTga().
*/
#include <stdio.h>
#include "gd.h"
#include "gdtest.h"
int main(int argc, char **argv)
{
gdImagePtr im;
FILE *fp = gdTestFileOpen("tga/bug00247a.tga");
im = gdImageCreateFromTga(fp);
gdTestAssert(im == NULL);
... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_5201_4 |
crossvul-cpp_data_good_2729_0 | /*
* Copyright (C) 1999 WIDE Project.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condit... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_2729_0 |
crossvul-cpp_data_bad_3945_0 | /**
* WinPR: Windows Portable Runtime
* NTLM Security Package (Message)
*
* Copyright 2011-2014 Marc-Andre Moreau <marcandre.moreau@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the Lic... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_3945_0 |
crossvul-cpp_data_bad_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)));
}
| ./CrossVul/dataset_final_sorted/CWE-125/c/bad_113_1 |
crossvul-cpp_data_bad_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/bad_3131_0 |
crossvul-cpp_data_good_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/good_5271_0 |
crossvul-cpp_data_good_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/good_3946_5 |
crossvul-cpp_data_bad_4827_0 | //---------------------------------------------------------------------------------
//
// Little Color Management System
// Copyright (c) 1998-2016 Marti Maria Saguer
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the "Softwar... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_4827_0 |
crossvul-cpp_data_bad_4541_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_4541_0 |
crossvul-cpp_data_good_351_13 | /*
* card-setcos.c: Support for PKI cards by Setec
*
* Copyright (C) 2001, 2002 Juha Yrjölä <juha.yrjola@iki.fi>
* Copyright (C) 2005 Antti Tapaninen <aet@cc.hut.fi>
* Copyright (C) 2005 Zetes
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser Gene... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_351_13 |
crossvul-cpp_data_good_486_1 | /* -*- c-basic-offset: 8 -*-
rdesktop: A Remote Desktop Protocol client.
Bitmap decompression routines
Copyright (C) Matthew Chapman <matthewc.unsw.edu.au> 1999-2008
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_486_1 |
crossvul-cpp_data_good_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/good_1357_0 |
crossvul-cpp_data_good_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/good_5239_0 |
crossvul-cpp_data_good_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/good_261_0 |
crossvul-cpp_data_good_3068_1 | /*
* Copyright 2015-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_1 |
crossvul-cpp_data_good_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/good_2644_4 |
crossvul-cpp_data_good_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/good_1328_0 |
crossvul-cpp_data_bad_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/bad_4856_1 |
crossvul-cpp_data_good_2706_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_2706_0 |
crossvul-cpp_data_good_267_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_267_0 |
crossvul-cpp_data_good_2644_11 | /*
* Copyright (c) 1990, 1991, 1993, 1994, 1995, 1996, 1997
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that: (1) source code distributions
* retain the above copyright notice and... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_2644_11 |
crossvul-cpp_data_good_2748_0 | /*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notic... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_2748_0 |
crossvul-cpp_data_good_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/good_3974_0 |
crossvul-cpp_data_good_351_1 | /*
* Copyright (c) 2007 Athena Smartcard Solutions Inc.
*
* 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... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_351_1 |
crossvul-cpp_data_good_2731_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_2731_0 |
crossvul-cpp_data_bad_3870_0 | /*
* The Python Imaging Library.
* $Id$
*
* decoder for PCX image data.
*
* history:
* 95-09-14 fl Created
*
* Copyright (c) Fredrik Lundh 1995.
* Copyright (c) Secret Labs AB 1997.
*
* See the README file for information on usage and redistribution.
*/
#include "Imaging.h"
int
ImagingPcxDecode(Imaging ... | ./CrossVul/dataset_final_sorted/CWE-125/c/bad_3870_0 |
crossvul-cpp_data_good_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/good_2710_0 |
crossvul-cpp_data_good_4215_0 | /*
* ndpiReader.c
*
* Copyright (C) 2011-19 - ntop.org
*
* nDPI 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 later version.
*
* nD... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_4215_0 |
crossvul-cpp_data_good_926_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-125/c/good_926_0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.