id
stringlengths
25
30
content
stringlengths
14
942k
max_stars_repo_path
stringlengths
49
55
crossvul-cpp_data_bad_4421_0
// SPDX-License-Identifier: BSD-2-Clause /* Copyright (c) 2012-2016, Matthias Schiffer <mschiffer@universe-factory.net> All rights reserved. */ /** \file Functions for receiving and handling packets */ #include "fastd.h" #include "handshake.h" #include "hash.h" #include "peer.h" #include "peer_hashtable.h...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_4421_0
crossvul-cpp_data_bad_2907_0
/* * Ultra Wide Band * Neighborhood Management Daemon * * Copyright (C) 2005-2006 Intel Corporation * Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License version * 2 as published by...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_2907_0
crossvul-cpp_data_bad_639_0
/* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2016 The PHP Group | +---------...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_639_0
crossvul-cpp_data_bad_2209_0
/* * Copyright 2011-2013 Con Kolivas * Copyright 2010 Jeff Garzik * * 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 versio...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_2209_0
crossvul-cpp_data_good_3037_0
/* * Copyright (c) 2016 Avago Technologies. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of version 2 of the GNU General Public License as * published by the Free Software Foundation. * * This program is distributed in the hope that it will b...
./CrossVul/dataset_final_sorted/CWE-119/c/good_3037_0
crossvul-cpp_data_bad_1594_0
/* * Support for Intel AES-NI instructions. This file contains glue * code, the real AES implementation is in intel-aes_asm.S. * * Copyright (C) 2008, Intel Corp. * Author: Huang Ying <ying.huang@intel.com> * * Added RFC4106 AES-GCM support for 128-bit keys under the AEAD * interface for 64-bit kernels. * ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_1594_0
crossvul-cpp_data_good_253_0
/** * @file * Read/parse/write an NNTP config file of subscribed newsgroups * * @authors * Copyright (C) 1998 Brandon Long <blong@fiction.net> * Copyright (C) 1999 Andrej Gritsenko <andrej@lucky.net> * Copyright (C) 2000-2017 Vsevolod Volkov <vvv@mutt.org.ua> * * @copyright * This program is free software: yo...
./CrossVul/dataset_final_sorted/CWE-119/c/good_253_0
crossvul-cpp_data_bad_3502_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-119/c/bad_3502_0
crossvul-cpp_data_good_2353_0
/* * Copyright (c) 1990, 1991, 1993, 1994, 1995, 1996, 1997 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that: (1) source code distributions * retain the above copyright notice and...
./CrossVul/dataset_final_sorted/CWE-119/c/good_2353_0
crossvul-cpp_data_good_339_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-119/c/good_339_9
crossvul-cpp_data_good_3421_0
/* * CDXL video decoder * Copyright (c) 2011-2012 Paul B Mahol * * 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, o...
./CrossVul/dataset_final_sorted/CWE-119/c/good_3421_0
crossvul-cpp_data_bad_4787_21
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_4787_21
crossvul-cpp_data_good_5095_0
#ifdef HAVE_CONFIG_H # include "config.h" #endif #include <ctype.h> #include <stdio.h> #include <math.h> #include <string.h> #include <stdlib.h> #include <stdarg.h> #include "gd.h" #include "gd_errors.h" #include "gdhelpers.h" #ifdef _MSC_VER # define strcasecmp _stricmp #endif #define MAX_XBM_LINE_SIZE 255 /* F...
./CrossVul/dataset_final_sorted/CWE-119/c/good_5095_0
crossvul-cpp_data_bad_4787_25
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_4787_25
crossvul-cpp_data_bad_2157_0
/* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2014 The PHP Group | +---------...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_2157_0
crossvul-cpp_data_good_3193_0
/* radare - LGPL - Copyright 2009-2016 - earada, pancake */ #include <stdio.h> #include <string.h> #include <r_types.h> #include <r_lib.h> #include <r_asm.h> #include <dalvik/opcode.h> static int dalvik_disassemble (RAsm *a, RAsmOp *op, const ut8 *buf, int len) { int vA, vB, vC, payload = 0, i = (int) buf[0]; int...
./CrossVul/dataset_final_sorted/CWE-119/c/good_3193_0
crossvul-cpp_data_good_2983_0
/* Copyright (c) 2011-2014 PLUMgrid, http://plumgrid.com * Copyright (c) 2016 Facebook * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in th...
./CrossVul/dataset_final_sorted/CWE-119/c/good_2983_0
crossvul-cpp_data_bad_441_0
/* * Soft: Perform a GET query to a remote HTTP/HTTPS server. * Set a timer to compute global remote server response * time. * * Part: HTML stream parser utility functions. * * Authors: Alexandre Cassen, <acassen@linux-vs.org> * * This program is distrib...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_441_0
crossvul-cpp_data_good_3104_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_3104_1
crossvul-cpp_data_good_5357_0
/* * io_dp.c * * Implements the dynamic pointer interface. * * Based on GD.pm code by Lincoln Stein for interfacing to libgd. * Added support for reading as well as support for 'tell' and 'seek'. * * As will all I/O modules, most functions are for local use only (called * via function pointers in the I/O conte...
./CrossVul/dataset_final_sorted/CWE-119/c/good_5357_0
crossvul-cpp_data_bad_344_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-119/c/bad_344_2
crossvul-cpp_data_bad_340_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-119/c/bad_340_1
crossvul-cpp_data_bad_1359_0
/** * @file resolve.c * @author Michal Vasko <mvasko@cesnet.cz> * @brief libyang resolve functions * * Copyright (c) 2015 - 2018 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 co...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_1359_0
crossvul-cpp_data_good_943_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_943_1
crossvul-cpp_data_good_4946_0
#include "builtin.h" #include "cache.h" #include "attr.h" #include "object.h" #include "blob.h" #include "commit.h" #include "tag.h" #include "tree.h" #include "delta.h" #include "pack.h" #include "pack-revindex.h" #include "csum-file.h" #include "tree-walk.h" #include "diff.h" #include "revision.h" #include "list-obje...
./CrossVul/dataset_final_sorted/CWE-119/c/good_4946_0
crossvul-cpp_data_bad_3406_1
/* radare - LGPL - Copyright 2009-2017 - pancake */ #include <string.h> #include "r_bin.h" #include "r_config.h" #include "r_cons.h" #include "r_core.h" #define PAIR_WIDTH 9 // TODO: reuse implementation in core/bin.c static void pair(const char *a, const char *b) { char ws[16]; int al = strlen (a); if (!b) { re...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_3406_1
crossvul-cpp_data_bad_342_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-119/c/bad_342_2
crossvul-cpp_data_bad_507_4
/****************************************************************************** ** Copyright (c) 2015-2018, Intel Corporation ** ** All rights reserved. ** ** ** ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_507_4
crossvul-cpp_data_good_5733_1
/* * Copyright (c) 2002 Jindrich Makovicka <makovick@gmail.com> * Copyright (c) 2011 Stefano Sabatini * Copyright (c) 2013 Jean Delvare <khali@linux-fr.org> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_5733_1
crossvul-cpp_data_good_634_3
/********************************************************************* * * This is based on code created by Peter Harvey, * (pharvey@codebydesign.com). * * Modified and extended by Nick Gorham * (nick@lurcher.org). * * Any bugs or problems should be considered the fault of Nick and not * Peter. * * copyrigh...
./CrossVul/dataset_final_sorted/CWE-119/c/good_634_3
crossvul-cpp_data_bad_4898_0
/* * DBD::mysql - DBI driver for the mysql database * * Copyright (c) 2004-2014 Patrick Galbraith * Copyright (c) 2013-2014 Michiel Beijen * Copyright (c) 2004-2007 Alexey Stroganov * Copyright (c) 2003-2005 Rudolf Lippan * Copyright (c) 1997-2003 Jochen Wiedmann * * You may distribute this under th...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_4898_0
crossvul-cpp_data_bad_161_0
/* * This file is part of Espruino, a JavaScript interpreter for Microcontrollers * * Copyright (C) 2013 Gordon Williams <gw@pur3.co.uk> * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_161_0
crossvul-cpp_data_bad_2568_1
/* Copyright (c) 2014. The YARA Authors. All Rights Reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the followi...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_2568_1
crossvul-cpp_data_good_4946_2
#include "cache.h" #include "tag.h" #include "commit.h" #include "tree.h" #include "blob.h" #include "diff.h" #include "tree-walk.h" #include "revision.h" #include "list-objects.h" static void process_blob(struct rev_info *revs, struct blob *blob, show_object_fn show, struct strbuf *path, const char *n...
./CrossVul/dataset_final_sorted/CWE-119/c/good_4946_2
crossvul-cpp_data_bad_3519_0
/* * linux/fs/jbd2/transaction.c * * Written by Stephen C. Tweedie <sct@redhat.com>, 1998 * * Copyright 1998 Red Hat corp --- All Rights Reserved * * This file is part of the Linux kernel and is made available under * the terms of the GNU General Public License, version 2, or at your * option, any later versio...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_3519_0
crossvul-cpp_data_good_345_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-119/c/good_345_6
crossvul-cpp_data_bad_726_0
// SPDX-License-Identifier: BSD-2-Clause /* * Copyright (c) 2015-2016, Linaro Limited * Copyright (c) 2014, STMicroelectronics International N.V. */ #include <assert.h> #include <bench.h> #include <compiler.h> #include <initcall.h> #include <io.h> #include <kernel/linker.h> #include <kernel/msg_param.h> #include <k...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_726_0
crossvul-cpp_data_bad_5342_0
/* * Copyright (C) 2015 Vabishchevich Nikolay <vabnick@gmail.com> * * This file is part of libass. * * 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....
./CrossVul/dataset_final_sorted/CWE-119/c/bad_5342_0
crossvul-cpp_data_good_3318_0
/* * Copyright (c) 2002 Petko Manolov (petkan@users.sourceforge.net) * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * version 2 as published by the Free Software Foundation. */ #include <linux/signal.h> #include <linux/slab.h> #inc...
./CrossVul/dataset_final_sorted/CWE-119/c/good_3318_0
crossvul-cpp_data_good_2211_0
/* * Copyright 2011-2013 Con Kolivas * Copyright 2010 Jeff Garzik * * 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 versio...
./CrossVul/dataset_final_sorted/CWE-119/c/good_2211_0
crossvul-cpp_data_bad_4946_6
#include "cache.h" #include "refs.h" #include "tag.h" #include "commit.h" #include "blob.h" #include "diff.h" #include "revision.h" #include "reachable.h" #include "cache-tree.h" #include "progress.h" #include "list-objects.h" struct connectivity_progress { struct progress *progress; unsigned long count; }; static ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_4946_6
crossvul-cpp_data_bad_622_3
/*====================================================================* - Copyright (C) 2001 Leptonica. 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 c...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_622_3
crossvul-cpp_data_bad_1672_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 Intel Corp. * Copyright (c) 2001 Nokia, Inc. * Copyright (c) 2001 La Monte H.P. Yarroll * * This file is part of the SCTP kernel implementation ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_1672_0
crossvul-cpp_data_good_2863_0
/* radare - LGPL - Copyright 2008-2017 - nibble, pancake, alvaro_fe */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <r_types.h> #include <r_util.h> #include "elf.h" #ifdef IFDBG #undef IFDBG #endif #define DO_THE_DBG 0 #define IFDBG if (DO_THE_DBG) #define IFINT if (0) #de...
./CrossVul/dataset_final_sorted/CWE-119/c/good_2863_0
crossvul-cpp_data_bad_346_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-119/c/bad_346_4
crossvul-cpp_data_bad_2019_5
/* * src/interfaces/ecpg/pgtypeslib/timestamp.c */ #include "postgres_fe.h" #include <time.h> #include <float.h> #include <limits.h> #include <math.h> #ifdef __FAST_MATH__ #error -ffast-math is known to break this code #endif #include "extern.h" #include "dt.h" #include "pgtypes_timestamp.h" #include "pgtypes_date...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_2019_5
crossvul-cpp_data_bad_4946_4
#include "cache.h" #include "commit.h" #include "tag.h" #include "diff.h" #include "revision.h" #include "list-objects.h" #include "progress.h" #include "pack-revindex.h" #include "pack.h" #include "pack-bitmap.h" #include "sha1-lookup.h" #include "pack-objects.h" struct bitmapped_commit { struct commit *commit; str...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_4946_4
crossvul-cpp_data_good_2819_1
/* * logger.c - logger plugin for WeeChat: save buffer lines to disk files * * Copyright (C) 2003-2017 Sébastien Helleu <flashcode@flashtux.org> * * This file is part of WeeChat, the extensible chat client. * * WeeChat is free software; you can redistribute it and/or modify * it under the terms of the GNU Gener...
./CrossVul/dataset_final_sorted/CWE-119/c/good_2819_1
crossvul-cpp_data_bad_5291_0
/* +----------------------------------------------------------------------+ | PHP Version 7 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2016 The PHP Group | +---------...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_5291_0
crossvul-cpp_data_good_4787_25
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_4787_25
crossvul-cpp_data_good_3615_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-119/c/good_3615_0
crossvul-cpp_data_bad_4787_14
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_4787_14
crossvul-cpp_data_bad_340_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-119/c/bad_340_0
crossvul-cpp_data_good_341_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-119/c/good_341_8
crossvul-cpp_data_bad_5475_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-119/c/bad_5475_3
crossvul-cpp_data_good_4787_6
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_4787_6
crossvul-cpp_data_good_339_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-119/c/good_339_10
crossvul-cpp_data_good_4721_0
/* FUSE: Filesystem in Userspace Copyright (C) 2001-2008 Miklos Szeredi <miklos@szeredi.hu> This program can be distributed under the terms of the GNU GPL. See the file COPYING. */ #include "fuse_i.h" #include <linux/pagemap.h> #include <linux/slab.h> #include <linux/kernel.h> #include <linux/sched.h> #incl...
./CrossVul/dataset_final_sorted/CWE-119/c/good_4721_0
crossvul-cpp_data_bad_552_4
/* * Boa, an http server * Copyright (C) 1999 Larry Doolittle <ldoolitt@boa.org> * Copyright (C) 2000-2005 Jon Nelson <jnelson@boa.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 Foundat...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_552_4
crossvul-cpp_data_good_343_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-119/c/good_343_0
crossvul-cpp_data_bad_5127_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_5127_1
crossvul-cpp_data_bad_4772_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_4772_1
crossvul-cpp_data_bad_343_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-119/c/bad_343_1
crossvul-cpp_data_good_1655_0
/* A network driver using virtio. * * Copyright 2007 Rusty Russell <rusty@rustcorp.com.au> IBM Corporation * * 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...
./CrossVul/dataset_final_sorted/CWE-119/c/good_1655_0
crossvul-cpp_data_good_1537_1
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 1993 by OpenVision Technologies, 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 a...
./CrossVul/dataset_final_sorted/CWE-119/c/good_1537_1
crossvul-cpp_data_good_4270_0
/* ** $Id: ldo.c $ ** Stack and Call structure of Lua ** See Copyright Notice in lua.h */ #define ldo_c #define LUA_CORE #include "lprefix.h" #include <setjmp.h> #include <stdlib.h> #include <string.h> #include "lua.h" #include "lapi.h" #include "ldebug.h" #include "ldo.h" #include "lfunc.h" #include "lgc.h" #inc...
./CrossVul/dataset_final_sorted/CWE-119/c/good_4270_0
crossvul-cpp_data_bad_1030_0
/* ** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding ** Copyright (C) 2003-2005 M. Bakker, Nero AG, http://www.nero.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 Foundati...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_1030_0
crossvul-cpp_data_bad_930_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_930_0
crossvul-cpp_data_good_339_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-119/c/good_339_1
crossvul-cpp_data_good_4787_22
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_4787_22
crossvul-cpp_data_good_441_0
/* * Soft: Perform a GET query to a remote HTTP/HTTPS server. * Set a timer to compute global remote server response * time. * * Part: HTML stream parser utility functions. * * Authors: Alexandre Cassen, <acassen@linux-vs.org> * * This program is distrib...
./CrossVul/dataset_final_sorted/CWE-119/c/good_441_0
crossvul-cpp_data_good_5734_0
/* * Go2Webinar decoder * Copyright (c) 2012 Konstantin Shishkov * * 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,...
./CrossVul/dataset_final_sorted/CWE-119/c/good_5734_0
crossvul-cpp_data_good_344_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-119/c/good_344_2
crossvul-cpp_data_good_4787_8
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_4787_8
crossvul-cpp_data_good_345_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-119/c/good_345_9
crossvul-cpp_data_good_343_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-119/c/good_343_3
crossvul-cpp_data_good_340_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-119/c/good_340_5
crossvul-cpp_data_good_5590_1
/* * linux/fs/vfat/namei.c * * Written 1992,1993 by Werner Almesberger * * Windows95/Windows NT compatible extended MSDOS filesystem * by Gordon Chaffee Copyright (C) 1995. Send bug reports for the * VFAT filesystem to <chaffee@cs.berkeley.edu>. Specify * what file operation caused you trouble and...
./CrossVul/dataset_final_sorted/CWE-119/c/good_5590_1
crossvul-cpp_data_bad_343_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-119/c/bad_343_3
crossvul-cpp_data_bad_2521_0
/* * Copyright (c) Christos Zoulas 2003. * All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice immediately at t...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_2521_0
crossvul-cpp_data_good_811_0
#include "jsi.h" #include "jslex.h" #include "jsparse.h" #include "jscompile.h" #include "jsvalue.h" /* for jsV_numbertostring */ #define cexp jsC_cexp /* collision with math.h */ #define JF js_State *J, js_Function *F JS_NORETURN void jsC_error(js_State *J, js_Ast *node, const char *fmt, ...) JS_PRINTFLIKE(3,4); s...
./CrossVul/dataset_final_sorted/CWE-119/c/good_811_0
crossvul-cpp_data_bad_1469_0
/* Keyring handling * * Copyright (C) 2004-2005, 2008, 2013 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@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 Found...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_1469_0
crossvul-cpp_data_good_622_3
/*====================================================================* - Copyright (C) 2001 Leptonica. 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 c...
./CrossVul/dataset_final_sorted/CWE-119/c/good_622_3
crossvul-cpp_data_good_3681_0
/* * The NFC Controller Interface is the communication protocol between an * NFC Controller (NFCC) and a Device Host (DH). * * Copyright (C) 2011 Texas Instruments, Inc. * * Written by Ilan Elias <ilane@ti.com> * * Acknowledgements: * This file is based on hci_event.c, which was written * by Maxim Kras...
./CrossVul/dataset_final_sorted/CWE-119/c/good_3681_0
crossvul-cpp_data_bad_634_1
/********************************************************************* * * This is based on code created by Peter Harvey, * (pharvey@codebydesign.com). * * Modified and extended by Nick Gorham * (nick@lurcher.org). * * Any bugs or problems should be considered the fault of Nick and not * Peter. * * copyright...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_634_1
crossvul-cpp_data_bad_2038_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-119/c/bad_2038_0
crossvul-cpp_data_good_4787_18
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_4787_18
crossvul-cpp_data_good_5064_0
/* boot.c - Read and analyze ia PC/MS-DOS boot sector Copyright (C) 1993 Werner Almesberger <werner.almesberger@lrc.di.epfl.ch> Copyright (C) 1998 Roman Hodek <Roman.Hodek@informatik.uni-erlangen.de> Copyright (C) 2008-2014 Daniel Baumann <mail@daniel-baumann.ch> Copyright (C) 2015 Andreas Bombe <aeb@debia...
./CrossVul/dataset_final_sorted/CWE-119/c/good_5064_0
crossvul-cpp_data_good_552_1
/* * Name: strstr and strdup * * These are the standard library utilities. We define them here for * systems that don't have them. */ #ifndef HAVE_STRSTR char *strstr(char *s1, char *s2) { /* from libiberty */ char *p; int len = strlen(s2); if (*s2 == '\0') /...
./CrossVul/dataset_final_sorted/CWE-119/c/good_552_1
crossvul-cpp_data_bad_404_1
/* vsprintf with automatic memory allocation. Copyright (C) 1999, 2002-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 published by the Free Software Foundation; either version 2, or (at your op...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_404_1
crossvul-cpp_data_bad_339_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-119/c/bad_339_8
crossvul-cpp_data_good_5575_0
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* kdc/do_tgs_req.c - KDC Routines to deal with TGS_REQ's */ /* * Copyright 1990,1991,2001,2007,2008,2009 by the Massachusetts Institute of Technology. * All Rights Reserved. * * Export of this software from the United States of America may * requir...
./CrossVul/dataset_final_sorted/CWE-119/c/good_5575_0
crossvul-cpp_data_bad_552_1
/* * Name: strstr and strdup * * These are the standard library utilities. We define them here for * systems that don't have them. */ #ifndef HAVE_STRSTR char *strstr(char *s1, char *s2) { /* from libiberty */ char *p; int len = strlen(s2); if (*s2 == '\0') /...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_552_1
crossvul-cpp_data_good_1826_0
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include "jv.h" #include "jv_dtoa.h" #include "jv_unicode.h" #include "jv_alloc.h" #include "jv_dtoa.h" typedef const char* presult; #define TRY(x) do {presult msg__ = (x); if (msg__) return msg__; } while(0) #ifdef __GNUC__ #define pfunc ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_1826_0
crossvul-cpp_data_good_5733_6
/* * Copyright (c) 2012 Jeremy Tran * Copyright (c) 2004 Tobias Diedrich * Copyright (c) 2003 Donald A. Graft * * This file is part of FFmpeg. * * FFmpeg 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...
./CrossVul/dataset_final_sorted/CWE-119/c/good_5733_6
crossvul-cpp_data_good_150_0
// SPDX-License-Identifier: GPL-2.0 #include <linux/kernel.h> #include <linux/mm.h> #include <linux/fs.h> #include <linux/errno.h> #include <linux/string.h> #include <linux/blkdev.h> #include <linux/module.h> #include <linux/blkpg.h> #include <linux/cdrom.h> #include <linux/delay.h> #include <linux/slab.h> #include <as...
./CrossVul/dataset_final_sorted/CWE-119/c/good_150_0
crossvul-cpp_data_good_3109_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_3109_0
crossvul-cpp_data_good_525_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 / mp4box application * * GPAC 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-119/c/good_525_0
crossvul-cpp_data_bad_1828_0
/* * Copyright (c) Christos Zoulas 2003. * All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice immediately at th...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_1828_0
crossvul-cpp_data_bad_5047_0
/* XML RPC Library * * (C) 2005 Trystan Scott Lee * Contact trystan@nomadirc.net * * Please read COPYING and README for further details. * * Based on the original code from Denora * * */ #include <mowgli.h> #include "atheme.h" #include "xmlrpclib.h" static int xmlrpc_error_code; typedef struct XMLRPCCmd_ X...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_5047_0