id
stringlengths
25
30
content
stringlengths
14
942k
max_stars_repo_path
stringlengths
49
55
crossvul-cpp_data_good_3187_0
/* This file is part of libmspack. * (C) 2003-2013 Stuart Caie. * * The LZX method was created by Jonathan Forbes and Tomi Poutanen, adapted * by Microsoft Corporation. * * libmspack is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License (LGPL) versi...
./CrossVul/dataset_final_sorted/CWE-119/c/good_3187_0
crossvul-cpp_data_good_525_1
/* * GPAC - Multimedia Framework C SDK * * Authors: Jean Le Feuvre * Copyright (c) Telecom ParisTech 2005-2012 * All rights reserved * * This file is part of GPAC / command-line client * * GPAC is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_525_1
crossvul-cpp_data_bad_4807_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 "common.h" #include "git2/types.h" #include "git2/errors.h" #include "git2/refs.h" #include "g...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_4807_0
crossvul-cpp_data_good_5421_0
/* $Id: Str.c,v 1.8 2002/12/24 17:20:46 ukai Exp $ */ /* * String manipulation library for Boehm GC * * (C) Copyright 1998-1999 by Akinori Ito * * This software may be redistributed freely for this purpose, in full * or in part, provided that this entire copyright notice is included * on any copies of this so...
./CrossVul/dataset_final_sorted/CWE-119/c/good_5421_0
crossvul-cpp_data_good_342_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-119/c/good_342_7
crossvul-cpp_data_bad_927_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_927_0
crossvul-cpp_data_good_4781_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_4781_0
crossvul-cpp_data_bad_5286_1
/* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2016 The PHP Group | +---------...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_5286_1
crossvul-cpp_data_bad_4946_7
#include "cache.h" #include "tag.h" #include "blob.h" #include "tree.h" #include "commit.h" #include "diff.h" #include "refs.h" #include "revision.h" #include "graph.h" #include "grep.h" #include "reflog-walk.h" #include "patch-ids.h" #include "decorate.h" #include "log-tree.h" #include "string-list.h" #include "line-l...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_4946_7
crossvul-cpp_data_good_3503_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/init.h> #include <linux/module.h> #include <linux/poll.h> #include <linux/uio.h> #include <...
./CrossVul/dataset_final_sorted/CWE-119/c/good_3503_0
crossvul-cpp_data_bad_4835_0
/* * HTTP protocol for ffmpeg client * Copyright (c) 2000, 2001 Fabrice Bellard * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_4835_0
crossvul-cpp_data_good_1537_2
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * 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...
./CrossVul/dataset_final_sorted/CWE-119/c/good_1537_2
crossvul-cpp_data_good_2183_1
/* $Id: miniwget.c,v 1.60 2013/10/07 10:03:16 nanard Exp $ */ /* Project : miniupnp * Website : http://miniupnp.free.fr/ * Author : Thomas Bernard * Copyright (c) 2005-2013 Thomas Bernard * This software is subject to the conditions detailed in the * LICENCE file provided in this distribution. */ #include <stdio....
./CrossVul/dataset_final_sorted/CWE-119/c/good_2183_1
crossvul-cpp_data_bad_5111_0
/* cosine.c * * CoSine IPNOS L2 debug output parsing * Copyright (c) 2002 by Motonori Shindo <motonori@shin.do> * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Pub...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_5111_0
crossvul-cpp_data_good_2107_0
/* * Copyright (c) Ian F. Darwin 1986-1995. * Software written by Ian F. Darwin and others; * maintained 1995-present by Christos Zoulas and others. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistr...
./CrossVul/dataset_final_sorted/CWE-119/c/good_2107_0
crossvul-cpp_data_bad_3716_0
/* * Copyright (C) 2005-2012 Gilles Darold * * 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 prog...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_3716_0
crossvul-cpp_data_good_5795_5
/* * $Id: json_tokener.c,v 1.20 2006/07/25 03:24:50 mclark Exp $ * * Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd. * Michael Clark <michael@metaparadigm.com> * * This library is free software; you can redistribute it and/or modify * it under the terms of the MIT license. See COPYING for details. * * * Copyr...
./CrossVul/dataset_final_sorted/CWE-119/c/good_5795_5
crossvul-cpp_data_good_343_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_343_2
crossvul-cpp_data_bad_5740_1
/* * NET4: Implementation of BSD Unix domain sockets. * * Authors: Alan Cox, <alan@lxorguk.ukuu.org.uk> * * 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 Li...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_5740_1
crossvul-cpp_data_bad_2987_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/bad_2987_0
crossvul-cpp_data_good_939_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_939_0
crossvul-cpp_data_good_3415_0
/* * Chronomaster DFA Video Decoder * Copyright (c) 2011 Konstantin Shishkov * based on work by Vladimir "VAG" Gneushev * * 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 So...
./CrossVul/dataset_final_sorted/CWE-119/c/good_3415_0
crossvul-cpp_data_bad_341_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/bad_341_9
crossvul-cpp_data_good_500_0
/* Copyright (C) 2008-2018 - pancake, unlogic, emvivre */ #include <r_flag.h> #include <r_core.h> #include <r_asm.h> #include <r_lib.h> #include <r_types.h> #include <stdio.h> #include <string.h> static ut64 getnum(RAsm *a, const char *s); #define ENCODING_SHIFT 0 #define OPTYPE_SHIFT 6 #define REGMASK_SHIFT 16 #...
./CrossVul/dataset_final_sorted/CWE-119/c/good_500_0
crossvul-cpp_data_bad_3191_0
/* * bplist.c * Binary plist implementation * * Copyright (c) 2011-2017 Nikias Bassen, All Rights Reserved. * Copyright (c) 2008-2010 Jonathan Beck, All Rights Reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as p...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_3191_0
crossvul-cpp_data_bad_4233_0
/* Copyright (C) 2001-2020 Artifex Software, Inc. All Rights Reserved. This software is provided AS-IS with no warranty, either express or implied. This software is distributed under license and may not be copied, modified or distributed except as expressly authorized under the terms of the license ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_4233_0
crossvul-cpp_data_good_5409_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_5409_0
crossvul-cpp_data_good_5025_0
/* * Copyright (C) 2003-2008 Takahiro Hirofuchi * * This is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This is distribute...
./CrossVul/dataset_final_sorted/CWE-119/c/good_5025_0
crossvul-cpp_data_bad_1543_0
/* Kjetil Matheussen 2006. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_1543_0
crossvul-cpp_data_bad_5767_0
/* * fs/nfs/nfs4proc.c * * Client-side procedure declarations for NFSv4. * * Copyright (c) 2002 The Regents of the University of Michigan. * All rights reserved. * * Kendrick Smith <kmsmith@umich.edu> * Andy Adamson <andros@umich.edu> * * Redistribution and use in source and binary forms, with or wi...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_5767_0
crossvul-cpp_data_bad_550_0
/* * The copyright in this software is being made available under the 2-clauses * BSD License, included below. This software may be subject to other third * party and contributor rights, including patent rights, and no such rights * are granted under this license. * * Copyright (c) 2002-2014, Universite catholiqu...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_550_0
crossvul-cpp_data_good_2986_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_2986_0
crossvul-cpp_data_bad_3319_0
/* * Copyright (c) 2001 Vojtech Pavlik * * CATC EL1210A NetMate USB Ethernet driver * * Sponsored by SuSE * * Based on the work of * Donald Becker * * Old chipset support added by Simon Evans <spse@secret.org.uk> 2002 * - adds support for Belkin F5U011 */ /* * This program is free software; you ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_3319_0
crossvul-cpp_data_good_4888_0
/* * Driver for Cadence QSPI Controller * * Copyright Altera Corporation (C) 2012-2014. All rights reserved. * * 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 by the Free Software Foundation. ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_4888_0
crossvul-cpp_data_bad_2540_1
/* $Id: upnpreplyparse.c,v 1.19 2015/07/15 10:29:11 nanard Exp $ */ /* MiniUPnP project * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ * (c) 2006-2015 Thomas Bernard * This software is subject to the conditions detailed * in the LICENCE file provided within the distribution */ #include <stdlib.h> #in...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_2540_1
crossvul-cpp_data_good_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/good_343_1
crossvul-cpp_data_bad_346_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_346_3
crossvul-cpp_data_good_1618_0
/******************************************************************************* * Vhost kernel TCM fabric driver for virtio SCSI initiators * * (C) Copyright 2010-2013 Datera, Inc. * (C) Copyright 2010-2012 IBM Corp. * * Licensed to the Linux Foundation under the General Public License (GPL) version 2. * * Aut...
./CrossVul/dataset_final_sorted/CWE-119/c/good_1618_0
crossvul-cpp_data_bad_1618_0
/******************************************************************************* * Vhost kernel TCM fabric driver for virtio SCSI initiators * * (C) Copyright 2010-2013 Datera, Inc. * (C) Copyright 2010-2012 IBM Corp. * * Licensed to the Linux Foundation under the General Public License (GPL) version 2. * * Aut...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_1618_0
crossvul-cpp_data_good_5477_1
/* $Id$ */ /* * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * that (i) the above copyright notices and this permission ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_5477_1
crossvul-cpp_data_good_3420_0
/* * ScreenPressor decoder * * Copyright (c) 2017 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, ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_3420_0
crossvul-cpp_data_bad_2308_0
/* ssl/d1_lib.c */ /* * DTLS implementation written by Nagendra Modadugu * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. */ /* ==================================================================== * Copyright (c) 1999-2005 The OpenSSL Project. All rights reserved. * * Redistribution and use in sourc...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_2308_0
crossvul-cpp_data_bad_345_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_345_3
crossvul-cpp_data_good_346_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_346_6
crossvul-cpp_data_bad_1064_0
/* * asn1.c: ASN.1 decoding functions (DER) * * 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 o...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_1064_0
crossvul-cpp_data_bad_2933_0
/* * Smacker decoder * Copyright (c) 2006 Konstantin Shishkov * * This file is part of Libav. * * Libav 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 (...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_2933_0
crossvul-cpp_data_bad_346_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/bad_346_9
crossvul-cpp_data_good_2_0
/*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | * / __| | | | |_) | | * | (__| |_| | _ <| |___ * \___|\...
./CrossVul/dataset_final_sorted/CWE-119/c/good_2_0
crossvul-cpp_data_bad_4767_0
/* $OpenBSD: monitor.c,v 1.165 2016/09/05 13:57:31 djm Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * Copyright 2002 Markus Friedl <markus@openbsd.org> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_4767_0
crossvul-cpp_data_good_2018_0
/* * Kernel-based Virtual Machine driver for Linux * * derived from drivers/kvm/kvm_main.c * * Copyright (C) 2006 Qumranet, Inc. * Copyright (C) 2008 Qumranet, Inc. * Copyright IBM Corporation, 2008 * Copyright 2010 Red Hat, Inc. and/or its affiliates. * * Authors: * Avi Kivity <avi@qumranet.com> * Ya...
./CrossVul/dataset_final_sorted/CWE-119/c/good_2018_0
crossvul-cpp_data_good_2933_0
/* * Smacker decoder * Copyright (c) 2006 Konstantin Shishkov * * This file is part of Libav. * * Libav 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 (...
./CrossVul/dataset_final_sorted/CWE-119/c/good_2933_0
crossvul-cpp_data_good_507_3
/****************************************************************************** ** Copyright (c) 2015-2018, Intel Corporation ** ** All rights reserved. ** ** ** ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_507_3
crossvul-cpp_data_bad_341_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-119/c/bad_341_7
crossvul-cpp_data_bad_2131_4
/* * HID driver for some petalynx "special" devices * * Copyright (c) 1999 Andreas Gal * Copyright (c) 2000-2005 Vojtech Pavlik <vojtech@suse.cz> * Copyright (c) 2005 Michael Haboustak <mike-@cinci.rr.com> for Concept2, Inc * Copyright (c) 2006-2007 Jiri Kosina * Copyright (c) 2008 Jiri Slaby */ /* * Th...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_2131_4
crossvul-cpp_data_good_503_0
/* radare - LGPL - Copyright 2015-2018 - pancake */ #include <stdio.h> #include <string.h> #include <ctype.h> #include <stdlib.h> #include <r_util.h> typedef enum optype_t { ARM_NOTYPE = -1, ARM_GPR = 1, ARM_CONSTANT = 2, ARM_FP = 4, ARM_MEM_OPT = 8 } OpType; typedef enum regtype_t { ARM_UNDEFINED = -1, ARM_R...
./CrossVul/dataset_final_sorted/CWE-119/c/good_503_0
crossvul-cpp_data_good_5740_1
/* * NET4: Implementation of BSD Unix domain sockets. * * Authors: Alan Cox, <alan@lxorguk.ukuu.org.uk> * * 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 Li...
./CrossVul/dataset_final_sorted/CWE-119/c/good_5740_1
crossvul-cpp_data_good_3635_0
#include <linux/etherdevice.h> #include <linux/if_macvlan.h> #include <linux/interrupt.h> #include <linux/nsproxy.h> #include <linux/compat.h> #include <linux/if_tun.h> #include <linux/module.h> #include <linux/skbuff.h> #include <linux/cache.h> #include <linux/sched.h> #include <linux/types.h> #include <linux/slab.h> ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_3635_0
crossvul-cpp_data_bad_160_4
/* * 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_160_4
crossvul-cpp_data_good_5203_0
/** * collectd - src/network.c * Copyright (C) 2005-2013 Florian octo Forster * Copyright (C) 2009 Aman Gupta * * This program 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; only version ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_5203_0
crossvul-cpp_data_good_2769_0
/* zip_open.c -- open zip archive by name 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 without modification, are permitt...
./CrossVul/dataset_final_sorted/CWE-119/c/good_2769_0
crossvul-cpp_data_bad_340_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/bad_340_10
crossvul-cpp_data_good_2414_0
/* * symlink.c * * PURPOSE * Symlink handling routines for the OSTA-UDF(tm) filesystem. * * COPYRIGHT * This file is distributed under the terms of the GNU General Public * License (GPL). Copies of the GPL can be obtained from: * ftp://prep.ai.mit.edu/pub/gnu/GPL * Each contributing author retains all rights...
./CrossVul/dataset_final_sorted/CWE-119/c/good_2414_0
crossvul-cpp_data_good_339_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_339_0
crossvul-cpp_data_good_4824_0
/* +----------------------------------------------------------------------+ | phar php single-file executable PHP extension | +----------------------------------------------------------------------+ | Copyright (c) 2005-2016 The PHP Group | +--------------...
./CrossVul/dataset_final_sorted/CWE-119/c/good_4824_0
crossvul-cpp_data_good_930_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_930_0
crossvul-cpp_data_good_3111_0
/********************************************************************** * $Id$ * * Project: MapServer * Purpose: OGC Filter Encoding implementation * Author: Y. Assefa, DM Solutions Group (assefa@dmsolutions.ca) * ********************************************************************** * Copyright (c) 2003, Y...
./CrossVul/dataset_final_sorted/CWE-119/c/good_3111_0
crossvul-cpp_data_good_5513_0
#include <math.h> #include <string.h> #include <stdlib.h> #include "gd.h" #include "gdhelpers.h" #include "php.h" #ifdef _MSC_VER # if _MSC_VER >= 1300 /* in MSVC.NET these are available but only for __cplusplus and not _MSC_EXTENSIONS */ # if !defined(_MSC_EXTENSIONS) && defined(__cplusplus) # define HAVE_FABSF ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_5513_0
crossvul-cpp_data_good_734_1
/* This file is part of libmspack. * (C) 2003-2018 Stuart Caie. * * libmspack is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License (LGPL) version 2.1 * * For further details, see the file COPYING.LIB distributed with libmspack */ /* CHM decompress...
./CrossVul/dataset_final_sorted/CWE-119/c/good_734_1
crossvul-cpp_data_bad_4779_2
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_4779_2
crossvul-cpp_data_good_4907_0
/** * eCryptfs: Linux filesystem encryption layer * * Copyright (C) 2008 International Business Machines Corp. * Author(s): Michael A. Halcrow <mahalcro@us.ibm.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...
./CrossVul/dataset_final_sorted/CWE-119/c/good_4907_0
crossvul-cpp_data_bad_2986_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/bad_2986_0
crossvul-cpp_data_bad_4907_2
/* * kernel/sched/core.c * * Kernel scheduler and related syscalls * * Copyright (C) 1991-2002 Linus Torvalds * * 1996-12-23 Modified by Dave Grothe to fix bugs in semaphores and * make semaphores SMP safe * 1998-11-19 Implemented schedule_timeout() and related stuff * by Andrea Arcangeli * 2002-01...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_4907_2
crossvul-cpp_data_good_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/good_4421_0
crossvul-cpp_data_good_3287_0
/* ** Copyright (C) 2004-2017 Erik de Castro Lopo <erikd@mega-nerd.com> ** Copyright (C) 2004 Tobias Gehrig <tgehrig@ira.uka.de> ** ** This program 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 ; ei...
./CrossVul/dataset_final_sorted/CWE-119/c/good_3287_0
crossvul-cpp_data_good_346_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_346_2
crossvul-cpp_data_good_4787_9
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % CCC U U TTTTT ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_4787_9
crossvul-cpp_data_good_2346_0
/* * Copyright (C) 2007-2008 Sourcefire, Inc. * * Authors: Alberto Wu, Tomasz Kojm * * 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. * * This program is distributed in t...
./CrossVul/dataset_final_sorted/CWE-119/c/good_2346_0
crossvul-cpp_data_bad_4785_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_4785_0
crossvul-cpp_data_bad_252_5
#define TEST_NO_MAIN #include "acutest.h" #include "mutt/base64.h" #include <string.h> static const char clear[] = "Hello"; static const char encoded[] = "SGVsbG8="; void test_base64_encode(void) { char buffer[16]; size_t len = mutt_b64_encode(buffer, clear, sizeof(clear) - 1, sizeof(buffer)); if (!TEST_CHECK...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_252_5
crossvul-cpp_data_bad_412_2
/* regcomp.c */ /* * 'A fair jaw-cracker dwarf-language must be.' --Samwise Gamgee * * [p.285 of _The Lord of the Rings_, II/iii: "The Ring Goes South"] */ /* This file contains functions for compiling a regular expression. See * also regexec.c which funnily enough, contains functions for exe...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_412_2
crossvul-cpp_data_bad_128_0
#include <math.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <assert.h> #include "lua.h" #include "lauxlib.h" #define LUACMSGPACK_NAME "cmsgpack" #define LUACMSGPACK_SAFE_NAME "cmsgpack_safe" #define LUACMSGPACK_VERSION "lua-cmsgpack 0.4.0" #define LUACMSGPACK_COPYRIGHT "Copyr...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_128_0
crossvul-cpp_data_bad_2767_0
#include "../fbuffer/fbuffer.h" #include "generator.h" #ifdef HAVE_RUBY_ENCODING_H static VALUE CEncoding_UTF_8; static ID i_encoding, i_encode; #endif static VALUE mJSON, mExt, mGenerator, cState, mGeneratorMethods, mObject, mHash, mArray, #ifdef RUBY_INTEGER_UNIFICATION mInteger, #else ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_2767_0
crossvul-cpp_data_good_2560_0
/* * GRUB -- GRand Unified Bootloader * Copyright (C) 2002,2003,2004,2006,2007,2008,2009,2010 Free Software Foundation, Inc. * * GRUB is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either versio...
./CrossVul/dataset_final_sorted/CWE-119/c/good_2560_0
crossvul-cpp_data_bad_5053_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_5053_1
crossvul-cpp_data_good_1030_1
/* ** 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/good_1030_1
crossvul-cpp_data_bad_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/bad_3318_0
crossvul-cpp_data_bad_340_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_340_4
crossvul-cpp_data_good_1359_1
/** * @file tree_data.c * @author Radek Krejci <rkrejci@cesnet.cz> * @brief Manipulation with libyang data structures * * 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. * ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_1359_1
crossvul-cpp_data_bad_5830_0
/* * Radiotap parser * * Copyright 2007 Andy Green <andy@warmcat.com> * Copyright 2009 Johannes Berg <johannes@sipsolutions.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 Foundat...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_5830_0
crossvul-cpp_data_bad_5056_0
/* * videobuf2-v4l2.c - V4L2 driver helper framework * * Copyright (C) 2010 Samsung Electronics * * Author: Pawel Osciak <pawel@osciak.com> * Marek Szyprowski <m.szyprowski@samsung.com> * * The vb2_thread implementation was based on code from videobuf-dvb.c: * (c) 2004 Gerd Knorr <kraxel@bytesex.org> [SUSE ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_5056_0
crossvul-cpp_data_good_255_1
/** * @file * POP network mailbox * * @authors * Copyright (C) 2000-2002 Vsevolod Volkov <vvv@mutt.org.ua> * Copyright (C) 2006-2007,2009 Rocco Rutte <pdmef@gmx.net> * * @copyright * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_255_1
crossvul-cpp_data_good_4807_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 "common.h" #include "git2/types.h" #include "git2/errors.h" #include "git2/refs.h" #include "g...
./CrossVul/dataset_final_sorted/CWE-119/c/good_4807_0
crossvul-cpp_data_bad_341_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_341_2
crossvul-cpp_data_bad_1359_3
/** * @file tree_schema.c * @author Radek Krejci <rkrejci@cesnet.cz> * @brief Manipulation with libyang schema data structures * * 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 Lic...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_1359_3
crossvul-cpp_data_good_941_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_941_0
crossvul-cpp_data_good_5053_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_5053_1
crossvul-cpp_data_bad_4063_0
/* * corre.c * * Routines to implement Compact Rise-and-Run-length Encoding (CoRRE). This * code is based on krw's original javatel rfbserver. */ /* * Copyright (C) 2002 RealVNC Ltd. * OSXvnc Copyright (C) 2001 Dan McGuirk <mcguirk@incompleteness.net>. * Original Xvnc code Copyright (C) 1999 AT&T Laborator...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_4063_0
crossvul-cpp_data_bad_3227_0
/* ** Copyright (C) 1999-2017 Erik de Castro Lopo <erikd@mega-nerd.com> ** Copyright (C) 2005 David Viens <davidv@plogue.com> ** ** This program 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/bad_3227_0
crossvul-cpp_data_bad_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/bad_2211_0
crossvul-cpp_data_good_2364_0
/* hivex - Windows Registry "hive" extraction library. * Copyright (C) 2009-2011 Red Hat Inc. * Derived from code by Petter Nordahl-Hagen under a compatible license: * Copyright (c) 1997-2007 Petter Nordahl-Hagen. * Derived from code by Markus Stephany under a compatible license: * Copyright (c) 2000-2004, Mar...
./CrossVul/dataset_final_sorted/CWE-119/c/good_2364_0