id
stringlengths
25
30
content
stringlengths
14
942k
max_stars_repo_path
stringlengths
49
55
crossvul-cpp_data_good_1184_0
/****************************************************************************** * * Project: OGR * Purpose: Convenience function for parsing with Expat library * Author: Even Rouault, even dot rouault at spatialys.com * ****************************************************************************** * Copyrigh...
./CrossVul/dataset_final_sorted/CWE-415/cpp/good_1184_0
crossvul-cpp_data_bad_1184_0
/****************************************************************************** * * Project: OGR * Purpose: Convenience function for parsing with Expat library * Author: Even Rouault, even dot rouault at spatialys.com * ****************************************************************************** * Copyrigh...
./CrossVul/dataset_final_sorted/CWE-415/cpp/bad_1184_0
crossvul-cpp_data_good_348_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_348_3
crossvul-cpp_data_good_3342_0
/* * INET An implementation of the TCP/IP protocol suite for the LINUX * operating system. INET is implemented using the BSD Socket * interface as the means of communication with the user level. * * Support for INET connection oriented protocols. * * Authors: See the TCP sources * * This program is free...
./CrossVul/dataset_final_sorted/CWE-415/c/good_3342_0
crossvul-cpp_data_bad_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/bad_349_2
crossvul-cpp_data_bad_347_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_347_4
crossvul-cpp_data_good_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/good_349_10
crossvul-cpp_data_bad_745_0
#include "osxkeychain_darwin.h" #include <CoreFoundation/CoreFoundation.h> #include <Foundation/NSValue.h> #include <stdio.h> #include <string.h> char *get_error(OSStatus status) { char *buf = malloc(128); CFStringRef str = SecCopyErrorMessageString(status, NULL); int success = CFStringGetCString(str, buf, 128, ...
./CrossVul/dataset_final_sorted/CWE-415/c/bad_745_0
crossvul-cpp_data_good_347_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/good_347_4
crossvul-cpp_data_good_745_0
#include "osxkeychain_darwin.h" #include <CoreFoundation/CoreFoundation.h> #include <Foundation/NSValue.h> #include <stdio.h> #include <string.h> char *get_error(OSStatus status) { char *buf = malloc(128); CFStringRef str = SecCopyErrorMessageString(status, NULL); int success = CFStringGetCString(str, buf, 128, ...
./CrossVul/dataset_final_sorted/CWE-415/c/good_745_0
crossvul-cpp_data_good_4998_1
/* +----------------------------------------------------------------------+ | PHP Version 7 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2016 The PHP Group | +---------...
./CrossVul/dataset_final_sorted/CWE-415/c/good_4998_1
crossvul-cpp_data_good_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/good_347_8
crossvul-cpp_data_good_1407_0
#include <stdio.h> #include <math.h> #include <string.h> #include <stdlib.h> #include "gd.h" /* Code drawn from ppmtogif.c, from the pbmplus package ** ** Based on GIFENCOD by David Rowley <mgardi@watdscu.waterloo.edu>. A ** Lempel-Zim compression based on "compress". ** ** Modified by Marcel Wijkstra <wijkstra@fwi.uv...
./CrossVul/dataset_final_sorted/CWE-415/c/good_1407_0
crossvul-cpp_data_bad_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/bad_59_0
crossvul-cpp_data_bad_348_7
/* * sc.c: General functions * * Copyright (C) 2001, 2002 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; either * version 2.1 of the License, ...
./CrossVul/dataset_final_sorted/CWE-415/c/bad_348_7
crossvul-cpp_data_bad_633_0
/* * Common Block IO controller cgroup interface * * Based on ideas and code from CFQ, CFS and BFQ: * Copyright (C) 2003 Jens Axboe <axboe@kernel.dk> * * Copyright (C) 2008 Fabio Checconi <fabio@gandalf.sssup.it> * Paolo Valente <paolo.valente@unimore.it> * * Copyright (C) 2009 Vivek Goyal <vgoyal@redha...
./CrossVul/dataset_final_sorted/CWE-415/c/bad_633_0
crossvul-cpp_data_good_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/good_1407_1
crossvul-cpp_data_good_666_0
/* * Copyright (C) the libgit2 contributors. All rights reserved. * * This file is part of libgit2, distributed under the GNU GPL v2 with * a Linking Exception. For full terms see the included COPYING file. */ #include "index.h" #include <stddef.h> #include "repository.h" #include "tree.h" #include "tree-cache....
./CrossVul/dataset_final_sorted/CWE-415/c/good_666_0
crossvul-cpp_data_bad_348_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/bad_348_3
crossvul-cpp_data_good_348_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/good_348_4
crossvul-cpp_data_bad_2579_0
/* #pragma ident "@(#)g_accept_sec_context.c 1.19 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 ...
./CrossVul/dataset_final_sorted/CWE-415/c/bad_2579_0
crossvul-cpp_data_bad_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/bad_4406_0
crossvul-cpp_data_good_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/good_2579_9
crossvul-cpp_data_bad_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/bad_1406_0
crossvul-cpp_data_good_348_7
/* * sc.c: General functions * * Copyright (C) 2001, 2002 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; either * version 2.1 of the License, ...
./CrossVul/dataset_final_sorted/CWE-415/c/good_348_7
crossvul-cpp_data_good_5168_0
/* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2015 The PHP Group | +---------...
./CrossVul/dataset_final_sorted/CWE-415/c/good_5168_0
crossvul-cpp_data_good_347_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_347_3
crossvul-cpp_data_bad_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/bad_1360_0
crossvul-cpp_data_bad_1361_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/bad_1361_0
crossvul-cpp_data_bad_2938_0
/** * collectd - src/snmp.c * Copyright (C) 2007-2012 Florian octo Forster * * 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 ri...
./CrossVul/dataset_final_sorted/CWE-415/c/bad_2938_0
crossvul-cpp_data_good_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/good_348_6
crossvul-cpp_data_good_2579_6
/* #pragma ident "@(#)g_inquire_context.c 1.15 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/good_2579_6
crossvul-cpp_data_good_349_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/good_349_6
crossvul-cpp_data_bad_2579_11
/* #pragma ident "@(#)g_unseal.c 1.13 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 and ...
./CrossVul/dataset_final_sorted/CWE-415/c/bad_2579_11
crossvul-cpp_data_bad_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/bad_2579_10
crossvul-cpp_data_good_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/good_5242_0
crossvul-cpp_data_good_1858_0
/* * History: * Started: Aug 9 by Lawrence Foard (entropy@world.std.com), * to allow user process control of SCSI devices. * Development Sponsored by Killy Corp. NY NY * * Original driver (sg.c): * Copyright (C) 1992 Lawrence Foard * Version 2 and 3 extensions to driver: * Copyright ...
./CrossVul/dataset_final_sorted/CWE-415/c/good_1858_0
crossvul-cpp_data_good_3906_0
/** * FreeRDP: A Remote Desktop Protocol Implementation * Drawing Orders * * 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"); * yo...
./CrossVul/dataset_final_sorted/CWE-415/c/good_3906_0
crossvul-cpp_data_bad_349_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_349_0
crossvul-cpp_data_bad_349_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_349_6
crossvul-cpp_data_good_633_0
/* * Common Block IO controller cgroup interface * * Based on ideas and code from CFQ, CFS and BFQ: * Copyright (C) 2003 Jens Axboe <axboe@kernel.dk> * * Copyright (C) 2008 Fabio Checconi <fabio@gandalf.sssup.it> * Paolo Valente <paolo.valente@unimore.it> * * Copyright (C) 2009 Vivek Goyal <vgoyal@redha...
./CrossVul/dataset_final_sorted/CWE-415/c/good_633_0
crossvul-cpp_data_bad_2579_6
/* #pragma ident "@(#)g_inquire_context.c 1.15 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_6
crossvul-cpp_data_good_3161_0
/* * net/dccp/input.c * * An implementation of the DCCP protocol * Arnaldo Carvalho de Melo <acme@conectiva.com.br> * * 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 *...
./CrossVul/dataset_final_sorted/CWE-415/c/good_3161_0
crossvul-cpp_data_good_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/good_2579_5
crossvul-cpp_data_good_349_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_349_5
crossvul-cpp_data_bad_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/bad_694_0
crossvul-cpp_data_good_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/good_2579_4
crossvul-cpp_data_bad_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/bad_349_3
crossvul-cpp_data_good_348_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_348_2
crossvul-cpp_data_good_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/good_2579_13
crossvul-cpp_data_good_347_7
/* * sc.c: General functions * * Copyright (C) 2001, 2002 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; either * version 2.1 of the License, ...
./CrossVul/dataset_final_sorted/CWE-415/c/good_347_7
crossvul-cpp_data_bad_349_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_349_5
crossvul-cpp_data_good_1361_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_1361_0
crossvul-cpp_data_good_2938_0
/** * collectd - src/snmp.c * Copyright (C) 2007-2012 Florian octo Forster * * 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 ri...
./CrossVul/dataset_final_sorted/CWE-415/c/good_2938_0
crossvul-cpp_data_good_2579_1
/* #ident "@(#)gss_seal.c 1.10 95/08/07 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_1
crossvul-cpp_data_good_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/good_349_8
crossvul-cpp_data_bad_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/bad_1364_0
crossvul-cpp_data_good_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/good_2579_2
crossvul-cpp_data_good_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/good_2579_8
crossvul-cpp_data_good_349_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_349_0
crossvul-cpp_data_bad_348_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_348_0
crossvul-cpp_data_good_349_7
/* * sc.c: General functions * * Copyright (C) 2001, 2002 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; either * version 2.1 of the License, ...
./CrossVul/dataset_final_sorted/CWE-415/c/good_349_7
crossvul-cpp_data_good_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/good_347_10
crossvul-cpp_data_good_5172_1
/* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2015 The PHP Group | +---------...
./CrossVul/dataset_final_sorted/CWE-415/c/good_5172_1
crossvul-cpp_data_bad_3102_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-415/c/bad_3102_0
crossvul-cpp_data_bad_666_0
/* * Copyright (C) the libgit2 contributors. All rights reserved. * * This file is part of libgit2, distributed under the GNU GPL v2 with * a Linking Exception. For full terms see the included COPYING file. */ #include "index.h" #include <stddef.h> #include "repository.h" #include "tree.h" #include "tree-cache....
./CrossVul/dataset_final_sorted/CWE-415/c/bad_666_0
crossvul-cpp_data_bad_3161_0
/* * net/dccp/input.c * * An implementation of the DCCP protocol * Arnaldo Carvalho de Melo <acme@conectiva.com.br> * * 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 *...
./CrossVul/dataset_final_sorted/CWE-415/c/bad_3161_0
crossvul-cpp_data_bad_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/bad_2198_0
crossvul-cpp_data_bad_348_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_348_2
crossvul-cpp_data_good_2579_11
/* #pragma ident "@(#)g_unseal.c 1.13 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 and ...
./CrossVul/dataset_final_sorted/CWE-415/c/good_2579_11
crossvul-cpp_data_good_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/good_745_2
crossvul-cpp_data_bad_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/bad_2579_16
crossvul-cpp_data_good_2579_0
/* #pragma ident "@(#)g_accept_sec_context.c 1.19 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 ...
./CrossVul/dataset_final_sorted/CWE-415/c/good_2579_0
crossvul-cpp_data_bad_1407_0
#include <stdio.h> #include <math.h> #include <string.h> #include <stdlib.h> #include "gd.h" /* Code drawn from ppmtogif.c, from the pbmplus package ** ** Based on GIFENCOD by David Rowley <mgardi@watdscu.waterloo.edu>. A ** Lempel-Zim compression based on "compress". ** ** Modified by Marcel Wijkstra <wijkstra@fwi.uv...
./CrossVul/dataset_final_sorted/CWE-415/c/bad_1407_0
crossvul-cpp_data_good_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/good_3003_0
crossvul-cpp_data_bad_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/bad_348_8
crossvul-cpp_data_good_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/good_347_1
crossvul-cpp_data_good_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/good_349_4
crossvul-cpp_data_good_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/good_347_6
crossvul-cpp_data_good_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/good_349_1
crossvul-cpp_data_good_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/good_5365_0
crossvul-cpp_data_good_348_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_348_0
crossvul-cpp_data_bad_347_7
/* * sc.c: General functions * * Copyright (C) 2001, 2002 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; either * version 2.1 of the License, ...
./CrossVul/dataset_final_sorted/CWE-415/c/bad_347_7
crossvul-cpp_data_good_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/good_347_2
crossvul-cpp_data_bad_348_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_348_1
crossvul-cpp_data_bad_348_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_348_4
crossvul-cpp_data_good_348_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/good_348_1
crossvul-cpp_data_good_2633_1
/* zip_dirent.c -- read directory entry (local or central), clean dirent Copyright (C) 1999-2016 Dieter Baron and Thomas Klausner This file is part of libzip, a library to manipulate ZIP archives. The authors can be contacted at <libzip@nih.at> Redistribution and use in source and binary forms, with or with...
./CrossVul/dataset_final_sorted/CWE-415/c/good_2633_1
crossvul-cpp_data_bad_5172_1
/* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2015 The PHP Group | +---------...
./CrossVul/dataset_final_sorted/CWE-415/c/bad_5172_1
crossvul-cpp_data_bad_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/bad_347_9
crossvul-cpp_data_bad_2633_1
/* zip_dirent.c -- read directory entry (local or central), clean dirent Copyright (C) 1999-2016 Dieter Baron and Thomas Klausner This file is part of libzip, a library to manipulate ZIP archives. The authors can be contacted at <libzip@nih.at> Redistribution and use in source and binary forms, with or with...
./CrossVul/dataset_final_sorted/CWE-415/c/bad_2633_1
crossvul-cpp_data_bad_1858_0
/* * History: * Started: Aug 9 by Lawrence Foard (entropy@world.std.com), * to allow user process control of SCSI devices. * Development Sponsored by Killy Corp. NY NY * * Original driver (sg.c): * Copyright (C) 1992 Lawrence Foard * Version 2 and 3 extensions to driver: * Copyright ...
./CrossVul/dataset_final_sorted/CWE-415/c/bad_1858_0
crossvul-cpp_data_bad_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/bad_1360_2
crossvul-cpp_data_bad_349_7
/* * sc.c: General functions * * Copyright (C) 2001, 2002 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; either * version 2.1 of the License, ...
./CrossVul/dataset_final_sorted/CWE-415/c/bad_349_7
crossvul-cpp_data_bad_2579_1
/* #ident "@(#)gss_seal.c 1.10 95/08/07 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_1
crossvul-cpp_data_bad_347_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/bad_347_3
crossvul-cpp_data_bad_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/bad_2579_3
crossvul-cpp_data_bad_3906_0
/** * FreeRDP: A Remote Desktop Protocol Implementation * Drawing Orders * * 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"); * yo...
./CrossVul/dataset_final_sorted/CWE-415/c/bad_3906_0
crossvul-cpp_data_bad_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/bad_3180_0
crossvul-cpp_data_good_1406_6
/** * Test that failure to convert to JPEG returns NULL * * We are creating an image, set its width to zero, and pass this image to * `gdImageJpegPtr()` which is supposed to fail, and as such should return NULL. * * See also <https://github.com/libgd/libgd/issues/381> */ #include "gd.h" #include "gdtest.h" i...
./CrossVul/dataset_final_sorted/CWE-415/c/good_1406_6