id stringlengths 25 30 | content stringlengths 14 942k | max_stars_repo_path stringlengths 49 55 |
|---|---|---|
crossvul-cpp_data_good_348_9 | /*
* Copyright (C) 2017 Frank Morgner <frankmorgner@gmail.com>
*
* This file is part of OpenSC.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the Licen... | ./CrossVul/dataset_final_sorted/CWE-415/c/good_348_9 |
crossvul-cpp_data_bad_848_0 | #include "gif.h"
static bool updateGCB(GifInfo *info, uint_fast32_t *lastAllocatedGCBIndex) {
if (*lastAllocatedGCBIndex < info->gifFilePtr->ImageCount) {
GraphicsControlBlock *tmpInfos = reallocarray(info->controlBlock, info->gifFilePtr->ImageCount + 1, sizeof(GraphicsControlBlock));
if (tmpInfos == NULL) {
i... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_848_0 |
crossvul-cpp_data_bad_347_5 | /*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it wi... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_347_5 |
crossvul-cpp_data_good_5504_0 | /*
* NETLINK Kernel-user communication protocol.
*
* Authors: Alan Cox <alan@lxorguk.ukuu.org.uk>
* Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
* Patrick McHardy <kaber@trash.net>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public... | ./CrossVul/dataset_final_sorted/CWE-415/c/good_5504_0 |
crossvul-cpp_data_bad_348_10 | /*
* util.c: utility functions used by OpenSC command line tools.
*
* Copyright (C) 2011 OpenSC Project developers
*
* 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
* versi... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_348_10 |
crossvul-cpp_data_bad_1833_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_1833_0 |
crossvul-cpp_data_good_1833_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-415/c/good_1833_0 |
crossvul-cpp_data_good_2198_0 | /*
* Copyright (C) 2006,2008 by the Massachusetts Institute of Technology.
* All rights reserved.
*
* Export of this software from the United States of America may
* require a specific license from the United States Government.
* It is the responsibility of any person or organization contemplating
* export... | ./CrossVul/dataset_final_sorted/CWE-415/c/good_2198_0 |
crossvul-cpp_data_good_1406_2 | /*
* WBMP: Wireless Bitmap Type 0: B/W, Uncompressed Bitmap
* Specification of the WBMP format can be found in the file:
* SPEC-WAESpec-19990524.pdf
* You can download the WAP specification on: http://www.wapforum.com/
*
* gd_wbmp.c
*
* Copyright (C) Johan Van den Brande (johan@vandenbrande.com)
*
* Fixed: gd... | ./CrossVul/dataset_final_sorted/CWE-415/c/good_1406_2 |
crossvul-cpp_data_bad_2579_5 | /* #pragma ident "@(#)g_init_sec_context.c 1.20 03/10/24 SMI" */
/*
* Copyright 1996 by Sun Microsystems, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software
* and its documentation for any purpose is hereby granted without fee,
* provided that the above copyright notice appears in all co... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_2579_5 |
crossvul-cpp_data_bad_5242_4 | 404: Not Found | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_5242_4 |
crossvul-cpp_data_bad_349_8 | /*
* cryptoflex-tool.c: Tool for doing various Cryptoflex related stuff
*
* Copyright (C) 2001 Juha Yrjölä <juha.yrjola@iki.fi>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; e... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_349_8 |
crossvul-cpp_data_bad_349_4 | /*
* PKCS15 emulation layer for EstEID card.
*
* Copyright (C) 2004, Martin Paljak <martin@martinpaljak.net>
* Copyright (C) 2004, Bud P. Bruegger <bud@comune.grosseto.it>
* Copyright (C) 2004, Antonino Iacono <ant_iacono@tin.it>
* Copyright (C) 2003, Olaf Kirch <okir@suse.de>
*
* This library is free software;... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_349_4 |
crossvul-cpp_data_bad_347_1 | /*
* 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-415/c/bad_347_1 |
crossvul-cpp_data_good_349_9 | /*
* Copyright (C) 2017 Frank Morgner <frankmorgner@gmail.com>
*
* This file is part of OpenSC.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the Licen... | ./CrossVul/dataset_final_sorted/CWE-415/c/good_349_9 |
crossvul-cpp_data_bad_5168_0 | /*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2015 The PHP Group |
+---------... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_5168_0 |
crossvul-cpp_data_bad_347_0 | /*
* 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-415/c/bad_347_0 |
crossvul-cpp_data_bad_3003_0 | /*
* GPIO driver for AMD
*
* Copyright (c) 2014,2015 AMD Corporation.
* Authors: Ken Xue <Ken.Xue@amd.com>
* Wu, Jeff <Jeff.Wu@amd.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published ... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_3003_0 |
crossvul-cpp_data_bad_2579_8 | /* #pragma ident "@(#)g_process_context.c 1.12 98/01/22 SMI" */
/*
* Copyright 1996 by Sun Microsystems, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software
* and its documentation for any purpose is hereby granted without fee,
* provided that the above copyright notice appears in all cop... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_2579_8 |
crossvul-cpp_data_bad_1407_1 | /*
* gd_jpeg.c: Read and write JPEG (JFIF) format image files using the
* gd graphics library (http://www.boutell.com/gd/).
*
* This software is based in part on the work of the Independent JPEG
* Group. For more information on the IJG JPEG software (and JPEG
* documentation, etc.), see ftp://ftp.uu.net/graphics... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_1407_1 |
crossvul-cpp_data_good_547_0 | // SPDX-License-Identifier: GPL-2.0+
/*
* f_midi.c -- USB MIDI class function driver
*
* Copyright (C) 2006 Thumtronics Pty Ltd.
* Developed for Thumtronics by Grey Innovation
* Ben Williamson <ben.williamson@greyinnovation.com>
*
* Rewritten for the composite framework
* Copyright (C) 2011 Daniel Mack <zonqu... | ./CrossVul/dataset_final_sorted/CWE-415/c/good_547_0 |
crossvul-cpp_data_bad_1406_6 | 404: Not Found | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_1406_6 |
crossvul-cpp_data_good_347_9 | /*
* Copyright (C) 2017 Frank Morgner <frankmorgner@gmail.com>
*
* This file is part of OpenSC.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the Licen... | ./CrossVul/dataset_final_sorted/CWE-415/c/good_347_9 |
crossvul-cpp_data_bad_2579_9 | /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 1996 by Sun Microsystems, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software
* and its documentation for any purpose is hereby granted without fee,
* provided that the above copyright notice appears in all copi... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_2579_9 |
crossvul-cpp_data_bad_2579_14 | /* #pragma ident "@(#)g_verify.c 1.13 98/04/23 SMI" */
/*
* Copyright 1996 by Sun Microsystems, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software
* and its documentation for any purpose is hereby granted without fee,
* provided that the above copyright notice appears in all copies and
... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_2579_14 |
crossvul-cpp_data_good_2579_3 | /* #pragma ident "@(#)g_delete_sec_context.c 1.11 97/11/09 SMI" */
/*
* Copyright 1996 by Sun Microsystems, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software
* and its documentation for any purpose is hereby granted without fee,
* provided that the above copyright notice appears in all ... | ./CrossVul/dataset_final_sorted/CWE-415/c/good_2579_3 |
crossvul-cpp_data_bad_349_10 | /*
* util.c: utility functions used by OpenSC command line tools.
*
* Copyright (C) 2011 OpenSC Project developers
*
* 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
* versi... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_349_10 |
crossvul-cpp_data_bad_62_0 | /*-
* Copyright (c) 2014 Sebastian Freundt
* 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 c... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_62_0 |
crossvul-cpp_data_good_347_0 | /*
* 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-415/c/good_347_0 |
crossvul-cpp_data_good_349_2 | /*
* card-muscle.c: Support for MuscleCard Applet from musclecard.com
*
* Copyright (C) 2006, Identity Alliance, Thomas Harning <support@identityalliance.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 t... | ./CrossVul/dataset_final_sorted/CWE-415/c/good_349_2 |
crossvul-cpp_data_good_848_0 | #include "gif.h"
static bool updateGCB(GifInfo *info, uint_fast32_t *lastAllocatedGCBIndex) {
if (*lastAllocatedGCBIndex < info->gifFilePtr->ImageCount) {
GraphicsControlBlock *tmpInfos = reallocarray(info->controlBlock, info->gifFilePtr->ImageCount + 1, sizeof(GraphicsControlBlock));
if (tmpInfos == NULL) {
i... | ./CrossVul/dataset_final_sorted/CWE-415/c/good_848_0 |
crossvul-cpp_data_good_3004_0 | /*
* GPIO driver for AMD
*
* Copyright (c) 2014,2015 AMD Corporation.
* Authors: Ken Xue <Ken.Xue@amd.com>
* Wu, Jeff <Jeff.Wu@amd.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published ... | ./CrossVul/dataset_final_sorted/CWE-415/c/good_3004_0 |
crossvul-cpp_data_bad_5504_0 | /*
* NETLINK Kernel-user communication protocol.
*
* Authors: Alan Cox <alan@lxorguk.ukuu.org.uk>
* Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
* Patrick McHardy <kaber@trash.net>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_5504_0 |
crossvul-cpp_data_bad_3001_0 | /* gifread.c - Functions to read GIFs.
Copyright (C) 1997-2017 Eddie Kohler, ekohler@gmail.com
This file is part of the LCDF GIF library.
The LCDF GIF library is free software. It is distributed under the GNU
General Public License, version 2; you can copy, distribute, or alter it at
will, as long as th... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_3001_0 |
crossvul-cpp_data_bad_5365_0 | /*
* 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-415/c/bad_5365_0 |
crossvul-cpp_data_bad_1406_2 | /*
* WBMP: Wireless Bitmap Type 0: B/W, Uncompressed Bitmap
* Specification of the WBMP format can be found in the file:
* SPEC-WAESpec-19990524.pdf
* You can download the WAP specification on: http://www.wapforum.com/
*
* gd_wbmp.c
*
* Copyright (C) Johan Van den Brande (johan@vandenbrande.com)
*
* Fixed: gd... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_1406_2 |
crossvul-cpp_data_good_59_0 | /*-
* Copyright (c) 2003-2007 Tim Kientzle
* Copyright (c) 2011 Andres Mejia
* 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
*... | ./CrossVul/dataset_final_sorted/CWE-415/c/good_59_0 |
crossvul-cpp_data_bad_349_9 | /*
* Copyright (C) 2017 Frank Morgner <frankmorgner@gmail.com>
*
* This file is part of OpenSC.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the Licen... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_349_9 |
crossvul-cpp_data_good_2579_10 | /* #pragma ident "@(#)g_sign.c 1.14 98/04/23 SMI" */
/*
* Copyright 1996 by Sun Microsystems, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software
* and its documentation for any purpose is hereby granted without fee,
* provided that the above copyright notice appears in all copies and
* ... | ./CrossVul/dataset_final_sorted/CWE-415/c/good_2579_10 |
crossvul-cpp_data_bad_347_10 | /*
* util.c: utility functions used by OpenSC command line tools.
*
* Copyright (C) 2011 OpenSC Project developers
*
* 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
* versi... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_347_10 |
crossvul-cpp_data_bad_348_5 | /*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it wi... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_348_5 |
crossvul-cpp_data_good_5242_4 | /**
* Test that a too large image doesn't trigger an double-free when written
* to memory.
*/
#include "gd.h"
#include "gdtest.h"
int main()
{
gdImagePtr im1, im2;
FILE *fp;
int size;
fp = gdTestFileOpen2("webp", "bug_double_free.jpg");
gdTestAssert(fp != NULL);
im1 = gdImageCreateFromJp... | ./CrossVul/dataset_final_sorted/CWE-415/c/good_5242_4 |
crossvul-cpp_data_good_2579_12 | /* #pragma ident "@(#)g_seal.c 1.19 98/04/21 SMI" */
/*
* Copyright 1996 by Sun Microsystems, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software
* and its documentation for any purpose is hereby granted without fee,
* provided that the above copyright notice appears in all copies and
* ... | ./CrossVul/dataset_final_sorted/CWE-415/c/good_2579_12 |
crossvul-cpp_data_bad_1406_1 | /*
* gd_jpeg.c: Read and write JPEG (JFIF) format image files using the
* gd graphics library (http://www.libgd.org).
*
* This software is based in part on the work of the Independent JPEG
* Group. For more information on the IJG JPEG software (and JPEG
* documentation, etc.), see ftp://ftp.uu.net/graphics/jpeg/... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_1406_1 |
crossvul-cpp_data_bad_347_2 | /*
* card-muscle.c: Support for MuscleCard Applet from musclecard.com
*
* Copyright (C) 2006, Identity Alliance, Thomas Harning <support@identityalliance.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 t... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_347_2 |
crossvul-cpp_data_good_1360_0 | /**
* @file parser_yang.c
* @author Pavol Vican
* @brief YANG parser for libyang
*
* Copyright (c) 2015 CESNET, z.s.p.o.
*
* This source code is licensed under BSD 3-Clause License (the "License").
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
... | ./CrossVul/dataset_final_sorted/CWE-415/c/good_1360_0 |
crossvul-cpp_data_good_3102_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-415/c/good_3102_0 |
crossvul-cpp_data_bad_3004_0 | /*
* GPIO driver for AMD
*
* Copyright (c) 2014,2015 AMD Corporation.
* Authors: Ken Xue <Ken.Xue@amd.com>
* Wu, Jeff <Jeff.Wu@amd.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published ... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_3004_0 |
crossvul-cpp_data_good_3001_0 | /* gifread.c - Functions to read GIFs.
Copyright (C) 1997-2017 Eddie Kohler, ekohler@gmail.com
This file is part of the LCDF GIF library.
The LCDF GIF library is free software. It is distributed under the GNU
General Public License, version 2; you can copy, distribute, or alter it at
will, as long as th... | ./CrossVul/dataset_final_sorted/CWE-415/c/good_3001_0 |
crossvul-cpp_data_good_2579_15 | /* #pragma ident "@(#)g_seal.c 1.19 98/04/21 SMI" */
/*
* Copyright 1996 by Sun Microsystems, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software
* and its documentation for any purpose is hereby granted without fee,
* provided that the above copyright notice appears in all copies and
* ... | ./CrossVul/dataset_final_sorted/CWE-415/c/good_2579_15 |
crossvul-cpp_data_good_348_8 | /*
* cryptoflex-tool.c: Tool for doing various Cryptoflex related stuff
*
* Copyright (C) 2001 Juha Yrjölä <juha.yrjola@iki.fi>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; e... | ./CrossVul/dataset_final_sorted/CWE-415/c/good_348_8 |
crossvul-cpp_data_good_4406_0 | /*
*
* BlueZ - Bluetooth protocol stack for Linux
*
* Copyright (C) 2014 Google 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 Licen... | ./CrossVul/dataset_final_sorted/CWE-415/c/good_4406_0 |
crossvul-cpp_data_bad_349_1 | /*
* 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-415/c/bad_349_1 |
crossvul-cpp_data_bad_745_2 | #include <string.h>
#include <stdlib.h>
#include "secretservice_linux.h"
const SecretSchema *docker_get_schema(void)
{
static const SecretSchema docker_schema = {
"io.docker.Credentials", SECRET_SCHEMA_NONE,
{
{ "label", SECRET_SCHEMA_ATTRIBUTE_STRING },
{ "server", SECRET_SCHEMA_ATTRIBUTE_STRING },
{... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_745_2 |
crossvul-cpp_data_good_1360_2 | /* A Bison parser, made by GNU Bison 3.2.4. */
/* Bison implementation for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2015, 2018 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 publis... | ./CrossVul/dataset_final_sorted/CWE-415/c/good_1360_2 |
crossvul-cpp_data_good_1406_0 | /**
* File: GIF Output
*
* Write GIF images.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include "gd.h"
#include "gdhelpers.h"
/* Code drawn from ppmtogif.c, from the pbmplus package
**
** Based on GIFENCOD by David Rowley <mgar... | ./CrossVul/dataset_final_sorted/CWE-415/c/good_1406_0 |
crossvul-cpp_data_good_347_5 | /*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it wi... | ./CrossVul/dataset_final_sorted/CWE-415/c/good_347_5 |
crossvul-cpp_data_good_1407_2 | /*
WBMP: Wireless Bitmap Type 0: B/W, Uncompressed Bitmap
Specification of the WBMP format can be found in the file:
SPEC-WAESpec-19990524.pdf
You can download the WAP specification on: http://www.wapforum.com/
gd_wbmp.c
Copyright (C) Johan Van den Brande (johan@vandenbrande.com)
Fixed: gdImageW... | ./CrossVul/dataset_final_sorted/CWE-415/c/good_1407_2 |
crossvul-cpp_data_bad_2579_4 | /* #pragma ident "@(#)g_exp_sec_context.c 1.14 04/02/23 SMI" */
/*
* Copyright 1996 by Sun Microsystems, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software
* and its documentation for any purpose is hereby granted without fee,
* provided that the above copyright notice appears in all cop... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_2579_4 |
crossvul-cpp_data_bad_4998_1 | /*
+----------------------------------------------------------------------+
| PHP Version 7 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2016 The PHP Group |
+---------... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_4998_1 |
crossvul-cpp_data_bad_2579_12 | /* #pragma ident "@(#)g_seal.c 1.19 98/04/21 SMI" */
/*
* Copyright 1996 by Sun Microsystems, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software
* and its documentation for any purpose is hereby granted without fee,
* provided that the above copyright notice appears in all copies and
* ... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_2579_12 |
crossvul-cpp_data_bad_2579_13 | /* #pragma ident "@(#)g_seal.c 1.19 98/04/21 SMI" */
/*
* Copyright 1996 by Sun Microsystems, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software
* and its documentation for any purpose is hereby granted without fee,
* provided that the above copyright notice appears in all copies and
* ... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_2579_13 |
crossvul-cpp_data_bad_2579_2 | /* #pragma ident "@(#)g_context_time.c 1.12 98/01/22 SMI" */
/*
* Copyright 1996 by Sun Microsystems, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software
* and its documentation for any purpose is hereby granted without fee,
* provided that the above copyright notice appears in all copies... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_2579_2 |
crossvul-cpp_data_bad_348_9 | /*
* Copyright (C) 2017 Frank Morgner <frankmorgner@gmail.com>
*
* This file is part of OpenSC.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the Licen... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_348_9 |
crossvul-cpp_data_good_348_5 | /*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it wi... | ./CrossVul/dataset_final_sorted/CWE-415/c/good_348_5 |
crossvul-cpp_data_good_2579_7 | /*
* Copyright 2009 by the Massachusetts Institute of Technology.
* All Rights Reserved.
*
* Export of this software from the United States of America may
* require a specific license from the United States Government.
* It is the responsibility of any person or organization contemplating
* export to obtai... | ./CrossVul/dataset_final_sorted/CWE-415/c/good_2579_7 |
crossvul-cpp_data_bad_347_6 | /*
* pkcs15-sc-hsm.c : Initialize PKCS#15 emulation
*
* Copyright (C) 2012 Andreas Schwier, CardContact, Minden, Germany
*
* 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
*... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_347_6 |
crossvul-cpp_data_bad_5242_0 | /**
* File: WebP IO
*
* Read and write WebP images.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif /* HAVE_CONFIG_H */
#ifdef HAVE_LIBWEBP
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include "gd.h"
#include "gd_errors.h"
#include "gdhelpers.h"
#include "webp/decode.h"
#inclu... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_5242_0 |
crossvul-cpp_data_bad_1407_2 | /*
WBMP: Wireless Bitmap Type 0: B/W, Uncompressed Bitmap
Specification of the WBMP format can be found in the file:
SPEC-WAESpec-19990524.pdf
You can download the WAP specification on: http://www.wapforum.com/
gd_wbmp.c
Copyright (C) Johan Van den Brande (johan@vandenbrande.com)
Fixed: gdImageW... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_1407_2 |
crossvul-cpp_data_bad_547_0 | // SPDX-License-Identifier: GPL-2.0+
/*
* f_midi.c -- USB MIDI class function driver
*
* Copyright (C) 2006 Thumtronics Pty Ltd.
* Developed for Thumtronics by Grey Innovation
* Ben Williamson <ben.williamson@greyinnovation.com>
*
* Rewritten for the composite framework
* Copyright (C) 2011 Daniel Mack <zonqu... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_547_0 |
crossvul-cpp_data_good_1406_1 | /*
* gd_jpeg.c: Read and write JPEG (JFIF) format image files using the
* gd graphics library (http://www.libgd.org).
*
* This software is based in part on the work of the Independent JPEG
* Group. For more information on the IJG JPEG software (and JPEG
* documentation, etc.), see ftp://ftp.uu.net/graphics/jpeg/... | ./CrossVul/dataset_final_sorted/CWE-415/c/good_1406_1 |
crossvul-cpp_data_good_2579_16 | /* #pragma ident "@(#)g_seal.c 1.19 98/04/21 SMI" */
/*
* Copyright 1996 by Sun Microsystems, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software
* and its documentation for any purpose is hereby granted without fee,
* provided that the above copyright notice appears in all copies and
* ... | ./CrossVul/dataset_final_sorted/CWE-415/c/good_2579_16 |
crossvul-cpp_data_bad_348_6 | /*
* pkcs15-sc-hsm.c : Initialize PKCS#15 emulation
*
* Copyright (C) 2012 Andreas Schwier, CardContact, Minden, Germany
*
* 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
*... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_348_6 |
crossvul-cpp_data_bad_2579_7 | /*
* Copyright 2009 by the Massachusetts Institute of Technology.
* All Rights Reserved.
*
* Export of this software from the United States of America may
* require a specific license from the United States Government.
* It is the responsibility of any person or organization contemplating
* export to obtai... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_2579_7 |
crossvul-cpp_data_good_62_0 | /*-
* Copyright (c) 2014 Sebastian Freundt
* 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 c... | ./CrossVul/dataset_final_sorted/CWE-415/c/good_62_0 |
crossvul-cpp_data_good_349_3 | /*
* card-tcos.c: Support for TCOS cards
*
* Copyright (C) 2011 Peter Koch <pk@opensc-project.org>
* Copyright (C) 2002 g10 Code GmbH
* Copyright (C) 2001 Juha Yrjölä <juha.yrjola@iki.fi>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General P... | ./CrossVul/dataset_final_sorted/CWE-415/c/good_349_3 |
crossvul-cpp_data_good_348_10 | /*
* util.c: utility functions used by OpenSC command line tools.
*
* Copyright (C) 2011 OpenSC Project developers
*
* 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
* versi... | ./CrossVul/dataset_final_sorted/CWE-415/c/good_348_10 |
crossvul-cpp_data_bad_347_8 | /*
* cryptoflex-tool.c: Tool for doing various Cryptoflex related stuff
*
* Copyright (C) 2001 Juha Yrjölä <juha.yrjola@iki.fi>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; e... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_347_8 |
crossvul-cpp_data_good_694_0 | /*
* OpenVPN -- An application to securely tunnel IP networks
* over a single TCP/UDP port, with support for SSL/TLS-based
* session authentication and key exchange,
* packet encryption, packet authentication, and
* packet compression.
*
* Copyright (C) 2012-2018... | ./CrossVul/dataset_final_sorted/CWE-415/c/good_694_0 |
crossvul-cpp_data_bad_3342_0 | 404: Not Found | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_3342_0 |
crossvul-cpp_data_good_3180_0 | /* SCTP kernel implementation
* (C) Copyright IBM Corp. 2001, 2004
* Copyright (c) 1999-2000 Cisco, Inc.
* Copyright (c) 1999-2001 Motorola, Inc.
* Copyright (c) 2001-2003 Intel Corp.
* Copyright (c) 2001-2002 Nokia, Inc.
* Copyright (c) 2001 La Monte H.P. Yarroll
*
* This file is part of the SCTP kernel implem... | ./CrossVul/dataset_final_sorted/CWE-415/c/good_3180_0 |
crossvul-cpp_data_bad_2579_15 | /* #pragma ident "@(#)g_seal.c 1.19 98/04/21 SMI" */
/*
* Copyright 1996 by Sun Microsystems, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software
* and its documentation for any purpose is hereby granted without fee,
* provided that the above copyright notice appears in all copies and
* ... | ./CrossVul/dataset_final_sorted/CWE-415/c/bad_2579_15 |
crossvul-cpp_data_good_1364_0 | /* A Bison parser, made by GNU Bison 3.2.4. */
/* Bison implementation for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2015, 2018 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 publis... | ./CrossVul/dataset_final_sorted/CWE-415/c/good_1364_0 |
crossvul-cpp_data_good_2579_14 | /* #pragma ident "@(#)g_verify.c 1.13 98/04/23 SMI" */
/*
* Copyright 1996 by Sun Microsystems, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software
* and its documentation for any purpose is hereby granted without fee,
* provided that the above copyright notice appears in all copies and
... | ./CrossVul/dataset_final_sorted/CWE-415/c/good_2579_14 |
crossvul-cpp_data_good_194_0 | /*
*
* (C) 2013-18 - ntop.org
*
*
* 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 License, or
* (at your option) any later version.
*
* This program is distribu... | ./CrossVul/dataset_final_sorted/CWE-335/cpp/good_194_0 |
crossvul-cpp_data_bad_194_0 | /*
*
* (C) 2013-18 - ntop.org
*
*
* 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 License, or
* (at your option) any later version.
*
* This program is distribu... | ./CrossVul/dataset_final_sorted/CWE-335/cpp/bad_194_0 |
crossvul-cpp_data_good_5331_0 | /*
* This file is part of WinSparkle (https://winsparkle.org)
*
* Copyright (C) 2012-2016 Vaclav Slavik
*
* 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, incl... | ./CrossVul/dataset_final_sorted/CWE-426/cpp/good_5331_0 |
crossvul-cpp_data_bad_5331_0 | /*
* This file is part of WinSparkle (https://winsparkle.org)
*
* Copyright (C) 2012-2016 Vaclav Slavik
*
* 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, incl... | ./CrossVul/dataset_final_sorted/CWE-426/cpp/bad_5331_0 |
crossvul-cpp_data_good_4764_1 | /* $OpenBSD: ssh-agent.c,v 1.215 2016/11/30 03:07:37 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
* All rights reserved
* The authentication agent program.
*
* As far as I am concerned, the code I have written for this so... | ./CrossVul/dataset_final_sorted/CWE-426/c/good_4764_1 |
crossvul-cpp_data_good_1608_1 | /* (C) 2011, 2012 rofl0r
* *
* 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 Lic... | ./CrossVul/dataset_final_sorted/CWE-426/c/good_1608_1 |
crossvul-cpp_data_bad_1608_1 | /* (C) 2011, 2012 rofl0r
* *
* 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 Lic... | ./CrossVul/dataset_final_sorted/CWE-426/c/bad_1608_1 |
crossvul-cpp_data_bad_4764_1 | /* $OpenBSD: ssh-agent.c,v 1.214 2016/09/12 01:22:38 deraadt Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
* All rights reserved
* The authentication agent program.
*
* As far as I am concerned, the code I have written for thi... | ./CrossVul/dataset_final_sorted/CWE-426/c/bad_4764_1 |
crossvul-cpp_data_bad_242_1 | /*
* PAM authentication backend
* Copyright (C) 2013 Martin Bříza <mbriza@redhat.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your opti... | ./CrossVul/dataset_final_sorted/CWE-613/cpp/bad_242_1 |
crossvul-cpp_data_good_242_0 | /***************************************************************************
* Copyright (c) 2014-2015 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
* Copyright (c) 2014 Martin Bříza <mbriza@redhat.com>
* Copyright (c) 2013 Abdurrahman AVCI <abdurrahmanavci@gmail.com>
*
* This program is free software; you can redis... | ./CrossVul/dataset_final_sorted/CWE-613/cpp/good_242_0 |
crossvul-cpp_data_bad_242_0 | /***************************************************************************
* Copyright (c) 2014-2015 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
* Copyright (c) 2014 Martin Bříza <mbriza@redhat.com>
* Copyright (c) 2013 Abdurrahman AVCI <abdurrahmanavci@gmail.com>
*
* This program is free software; you can redis... | ./CrossVul/dataset_final_sorted/CWE-613/cpp/bad_242_0 |
crossvul-cpp_data_good_242_1 | /*
* PAM authentication backend
* Copyright (C) 2013 Martin Bříza <mbriza@redhat.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your opti... | ./CrossVul/dataset_final_sorted/CWE-613/cpp/good_242_1 |
crossvul-cpp_data_good_1650_3 | /* $Id$ */
/*
Copyright (C) 2003 - 2012 by David White <dave@whitevine.net>
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
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-200/cpp/good_1650_3 |
crossvul-cpp_data_good_186_1 | /*
* DSA
* (C) 1999-2010,2014,2016 Jack Lloyd
* (C) 2016 René Korthaus
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include <botan/dsa.h>
#include <botan/keypair.h>
#include <botan/reducer.h>
#include <botan/rng.h>
#include <botan/internal/pk_ops_impl.h>
#if defined(BOTAN_HAS_RFC6979_G... | ./CrossVul/dataset_final_sorted/CWE-200/cpp/good_186_1 |
crossvul-cpp_data_good_2112_0 | /* Copyright (C) 2006 - 2014 Jan Kundrát <jkt@flaska.net>
This file is part of the Trojita Qt IMAP e-mail client,
http://trojita.flaska.net/
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 Founda... | ./CrossVul/dataset_final_sorted/CWE-200/cpp/good_2112_0 |
crossvul-cpp_data_bad_1650_3 | /* $Id$ */
/*
Copyright (C) 2003 - 2012 by David White <dave@whitevine.net>
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
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-200/cpp/bad_1650_3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.