id
stringlengths
25
30
content
stringlengths
14
942k
max_stars_repo_path
stringlengths
49
55
crossvul-cpp_data_bad_2484_0
/* * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.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 * 2 of the License, or (at your option) any later version...
./CrossVul/dataset_final_sorted/CWE-19/c/bad_2484_0
crossvul-cpp_data_good_1453_2
/* * Copyright (c) 2000-2005 Silicon Graphics, Inc. * Copyright (c) 2013 Red Hat, Inc. * All Rights Reserved. * * 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. * * This program is distr...
./CrossVul/dataset_final_sorted/CWE-19/c/good_1453_2
crossvul-cpp_data_good_1842_2
/* * linux/fs/ext4/xattr.c * * Copyright (C) 2001-2003 Andreas Gruenbacher, <agruen@suse.de> * * Fix by Harrison Xing <harrison@mountainviewdata.com>. * Ext4 code with a lot of help from Eric Jarman <ejarman@acm.org>. * Extended attributes for symlinks and special files added per * suggestion of Luka Renko <lu...
./CrossVul/dataset_final_sorted/CWE-19/c/good_1842_2
crossvul-cpp_data_bad_1487_0
/* * Copyright (c) 2007-2009 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 version 2 as * published by the Free Software Foundation. * * Development of this code funded by Astaro AG (http://www.ast...
./CrossVul/dataset_final_sorted/CWE-19/c/bad_1487_0
crossvul-cpp_data_bad_5253_0
/* * NET An implementation of the SOCKET network access protocol. * * Version: @(#)socket.c 1.1.93 18/02/95 * * Authors: Orest Zborowski, <obz@Kodak.COM> * Ross Biro * Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG> * * Fixes: * Anonymous : NOTSOCK/BADF cleanup. Error fix in * shutdown() * Alan Co...
./CrossVul/dataset_final_sorted/CWE-19/c/bad_5253_0
crossvul-cpp_data_bad_1843_1
/* * linux/fs/ext2/super.c * * Copyright (C) 1992, 1993, 1994, 1995 * Remy Card (card@masi.ibp.fr) * Laboratoire MASI - Institut Blaise Pascal * Universite Pierre et Marie Curie (Paris VI) * * from * * linux/fs/minix/inode.c * * Copyright (C) 1991, 1992 Linus Torvalds * * Big-endian to little-endian...
./CrossVul/dataset_final_sorted/CWE-19/c/bad_1843_1
crossvul-cpp_data_good_5319_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-19/c/good_5319_0
crossvul-cpp_data_good_1453_3
/* * Copyright (c) 2000-2005 Silicon Graphics, Inc. * Copyright (c) 2013 Red Hat, Inc. * All Rights Reserved. * * 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. * * This program is distr...
./CrossVul/dataset_final_sorted/CWE-19/c/good_1453_3
crossvul-cpp_data_good_1487_0
/* * Copyright (c) 2007-2009 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 version 2 as * published by the Free Software Foundation. * * Development of this code funded by Astaro AG (http://www.ast...
./CrossVul/dataset_final_sorted/CWE-19/c/good_1487_0
crossvul-cpp_data_good_1453_0
/* * Copyright (c) 2000-2005 Silicon Graphics, Inc. * All Rights Reserved. * * 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. * * This program is distributed in the hope that it would be ...
./CrossVul/dataset_final_sorted/CWE-19/c/good_1453_0
crossvul-cpp_data_bad_1844_1
404: Not Found
./CrossVul/dataset_final_sorted/CWE-19/c/bad_1844_1
crossvul-cpp_data_good_2422_1
/* * Based on arch/arm/mm/fault.c * * Copyright (C) 1995 Linus Torvalds * Copyright (C) 1995-2004 Russell King * Copyright (C) 2012 ARM Ltd. * * 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 Soft...
./CrossVul/dataset_final_sorted/CWE-19/c/good_2422_1
crossvul-cpp_data_good_5253_0
/* * NET An implementation of the SOCKET network access protocol. * * Version: @(#)socket.c 1.1.93 18/02/95 * * Authors: Orest Zborowski, <obz@Kodak.COM> * Ross Biro * Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG> * * Fixes: * Anonymous : NOTSOCK/BADF cleanup. Error fix in * shutdown() * Alan Co...
./CrossVul/dataset_final_sorted/CWE-19/c/good_5253_0
crossvul-cpp_data_bad_4935_0
/* * Copyright (C) 2005-2010 IBM Corporation * * Author: * Mimi Zohar <zohar@us.ibm.com> * Kylene Hall <kjhall@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 * the Free Software Foundation, version 2 of...
./CrossVul/dataset_final_sorted/CWE-19/c/bad_4935_0
crossvul-cpp_data_bad_4855_1
/* $Id$ */ /* * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * Revised: 2/18/01 BAR -- added syntax for extracting single images from * multi-image TIFF files. * * New syntax is: sourceFileName,image# * * image# ranges from 0..<n-1> wher...
./CrossVul/dataset_final_sorted/CWE-191/c/bad_4855_1
crossvul-cpp_data_good_4855_1
/* $Id$ */ /* * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * Revised: 2/18/01 BAR -- added syntax for extracting single images from * multi-image TIFF files. * * New syntax is: sourceFileName,image# * * image# ranges from 0..<n-1> wher...
./CrossVul/dataset_final_sorted/CWE-191/c/good_4855_1
crossvul-cpp_data_bad_3345_0
/* * Edgeport USB Serial Converter driver * * Copyright (C) 2000-2002 Inside Out Networks, All rights reserved. * 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 as publishe...
./CrossVul/dataset_final_sorted/CWE-191/c/bad_3345_0
crossvul-cpp_data_good_3345_0
/* * Edgeport USB Serial Converter driver * * Copyright (C) 2000-2002 Inside Out Networks, All rights reserved. * 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 as publishe...
./CrossVul/dataset_final_sorted/CWE-191/c/good_3345_0
crossvul-cpp_data_good_247_0
/** * @file * IMAP helper functions * * @authors * Copyright (C) 1996-1998,2010,2012-2013 Michael R. Elkins <me@mutt.org> * Copyright (C) 1996-1999 Brandon Long <blong@fiction.net> * Copyright (C) 1999-2009,2012 Brendan Cully <brendan@kublai.com> * * @copyright * This program is free software: you can redistr...
./CrossVul/dataset_final_sorted/CWE-191/c/good_247_0
crossvul-cpp_data_bad_2395_0
/***************************************************************************** * libmp4.c : LibMP4 library for mp4 module for vlc ***************************************************************************** * Copyright (C) 2001-2004, 2010 VLC authors and VideoLAN * * Author: Laurent Aimar <fenrir@via.ecp.fr> * ...
./CrossVul/dataset_final_sorted/CWE-191/c/bad_2395_0
crossvul-cpp_data_good_2395_0
/***************************************************************************** * libmp4.c : LibMP4 library for mp4 module for vlc ***************************************************************************** * Copyright (C) 2001-2004, 2010 VLC authors and VideoLAN * * Author: Laurent Aimar <fenrir@via.ecp.fr> * ...
./CrossVul/dataset_final_sorted/CWE-191/c/good_2395_0
crossvul-cpp_data_bad_4828_0
/* * The two pass scaling function is based on: * Filtered Image Rescaling * Based on Gems III * - Schumacher general filtered image rescaling * (pp. 414-424) * by Dale Schumacher * * Additional changes by Ray Gardener, Daylon Graphics Ltd. * December 4, 1999 * * Ported to libgd by Pierre Joye. Support f...
./CrossVul/dataset_final_sorted/CWE-191/c/bad_4828_0
crossvul-cpp_data_bad_247_0
/** * @file * IMAP helper functions * * @authors * Copyright (C) 1996-1998,2010,2012-2013 Michael R. Elkins <me@mutt.org> * Copyright (C) 1996-1999 Brandon Long <blong@fiction.net> * Copyright (C) 1999-2009,2012 Brendan Cully <brendan@kublai.com> * * @copyright * This program is free software: you can redistr...
./CrossVul/dataset_final_sorted/CWE-191/c/bad_247_0
crossvul-cpp_data_good_4272_0
/* ** $Id: ldebug.c $ ** Debug Interface ** See Copyright Notice in lua.h */ #define ldebug_c #define LUA_CORE #include "lprefix.h" #include <stdarg.h> #include <stddef.h> #include <string.h> #include "lua.h" #include "lapi.h" #include "lcode.h" #include "ldebug.h" #include "ldo.h" #include "lfunc.h" #include "lo...
./CrossVul/dataset_final_sorted/CWE-191/c/good_4272_0
crossvul-cpp_data_bad_4272_0
/* ** $Id: ldebug.c $ ** Debug Interface ** See Copyright Notice in lua.h */ #define ldebug_c #define LUA_CORE #include "lprefix.h" #include <stdarg.h> #include <stddef.h> #include <string.h> #include "lua.h" #include "lapi.h" #include "lcode.h" #include "ldebug.h" #include "ldo.h" #include "lfunc.h" #include "lo...
./CrossVul/dataset_final_sorted/CWE-191/c/bad_4272_0
crossvul-cpp_data_good_4828_0
/* * The two pass scaling function is based on: * Filtered Image Rescaling * Based on Gems III * - Schumacher general filtered image rescaling * (pp. 414-424) * by Dale Schumacher * * Additional changes by Ray Gardener, Daylon Graphics Ltd. * December 4, 1999 * * Ported to libgd by Pierre Joye. Support f...
./CrossVul/dataset_final_sorted/CWE-191/c/good_4828_0
crossvul-cpp_data_good_2968_0
// This may look like C code, but it is really -*- C++ -*- // // Copyright Bob Friesenhahn, 1999, 2000, 2001, 2002, 2003 // Copyright Dirk Lemstra 2013-2017 // // Implementation of Image // #define MAGICKCORE_IMPLEMENTATION 1 #define MAGICK_PLUSPLUS_IMPLEMENTATION 1 #include "Magick++/Include.h" #include <cstdlib> #...
./CrossVul/dataset_final_sorted/CWE-416/cpp/good_2968_0
crossvul-cpp_data_bad_4222_0
/* * Copyright (c) 2009, The MilkyTracker Team. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * - Redistributions of source code must retain the above copyright notice, * this list o...
./CrossVul/dataset_final_sorted/CWE-416/cpp/bad_4222_0
crossvul-cpp_data_good_2969_0
// This may look like C code, but it is really -*- C++ -*- // // Copyright Bob Friesenhahn, 1999, 2000, 2001, 2002, 2003 // Copyright Dirk Lemstra 2013-2015 // // Implementation of Image // #define MAGICKCORE_IMPLEMENTATION 1 #define MAGICK_PLUSPLUS_IMPLEMENTATION 1 #include "Magick++/Include.h" #include <cstdlib> #...
./CrossVul/dataset_final_sorted/CWE-416/cpp/good_2969_0
crossvul-cpp_data_bad_2969_0
// This may look like C code, but it is really -*- C++ -*- // // Copyright Bob Friesenhahn, 1999, 2000, 2001, 2002, 2003 // Copyright Dirk Lemstra 2013-2015 // // Implementation of Image // #define MAGICKCORE_IMPLEMENTATION 1 #define MAGICK_PLUSPLUS_IMPLEMENTATION 1 #include "Magick++/Include.h" #include <cstdlib> #...
./CrossVul/dataset_final_sorted/CWE-416/cpp/bad_2969_0
crossvul-cpp_data_good_856_0
/* * Copyright (c) 2017, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #include <pr...
./CrossVul/dataset_final_sorted/CWE-416/cpp/good_856_0
crossvul-cpp_data_bad_856_0
/* * Copyright (c) 2017, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #include <pr...
./CrossVul/dataset_final_sorted/CWE-416/cpp/bad_856_0
crossvul-cpp_data_good_856_1
/* * Copyright (c) 2017, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #include <fo...
./CrossVul/dataset_final_sorted/CWE-416/cpp/good_856_1
crossvul-cpp_data_good_4222_0
/* * Copyright (c) 2009, The MilkyTracker Team. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * - Redistributions of source code must retain the above copyright notice, * this list o...
./CrossVul/dataset_final_sorted/CWE-416/cpp/good_4222_0
crossvul-cpp_data_bad_856_1
/* * Copyright (c) 2017, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #include <fo...
./CrossVul/dataset_final_sorted/CWE-416/cpp/bad_856_1
crossvul-cpp_data_bad_2968_0
// This may look like C code, but it is really -*- C++ -*- // // Copyright Bob Friesenhahn, 1999, 2000, 2001, 2002, 2003 // Copyright Dirk Lemstra 2013-2017 // // Implementation of Image // #define MAGICKCORE_IMPLEMENTATION 1 #define MAGICK_PLUSPLUS_IMPLEMENTATION 1 #include "Magick++/Include.h" #include <cstdlib> #...
./CrossVul/dataset_final_sorted/CWE-416/cpp/bad_2968_0
crossvul-cpp_data_bad_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/bad_4231_2
crossvul-cpp_data_bad_820_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_820_0
crossvul-cpp_data_bad_4020_3
/* exif-mnote-data-pentax.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 Licen...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_4020_3
crossvul-cpp_data_good_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/good_4655_0
crossvul-cpp_data_good_4218_0
/* * ndpi_main.c * * Copyright (C) 2011-20 - ntop.org * * This file is part of nDPI, an open source deep packet inspection * library based on the OpenDPI and PACE technology by ipoque GmbH * * nDPI is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public Lic...
./CrossVul/dataset_final_sorted/CWE-416/c/good_4218_0
crossvul-cpp_data_good_148_0
/* radare - LGPL - Copyright 2011-2018 - pancake, Roc Valles, condret, killabyte */ #if 0 http://www.atmel.com/images/atmel-0856-avr-instruction-set-manual.pdf https://en.wikipedia.org/wiki/Atmel_AVR_instruction_set #endif #include <string.h> #include <r_types.h> #include <r_util.h> #include <r_lib.h> #include <r_asm...
./CrossVul/dataset_final_sorted/CWE-416/c/good_148_0
crossvul-cpp_data_bad_1314_0
// SPDX-License-Identifier: GPL-2.0 /* * linux/fs/ext4/inode.c * * Copyright (C) 1992, 1993, 1994, 1995 * Remy Card (card@masi.ibp.fr) * Laboratoire MASI - Institut Blaise Pascal * Universite Pierre et Marie Curie (Paris VI) * * from * * linux/fs/minix/inode.c * * Copyright (C) 1991, 1992 Linus Torvald...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_1314_0
crossvul-cpp_data_good_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/good_5503_0
crossvul-cpp_data_good_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/good_2566_0
crossvul-cpp_data_good_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/good_822_1
crossvul-cpp_data_good_5173_1
/* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2015 The PHP Group | +--------------...
./CrossVul/dataset_final_sorted/CWE-416/c/good_5173_1
crossvul-cpp_data_good_2515_2
/* * $LynxId: HTML.c,v 1.174 2017/07/05 22:48:09 tom Exp $ * * Structured stream to Rich hypertext converter * ============================================ * * This generates a hypertext object. It converts from the * structured stream interface of HTML events into the style- * oriented interface of the HTex...
./CrossVul/dataset_final_sorted/CWE-416/c/good_2515_2
crossvul-cpp_data_good_3348_0
/* 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-416/c/good_3348_0
crossvul-cpp_data_bad_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/bad_84_0
crossvul-cpp_data_good_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/good_3400_0
crossvul-cpp_data_good_1006_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-416/c/good_1006_0
crossvul-cpp_data_good_2440_0
/* * core.c -- Voltage/Current Regulator framework. * * Copyright 2007, 2008 Wolfson Microelectronics PLC. * Copyright 2008 SlimLogic Ltd. * * Author: Liam Girdwood <lrg@slimlogic.co.uk> * * 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-416/c/good_2440_0
crossvul-cpp_data_bad_5021_7
/* * IPv6 BSD socket options interface * Linux INET6 implementation * * Authors: * Pedro Roque <roque@di.fc.ul.pt> * * Based on linux/net/ipv4/ip_sockglue.c * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as publishe...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_5021_7
crossvul-cpp_data_good_282_0
/* * Copyright (c) 2005-2006 Intel Corporation. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public License (GPL) Version 2, available from the file * COPYING in the main directory of this s...
./CrossVul/dataset_final_sorted/CWE-416/c/good_282_0
crossvul-cpp_data_bad_2440_0
/* * core.c -- Voltage/Current Regulator framework. * * Copyright 2007, 2008 Wolfson Microelectronics PLC. * Copyright 2008 SlimLogic Ltd. * * Author: Liam Girdwood <lrg@slimlogic.co.uk> * * 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-416/c/bad_2440_0
crossvul-cpp_data_good_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/good_388_5
crossvul-cpp_data_bad_5334_0
/* * fs/ioprio.c * * Copyright (C) 2004 Jens Axboe <axboe@kernel.dk> * * Helper functions for setting/querying io priorities of processes. The * system calls closely mimmick getpriority/setpriority, see the man page for * those. The prio argument is a composite of prio class and prio data, where * the data argu...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_5334_0
crossvul-cpp_data_good_820_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_820_2
crossvul-cpp_data_bad_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/bad_3242_0
crossvul-cpp_data_good_5332_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-416/c/good_5332_0
crossvul-cpp_data_good_5171_1
/* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2015 The PHP Group | +---------...
./CrossVul/dataset_final_sorted/CWE-416/c/good_5171_1
crossvul-cpp_data_bad_903_0
/* irc-core.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 later versio...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_903_0
crossvul-cpp_data_bad_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/bad_180_0
crossvul-cpp_data_bad_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/bad_2838_0
crossvul-cpp_data_bad_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/bad_5021_5
crossvul-cpp_data_bad_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/bad_3348_6
crossvul-cpp_data_good_819_4
// SPDX-License-Identifier: GPL-2.0 /* * ring buffer based function tracer * * Copyright (C) 2007-2012 Steven Rostedt <srostedt@redhat.com> * Copyright (C) 2008 Ingo Molnar <mingo@redhat.com> * * Originally taken from the RT patch by: * Arnaldo Carvalho de Melo <acme@redhat.com> * * Based on code from the l...
./CrossVul/dataset_final_sorted/CWE-416/c/good_819_4
crossvul-cpp_data_bad_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/bad_4045_0
crossvul-cpp_data_bad_3245_0
/* fe-netjoin.c : irssi Copyright (C) 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 later version. ...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_3245_0
crossvul-cpp_data_bad_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/bad_1373_0
crossvul-cpp_data_good_3224_1
/* * 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, version 2 of the * License. */ #include <linux/stat.h> #include <linux/sysctl.h> #include <linux/slab.h> #include <linux/cred.h> #inc...
./CrossVul/dataset_final_sorted/CWE-416/c/good_3224_1
crossvul-cpp_data_good_819_1
// SPDX-License-Identifier: GPL-2.0 /* * linux/fs/pipe.c * * Copyright (C) 1991, 1992, 1999 Linus Torvalds */ #include <linux/mm.h> #include <linux/file.h> #include <linux/poll.h> #include <linux/slab.h> #include <linux/module.h> #include <linux/init.h> #include <linux/fs.h> #include <linux/log2.h> #include <li...
./CrossVul/dataset_final_sorted/CWE-416/c/good_819_1
crossvul-cpp_data_good_5021_9
/* * IPv6 Syncookies implementation for the Linux kernel * * Authors: * Glenn Griffin <ggriffin.kernel@gmail.com> * * Based on IPv4 implementation by Andi Kleen * linux/net/ipv4/syncookies.c * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Gene...
./CrossVul/dataset_final_sorted/CWE-416/c/good_5021_9
crossvul-cpp_data_good_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/good_3175_0
crossvul-cpp_data_good_3245_0
/* fe-netjoin.c : irssi Copyright (C) 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 later version. ...
./CrossVul/dataset_final_sorted/CWE-416/c/good_3245_0
crossvul-cpp_data_good_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/good_2550_0
crossvul-cpp_data_good_3269_0
/* * Implements an IPX socket layer. * * This code is derived from work by * Ross Biro : Writing the original IP stack * Fred Van Kempen : Tidying up the TCP/IP * * Many thanks go to Keith Baker, Institute For Industrial Information * Technology Ltd, Swansea University for allowing me to work on this * in m...
./CrossVul/dataset_final_sorted/CWE-416/c/good_3269_0
crossvul-cpp_data_good_820_1
// SPDX-License-Identifier: GPL-2.0 /* * linux/fs/pipe.c * * Copyright (C) 1991, 1992, 1999 Linus Torvalds */ #include <linux/mm.h> #include <linux/file.h> #include <linux/poll.h> #include <linux/slab.h> #include <linux/module.h> #include <linux/init.h> #include <linux/fs.h> #include <linux/log2.h> #include <li...
./CrossVul/dataset_final_sorted/CWE-416/c/good_820_1
crossvul-cpp_data_good_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/good_1660_0
crossvul-cpp_data_bad_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/bad_545_0
crossvul-cpp_data_good_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/good_1390_2
crossvul-cpp_data_bad_4797_1
/* * History: * Started: Aug 9 by Lawrence Foard (entropy@world.std.com), * to allow user process control of SCSI devices. * Development Sponsored by Killy Corp. NY NY * * Original driver (sg.c): * Copyright (C) 1992 Lawrence Foard * Version 2 and 3 extensions to driver: * Copyright ...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_4797_1
crossvul-cpp_data_bad_3348_0
/* 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-416/c/bad_3348_0
crossvul-cpp_data_bad_1057_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/bad_1057_0
crossvul-cpp_data_bad_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/bad_2030_0
crossvul-cpp_data_bad_820_5
// SPDX-License-Identifier: GPL-2.0 /* * ring buffer based function tracer * * Copyright (C) 2007-2012 Steven Rostedt <srostedt@redhat.com> * Copyright (C) 2008 Ingo Molnar <mingo@redhat.com> * * Originally taken from the RT patch by: * Arnaldo Carvalho de Melo <acme@redhat.com> * * Based on code from the l...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_820_5
crossvul-cpp_data_good_2851_0
/* * ALSA sequencer Client Manager * Copyright (c) 1998-2001 by Frank van de Pol <fvdpol@coil.demon.nl> * Jaroslav Kysela <perex@perex.cz> * Takashi Iwai <tiwai@suse.de> * * * This program is free software; you can redistribute it and/or modify * it ...
./CrossVul/dataset_final_sorted/CWE-416/c/good_2851_0
crossvul-cpp_data_good_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/good_888_0
crossvul-cpp_data_bad_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/bad_5489_0
crossvul-cpp_data_bad_282_0
/* * Copyright (c) 2005-2006 Intel Corporation. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public License (GPL) Version 2, available from the file * COPYING in the main directory of this s...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_282_0
crossvul-cpp_data_good_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/good_148_1
crossvul-cpp_data_good_4494_0
/** * FreeRDP: A Remote Desktop Protocol Implementation * * Copyright 2014 Marc-Andre Moreau <marcandre.moreau@gmail.com> * Copyright 2017 Armin Novak <armin.novak@thincast.com> * Copyright 2017 Thincast Technologies GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this...
./CrossVul/dataset_final_sorted/CWE-416/c/good_4494_0
crossvul-cpp_data_good_820_5
// SPDX-License-Identifier: GPL-2.0 /* * ring buffer based function tracer * * Copyright (C) 2007-2012 Steven Rostedt <srostedt@redhat.com> * Copyright (C) 2008 Ingo Molnar <mingo@redhat.com> * * Originally taken from the RT patch by: * Arnaldo Carvalho de Melo <acme@redhat.com> * * Based on code from the l...
./CrossVul/dataset_final_sorted/CWE-416/c/good_820_5
crossvul-cpp_data_good_2906_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_2906_0
crossvul-cpp_data_bad_2843_0
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/workqueue.h> #include <linux/rtnetlink.h> #include <linux/cache.h> #include <linux/slab.h> #include <linux/list.h> #include <linux/delay.h> #include <linux/sched.h> #include <linux/idr.h> #include <linux/rculist.h> #include <linux/nsproxy.h> #include <linux/f...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_2843_0
crossvul-cpp_data_good_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/good_574_0
crossvul-cpp_data_good_5354_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/good_5354_0
crossvul-cpp_data_bad_5332_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-416/c/bad_5332_0
crossvul-cpp_data_good_1314_0
// SPDX-License-Identifier: GPL-2.0 /* * linux/fs/ext4/inode.c * * Copyright (C) 1992, 1993, 1994, 1995 * Remy Card (card@masi.ibp.fr) * Laboratoire MASI - Institut Blaise Pascal * Universite Pierre et Marie Curie (Paris VI) * * from * * linux/fs/minix/inode.c * * Copyright (C) 1991, 1992 Linus Torvald...
./CrossVul/dataset_final_sorted/CWE-416/c/good_1314_0