id stringlengths 25 30 | content stringlengths 14 942k | max_stars_repo_path stringlengths 49 55 |
|---|---|---|
crossvul-cpp_data_good_517_0 | /**
* Copyright(C) 2011-2015 Intel Corporation All Rights Reserved.
*
* The source code, information and material ("Material") contained herein is
* owned by Intel Corporation or its suppliers or licensors, and title to such
* Material remains with Intel Corporation or its suppliers or licensors. The
... | ./CrossVul/dataset_final_sorted/CWE-787/cpp/good_517_0 |
crossvul-cpp_data_bad_4594_0 | #include "crypto.h"
#include <tier0/vprof.h>
#include <tier0/dbg.h>
#include "tier0/memdbgoff.h"
#include <sodium.h>
#include "tier0/memdbgon.h"
#ifdef STEAMNETWORKINGSOCKETS_CRYPTO_LIBSODIUM
SymmetricCryptContextBase::SymmetricCryptContextBase()
: m_ctx(nullptr), m_cbIV(0), m_cbTag(0)
{
}
void SymmetricCryptC... | ./CrossVul/dataset_final_sorted/CWE-787/cpp/bad_4594_0 |
crossvul-cpp_data_good_1979_0 | /*************************************************************************/
/* image_loader_tga.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... | ./CrossVul/dataset_final_sorted/CWE-787/cpp/good_1979_0 |
crossvul-cpp_data_bad_517_1 | #include "Enclave_t.h"
#include <cstdint>
#include <cassert>
#include "Aggregate.h"
#include "Crypto.h"
#include "Filter.h"
#include "Join.h"
#include "Project.h"
#include "Sort.h"
#include "isv_enclave.h"
#include "util.h"
// This file contains definitions of the ecalls declared in Enclave.edl. Errors originating w... | ./CrossVul/dataset_final_sorted/CWE-787/cpp/bad_517_1 |
crossvul-cpp_data_bad_3866_0 | /*
** The Sleuth Kit
**
** Brian Carrier [carrier <at> sleuthkit [dot] org]
** Copyright (c) 2006-2011 Brian Carrier, Basis Technology. All Rights reserved
** Copyright (c) 2003-2005 Brian Carrier. All rights reserved
**
** TASK
v** Copyright (c) 2002-2003 Brian Carrier, @stake Inc. All rights reserved
**
** Copyrig... | ./CrossVul/dataset_final_sorted/CWE-787/cpp/bad_3866_0 |
crossvul-cpp_data_bad_4593_0 | //====== Copyright Valve Corporation, All rights reserved. ====================
#include "steamnetworkingsockets_snp.h"
#include "steamnetworkingsockets_connections.h"
#include "crypto.h"
// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdbgon.h"
namespace SteamNetworkingSocketsLib {
st... | ./CrossVul/dataset_final_sorted/CWE-787/cpp/bad_4593_0 |
crossvul-cpp_data_bad_4243_0 | ///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2011, Industrial Light & Magic, a division of Lucas
// Digital Ltd. LLC
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the fol... | ./CrossVul/dataset_final_sorted/CWE-787/cpp/bad_4243_0 |
crossvul-cpp_data_bad_517_3 | #include "util.h"
#include <climits>
#include <cstdio>
#include "Enclave_t.h"
int printf(const char *fmt, ...) {
char buf[BUFSIZ] = {'\0'};
va_list ap;
va_start(ap, fmt);
int ret = vsnprintf(buf, BUFSIZ, fmt, ap);
va_end(ap);
ocall_print_string(buf);
return ret;
}
/** From https://stackoverflow.com/a/... | ./CrossVul/dataset_final_sorted/CWE-787/cpp/bad_517_3 |
crossvul-cpp_data_good_3866_0 | /*
** The Sleuth Kit
**
** Brian Carrier [carrier <at> sleuthkit [dot] org]
** Copyright (c) 2006-2011 Brian Carrier, Basis Technology. All Rights reserved
** Copyright (c) 2003-2005 Brian Carrier. All rights reserved
**
** TASK
v** Copyright (c) 2002-2003 Brian Carrier, @stake Inc. All rights reserved
**
** Copyrig... | ./CrossVul/dataset_final_sorted/CWE-787/cpp/good_3866_0 |
crossvul-cpp_data_good_4245_0 | ///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2004, Industrial Light & Magic, a division of Lucas
// Digital Ltd. LLC
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the f... | ./CrossVul/dataset_final_sorted/CWE-787/cpp/good_4245_0 |
crossvul-cpp_data_bad_4245_0 | ///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2004, Industrial Light & Magic, a division of Lucas
// Digital Ltd. LLC
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the f... | ./CrossVul/dataset_final_sorted/CWE-787/cpp/bad_4245_0 |
crossvul-cpp_data_good_4243_0 | ///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2011, Industrial Light & Magic, a division of Lucas
// Digital Ltd. LLC
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the fol... | ./CrossVul/dataset_final_sorted/CWE-787/cpp/good_4243_0 |
crossvul-cpp_data_good_5228_0 | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2016 Facebook, Inc. (http://www.facebook.com) |
| Copyrigh... | ./CrossVul/dataset_final_sorted/CWE-787/cpp/good_5228_0 |
crossvul-cpp_data_good_517_3 | #include "util.h"
#include <climits>
#include <cstdio>
#include "Enclave_t.h"
#include "sgx_lfence.h"
int printf(const char *fmt, ...) {
char buf[BUFSIZ] = {'\0'};
va_list ap;
va_start(ap, fmt);
int ret = vsnprintf(buf, BUFSIZ, fmt, ap);
va_end(ap);
ocall_print_string(buf);
return ret;
}
/** From http... | ./CrossVul/dataset_final_sorted/CWE-787/cpp/good_517_3 |
crossvul-cpp_data_bad_517_0 | /**
* Copyright(C) 2011-2015 Intel Corporation All Rights Reserved.
*
* The source code, information and material ("Material") contained herein is
* owned by Intel Corporation or its suppliers or licensors, and title to such
* Material remains with Intel Corporation or its suppliers or licensors. The
... | ./CrossVul/dataset_final_sorted/CWE-787/cpp/bad_517_0 |
crossvul-cpp_data_good_4593_0 | //====== Copyright Valve Corporation, All rights reserved. ====================
#include "steamnetworkingsockets_snp.h"
#include "steamnetworkingsockets_connections.h"
#include "crypto.h"
// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdbgon.h"
namespace SteamNetworkingSocketsLib {
st... | ./CrossVul/dataset_final_sorted/CWE-787/cpp/good_4593_0 |
crossvul-cpp_data_good_4594_0 | #include "crypto.h"
#include <tier0/vprof.h>
#include <tier0/dbg.h>
#include "tier0/memdbgoff.h"
#include <sodium.h>
#include "tier0/memdbgon.h"
#ifdef STEAMNETWORKINGSOCKETS_CRYPTO_LIBSODIUM
SymmetricCryptContextBase::SymmetricCryptContextBase()
: m_ctx(nullptr), m_cbIV(0), m_cbTag(0)
{
}
void SymmetricCryptC... | ./CrossVul/dataset_final_sorted/CWE-787/cpp/good_4594_0 |
crossvul-cpp_data_good_517_1 | #include "Enclave_t.h"
#include <cstdint>
#include <cassert>
#include "Aggregate.h"
#include "Crypto.h"
#include "Filter.h"
#include "Join.h"
#include "Project.h"
#include "Sort.h"
#include "isv_enclave.h"
#include "sgx_lfence.h"
#include "util.h"
// This file contains definitions of the ecalls declared in Enclave.e... | ./CrossVul/dataset_final_sorted/CWE-787/cpp/good_517_1 |
crossvul-cpp_data_bad_5478_3 | /* $Id$
*
* tiff2pdf - converts a TIFF image to a PDF document
*
* Copyright (c) 2003 Ross Finlayson
*
* 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-787/c/bad_5478_3 |
crossvul-cpp_data_bad_5257_0 | /*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2016 The PHP Group |
+---------... | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_5257_0 |
crossvul-cpp_data_good_4265_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-787/c/good_4265_0 |
crossvul-cpp_data_good_3296_0 | /*
* PNG image format
* Copyright (c) 2003 Fabrice Bellard
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (a... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_3296_0 |
crossvul-cpp_data_good_1619_0 | /* sort - sort lines of text (with all kinds of options).
Copyright (C) 1988-2014 Free Software Foundation, Inc.
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 3 of the Li... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_1619_0 |
crossvul-cpp_data_good_95_0 | ////////////////////////////////////////////////////////////////////////////
// **** WAVPACK **** //
// Hybrid Lossless Wavefile Compressor //
// Copyright (c) 1998 - 2016 David Bryant. //
// ... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_95_0 |
crossvul-cpp_data_good_4486_0 | /*
* OpenEXR (.exr) image decoder
* Copyright (c) 2006 Industrial Light & Magic, a division of Lucas Digital Ltd. LLC
* Copyright (c) 2009 Jimmy Christensen
*
* B44/B44A, Tile, UINT32 added by Jokyo Images support by CNC - French National Center for Cinema
*
* This file is part of FFmpeg.
*
* FFmpeg is free so... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_4486_0 |
crossvul-cpp_data_good_521_0 | /*
* Copyright (C) 2000-2002 Constantin Kaplinsky. All Rights Reserved.
* Copyright (C) 2000 Tridia Corporation. All Rights Reserved.
* Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved.
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU Gene... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_521_0 |
crossvul-cpp_data_bad_524_0 | /*
* GPAC - Multimedia Framework C SDK
*
* Authors: Jean Le Feuvre
* Copyright (c) Telecom ParisTech 2000-2012
* All rights reserved
*
* This file is part of GPAC / Media Tools sub-project
*
* GPAC is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser Gene... | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_524_0 |
crossvul-cpp_data_good_1338_2 | /*
Copyright 2016 Christian Hoene, Symonics GmbH
*/
#include <errno.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "mysofa_export.h"
#include "mysofa.h"
#include "../hdf/reader.h"
#include "../config.h"
/* checks file address.
* NULL is an invalid a... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_1338_2 |
crossvul-cpp_data_good_5474_3 | /* $Id$
*
* tiff2pdf - converts a TIFF image to a PDF document
*
* Copyright (c) 2003 Ross Finlayson
*
* 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-787/c/good_5474_3 |
crossvul-cpp_data_good_2311_0 | /*
* pcap-compatible 802.11 packet sniffer
*
* Copyright (C) 2006-2013 Thomas d'Otreppe
* Copyright (C) 2004, 2005 Christophe Devine
*
* 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 Foundatio... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_2311_0 |
crossvul-cpp_data_bad_96_1 | ////////////////////////////////////////////////////////////////////////////
// **** WAVPACK **** //
// Hybrid Lossless Wavefile Compressor //
// Copyright (c) 1998 - 2016 David Bryant. //
// ... | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_96_1 |
crossvul-cpp_data_good_1209_0 | /*
* This file is part of the KeepKey project.
*
* Copyright (C) 2015 KeepKey LLC
*
* 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 3 of the License, or
* (at your ... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_1209_0 |
crossvul-cpp_data_good_5479_3 | /* $Id$
*
* tiff2pdf - converts a TIFF image to a PDF document
*
* Copyright (c) 2003 Ross Finlayson
*
* 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-787/c/good_5479_3 |
crossvul-cpp_data_good_4484_0 | /*
* Vividas VIV format Demuxer
* Copyright (c) 2012 Krzysztof Klinikowski
* Copyright (c) 2010 Andrzej Szombierski
* based on vivparse Copyright (c) 2007 Måns Rullgård
*
* 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 Gen... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_4484_0 |
crossvul-cpp_data_good_3170_0 | /*
* mapi_attr.c -- Functions for handling MAPI attributes
*
* Copyright (C)1999-2006 Mark Simpson <damned@theworld.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_3170_0 |
crossvul-cpp_data_good_524_0 | /*
* GPAC - Multimedia Framework C SDK
*
* Authors: Jean Le Feuvre
* Copyright (c) Telecom ParisTech 2000-2012
* All rights reserved
*
* This file is part of GPAC / Media Tools sub-project
*
* GPAC is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser Gene... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_524_0 |
crossvul-cpp_data_good_523_0 | /*
* rfbserver.c - deal with server-side of the RFB protocol.
*/
/*
* Copyright (C) 2011-2012 D. R. Commander
* Copyright (C) 2005 Rohit Kumar, Johannes E. Schindelin
* Copyright (C) 2002 RealVNC Ltd.
* OSXvnc Copyright (C) 2001 Dan McGuirk <mcguirk@incompleteness.net>.
* Original Xvnc code Copyright (C) 1... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_523_0 |
crossvul-cpp_data_good_2776_0 | /*
* The copyright in this software is being made available under the 2-clauses
* BSD License, included below. This software may be subject to other third
* party and contributor rights, including patent rights, and no such rights
* are granted under this license.
*
* Copyright (c) 2002-2014, Universite catholiqu... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_2776_0 |
crossvul-cpp_data_good_1196_0 | /*-
* Copyright (c) 2008 Christos Zoulas
* 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 con... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_1196_0 |
crossvul-cpp_data_good_522_0 | /*
* rfbserver.c - deal with server-side of the RFB protocol.
*/
/*
* Copyright (C) 2011-2012 D. R. Commander
* Copyright (C) 2005 Rohit Kumar, Johannes E. Schindelin
* Copyright (C) 2002 RealVNC Ltd.
* OSXvnc Copyright (C) 2001 Dan McGuirk <mcguirk@incompleteness.net>.
* Original Xvnc code Copyright (C) 1... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_522_0 |
crossvul-cpp_data_good_5479_1 | /* $Id$ */
/*
* Copyright (c) 1996-1997 Sam Leffler
* Copyright (c) 1996 Pixar
*
* 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 notice appear in
* al... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_5479_1 |
crossvul-cpp_data_bad_1197_0 | /* lookup.c - implementation of IDNA2008 lookup functions
Copyright (C) 2011-2017 Simon Josefsson
Libidn2 is free software: you can redistribute it and/or modify it
under the terms of either:
* the GNU Lesser General Public License as published by the Free
Software Foundation; either version 3 of... | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_1197_0 |
crossvul-cpp_data_bad_3170_0 | /*
* mapi_attr.c -- Functions for handling MAPI attributes
*
* Copyright (C)1999-2006 Mark Simpson <damned@theworld.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2... | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_3170_0 |
crossvul-cpp_data_good_572_0 | /*
* Copyright (c) 2007 Oracle. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed 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, or t... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_572_0 |
crossvul-cpp_data_good_4490_0 | /* rsa.c
*
* Copyright (C) 2006-2020 wolfSSL Inc.
*
* This file is part of wolfSSL.
*
* wolfSSL 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) a... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_4490_0 |
crossvul-cpp_data_good_4483_0 | /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* Fluent Bit
* ==========
* Copyright (C) 2019-2020 The Fluent Bit Authors
* Copyright (C) 2015-2018 Treasure Data Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in co... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_4483_0 |
crossvul-cpp_data_bad_3108_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_3108_0 |
crossvul-cpp_data_bad_5304_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% W W PPPP GGGG ... | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_5304_0 |
crossvul-cpp_data_bad_1338_0 | /*
Copyright 2016 Christian Hoene, Symonics GmbH
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <errno.h>
#include <assert.h>
#include <inttypes.h>
#include "reader.h"
static int log2i(int a) {
return round(log2(a));
}
static int directblockRead(struct READER *reader, s... | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_1338_0 |
crossvul-cpp_data_bad_3368_0 | // imagew-bmp.c
// Part of ImageWorsener, Copyright (c) 2011 by Jason Summers.
// For more information, see the readme.txt file.
#include "imagew-config.h"
#include <stdio.h> // for SEEK_SET
#include <stdlib.h>
#include <string.h>
#define IW_INCLUDE_UTIL_FUNCTIONS
#include "imagew.h"
#define IWBMP_BI_RGB 0 //... | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_3368_0 |
crossvul-cpp_data_good_106_0 | /*
* ebtables
*
* Author:
* Bart De Schuymer <bdschuym@pandora.be>
*
* ebtables.c,v 2.0, July, 2002
*
* This code is strongly inspired by the iptables code which is
* Copyright (C) 1999 Paul `Rusty' Russell & Michael J. Neuling
*
* This program is free software; you can redistribute it and/or
* mod... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_106_0 |
crossvul-cpp_data_bad_1040_0 | /*
* auth.c - deal with authentication.
*
* This file implements authentication when setting up an RFB connection.
*/
/*
* Copyright (C) 2010, 2012-2019 D. R. Commander. All Rights Reserved.
* Copyright (C) 2010 University Corporation for Atmospheric Research.
* All Rights Reserved.
* C... | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_1040_0 |
crossvul-cpp_data_bad_4486_0 | /*
* OpenEXR (.exr) image decoder
* Copyright (c) 2006 Industrial Light & Magic, a division of Lucas Digital Ltd. LLC
* Copyright (c) 2009 Jimmy Christensen
*
* B44/B44A, Tile, UINT32 added by Jokyo Images support by CNC - French National Center for Cinema
*
* This file is part of FFmpeg.
*
* FFmpeg is free so... | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_4486_0 |
crossvul-cpp_data_bad_443_0 | /*
* uriparser - RFC 3986 URI parsing library
*
* Copyright (C) 2007, Weijia Song <songweijia@gmail.com>
* Copyright (C) 2007, Sebastian Pipping <sebastian@pipping.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the... | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_443_0 |
crossvul-cpp_data_good_2977_0 | /*
* Cryptographic API.
*
* HMAC: Keyed-Hashing for Message Authentication (RFC2104).
*
* Copyright (c) 2002 James Morris <jmorris@intercode.com.au>
* Copyright (c) 2006 Herbert Xu <herbert@gondor.apana.org.au>
*
* The HMAC implementation is derived from USAGI.
* Copyright (c) 2002 Kazunori Miyazawa <miyazawa@... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_2977_0 |
crossvul-cpp_data_good_2312_0 | /*
* 802.11 WEP replay & injection attacks
*
* Copyright (C) 2006-2013 Thomas d'Otreppe
* Copyright (C) 2004, 2005 Christophe Devine
*
* WEP decryption attack (chopchop) developed by KoreK
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Pub... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_2312_0 |
crossvul-cpp_data_bad_5479_4 | /* $Id$ */
/* tiffcrop.c -- a port of tiffcp.c extended to include manipulations of
* the image data through additional options listed below
*
* Original code:
* Copyright (c) 1988-1997 Sam Leffler
* Copyright (c) 1991-1997 Silicon Graphics, Inc.
* Additions (c) Richard Nolde 2006-2010
*
* Permission to use, ... | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_5479_4 |
crossvul-cpp_data_bad_3368_1 | // imagew-main.c
// Part of ImageWorsener, Copyright (c) 2011 by Jason Summers.
// For more information, see the readme.txt file.
#include "imagew-config.h"
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "imagew-internals.h"
// Given a color type having an alpha channel, returns the index of th... | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_3368_1 |
crossvul-cpp_data_bad_674_2 | /**
* FreeRDP: A Remote Desktop Protocol Implementation
* NSCodec Encoder
*
* Copyright 2012 Vic Lee
* Copyright 2016 Armin Novak <armin.novak@thincast.com>
* Copyright 2016 Thincast Technologies GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in comp... | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_674_2 |
crossvul-cpp_data_good_3377_0 | /**********************************************************************
regparse.c - Oniguruma (regular expression library)
**********************************************************************/
/*-
* Copyright (c) 2002-2016 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
* All rights reserved.
*
* Redistribution an... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_3377_0 |
crossvul-cpp_data_bad_4234_0 | /*
The code below is mostly derived from cx_bsdiff (written by Anthony
Tuininga, http://cx-bsdiff.sourceforge.net/). The cx_bsdiff code in
turn was derived from bsdiff, the standalone utility produced for BSD
which can be found at http://www.daemonology.net/bsdiff.
*/
#define PY_SSIZE_T_CLEAN
#include <Python... | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_4234_0 |
crossvul-cpp_data_bad_277_2 | /* This file is part of libmspack.
* (C) 2003-2011 Stuart Caie.
*
* KWAJ is a format very similar to SZDD. KWAJ method 3 (LZH) was
* written by Jeff Johnson.
*
* libmspack is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License (LGPL) version 2.1
*
... | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_277_2 |
crossvul-cpp_data_good_5479_2 | /* $Id$ */
/*
* Copyright (c) 1988-1997 Sam Leffler
* Copyright (c) 1991-1997 Silicon Graphics, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software and
* its documentation for any purpose is hereby granted without fee, provided
* that (i) the above copyright notices and this permission n... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_5479_2 |
crossvul-cpp_data_bad_95_0 | ////////////////////////////////////////////////////////////////////////////
// **** WAVPACK **** //
// Hybrid Lossless Wavefile Compressor //
// Copyright (c) 1998 - 2016 David Bryant. //
// ... | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_95_0 |
crossvul-cpp_data_bad_3373_1 | /* This file was converted by gperf_unfold_key_conv.py
from gperf output file. */
/* ANSI-C code produced by gperf version 3.0.4 */
/* Command-line: gperf -n -C -T -c -t -j1 -L ANSI-C -F,-1,0 -N unicode_unfold_key unicode_unfold_key.gperf */
/* Computed positions: -k'1-3' */
/* This gperf source file was gene... | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_3373_1 |
crossvul-cpp_data_good_1338_0 | /*
Copyright 2016 Christian Hoene, Symonics GmbH
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <errno.h>
#include <assert.h>
#include <inttypes.h>
#include "reader.h"
static int log2i(int a) {
return round(log2(a));
}
static int directblockRead(struct READER *reader, s... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_1338_0 |
crossvul-cpp_data_bad_3991_0 | /*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed... | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_3991_0 |
crossvul-cpp_data_good_4260_0 | /* FTP engine
*
* Copyright (c) 2014-2019 Joachim Nilsson <troglobit@gmail.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTW... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_4260_0 |
crossvul-cpp_data_good_1005_2 | /******************************************************************************
* pdf.c
*
* pdfresurrect - PDF history extraction tool
*
* Copyright (C) 2008-2010, 2012-2013, 2017-19, Matt Davis (enferex).
*
* Special thanks to all of the contributors: See AUTHORS.
*
* Special thanks to 757labs (757 crew), t... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_1005_2 |
crossvul-cpp_data_bad_96_2 | ////////////////////////////////////////////////////////////////////////////
// **** WAVPACK **** //
// Hybrid Lossless Wavefile Compressor //
// Copyright (c) 1998 - 2016 David Bryant. //
// ... | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_96_2 |
crossvul-cpp_data_good_526_0 | /*
* GPAC - Multimedia Framework C SDK
*
* Authors: Jean Le Feuvre
* Copyright (c) Telecom ParisTech 2005-2012
* All rights reserved
*
* This file is part of GPAC / command-line client
*
* GPAC is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General ... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_526_0 |
crossvul-cpp_data_bad_521_0 | /*
* Copyright (C) 2000-2002 Constantin Kaplinsky. All Rights Reserved.
* Copyright (C) 2000 Tridia Corporation. All Rights Reserved.
* Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved.
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU Gene... | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_521_0 |
crossvul-cpp_data_bad_1196_0 | /*-
* Copyright (c) 2008 Christos Zoulas
* 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 con... | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_1196_0 |
crossvul-cpp_data_bad_5272_0 | /*
* The copyright in this software is being made available under the 2-clauses
* BSD License, included below. This software may be subject to other third
* party and contributor rights, including patent rights, and no such rights
* are granted under this license.
*
* Copyright (c) 2002-2014, Universite catholi... | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_5272_0 |
crossvul-cpp_data_good_1040_1 | /*
* rfbserver.c - deal with server-side of the RFB protocol.
*/
/*
* Copyright (C) 2009-2019 D. R. Commander. All Rights Reserved.
* Copyright (C) 2010 University Corporation for Atmospheric Research.
* All Rights Reserved.
* Copyright (C) 2005-2008 Sun Microsystems, Inc. All Rights Res... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_1040_1 |
crossvul-cpp_data_good_363_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% CCC U U TTTTT ... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_363_0 |
crossvul-cpp_data_bad_4483_0 | /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* Fluent Bit
* ==========
* Copyright (C) 2019-2020 The Fluent Bit Authors
* Copyright (C) 2015-2018 Treasure Data Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in co... | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_4483_0 |
crossvul-cpp_data_bad_4410_0 | /* $OpenBSD$ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE S... | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_4410_0 |
crossvul-cpp_data_bad_4009_0 | // SPDX-License-Identifier: GPL-2.0
/* XDP user-space packet buffer
* Copyright(c) 2018 Intel Corporation.
*/
#include <linux/init.h>
#include <linux/sched/mm.h>
#include <linux/sched/signal.h>
#include <linux/sched/task.h>
#include <linux/uaccess.h>
#include <linux/slab.h>
#include <linux/bpf.h>
#include <linux/mm.... | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_4009_0 |
crossvul-cpp_data_good_2977_1 | /*
* Synchronous Cryptographic Hash operations.
*
* Copyright (c) 2008 Herbert Xu <herbert@gondor.apana.org.au>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the L... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_2977_1 |
crossvul-cpp_data_good_5256_0 | /*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2016 The PHP Group |
+---------... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_5256_0 |
crossvul-cpp_data_bad_2977_0 | /*
* Cryptographic API.
*
* HMAC: Keyed-Hashing for Message Authentication (RFC2104).
*
* Copyright (c) 2002 James Morris <jmorris@intercode.com.au>
* Copyright (c) 2006 Herbert Xu <herbert@gondor.apana.org.au>
*
* The HMAC implementation is derived from USAGI.
* Copyright (c) 2002 Kazunori Miyazawa <miyazawa@... | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_2977_0 |
crossvul-cpp_data_bad_4260_0 | /* FTP engine
*
* Copyright (c) 2014-2019 Joachim Nilsson <troglobit@gmail.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTW... | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_4260_0 |
crossvul-cpp_data_bad_1209_0 | /*
* This file is part of the KeepKey project.
*
* Copyright (C) 2015 KeepKey LLC
*
* 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 3 of the License, or
* (at your ... | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_1209_0 |
crossvul-cpp_data_good_674_4 | /**
* FreeRDP: A Remote Desktop Protocol Implementation
* NSCodec Library - SSE2 Optimizations
*
* Copyright 2012 Vic Lee
*
* 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
*
* htt... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_674_4 |
crossvul-cpp_data_bad_5305_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% W W PPPP GGGG ... | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_5305_0 |
crossvul-cpp_data_bad_4464_0 | /*********************************************************************
Blosc - Blocked Shuffling and Compression Library
Author: Francesc Alted <francesc@blosc.org>
Creation date: 2009-05-20
See LICENSE.txt for details about copyright and rights to use.
********************************************************... | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_4464_0 |
crossvul-cpp_data_bad_3172_0 | /*
* file.c -- functions for dealing with file output
*
* Copyright (C)1999-2006 Mark Simpson <damned@theworld.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or ... | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_3172_0 |
crossvul-cpp_data_good_3991_0 | /*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_3991_0 |
crossvul-cpp_data_bad_5474_3 | /* $Id$
*
* tiff2pdf - converts a TIFF image to a PDF document
*
* Copyright (c) 2003 Ross Finlayson
*
* 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-787/c/bad_5474_3 |
crossvul-cpp_data_bad_3298_0 | /*
* PNG image format
* Copyright (c) 2003 Fabrice Bellard
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (a... | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_3298_0 |
crossvul-cpp_data_good_5474_1 | /* $Id$ */
/*
* Copyright (c) 1996-1997 Sam Leffler
* Copyright (c) 1996 Pixar
*
* 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 notice appear in
* al... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_5474_1 |
crossvul-cpp_data_bad_5478_4 | /* $Id$ */
/* tiffcrop.c -- a port of tiffcp.c extended to include manipulations of
* the image data through additional options listed below
*
* Original code:
* Copyright (c) 1988-1997 Sam Leffler
* Copyright (c) 1991-1997 Silicon Graphics, Inc.
* Additions (c) Richard Nolde 2006-2010
*
* Permission to use, ... | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_5478_4 |
crossvul-cpp_data_good_5478_3 | /* $Id$
*
* tiff2pdf - converts a TIFF image to a PDF document
*
* Copyright (c) 2003 Ross Finlayson
*
* 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-787/c/good_5478_3 |
crossvul-cpp_data_good_3375_0 | /**********************************************************************
regparse.c - Oniguruma (regular expression library)
**********************************************************************/
/*-
* Copyright (c) 2002-2016 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
* All rights reserved.
*
* Redistribution an... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_3375_0 |
crossvul-cpp_data_bad_572_0 | /*
* Copyright (c) 2007 Oracle. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed 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, or t... | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_572_0 |
crossvul-cpp_data_bad_3411_2 | /* ext2.c - Second Extended filesystem */
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2003,2004,2005,2007,2008,2009 Free Software Foundation, Inc.
*
* GRUB 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 So... | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_3411_2 |
crossvul-cpp_data_good_4005_0 | /*
* Marvell Wireless LAN device driver: WMM
*
* Copyright (C) 2011-2014, Marvell International Ltd.
*
* This software file (the "File") is distributed by Marvell International
* Ltd. under the terms of the GNU General Public License Version 2, June 1991
* (the "License"). You may use, redistribute and/or modif... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_4005_0 |
crossvul-cpp_data_good_95_1 | ////////////////////////////////////////////////////////////////////////////
// **** WAVPACK **** //
// Hybrid Lossless Wavefile Compressor //
// Copyright (c) 1998 - 2016 David Bryant. //
// ... | ./CrossVul/dataset_final_sorted/CWE-787/c/good_95_1 |
crossvul-cpp_data_bad_1619_0 | 404: Not Found | ./CrossVul/dataset_final_sorted/CWE-787/c/bad_1619_0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.