id
stringlengths
25
30
content
stringlengths
14
942k
max_stars_repo_path
stringlengths
49
55
crossvul-cpp_data_bad_1372_0
/* * GPAC - Multimedia Framework C SDK * * Authors: Jean Le Feuvre * Copyright (c) Telecom ParisTech 2005-2012 * * This file is part of GPAC / MPEG2-TS sub-project * * GPAC is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as publishe...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_1372_0
crossvul-cpp_data_bad_148_1
/* radare - LGPL - Copyright 2009-2018 - pancake, maijin */ #include "r_util.h" #include "r_core.h" static const char *help_msg_a[] = { "Usage:", "a", "[abdefFghoprxstc] [...]", "aa", "[?]", "analyze all (fcns + bbs) (aa0 to avoid sub renaming)", "a8", " [hexpairs]", "analyze bytes", "ab", "[b] [addr]", "analyze ...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_148_1
crossvul-cpp_data_bad_2566_0
/* * POSIX message queues filesystem for Linux. * * Copyright (C) 2003,2004 Krzysztof Benedyczak (golbi@mat.uni.torun.pl) * Michal Wronski (michal.wronski@gmail.com) * * Spinlocks: Mohamed Abbas (abbas.mohamed@intel.com) * Lockless receive & send, fd ...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_2566_0
crossvul-cpp_data_good_1840_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-416/c/good_1840_0
crossvul-cpp_data_good_822_0
#include <linux/kernel.h> #include <linux/errno.h> #include <linux/err.h> #include <linux/spinlock.h> #include <linux/mm.h> #include <linux/memremap.h> #include <linux/pagemap.h> #include <linux/rmap.h> #include <linux/swap.h> #include <linux/swapops.h> #include <linux/sched/signal.h> #include <linux/rwsem.h> #includ...
./CrossVul/dataset_final_sorted/CWE-416/c/good_822_0
crossvul-cpp_data_good_375_0
/*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | * / __| | | | |_) | | * | (__| |_| | _ <| |___ * \___|\...
./CrossVul/dataset_final_sorted/CWE-416/c/good_375_0
crossvul-cpp_data_bad_388_4
// SPDX-License-Identifier: GPL-2.0 /* * mm/debug.c * * mm/ specific debug routines. * */ #include <linux/kernel.h> #include <linux/mm.h> #include <linux/trace_events.h> #include <linux/memcontrol.h> #include <trace/events/mmflags.h> #include <linux/migrate.h> #include <linux/page_owner.h> #include "internal.h" ...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_388_4
crossvul-cpp_data_bad_574_0
/* * linux/drivers/block/loop.c * * Written by Theodore Ts'o, 3/29/93 * * Copyright 1993 by Theodore Ts'o. Redistribution of this file is * permitted under the GNU General Public License. * * DES encryption plus some minor changes by Werner Almesberger, 30-MAY-1993 * more DES encryption plus IDEA encryption...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_574_0
crossvul-cpp_data_bad_3399_1
/* radare - LGPL - Copyright 2011-2017 - earada, pancake */ #include <r_core.h> #include "r_util.h" #define is_in_range(at, from, sz) ((at) >= (from) && (at) < ((from) + (sz))) #define VA_FALSE 0 #define VA_TRUE 1 #define VA_NOREBASE 2 #define IS_MODE_SET(mode) (mode & R_CORE_BIN_SET) #define IS_MODE_SIMPLE(...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_3399_1
crossvul-cpp_data_good_4020_1
/* exif-mnote-data-fuji.c * * Copyright (c) 2002 Lutz Mueller <lutz@users.sourceforge.net> * * 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 of the License, or (...
./CrossVul/dataset_final_sorted/CWE-416/c/good_4020_1
crossvul-cpp_data_bad_1186_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_1186_0
crossvul-cpp_data_bad_1017_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % M M AAA TTTTT L AAA BBBB ...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_1017_0
crossvul-cpp_data_bad_5516_1
/* +----------------------------------------------------------------------+ | PHP Version 7 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2016 The PHP Group | +---------...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_5516_1
crossvul-cpp_data_bad_466_0
/* * "Real" compatible demuxer. * 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 of th...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_466_0
crossvul-cpp_data_good_832_1
// SPDX-License-Identifier: GPL-2.0+ #include <linux/io.h> #include "ipmi_si.h" static unsigned char intf_mem_inb(const struct si_sm_io *io, unsigned int offset) { return readb((io->addr)+(offset * io->regspacing)); } static void intf_mem_outb(const struct si_sm_io *io, unsigned int offset, unsigned char...
./CrossVul/dataset_final_sorted/CWE-416/c/good_832_1
crossvul-cpp_data_bad_375_0
/*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | * / __| | | | |_) | | * | (__| |_| | _ <| |___ * \___|\...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_375_0
crossvul-cpp_data_good_2840_0
/* * fs/userfaultfd.c * * Copyright (C) 2007 Davide Libenzi <davidel@xmailserver.org> * Copyright (C) 2008-2009 Red Hat, Inc. * Copyright (C) 2015 Red Hat, Inc. * * This work is licensed under the terms of the GNU GPL, version 2. See * the COPYING file in the top-level directory. * * Some part derive...
./CrossVul/dataset_final_sorted/CWE-416/c/good_2840_0
crossvul-cpp_data_bad_888_0
/* MDIO Bus interface * * Author: Andy Fleming * * Copyright (c) 2004 Freescale Semiconductor, 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 of the Licens...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_888_0
crossvul-cpp_data_bad_1390_2
/* libcomps - C alternative to yum.comps library * Copyright (C) 2013 Jindrich Luza * * 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 * any later versio...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_1390_2
crossvul-cpp_data_bad_4841_0
/* * L2TPv3 IP encapsulation support * * Copyright (c) 2008,2009,2010 Katalix Systems Ltd * * 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...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_4841_0
crossvul-cpp_data_bad_4797_0
/* * bsg.c - block layer implementation of the sg v4 interface * * Copyright (C) 2004 Jens Axboe <axboe@suse.de> SUSE Labs * Copyright (C) 2004 Peter M. Jones <pjones@redhat.com> * * This file is subject to the terms and conditions of the GNU General Public * License version 2. See the file "COPYING" in the m...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_4797_0
crossvul-cpp_data_bad_2993_0
/* * This is a module which is used for setting the MSS option in TCP packets. * * Copyright (C) 2000 Marc Boucher <marc@mbsi.ca> * Copyright (C) 2007 Patrick McHardy <kaber@trash.net> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License ...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_2993_0
crossvul-cpp_data_bad_1006_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-416/c/bad_1006_0
crossvul-cpp_data_bad_4230_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-416/c/bad_4230_0
crossvul-cpp_data_bad_1390_0
/* libcomps - C alternative to yum.comps library * Copyright (C) 2013 Jindrich Luza * * 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 * any later versio...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_1390_0
crossvul-cpp_data_good_5021_3
/* * PF_INET6 socket protocol family * Linux INET6 implementation * * Authors: * Pedro Roque <roque@di.fc.ul.pt> * * Adapted from linux/net/ipv4/af_inet.c * * Fixes: * piggy, Karl Knutson : Socket protocol table * Hideaki YOSHIFUJI : sin6_scope_id support * Arnaldo Melo : check proc_net_create return, cle...
./CrossVul/dataset_final_sorted/CWE-416/c/good_5021_3
crossvul-cpp_data_bad_3175_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. * * PACKET - implements raw packet sockets. * * Authors: Ross Biro * Fred N. van Kempen, <waltje@uWalt.NL.Mugn...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_3175_0
crossvul-cpp_data_good_84_0
/* ** vm.c - virtual machine for mruby ** ** See Copyright Notice in mruby.h */ #include <stddef.h> #include <stdarg.h> #include <math.h> #include <mruby.h> #include <mruby/array.h> #include <mruby/class.h> #include <mruby/hash.h> #include <mruby/irep.h> #include <mruby/numeric.h> #include <mruby/proc.h> #include <mru...
./CrossVul/dataset_final_sorted/CWE-416/c/good_84_0
crossvul-cpp_data_good_2905_0
/* * USB Serial Console driver * * Copyright (C) 2001 - 2002 Greg Kroah-Hartman (greg@kroah.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 the Free Software Foundation. * * Thanks to Randy Dunlap f...
./CrossVul/dataset_final_sorted/CWE-416/c/good_2905_0
crossvul-cpp_data_good_1859_0
/* * Performance events core code: * * Copyright (C) 2008 Thomas Gleixner <tglx@linutronix.de> * Copyright (C) 2008-2011 Red Hat, Inc., Ingo Molnar * Copyright (C) 2008-2011 Red Hat, Inc., Peter Zijlstra * Copyright © 2009 Paul Mackerras, IBM Corp. <paulus@au1.ibm.com> * * For licensing details see kernel...
./CrossVul/dataset_final_sorted/CWE-416/c/good_1859_0
crossvul-cpp_data_good_832_2
// SPDX-License-Identifier: GPL-2.0+ #include <linux/io.h> #include "ipmi_si.h" static unsigned char port_inb(const struct si_sm_io *io, unsigned int offset) { unsigned int addr = io->addr_data; return inb(addr + (offset * io->regspacing)); } static void port_outb(const struct si_sm_io *io, unsigned int offset, ...
./CrossVul/dataset_final_sorted/CWE-416/c/good_832_2
crossvul-cpp_data_good_3348_6
/* 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-416/c/good_3348_6
crossvul-cpp_data_bad_1316_0
// SPDX-License-Identifier: GPL-2.0-or-later /* * Timers abstract layer * Copyright (c) by Jaroslav Kysela <perex@perex.cz> */ #include <linux/delay.h> #include <linux/init.h> #include <linux/slab.h> #include <linux/time.h> #include <linux/mutex.h> #include <linux/device.h> #include <linux/module.h> #include <lin...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_1316_0
crossvul-cpp_data_good_3242_0
#include "mongoose.h" #ifdef MG_MODULE_LINES #line 1 "mongoose/src/internal.h" #endif /* * Copyright (c) 2014 Cesanta Software Limited * All rights reserved */ #ifndef CS_MONGOOSE_SRC_INTERNAL_H_ #define CS_MONGOOSE_SRC_INTERNAL_H_ /* Amalgamated: #include "common/mg_mem.h" */ #ifndef MBUF_REALLOC #define MBUF_RE...
./CrossVul/dataset_final_sorted/CWE-416/c/good_3242_0
crossvul-cpp_data_bad_4020_0
/* exif-mnote-data-canon.c * * Copyright (c) 2002, 2003 Lutz Mueller <lutz@users.sourceforge.net> * Copyright (c) 2003 Matthieu Castet <mat-c@users.sourceforge.net> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as publishe...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_4020_0
crossvul-cpp_data_bad_388_5
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2014 Davidlohr Bueso. */ #include <linux/sched/signal.h> #include <linux/sched/task.h> #include <linux/mm.h> #include <linux/vmacache.h> #include <asm/pgtable.h> /* * Hash based on the pmd of addr if configured with MMU, which provides a good * hit rate for wo...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_388_5
crossvul-cpp_data_good_3326_0
/* * i386 translation * * Copyright (c) 2003 Fabrice Bellard * * 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 of the License, or (at your option) any later v...
./CrossVul/dataset_final_sorted/CWE-94/c/good_3326_0
crossvul-cpp_data_bad_3326_0
/* * i386 translation * * Copyright (c) 2003 Fabrice Bellard * * 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 of the License, or (at your option) any later v...
./CrossVul/dataset_final_sorted/CWE-94/c/bad_3326_0
crossvul-cpp_data_bad_1213_0
/* Copyright (C) 2007-2016 Open Information Security Foundation * * You can copy, redistribute or modify this Program under the terms of * the GNU General Public License version 2 as published by the Free * Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY...
./CrossVul/dataset_final_sorted/CWE-94/c/bad_1213_0
crossvul-cpp_data_good_1213_0
/* Copyright (C) 2007-2016 Open Information Security Foundation * * You can copy, redistribute or modify this Program under the terms of * the GNU General Public License version 2 as published by the Free * Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY...
./CrossVul/dataset_final_sorted/CWE-94/c/good_1213_0
crossvul-cpp_data_bad_1212_0
/* Copyright (C) 2007-2016 Open Information Security Foundation * * You can copy, redistribute or modify this Program under the terms of * the GNU General Public License version 2 as published by the Free * Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY...
./CrossVul/dataset_final_sorted/CWE-94/c/bad_1212_0
crossvul-cpp_data_good_1212_0
/* Copyright (C) 2007-2016 Open Information Security Foundation * * You can copy, redistribute or modify this Program under the terms of * the GNU General Public License version 2 as published by the Free * Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY...
./CrossVul/dataset_final_sorted/CWE-94/c/good_1212_0
crossvul-cpp_data_good_2756_6
/* * X.509 certificate parsing and verification * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy...
./CrossVul/dataset_final_sorted/CWE-287/c/good_2756_6
crossvul-cpp_data_good_2556_1
/* * jabberd - Jabber Open Source Server * Copyright (c) 2002 Jeremie Miller, Thomas Muldowney, * Ryan Eatmon, Robert Norris * * 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-287/c/good_2556_1
crossvul-cpp_data_bad_3721_2
/* * 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-287/c/bad_3721_2
crossvul-cpp_data_good_2556_0
/* * jabberd - Jabber Open Source Server * Copyright (c) 2002 Jeremie Miller, Thomas Muldowney, * Ryan Eatmon, Robert Norris * * 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-287/c/good_2556_0
crossvul-cpp_data_good_3281_1
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * COPYRIGHT (C) 2006,2007 * THE REGENTS OF THE UNIVERSITY OF MICHIGAN * ALL RIGHTS RESERVED * * Permission is granted to use, copy, create derivative works * and redistribute this software and such derivative works * for any purpose, so long as t...
./CrossVul/dataset_final_sorted/CWE-287/c/good_3281_1
crossvul-cpp_data_good_2222_0
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* Cherokee * * Authors: * Alvaro Lopez Ortega <alvaro@alobbs.com> * * Copyright (C) 2001-2014 Alvaro Lopez Ortega * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the G...
./CrossVul/dataset_final_sorted/CWE-287/c/good_2222_0
crossvul-cpp_data_bad_2757_1
/* * X.509 certificate parsing and verification * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy...
./CrossVul/dataset_final_sorted/CWE-287/c/bad_2757_1
crossvul-cpp_data_good_5264_1
/*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | * / __| | | | |_) | | * | (__| |_| | _ <| |___ * \___|\...
./CrossVul/dataset_final_sorted/CWE-287/c/good_5264_1
crossvul-cpp_data_bad_5267_0
/* * IRC - Internet Relay Chat, src/modules/m_sasl.c * (C) 2012 The UnrealIRCd Team * * See file AUTHORS in IRC package for additional names of * the programmers. * * 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-287/c/bad_5267_0
crossvul-cpp_data_bad_3184_2
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
./CrossVul/dataset_final_sorted/CWE-287/c/bad_3184_2
crossvul-cpp_data_bad_2556_0
/* * jabberd - Jabber Open Source Server * Copyright (c) 2002 Jeremie Miller, Thomas Muldowney, * Ryan Eatmon, Robert Norris * * 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-287/c/bad_2556_0
crossvul-cpp_data_bad_3281_1
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * COPYRIGHT (C) 2006,2007 * THE REGENTS OF THE UNIVERSITY OF MICHIGAN * ALL RIGHTS RESERVED * * Permission is granted to use, copy, create derivative works * and redistribute this software and such derivative works * for any purpose, so long as t...
./CrossVul/dataset_final_sorted/CWE-287/c/bad_3281_1
crossvul-cpp_data_good_3184_4
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
./CrossVul/dataset_final_sorted/CWE-287/c/good_3184_4
crossvul-cpp_data_good_3281_0
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * COPYRIGHT (C) 2006,2007 * THE REGENTS OF THE UNIVERSITY OF MICHIGAN * ALL RIGHTS RESERVED * * Permission is granted to use, copy, create derivative works * and redistribute this software and such derivative works * for any purpose, so long as t...
./CrossVul/dataset_final_sorted/CWE-287/c/good_3281_0
crossvul-cpp_data_bad_1723_0
/* * PgBouncer - Lightweight connection pooler for PostgreSQL. * * Copyright (c) 2007-2009 Marko Kreen, Skype Technologies OÜ * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permis...
./CrossVul/dataset_final_sorted/CWE-287/c/bad_1723_0
crossvul-cpp_data_bad_2756_6
/* * X.509 certificate parsing and verification * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy...
./CrossVul/dataset_final_sorted/CWE-287/c/bad_2756_6
crossvul-cpp_data_bad_3281_0
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * COPYRIGHT (C) 2006,2007 * THE REGENTS OF THE UNIVERSITY OF MICHIGAN * ALL RIGHTS RESERVED * * Permission is granted to use, copy, create derivative works * and redistribute this software and such derivative works * for any purpose, so long as t...
./CrossVul/dataset_final_sorted/CWE-287/c/bad_3281_0
crossvul-cpp_data_good_5268_0
/* * IRC - Internet Relay Chat, ircd/m_authenticate.c * Copyright (C) 2013 Matthew Beeching (Jobe) * Copyright (C) 1990 Jarkko Oikarinen and * University of Oulu, Computing Center * * See file AUTHORS in IRC package for additional names of * the programmers. * * This program is free software...
./CrossVul/dataset_final_sorted/CWE-287/c/good_5268_0
crossvul-cpp_data_bad_2756_5
/* * Error message information * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License a...
./CrossVul/dataset_final_sorted/CWE-287/c/bad_2756_5
crossvul-cpp_data_bad_2222_0
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* Cherokee * * Authors: * Alvaro Lopez Ortega <alvaro@alobbs.com> * * Copyright (C) 2001-2014 Alvaro Lopez Ortega * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the G...
./CrossVul/dataset_final_sorted/CWE-287/c/bad_2222_0
crossvul-cpp_data_bad_3184_4
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
./CrossVul/dataset_final_sorted/CWE-287/c/bad_3184_4
crossvul-cpp_data_good_3721_2
/* * 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-287/c/good_3721_2
crossvul-cpp_data_bad_5264_1
/*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | * / __| | | | |_) | | * | (__| |_| | _ <| |___ * \___|\...
./CrossVul/dataset_final_sorted/CWE-287/c/bad_5264_1
crossvul-cpp_data_bad_5268_0
/* * IRC - Internet Relay Chat, ircd/m_authenticate.c * Copyright (C) 2013 Matthew Beeching (Jobe) * Copyright (C) 1990 Jarkko Oikarinen and * University of Oulu, Computing Center * * See file AUTHORS in IRC package for additional names of * the programmers. * * This program is free software...
./CrossVul/dataset_final_sorted/CWE-287/c/bad_5268_0
crossvul-cpp_data_good_3721_1
/* * NETLINK Kernel-user communication protocol. * * Authors: Alan Cox <alan@lxorguk.ukuu.org.uk> * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> * * 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 Sof...
./CrossVul/dataset_final_sorted/CWE-287/c/good_3721_1
crossvul-cpp_data_bad_3721_1
/* * NETLINK Kernel-user communication protocol. * * Authors: Alan Cox <alan@lxorguk.ukuu.org.uk> * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> * * 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 Sof...
./CrossVul/dataset_final_sorted/CWE-287/c/bad_3721_1
crossvul-cpp_data_good_2757_1
/* * X.509 certificate parsing and verification * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy...
./CrossVul/dataset_final_sorted/CWE-287/c/good_2757_1
crossvul-cpp_data_good_5267_0
/* * IRC - Internet Relay Chat, src/modules/m_sasl.c * (C) 2012 The UnrealIRCd Team * * See file AUTHORS in IRC package for additional names of * the programmers. * * 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-287/c/good_5267_0
crossvul-cpp_data_good_2756_5
/* * Error message information * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License a...
./CrossVul/dataset_final_sorted/CWE-287/c/good_2756_5
crossvul-cpp_data_good_3184_2
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
./CrossVul/dataset_final_sorted/CWE-287/c/good_3184_2
crossvul-cpp_data_good_1723_0
/* * PgBouncer - Lightweight connection pooler for PostgreSQL. * * Copyright (c) 2007-2009 Marko Kreen, Skype Technologies OÜ * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permis...
./CrossVul/dataset_final_sorted/CWE-287/c/good_1723_0
crossvul-cpp_data_bad_2556_1
/* * jabberd - Jabber Open Source Server * Copyright (c) 2002 Jeremie Miller, Thomas Muldowney, * Ryan Eatmon, Robert Norris * * 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-287/c/bad_2556_1
crossvul-cpp_data_good_333_0
/* * Copyright (C) 1999 WIDE Project. * 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 condit...
./CrossVul/dataset_final_sorted/CWE-674/c/good_333_0
crossvul-cpp_data_good_1310_3
/* ** 2001 September 15 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** *******************...
./CrossVul/dataset_final_sorted/CWE-674/c/good_1310_3
crossvul-cpp_data_good_350_0
/* * card-iasecc.c: Support for IAS/ECC smart cards * * Copyright (C) 2010 Viktor Tarasov <vtarasov@gmail.com> * OpenTrust <www.opentrust.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 Soft...
./CrossVul/dataset_final_sorted/CWE-674/c/good_350_0
crossvul-cpp_data_bad_333_0
/* * Copyright (C) 1999 WIDE Project. * 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 condit...
./CrossVul/dataset_final_sorted/CWE-674/c/bad_333_0
crossvul-cpp_data_good_4436_0
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* lib/krb5/asn.1/asn1_encode.c */ /* * Copyright 1994, 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 G...
./CrossVul/dataset_final_sorted/CWE-674/c/good_4436_0
crossvul-cpp_data_bad_162_1
/* * 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-674/c/bad_162_1
crossvul-cpp_data_bad_1310_2
/* ** 2005 February 15 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ********************...
./CrossVul/dataset_final_sorted/CWE-674/c/bad_1310_2
crossvul-cpp_data_bad_1310_3
/* ** 2001 September 15 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** *******************...
./CrossVul/dataset_final_sorted/CWE-674/c/bad_1310_3
crossvul-cpp_data_good_354_0
/* * Copyright (C) Andrew Tridgell 1995-1999 * * This software may be distributed either under the terms of the * BSD-style license that accompanies tcpdump or the GNU GPL version 2 * or later */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <netdissect-stdinc.h> #include <stdio.h> #include <stdlib....
./CrossVul/dataset_final_sorted/CWE-674/c/good_354_0
crossvul-cpp_data_good_3382_2
/* Copyright (c) 2013. 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-674/c/good_3382_2
crossvul-cpp_data_good_162_1
/* * 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-674/c/good_162_1
crossvul-cpp_data_good_1310_2
/* ** 2005 February 15 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ********************...
./CrossVul/dataset_final_sorted/CWE-674/c/good_1310_2
crossvul-cpp_data_bad_354_0
/* * Copyright (C) Andrew Tridgell 1995-1999 * * This software may be distributed either under the terms of the * BSD-style license that accompanies tcpdump or the GNU GPL version 2 * or later */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <netdissect-stdinc.h> #include <stdio.h> #include <stdlib....
./CrossVul/dataset_final_sorted/CWE-674/c/bad_354_0
crossvul-cpp_data_bad_3392_0
/* A Bison parser, made by GNU Bison 3.0.4. */ /* Bison implementation for Yacc-like parsers in C Copyright (C) 1984, 1989-1990, 2000-2015 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...
./CrossVul/dataset_final_sorted/CWE-674/c/bad_3392_0
crossvul-cpp_data_good_3392_0
/* A Bison parser, made by GNU Bison 3.0.4. */ /* Bison implementation for Yacc-like parsers in C Copyright (C) 1984, 1989-1990, 2000-2015 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...
./CrossVul/dataset_final_sorted/CWE-674/c/good_3392_0
crossvul-cpp_data_bad_3382_2
/* Copyright (c) 2013. 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-674/c/bad_3382_2
crossvul-cpp_data_bad_4436_0
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* lib/krb5/asn.1/asn1_encode.c */ /* * Copyright 1994, 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 G...
./CrossVul/dataset_final_sorted/CWE-674/c/bad_4436_0
crossvul-cpp_data_bad_350_0
/* * card-iasecc.c: Support for IAS/ECC smart cards * * Copyright (C) 2010 Viktor Tarasov <vtarasov@gmail.com> * OpenTrust <www.opentrust.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 Soft...
./CrossVul/dataset_final_sorted/CWE-674/c/bad_350_0
crossvul-cpp_data_good_5309_0
// This may look like C code, but it is really -*- C++ -*- // // Copyright Bob Friesenhahn, 1999, 2000, 2003 // // Test STL appendImages function // #include <Magick++.h> #include <string> #include <iostream> #include <list> #include <vector> using namespace std; using namespace Magick; int main( int /*argc*/, char...
./CrossVul/dataset_final_sorted/CWE-369/cpp/good_5309_0
crossvul-cpp_data_bad_5309_0
// This may look like C code, but it is really -*- C++ -*- // // Copyright Bob Friesenhahn, 1999, 2000, 2003 // // Test STL appendImages function // #include <Magick++.h> #include <string> #include <iostream> #include <list> #include <vector> using namespace std; using namespace Magick; int main( int /*argc*/, char...
./CrossVul/dataset_final_sorted/CWE-369/cpp/bad_5309_0
crossvul-cpp_data_good_2528_0
// JPEGsnoop - JPEG Image Decoder & Analysis Utility // Copyright (C) 2017 - Calvin Hass // http://www.impulseadventure.com/photo/jpeg-snoop.html // // 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 Softwa...
./CrossVul/dataset_final_sorted/CWE-369/cpp/good_2528_0
crossvul-cpp_data_bad_2528_0
// JPEGsnoop - JPEG Image Decoder & Analysis Utility // Copyright (C) 2015 - Calvin Hass // http://www.impulseadventure.com/photo/jpeg-snoop.html // // 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 Softwa...
./CrossVul/dataset_final_sorted/CWE-369/cpp/bad_2528_0
crossvul-cpp_data_bad_153_1
/* * rdbmp.c * * This file was part of the Independent JPEG Group's software: * Copyright (C) 1994-1996, Thomas G. Lane. * Modified 2009-2010 by Guido Vollbeding. * libjpeg-turbo Modifications: * Modified 2011 by Siarhei Siamashka. * Copyright (C) 2015, 2017, D. R. Commander. * For conditions of distribution a...
./CrossVul/dataset_final_sorted/CWE-369/c/bad_153_1
crossvul-cpp_data_good_5364_0
/* * Copyright (c) 1999-2000 Image Power, Inc. and the University of * British Columbia. * Copyright (c) 2001-2002 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-369/c/good_5364_0
crossvul-cpp_data_bad_5063_0
/* * The copyright in this software is being made available under the 2-clauses * BSD License, included below. This software may be subject to other third * party and contributor rights, including patent rights, and no such rights * are granted under this license. * * Copyright (c) 2002-2014, Universite catholi...
./CrossVul/dataset_final_sorted/CWE-369/c/bad_5063_0
crossvul-cpp_data_good_4854_1
/* $Id$ */ /* WARNING: The type of JPEG encapsulation defined by the TIFF Version 6.0 specification is now totally obsolete and deprecated for new applications and images. This file was was created solely in order to read unconverted images still present on some users' computer systems. It will never be exten...
./CrossVul/dataset_final_sorted/CWE-369/c/good_4854_1