id
stringlengths
25
30
content
stringlengths
14
942k
max_stars_repo_path
stringlengths
49
55
crossvul-cpp_data_good_3399_0
/* radare - LGPL - Copyright 2006-2016 - pancake */ #include "r_config.h" #include "r_util.h" // r_str_hash, r_str_chop, ... #ifdef _MSC_VER #define strcasecmp stricmp #endif R_API RConfigNode* r_config_node_new(const char *name, const char *value) { RConfigNode *node; if (STRNULL (name)) { return NULL; } node =...
./CrossVul/dataset_final_sorted/CWE-416/c/good_3399_0
crossvul-cpp_data_bad_4902_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/bad_4902_0
crossvul-cpp_data_good_903_1
/* servers-reconnect.c : irssi Copyright (C) 1999-2000 Timo Sirainen 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 lat...
./CrossVul/dataset_final_sorted/CWE-416/c/good_903_1
crossvul-cpp_data_bad_454_0
/* * (Tentative) USB Audio Driver for ALSA * * Copyright (c) 2002 by Takashi Iwai <tiwai@suse.de> * * Many codes borrowed from audio.c by * Alan Cox (alan@lxorguk.ukuu.org.uk) * Thomas Sailer (sailer@ife.ee.ethz.ch) * * Audio Class 3.0 support by Ruslan Bilovol <ruslan.bilovol@gmail.com> * * ...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_454_0
crossvul-cpp_data_good_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/good_4020_0
crossvul-cpp_data_bad_3400_0
/* ** gc.c - garbage collector for mruby ** ** See Copyright Notice in mruby.h */ #include <string.h> #include <stdlib.h> #include <mruby.h> #include <mruby/array.h> #include <mruby/class.h> #include <mruby/data.h> #include <mruby/hash.h> #include <mruby/proc.h> #include <mruby/range.h> #include <mruby/string.h> #incl...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_3400_0
crossvul-cpp_data_bad_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/bad_2905_0
crossvul-cpp_data_bad_2638_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % M M AAA TTTTT L AAA BBBB ...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_2638_0
crossvul-cpp_data_good_3018_0
/* * Copyright (c) 2014-2015 Hisilicon Limited. * * 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. */ #include <l...
./CrossVul/dataset_final_sorted/CWE-416/c/good_3018_0
crossvul-cpp_data_bad_4231_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_4231_0
crossvul-cpp_data_bad_1179_0
/* load a GIF with giflib * * 10/2/16 * - from svgload.c * 25/4/16 * - add giflib5 support * 26/7/16 * - transparency was wrong if there was no EXTENSION_RECORD * - write 1, 2, 3, or 4 bands depending on file contents * 17/8/16 * - support unicode on win * 19/8/16 * - better transparency detection, th...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_1179_0
crossvul-cpp_data_good_1058_0
/* * fs/cifs/smb2pdu.c * * Copyright (C) International Business Machines Corp., 2009, 2013 * Etersoft, 2012 * Author(s): Steve French (sfrench@us.ibm.com) * Pavel Shilovsky (pshilovsky@samba.org) 2012 * * Contains the routines for constructing the SMB2 PDUs themselves * *...
./CrossVul/dataset_final_sorted/CWE-416/c/good_1058_0
crossvul-cpp_data_bad_1342_1
/* vi:set ts=8 sts=4 sw=4 noet: * * VIM - Vi IMproved by Bram Moolenaar * * Do ":help uganda" in Vim to read copying and usage conditions. * Do ":help credits" in Vim to see a list of people who contributed. * See README.txt for an overview of the Vim source code. */ #include "vim.h" #ifdef AMIGA # include <...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_1342_1
crossvul-cpp_data_bad_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/bad_2840_0
crossvul-cpp_data_bad_1857_0
/* * Interface between ext4 and JBD */ #include "ext4_jbd2.h" #include <trace/events/ext4.h> /* Just increment the non-pointer handle value */ static handle_t *ext4_get_nojournal(void) { handle_t *handle = current->journal_info; unsigned long ref_cnt = (unsigned long)handle; BUG_ON(ref_cnt >= EXT4_NOJOURNAL_MA...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_1857_0
crossvul-cpp_data_good_819_2
/* * "splice": joining two ropes together by interweaving their strands. * * This is the "extended pipe" functionality, where a pipe is used as * an arbitrary in-memory buffer. Think of a pipe as a small kernel * buffer that you can use to transfer data from one end to the other. * * The traditional unix read/wr...
./CrossVul/dataset_final_sorted/CWE-416/c/good_819_2
crossvul-cpp_data_good_1373_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/good_1373_0
crossvul-cpp_data_good_1007_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-416/c/good_1007_0
crossvul-cpp_data_bad_104_0
/* * Simple NUMA memory policy for the Linux kernel. * * Copyright 2003,2004 Andi Kleen, SuSE Labs. * (C) Copyright 2005 Christoph Lameter, Silicon Graphics, Inc. * Subject to the GNU Public License, version 2. * * NUMA policy allows the user to give hints in which node(s) memory should * be allocated. * * Su...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_104_0
crossvul-cpp_data_bad_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/bad_832_1
crossvul-cpp_data_bad_5503_0
/* * Digital Audio (PCM) abstract layer * Copyright (c) by Jaroslav Kysela <perex@perex.cz> * Abramo Bagnara <abramo@alsa-project.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...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_5503_0
crossvul-cpp_data_good_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/good_4797_0
crossvul-cpp_data_bad_5021_6
/* * INET An implementation of the TCP/IP protocol suite for the LINUX * operating system. INET is implemented using the BSD Socket * interface as the means of communication with the user level. * * Support for INET6 connection oriented protocols. * * Authors: See ...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_5021_6
crossvul-cpp_data_bad_2949_0
/* xfrm_user.c: User interface to configure xfrm engine. * * Copyright (C) 2002 David S. Miller (davem@redhat.com) * * Changes: * Mitsuru KANDA @USAGI * Kazunori MIYAZAWA @USAGI * Kunihiro Ishiguro <kunihiro@ipinfusion.com> * IPv6 support * */ #include <linux/crypto.h> #include <linux/module.h> #include ...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_2949_0
crossvul-cpp_data_bad_3243_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/bad_3243_0
crossvul-cpp_data_good_903_2
/* irc-servers-setup.c : irssi Copyright (C) 1999-2000 Timo Sirainen 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 lat...
./CrossVul/dataset_final_sorted/CWE-416/c/good_903_2
crossvul-cpp_data_bad_60_0
/*- * Copyright (c) 2003-2007 Tim Kientzle * Copyright (c) 2011 Andres Mejia * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright *...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_60_0
crossvul-cpp_data_good_180_0
/* radare - LGPL - Copyright 2010-2016 - pancake, nibble */ #include <r_anal.h> #include <r_util.h> #include <r_list.h> #include <limits.h> #define DFLT_NINSTR 3 R_API RAnalBlock *r_anal_bb_new() { RAnalBlock *bb = R_NEW0 (RAnalBlock); if (!bb) { return NULL; } bb->addr = UT64_MAX; bb->jump = UT64_MAX; bb->f...
./CrossVul/dataset_final_sorted/CWE-416/c/good_180_0
crossvul-cpp_data_bad_3045_0
/****************************************************************************** * emulate.c * * Generic x86 (32-bit and 64-bit) instruction decoder and emulator. * * Copyright (c) 2005 Keir Fraser * * Linux coding style, mod r/m decoder, segment base fixes, real-mode * privileged instructions: * * Copyright (...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_3045_0
crossvul-cpp_data_good_2908_0
/* * (Tentative) USB Audio Driver for ALSA * * Mixer control part * * Copyright (c) 2002 by Takashi Iwai <tiwai@suse.de> * * Many codes borrowed from audio.c by * Alan Cox (alan@lxorguk.ukuu.org.uk) * Thomas Sailer (sailer@ife.ee.ethz.ch) * * * This program is free software; you can redist...
./CrossVul/dataset_final_sorted/CWE-416/c/good_2908_0
crossvul-cpp_data_good_5376_0
/* * * drivers/staging/android/ion/ion.c * * Copyright (C) 2011 Google, Inc. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. * * This program is distribu...
./CrossVul/dataset_final_sorted/CWE-416/c/good_5376_0
crossvul-cpp_data_bad_859_0
/* $Id: minissdpd.c,v 1.53 2016/03/01 18:06:46 nanard Exp $ */ /* vim: tabstop=4 shiftwidth=4 noexpandtab * MiniUPnP project * (c) 2007-2018 Thomas Bernard * website : http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/ * This software is subject to the conditions detailed * in the LICENCE file provided wi...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_859_0
crossvul-cpp_data_bad_2437_0
/* * common UDP/RAW code * Linux INET implementation * * Authors: * Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * ...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_2437_0
crossvul-cpp_data_good_3348_1
/* Copyright (c) 2013-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 fo...
./CrossVul/dataset_final_sorted/CWE-416/c/good_3348_1
crossvul-cpp_data_good_3188_0
/* * Copyright (C) 2015 Cisco Systems, Inc. and/or its affiliates. All rights reserved. * Copyright (C) 2007-2008 Sourcefire, Inc. * * Authors: Alberto Wu * * 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 * publishe...
./CrossVul/dataset_final_sorted/CWE-416/c/good_3188_0
crossvul-cpp_data_bad_5171_1
/* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2015 The PHP Group | +---------...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_5171_1
crossvul-cpp_data_good_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/good_388_4
crossvul-cpp_data_bad_1830_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-416/c/bad_1830_0
crossvul-cpp_data_bad_1390_1
/* 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_1
crossvul-cpp_data_good_4231_3
/* ** $Id: lvm.c $ ** Lua virtual machine ** See Copyright Notice in lua.h */ #define lvm_c #define LUA_CORE #include "lprefix.h" #include <float.h> #include <limits.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "lua.h" #include "ldebug.h" #include "ldo.h" #include "lfunc...
./CrossVul/dataset_final_sorted/CWE-416/c/good_4231_3
crossvul-cpp_data_good_1181_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-416/c/good_1181_1
crossvul-cpp_data_bad_1181_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_1181_1
crossvul-cpp_data_good_1427_0
// SPDX-License-Identifier: GPL-2.0+ /* * ipmi_msghandler.c * * Incoming and outgoing message routing for an IPMI interface. * * Author: MontaVista Software, Inc. * Corey Minyard <minyard@mvista.com> * source@mvista.com * * Copyright 2002 MontaVista Software Inc. */ #define pr_fmt(fmt) "%s" f...
./CrossVul/dataset_final_sorted/CWE-416/c/good_1427_0
crossvul-cpp_data_good_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/good_1372_0
crossvul-cpp_data_good_1342_2
/* vi:set ts=8 sts=4 sw=4 noet: * * VIM - Vi IMproved by Bram Moolenaar * * Do ":help uganda" in Vim to read a list of people who contributed. * Do ":help credits" in Vim to see a list of people who contributed. * See README.txt for an overview of the Vim source code. */ #include "vim.h" static void cmd_with_...
./CrossVul/dataset_final_sorted/CWE-416/c/good_1342_2
crossvul-cpp_data_good_2851_1
/* * ALSA sequencer Ports * Copyright (c) 1998 by Frank van de Pol <fvdpol@coil.demon.nl> * Jaroslav Kysela <perex@perex.cz> * * * 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 F...
./CrossVul/dataset_final_sorted/CWE-416/c/good_2851_1
crossvul-cpp_data_good_5021_8
/* * RAW sockets for IPv6 * Linux INET6 implementation * * Authors: * Pedro Roque <roque@di.fc.ul.pt> * * Adapted from linux/net/ipv4/raw.c * * Fixes: * Hideaki YOSHIFUJI : sin6_scope_id support * YOSHIFUJI,H.@USAGI : raw checksum (RFC2292(bis) compliance) * Kazunori MIYAZAWA @USAGI: change process style t...
./CrossVul/dataset_final_sorted/CWE-416/c/good_5021_8
crossvul-cpp_data_bad_1660_0
/* * 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 Power, Inc. * Copyright (c) 1999-2000 The University of British Columbia * * All rights...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_1660_0
crossvul-cpp_data_bad_4776_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_4776_1
crossvul-cpp_data_bad_822_1
/* * Generic hugetlb support. * (C) Nadia Yvette Chambers, April 2004 */ #include <linux/list.h> #include <linux/init.h> #include <linux/mm.h> #include <linux/seq_file.h> #include <linux/sysctl.h> #include <linux/highmem.h> #include <linux/mmu_notifier.h> #include <linux/nodemask.h> #include <linux/pagemap.h> #inclu...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_822_1
crossvul-cpp_data_bad_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/bad_4020_1
crossvul-cpp_data_good_1830_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-416/c/good_1830_0
crossvul-cpp_data_good_5336_0
/* tuner-xc2028 * * Copyright (c) 2007-2008 Mauro Carvalho Chehab (mchehab@infradead.org) * * Copyright (c) 2007 Michel Ludwig (michel.ludwig@gmail.com) * - frontend interface * * This code is placed under the terms of the GNU General Public License v2 */ #include <linux/i2c.h> #include <asm/div64.h> #in...
./CrossVul/dataset_final_sorted/CWE-416/c/good_5336_0
crossvul-cpp_data_bad_3348_1
/* Copyright (c) 2013-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 fo...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_3348_1
crossvul-cpp_data_good_5333_0
/* * gendisk handling */ #include <linux/module.h> #include <linux/fs.h> #include <linux/genhd.h> #include <linux/kdev_t.h> #include <linux/kernel.h> #include <linux/blkdev.h> #include <linux/backing-dev.h> #include <linux/init.h> #include <linux/spinlock.h> #include <linux/proc_fs.h> #include <linux/seq_file.h> #i...
./CrossVul/dataset_final_sorted/CWE-416/c/good_5333_0
crossvul-cpp_data_good_5282_1
/* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2016 The PHP Group | +---------...
./CrossVul/dataset_final_sorted/CWE-416/c/good_5282_1
crossvul-cpp_data_bad_5021_8
/* * RAW sockets for IPv6 * Linux INET6 implementation * * Authors: * Pedro Roque <roque@di.fc.ul.pt> * * Adapted from linux/net/ipv4/raw.c * * Fixes: * Hideaki YOSHIFUJI : sin6_scope_id support * YOSHIFUJI,H.@USAGI : raw checksum (RFC2292(bis) compliance) * Kazunori MIYAZAWA @USAGI: change process style t...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_5021_8
crossvul-cpp_data_good_4045_0
/* * Apple HTTP Live Streaming demuxer * Copyright (c) 2010 Martin Storsjo * Copyright (c) 2013 Anssi Hannula * * 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 Fou...
./CrossVul/dataset_final_sorted/CWE-416/c/good_4045_0
crossvul-cpp_data_bad_832_0
// SPDX-License-Identifier: GPL-2.0+ /* * ipmi_si.c * * The interface to the IPMI driver for the system interfaces (KCS, SMIC, * BT). * * Author: MontaVista Software, Inc. * Corey Minyard <minyard@mvista.com> * source@mvista.com * * Copyright 2002 MontaVista Software Inc. * Copyright 2006 IBM...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_832_0
crossvul-cpp_data_good_320_0
/************************************************************ * Copyright (c) 1994 by Silicon Graphics Computer Systems, Inc. * * Permission to use, copy, modify, and distribute this * software and its documentation for any purpose and without * fee is hereby granted, provided that the above copyright * notice ap...
./CrossVul/dataset_final_sorted/CWE-416/c/good_320_0
crossvul-cpp_data_good_4841_1
/* * L2TPv3 IP encapsulation support for IPv6 * * Copyright (c) 2012 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/good_4841_1
crossvul-cpp_data_bad_1007_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-416/c/bad_1007_0
crossvul-cpp_data_good_4231_2
/* ** $Id: ltm.c $ ** Tag methods ** See Copyright Notice in lua.h */ #define ltm_c #define LUA_CORE #include "lprefix.h" #include <string.h> #include "lua.h" #include "ldebug.h" #include "ldo.h" #include "lgc.h" #include "lobject.h" #include "lstate.h" #include "lstring.h" #include "ltable.h" #include "ltm.h" #i...
./CrossVul/dataset_final_sorted/CWE-416/c/good_4231_2
crossvul-cpp_data_good_832_0
// SPDX-License-Identifier: GPL-2.0+ /* * ipmi_si.c * * The interface to the IPMI driver for the system interfaces (KCS, SMIC, * BT). * * Author: MontaVista Software, Inc. * Corey Minyard <minyard@mvista.com> * source@mvista.com * * Copyright 2002 MontaVista Software Inc. * Copyright 2006 IBM...
./CrossVul/dataset_final_sorted/CWE-416/c/good_832_0
crossvul-cpp_data_bad_3013_0
/* * linux/mm/oom_kill.c * * Copyright (C) 1998,2000 Rik van Riel * Thanks go out to Claus Fischer for some serious inspiration and * for goading me into coding this file... * Copyright (C) 2010 Google, Inc. * Rewritten by David Rientjes * * The routines in this file are used to kill a process when *...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_3013_0
crossvul-cpp_data_bad_903_2
/* irc-servers-setup.c : irssi Copyright (C) 1999-2000 Timo Sirainen 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 lat...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_903_2
crossvul-cpp_data_good_1390_1
/* 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/good_1390_1
crossvul-cpp_data_good_3994_0
// SPDX-License-Identifier: GPL-2.0 /* * message.c - synchronous message handling * * Released under the GPLv2 only. */ #include <linux/acpi.h> #include <linux/pci.h> /* for scatterlist macros */ #include <linux/usb.h> #include <linux/module.h> #include <linux/slab.h> #include <linux/mm.h> #include <linux/timer.h>...
./CrossVul/dataset_final_sorted/CWE-416/c/good_3994_0
crossvul-cpp_data_good_1390_3
/* 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/good_1390_3
crossvul-cpp_data_good_3307_0
/* radare - LGPL - Copyright 2010-2017 - nibble, pancake */ #include <stdio.h> #include <r_types.h> #include <r_util.h> #include "mach0.h" #define bprintf if(bin->verbose)eprintf typedef struct _ulebr { ut8 *p; } ulebr; /* move into struct MACH0_(obj_t) *bin */ static bool little_; static ut64 read_uleb128(ulebr ...
./CrossVul/dataset_final_sorted/CWE-416/c/good_3307_0
crossvul-cpp_data_good_1186_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-416/c/good_1186_0
crossvul-cpp_data_good_1857_0
/* * Interface between ext4 and JBD */ #include "ext4_jbd2.h" #include <trace/events/ext4.h> /* Just increment the non-pointer handle value */ static handle_t *ext4_get_nojournal(void) { handle_t *handle = current->journal_info; unsigned long ref_cnt = (unsigned long)handle; BUG_ON(ref_cnt >= EXT4_NOJOURNAL_MA...
./CrossVul/dataset_final_sorted/CWE-416/c/good_1857_0
crossvul-cpp_data_bad_3994_0
// SPDX-License-Identifier: GPL-2.0 /* * message.c - synchronous message handling * * Released under the GPLv2 only. */ #include <linux/acpi.h> #include <linux/pci.h> /* for scatterlist macros */ #include <linux/usb.h> #include <linux/module.h> #include <linux/slab.h> #include <linux/mm.h> #include <linux/timer.h>...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_3994_0
crossvul-cpp_data_bad_4655_0
// SPDX-License-Identifier: GPL-2.0 /* * linux/fs/namei.c * * Copyright (C) 1991, 1992 Linus Torvalds */ /* * Some corrections by tytso. */ /* [Feb 1997 T. Schoebel-Theuer] Complete rewrite of the pathname * lookup logic. */ /* [Feb-Apr 2000, AV] Rewrite to the new namespace architecture. */ #include <li...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_4655_0
crossvul-cpp_data_good_5021_4
/* * common UDP/RAW code * Linux INET6 implementation * * Authors: * Pedro Roque <roque@di.fc.ul.pt> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * ...
./CrossVul/dataset_final_sorted/CWE-416/c/good_5021_4
crossvul-cpp_data_bad_2550_0
/* * fs/timerfd.c * * Copyright (C) 2007 Davide Libenzi <davidel@xmailserver.org> * * * Thanks to Thomas Gleixner for code reviews and useful comments. * */ #include <linux/alarmtimer.h> #include <linux/file.h> #include <linux/poll.h> #include <linux/init.h> #include <linux/fs.h> #include <linux/sched.h> #...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_2550_0
crossvul-cpp_data_bad_5376_0
/* * * drivers/staging/android/ion/ion.c * * Copyright (C) 2011 Google, Inc. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. * * This program is distribu...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_5376_0
crossvul-cpp_data_bad_4020_2
/* exif-mnote-data-olympus.c * * Copyright (c) 2002, 2003 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 Lice...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_4020_2
crossvul-cpp_data_good_3348_5
/* 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_5
crossvul-cpp_data_good_2456_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 / ISO Media File Format sub-project * * GPAC is free software; you can redistribute it and/or modify * it under the terms of the GNU L...
./CrossVul/dataset_final_sorted/CWE-416/c/good_2456_0
crossvul-cpp_data_good_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/good_4230_0
crossvul-cpp_data_good_5489_0
/* * Functions related to mapping data to requests */ #include <linux/kernel.h> #include <linux/module.h> #include <linux/bio.h> #include <linux/blkdev.h> #include <linux/uio.h> #include "blk.h" /* * Append a bio to a passthrough request. Only works can be merged into * the request based on the driver constraint...
./CrossVul/dataset_final_sorted/CWE-416/c/good_5489_0
crossvul-cpp_data_good_545_0
/* * Copyright (C) 1991, 1992 Linus Torvalds * Copyright (C) 1994, Karl Keyte: Added support for disk statistics * Elevator latency, (C) 2000 Andrea Arcangeli <andrea@suse.de> SuSE * Queue request tables / lock, selectable elevator, Jens Axboe <axboe@suse.de> * kernel-doc documentation started by NeilBrown <...
./CrossVul/dataset_final_sorted/CWE-416/c/good_545_0
crossvul-cpp_data_good_3045_0
/****************************************************************************** * emulate.c * * Generic x86 (32-bit and 64-bit) instruction decoder and emulator. * * Copyright (c) 2005 Keir Fraser * * Linux coding style, mod r/m decoder, segment base fixes, real-mode * privileged instructions: * * Copyright (...
./CrossVul/dataset_final_sorted/CWE-416/c/good_3045_0
crossvul-cpp_data_good_1179_0
/* load a GIF with giflib * * 10/2/16 * - from svgload.c * 25/4/16 * - add giflib5 support * 26/7/16 * - transparency was wrong if there was no EXTENSION_RECORD * - write 1, 2, 3, or 4 bands depending on file contents * 17/8/16 * - support unicode on win * 19/8/16 * - better transparency detection, th...
./CrossVul/dataset_final_sorted/CWE-416/c/good_1179_0
crossvul-cpp_data_bad_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/bad_832_2
crossvul-cpp_data_good_913_0
/********************************************************************** regext.c - Oniguruma (regular expression library) **********************************************************************/ /*- * Copyright (c) 2002-2019 K.Kosako <sndgk393 AT ybb DOT ne DOT jp> * All rights reserved. * * Redistribution and ...
./CrossVul/dataset_final_sorted/CWE-416/c/good_913_0
crossvul-cpp_data_good_4231_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/good_4231_0
crossvul-cpp_data_good_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/good_1316_0
crossvul-cpp_data_good_2030_0
/* * Routines having to do with the 'struct sk_buff' memory handlers. * * Authors: Alan Cox <alan@lxorguk.ukuu.org.uk> * Florian La Roche <rzsfl@rz.uni-sb.de> * * Fixes: * Alan Cox : Fixed the worst of the load * balancer bugs. * Dave Platt : Interrupt stacking fix. * Richard Kooijman : Timestamp fixe...
./CrossVul/dataset_final_sorted/CWE-416/c/good_2030_0
crossvul-cpp_data_good_5516_1
/* +----------------------------------------------------------------------+ | PHP Version 7 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2016 The PHP Group | +---------...
./CrossVul/dataset_final_sorted/CWE-416/c/good_5516_1
crossvul-cpp_data_bad_819_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/sched/signal.h> #...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_819_0
crossvul-cpp_data_good_2638_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % M M AAA TTTTT L AAA BBBB ...
./CrossVul/dataset_final_sorted/CWE-416/c/good_2638_0
crossvul-cpp_data_good_2838_0
/* SCTP kernel implementation * (C) Copyright IBM Corp. 2001, 2004 * Copyright (c) 1999-2000 Cisco, Inc. * Copyright (c) 1999-2001 Motorola, Inc. * Copyright (c) 2001-2003 Intel Corp. * Copyright (c) 2001-2002 Nokia, Inc. * Copyright (c) 2001 La Monte H.P. Yarroll * * This file is part of the SCTP kernel implem...
./CrossVul/dataset_final_sorted/CWE-416/c/good_2838_0
crossvul-cpp_data_good_2437_0
/* * common UDP/RAW code * Linux INET implementation * * Authors: * Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * ...
./CrossVul/dataset_final_sorted/CWE-416/c/good_2437_0
crossvul-cpp_data_good_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/good_1390_0
crossvul-cpp_data_good_5021_5
/* * Extension Header handling for IPv6 * Linux INET6 implementation * * Authors: * Pedro Roque <roque@di.fc.ul.pt> * Andi Kleen <ak@muc.de> * 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 ...
./CrossVul/dataset_final_sorted/CWE-416/c/good_5021_5
crossvul-cpp_data_bad_4007_0
/* * Budget Fair Queueing (BFQ) I/O scheduler. * * Based on ideas and code from CFQ: * Copyright (C) 2003 Jens Axboe <axboe@kernel.dk> * * Copyright (C) 2008 Fabio Checconi <fabio@gandalf.sssup.it> * Paolo Valente <paolo.valente@unimore.it> * * Copyright (C) 2010 Paolo Valente <paolo.valente@unimore.it>...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_4007_0
crossvul-cpp_data_good_820_6
#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_820_6
crossvul-cpp_data_bad_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/bad_822_0