id
stringlengths
25
30
content
stringlengths
14
942k
max_stars_repo_path
stringlengths
49
55
crossvul-cpp_data_bad_1697_0
/* * 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-189/c/bad_1697_0
crossvul-cpp_data_good_3497_0
/* * fs/cifs/cifssmb.c * * Copyright (C) International Business Machines Corp., 2002,2010 * Author(s): Steve French (sfrench@us.ibm.com) * * Contains the routines for constructing the SMB PDUs themselves * * This library is free software; you can redistribute it and/or modify * it under the terms ...
./CrossVul/dataset_final_sorted/CWE-189/c/good_3497_0
crossvul-cpp_data_bad_5506_0
/* inffast.c -- fast decoding * Copyright (C) 1995-2008, 2010, 2013 Mark Adler * For conditions of distribution and use, see copyright notice in zlib.h */ #include "zutil.h" #include "inftrees.h" #include "inflate.h" #include "inffast.h" #ifndef ASMINF /* Allow machine dependent optimization for post-increment or...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_5506_0
crossvul-cpp_data_bad_3467_0
/* * linux/arch/alpha/kernel/osf_sys.c * * Copyright (C) 1995 Linus Torvalds */ /* * This file handles some of the stranger OSF/1 system call interfaces. * Some of the system calls expect a non-C calling standard, others have * special parameter blocks.. */ #include <linux/errno.h> #include <linux/sched.h>...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_3467_0
crossvul-cpp_data_good_728_0
// SPDX-License-Identifier: BSD-2-Clause /* * Copyright (c) 2014, STMicroelectronics International N.V. * Copyright (c) 2015-2017 Linaro Limited */ #include <assert.h> #include <compiler.h> #include <ctype.h> #include <initcall.h> #include <keep.h> #include <kernel/panic.h> #include <kernel/tee_misc.h> #include <ke...
./CrossVul/dataset_final_sorted/CWE-189/c/good_728_0
crossvul-cpp_data_bad_2020_9
/*------------------------------------------------------------------------- * * tsquery.c * I/O functions for tsquery * * Portions Copyright (c) 1996-2014, PostgreSQL Global Development Group * * * IDENTIFICATION * src/backend/utils/adt/tsquery.c * *-------------------------------------------------------...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_2020_9
crossvul-cpp_data_bad_3571_0
/* * Copyright (c) 2006-2008 Intel Corporation * Copyright (c) 2007 Dave Airlie <airlied@linux.ie> * Copyright (c) 2008 Red Hat Inc. * * DRM core CRTC related functions * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, ...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_3571_0
crossvul-cpp_data_bad_4911_0
/* +----------------------------------------------------------------------+ | PHP Version 7 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2016 The PHP Group | +---------...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_4911_0
crossvul-cpp_data_good_5540_0
/*- * Copyright (c) 2003-2010 Tim Kientzle * 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 c...
./CrossVul/dataset_final_sorted/CWE-189/c/good_5540_0
crossvul-cpp_data_bad_1605_2
#ifndef IGNOREALL /* dcraw.c -- Dave Coffin's raw photo decoder Copyright 1997-2013 by Dave Coffin, dcoffin a cybercom o net This is a command-line ANSI C program to convert raw photos from any digital camera on any computer running any operating system. No license is required to download and use dcraw...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_1605_2
crossvul-cpp_data_bad_3664_0
/* * Copyright 1988, 1989 Hans-J. Boehm, Alan J. Demers * Copyright (c) 1991-1994 by Xerox Corporation. All rights reserved. * Copyright (c) 1999-2004 Hewlett-Packard Development Company, L.P. * * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. ...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_3664_0
crossvul-cpp_data_good_2136_0
/*- * Copyright (c) 2008 Christos Zoulas * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of con...
./CrossVul/dataset_final_sorted/CWE-189/c/good_2136_0
crossvul-cpp_data_bad_3631_0
/* * linux/fs/ext4/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-189/c/bad_3631_0
crossvul-cpp_data_bad_3478_0
/* * Performance events x86 architecture code * * Copyright (C) 2008 Thomas Gleixner <tglx@linutronix.de> * Copyright (C) 2008-2009 Red Hat, Inc., Ingo Molnar * Copyright (C) 2009 Jaswinder Singh Rajput * Copyright (C) 2009 Advanced Micro Devices, Inc., Robert Richter * Copyright (C) 2008-2009 Red Hat, Inc....
./CrossVul/dataset_final_sorted/CWE-189/c/bad_3478_0
crossvul-cpp_data_good_3498_8
/* * linux/kernel/time/ntp.c * * NTP state machine interfaces and logic. * * This code was mainly moved from kernel/timer.c and kernel/time.c * Please see those files for relevant copyright info and historical * changelogs. */ #include <linux/mm.h> #include <linux/time.h> #include <linux/timer.h> #include <lin...
./CrossVul/dataset_final_sorted/CWE-189/c/good_3498_8
crossvul-cpp_data_good_2158_0
/* * Copyright (c) 2006, Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * This program is distributed in the hope it will be useful, but...
./CrossVul/dataset_final_sorted/CWE-189/c/good_2158_0
crossvul-cpp_data_good_2020_9
/*------------------------------------------------------------------------- * * tsquery.c * I/O functions for tsquery * * Portions Copyright (c) 1996-2014, PostgreSQL Global Development Group * * * IDENTIFICATION * src/backend/utils/adt/tsquery.c * *-------------------------------------------------------...
./CrossVul/dataset_final_sorted/CWE-189/c/good_2020_9
crossvul-cpp_data_good_1412_1
/* Copyright (c) 2011-2014 PLUMgrid, http://plumgrid.com * Copyright (c) 2016 Facebook * Copyright (c) 2018 Covalent IO, Inc. http://covalent.io * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free S...
./CrossVul/dataset_final_sorted/CWE-189/c/good_1412_1
crossvul-cpp_data_good_2154_0
/*- * Copyright (c) 2008 Christos Zoulas * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of con...
./CrossVul/dataset_final_sorted/CWE-189/c/good_2154_0
crossvul-cpp_data_bad_3652_0
/* * fs/nfs/nfs4proc.c * * Client-side procedure declarations for NFSv4. * * Copyright (c) 2002 The Regents of the University of Michigan. * All rights reserved. * * Kendrick Smith <kmsmith@umich.edu> * Andy Adamson <andros@umich.edu> * * Redistribution and use in source and binary forms, with or wi...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_3652_0
crossvul-cpp_data_good_3467_0
/* * linux/arch/alpha/kernel/osf_sys.c * * Copyright (C) 1995 Linus Torvalds */ /* * This file handles some of the stranger OSF/1 system call interfaces. * Some of the system calls expect a non-C calling standard, others have * special parameter blocks.. */ #include <linux/errno.h> #include <linux/sched.h>...
./CrossVul/dataset_final_sorted/CWE-189/c/good_3467_0
crossvul-cpp_data_good_3527_4
/* * linux/net/sunrpc/xdr.c * * Generic XDR support. * * Copyright (C) 1995, 1996 Olaf Kirch <okir@monad.swb.de> */ #include <linux/module.h> #include <linux/slab.h> #include <linux/types.h> #include <linux/string.h> #include <linux/kernel.h> #include <linux/pagemap.h> #include <linux/errno.h> #include <linux/su...
./CrossVul/dataset_final_sorted/CWE-189/c/good_3527_4
crossvul-cpp_data_bad_5292_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_5292_0
crossvul-cpp_data_bad_3447_1
/* * sound/oss/midi_synth.c * * High level midi sequencer manager for dumb MIDI interfaces. */ /* * Copyright (C) by Hannu Savolainen 1993-1997 * * OSS/Free for Linux is distributed under the GNU GENERAL PUBLIC LICENSE (GPL) * Version 2 (June 1991). See the "COPYING" file distributed with this software * for m...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_3447_1
crossvul-cpp_data_good_1605_2
#ifndef IGNOREALL /* dcraw.c -- Dave Coffin's raw photo decoder Copyright 1997-2013 by Dave Coffin, dcoffin a cybercom o net This is a command-line ANSI C program to convert raw photos from any digital camera on any computer running any operating system. No license is required to download and use dcraw...
./CrossVul/dataset_final_sorted/CWE-189/c/good_1605_2
crossvul-cpp_data_good_3527_1
/* * fs/nfs/nfs4xdr.c * * Client-side XDR for NFSv4. * * Copyright (c) 2002 The Regents of the University of Michigan. * All rights reserved. * * Kendrick Smith <kmsmith@umich.edu> * Andy Adamson <andros@umich.edu> * * Redistribution and use in source and binary forms, with or without * modificati...
./CrossVul/dataset_final_sorted/CWE-189/c/good_3527_1
crossvul-cpp_data_bad_5728_0
/* * fs/cifs/connect.c * * Copyright (C) International Business Machines Corp., 2002,2011 * Author(s): Steve French (sfrench@us.ibm.com) * * This library is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free ...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_5728_0
crossvul-cpp_data_good_3689_2
/**************************************************************************** * Driver for Solarflare Solarstorm network controllers and boards * Copyright 2005-2006 Fen Systems Ltd. * Copyright 2006-2010 Solarflare Communications Inc. * * This program is free software; you can redistribute it and/or modify it * ...
./CrossVul/dataset_final_sorted/CWE-189/c/good_3689_2
crossvul-cpp_data_bad_5668_1
/* * linux/mm/memory.c * * Copyright (C) 1991, 1992, 1993, 1994 Linus Torvalds */ /* * demand-loading started 01.12.91 - seems it is high on the list of * things wanted, and it should be easy to implement. - Linus */ /* * Ok, demand-loading was easy, shared pages a little bit tricker. Shared * pages start...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_5668_1
crossvul-cpp_data_good_3689_4
/**************************************************************************** * Driver for Solarflare Solarstorm network controllers and boards * Copyright 2005-2006 Fen Systems Ltd. * Copyright 2005-2010 Solarflare Communications Inc. * * This program is free software; you can redistribute it and/or modify it * ...
./CrossVul/dataset_final_sorted/CWE-189/c/good_3689_4
crossvul-cpp_data_bad_2046_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-189/c/bad_2046_0
crossvul-cpp_data_good_5628_2
/* * Copyright (C) 2007-2008 Sourcefire, Inc. * * Authors: Alberto Wu, Tomasz Kojm * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * This program is distributed in t...
./CrossVul/dataset_final_sorted/CWE-189/c/good_5628_2
crossvul-cpp_data_good_5508_0
/* crc32.c -- compute the CRC-32 of a data stream * Copyright (C) 1995-2006, 2010, 2011, 2012 Mark Adler * For conditions of distribution and use, see copyright notice in zlib.h * * Thanks to Rodney Brown <rbrown64@csc.com.au> for his contribution of faster * CRC methods: exclusive-oring 32 bits of data at a time,...
./CrossVul/dataset_final_sorted/CWE-189/c/good_5508_0
crossvul-cpp_data_bad_4987_1
/* * gd_gd2.c * * Implements the I/O and support for the GD2 format. * * Changing the definition of GD2_DBG (below) will cause copious messages * to be displayed while it processes requests. * * Designed, Written & Copyright 1999, Philip Warner. * */ #ifdef HAVE_CONFIG_H #include "config.h"...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_4987_1
crossvul-cpp_data_bad_5505_0
/* inftrees.c -- generate Huffman trees for efficient decoding * Copyright (C) 1995-2013 Mark Adler * For conditions of distribution and use, see copyright notice in zlib.h */ #include "zutil.h" #include "inftrees.h" #define MAXBITS 15 const char inflate_copyright[] = " inflate 1.2.8.1 Copyright 1995-2013 Mark...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_5505_0
crossvul-cpp_data_good_3770_0
/* * TCP Illinois congestion control. * Home page: * http://www.ews.uiuc.edu/~shaoliu/tcpillinois/index.html * * The algorithm is described in: * "TCP-Illinois: A Loss and Delay-Based Congestion Control Algorithm * for High-Speed Networks" * http://www.ifp.illinois.edu/~srikant/Papers/liubassri06perf.pdf * *...
./CrossVul/dataset_final_sorted/CWE-189/c/good_3770_0
crossvul-cpp_data_bad_2087_1
/* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2013 The PHP Group | +---------...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_2087_1
crossvul-cpp_data_bad_3498_9
/* * SLUB: A slab allocator that limits cache line use instead of queuing * objects in per cpu and per node lists. * * The allocator synchronizes using per slab locks and only * uses a centralized lock to manage a pool of partial slabs. * * (C) 2007 SGI, Christoph Lameter <clameter@sgi.com> */ #include <linux/...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_3498_9
crossvul-cpp_data_good_4987_1
/* * gd_gd2.c * * Implements the I/O and support for the GD2 format. * * Changing the definition of GD2_DBG (below) will cause copious messages * to be displayed while it processes requests. * * Designed, Written & Copyright 1999, Philip Warner. * */ #ifdef HAVE_CONFIG_H #include "config.h"...
./CrossVul/dataset_final_sorted/CWE-189/c/good_4987_1
crossvul-cpp_data_good_5752_0
/* * linux/ipc/msg.c * Copyright (C) 1992 Krishna Balasubramanian * * Removed all the remaining kerneld mess * Catch the -EFAULT stuff properly * Use GFP_KERNEL for messages as in 1.2 * Fixed up the unchecked user space derefs * Copyright (C) 1998 Alan Cox & Andi Kleen * * /proc/sysvipc/msg support (c) 1999 D...
./CrossVul/dataset_final_sorted/CWE-189/c/good_5752_0
crossvul-cpp_data_good_3652_0
/* * fs/nfs/nfs4proc.c * * Client-side procedure declarations for NFSv4. * * Copyright (c) 2002 The Regents of the University of Michigan. * All rights reserved. * * Kendrick Smith <kmsmith@umich.edu> * Andy Adamson <andros@umich.edu> * * Redistribution and use in source and binary forms, with or wi...
./CrossVul/dataset_final_sorted/CWE-189/c/good_3652_0
crossvul-cpp_data_good_3665_0
/* * Copyright 1988, 1989 Hans-J. Boehm, Alan J. Demers * Copyright (c) 1991-1994 by Xerox Corporation. All rights reserved. * Copyright (c) 1999-2004 Hewlett-Packard Development Company, L.P. * * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. ...
./CrossVul/dataset_final_sorted/CWE-189/c/good_3665_0
crossvul-cpp_data_bad_3498_7
/* * linux/kernel/time.c * * Copyright (C) 1991, 1992 Linus Torvalds * * This file contains the interface functions for the various * time related system calls: time, stime, gettimeofday, settimeofday, * adjtime */ /* * Modification history kernel/time.c * * 1993-09-02 Philip Gladstone * ...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_3498_7
crossvul-cpp_data_bad_5755_0
/* * drivers/uio/uio.c * * Copyright(C) 2005, Benedikt Spranger <b.spranger@linutronix.de> * Copyright(C) 2005, Thomas Gleixner <tglx@linutronix.de> * Copyright(C) 2006, Hans J. Koch <hjk@hansjkoch.de> * Copyright(C) 2006, Greg Kroah-Hartman <greg@kroah.com> * * Userspace IO * * Base Functions * * Licensed ...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_5755_0
crossvul-cpp_data_good_5520_0
/* Pango * glyphstring.c: * * Copyright (C) 1999 Red Hat Software * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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-189/c/good_5520_0
crossvul-cpp_data_good_5292_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-189/c/good_5292_0
crossvul-cpp_data_good_3498_2
/* * Timer device implementation for SGI SN platforms. * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (c) 2001-2006 Silicon Graphics, Inc. All rights reserved. * * This dr...
./CrossVul/dataset_final_sorted/CWE-189/c/good_3498_2
crossvul-cpp_data_bad_3668_0
/* Alternative malloc implementation for multiple threads without lock contention based on dlmalloc. (C) 2005-2010 Niall Douglas Boost Software License - Version 1.0 - August 17th, 2003 Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying docume...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_3668_0
crossvul-cpp_data_good_1411_1
/* Copyright (c) 2011-2014 PLUMgrid, http://plumgrid.com * Copyright (c) 2016 Facebook * Copyright (c) 2018 Covalent IO, Inc. http://covalent.io * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free S...
./CrossVul/dataset_final_sorted/CWE-189/c/good_1411_1
crossvul-cpp_data_bad_2319_0
/* * Copyright (c) 2006, Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * This program is distributed in the hope it will be useful, but...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_2319_0
crossvul-cpp_data_good_3447_3
/* * sound/oss/opl3.c * * A low level driver for Yamaha YM3812 and OPL-3 -chips * * * Copyright (C) by Hannu Savolainen 1993-1997 * * OSS/Free for Linux is distributed under the GNU GENERAL PUBLIC LICENSE (GPL) * Version 2 (June 1991). See the "COPYING" file distributed with this software * for more info. * ...
./CrossVul/dataset_final_sorted/CWE-189/c/good_3447_3
crossvul-cpp_data_good_3447_4
/* * sound/oss/sequencer.c * * The sequencer personality manager. */ /* * Copyright (C) by Hannu Savolainen 1993-1997 * * OSS/Free for Linux is distributed under the GNU GENERAL PUBLIC LICENSE (GPL) * Version 2 (June 1991). See the "COPYING" file distributed with this software * for more info. */ /* * Thomas...
./CrossVul/dataset_final_sorted/CWE-189/c/good_3447_4
crossvul-cpp_data_bad_4814_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % W W PPPP GGGG ...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_4814_0
crossvul-cpp_data_good_3665_1
/* * Copyright 1988, 1989 Hans-J. Boehm, Alan J. Demers * Copyright (c) 1991-1994 by Xerox Corporation. All rights reserved. * Copyright (c) 1996 by Silicon Graphics. All rights reserved. * Copyright (c) 2000 by Hewlett-Packard Company. All rights reserved. * * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY ...
./CrossVul/dataset_final_sorted/CWE-189/c/good_3665_1
crossvul-cpp_data_bad_1831_0
/* fat.c - Read/write access to the FAT Copyright (C) 1993 Werner Almesberger <werner.almesberger@lrc.di.epfl.ch> Copyright (C) 1998 Roman Hodek <Roman.Hodek@informatik.uni-erlangen.de> Copyright (C) 2008-2014 Daniel Baumann <mail@daniel-baumann.ch> This program is free software: you can redistribute it a...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_1831_0
crossvul-cpp_data_good_3569_0
/* * Copyright (c) 2008, Christoph Hellwig * 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 useful, ...
./CrossVul/dataset_final_sorted/CWE-189/c/good_3569_0
crossvul-cpp_data_bad_3475_0
/* * mm/mremap.c * * (C) Copyright 1996 Linus Torvalds * * Address space accounting code <alan@lxorguk.ukuu.org.uk> * (C) Copyright 2002 Red Hat Inc, All Rights Reserved */ #include <linux/mm.h> #include <linux/hugetlb.h> #include <linux/shm.h> #include <linux/ksm.h> #include <linux/mman.h> #include <linux/swap...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_3475_0
crossvul-cpp_data_bad_2403_0
/** * eCryptfs: Linux filesystem encryption layer * * Copyright (C) 1997-2004 Erez Zadok * Copyright (C) 2001-2004 Stony Brook University * Copyright (C) 2004-2007 International Business Machines Corp. * Author(s): Michael A. Halcrow <mahalcro@us.ibm.com> * Michael C. Thompson <mcthomps@us.ibm.com> * * T...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_2403_0
crossvul-cpp_data_bad_3498_8
/* * linux/kernel/time/ntp.c * * NTP state machine interfaces and logic. * * This code was mainly moved from kernel/timer.c and kernel/time.c * Please see those files for relevant copyright info and historical * changelogs. */ #include <linux/mm.h> #include <linux/time.h> #include <linux/timer.h> #include <lin...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_3498_8
crossvul-cpp_data_bad_4934_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. * * Implementation of the Transmission Control Protocol(TCP). * * Authors: Ross Biro * Fred N. van Kempen, <wa...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_4934_0
crossvul-cpp_data_bad_5628_2
/* * Copyright (C) 2007-2008 Sourcefire, Inc. * * Authors: Alberto Wu, Tomasz Kojm * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * This program is distributed in t...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_5628_2
crossvul-cpp_data_bad_5507_0
/* inflate.c -- zlib decompression * Copyright (C) 1995-2012 Mark Adler * For conditions of distribution and use, see copyright notice in zlib.h */ /* * Change history: * * 1.2.beta0 24 Nov 2002 * - First version -- complete rewrite of inflate to simplify code, avoid * creation of window when not needed, ...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_5507_0
crossvul-cpp_data_bad_996_0
// SPDX-License-Identifier: GPL-2.0 /* * gadget.c - DesignWare USB3 DRD Controller Gadget Framework Link * * Copyright (C) 2010-2011 Texas Instruments Incorporated - http://www.ti.com * * Authors: Felipe Balbi <balbi@ti.com>, * Sebastian Andrzej Siewior <bigeasy@linutronix.de> */ #include <linux/kernel.h> #...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_996_0
crossvul-cpp_data_bad_3498_2
/* * Timer device implementation for SGI SN platforms. * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (c) 2001-2006 Silicon Graphics, Inc. All rights reserved. * * This dr...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_3498_2
crossvul-cpp_data_bad_3665_0
/* * Copyright 1988, 1989 Hans-J. Boehm, Alan J. Demers * Copyright (c) 1991-1994 by Xerox Corporation. All rights reserved. * Copyright (c) 1999-2004 Hewlett-Packard Development Company, L.P. * * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. ...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_3665_0
crossvul-cpp_data_good_4934_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. * * Implementation of the Transmission Control Protocol(TCP). * * Authors: Ross Biro * Fred N. van Kempen, <wa...
./CrossVul/dataset_final_sorted/CWE-189/c/good_4934_0
crossvul-cpp_data_good_2403_0
/** * eCryptfs: Linux filesystem encryption layer * * Copyright (C) 1997-2004 Erez Zadok * Copyright (C) 2001-2004 Stony Brook University * Copyright (C) 2004-2007 International Business Machines Corp. * Author(s): Michael A. Halcrow <mahalcro@us.ibm.com> * Michael C. Thompson <mcthomps@us.ibm.com> * * T...
./CrossVul/dataset_final_sorted/CWE-189/c/good_2403_0
crossvul-cpp_data_bad_3689_4
/**************************************************************************** * Driver for Solarflare Solarstorm network controllers and boards * Copyright 2005-2006 Fen Systems Ltd. * Copyright 2005-2010 Solarflare Communications Inc. * * This program is free software; you can redistribute it and/or modify it * ...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_3689_4
crossvul-cpp_data_bad_995_0
// SPDX-License-Identifier: GPL-2.0+ /* * f_hid.c -- USB HID function driver * * Copyright (C) 2010 Fabien Chouteau <fabien.chouteau@barco.com> */ #include <linux/kernel.h> #include <linux/module.h> #include <linux/hid.h> #include <linux/idr.h> #include <linux/cdev.h> #include <linux/mutex.h> #include <linux/poll....
./CrossVul/dataset_final_sorted/CWE-189/c/bad_995_0
crossvul-cpp_data_good_3666_0
/* * Copyright 1988, 1989 Hans-J. Boehm, Alan J. Demers * Copyright (c) 1991-1994 by Xerox Corporation. All rights reserved. * Copyright (c) 1999-2004 Hewlett-Packard Development Company, L.P. * * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. ...
./CrossVul/dataset_final_sorted/CWE-189/c/good_3666_0
crossvul-cpp_data_good_2120_0
/* bpf_jit_comp.c : BPF JIT compiler * * Copyright (C) 2011 Eric Dumazet (eric.dumazet@gmail.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 the License. */ #includ...
./CrossVul/dataset_final_sorted/CWE-189/c/good_2120_0
crossvul-cpp_data_bad_3498_0
/* * Support for n32 Linux/MIPS ELF binaries. * * Copyright (C) 1999, 2001 Ralf Baechle * Copyright (C) 1999, 2001 Silicon Graphics, Inc. * * Heavily inspired by the 32-bit Sparc compat code which is * Copyright (C) 1995, 1996, 1997, 1998 David S. Miller (davem@redhat.com) * Copyright (C) 1995, 1996, 1997, 1998...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_3498_0
crossvul-cpp_data_good_5755_0
/* * drivers/uio/uio.c * * Copyright(C) 2005, Benedikt Spranger <b.spranger@linutronix.de> * Copyright(C) 2005, Thomas Gleixner <tglx@linutronix.de> * Copyright(C) 2006, Hans J. Koch <hjk@hansjkoch.de> * Copyright(C) 2006, Greg Kroah-Hartman <greg@kroah.com> * * Userspace IO * * Base Functions * * Licensed ...
./CrossVul/dataset_final_sorted/CWE-189/c/good_5755_0
crossvul-cpp_data_bad_3669_0
/* Alternative malloc implementation for multiple threads without lock contention based on dlmalloc. (C) 2005-2010 Niall Douglas Boost Software License - Version 1.0 - August 17th, 2003 Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying docume...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_3669_0
crossvul-cpp_data_bad_2136_0
/*- * Copyright (c) 2008 Christos Zoulas * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of con...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_2136_0
crossvul-cpp_data_bad_3667_0
/* * Copyright (C) 2008 The Android Open Source 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: * * Redistributions of source code must retain the above copyright * notice, t...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_3667_0
crossvul-cpp_data_bad_3570_0
/* * Copyright (c) 2008, Christoph Hellwig * 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 useful, ...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_3570_0
crossvul-cpp_data_bad_2020_1
/* * contrib/hstore/hstore_io.c */ #include "postgres.h" #include <ctype.h> #include "access/htup_details.h" #include "catalog/pg_type.h" #include "funcapi.h" #include "lib/stringinfo.h" #include "libpq/pqformat.h" #include "utils/builtins.h" #include "utils/json.h" #include "utils/lsyscache.h" #include "utils/typc...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_2020_1
crossvul-cpp_data_bad_1696_0
/* * 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-189/c/bad_1696_0
crossvul-cpp_data_bad_5793_0
/* * Local APIC virtualization * * Copyright (C) 2006 Qumranet, Inc. * Copyright (C) 2007 Novell * Copyright (C) 2007 Intel * Copyright 2009 Red Hat, Inc. and/or its affiliates. * * Authors: * Dor Laor <dor.laor@qumranet.com> * Gregory Haskins <ghaskins@novell.com> * Yaozu (Eddie) Dong <eddie.dong@int...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_5793_0
crossvul-cpp_data_good_199_0
/* * Phusion Passenger - https://www.phusionpassenger.com/ * Copyright (c) 2018 Phusion Holding B.V. * * "Passenger", "Phusion Passenger" and "Union Station" are registered * trademarks of Phusion Holding B.V. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this softw...
./CrossVul/dataset_final_sorted/CWE-732/cpp/good_199_0
crossvul-cpp_data_bad_199_0
/* * Phusion Passenger - https://www.phusionpassenger.com/ * Copyright (c) 2018 Phusion Holding B.V. * * "Passenger", "Phusion Passenger" and "Union Station" are registered * trademarks of Phusion Holding B.V. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this softw...
./CrossVul/dataset_final_sorted/CWE-732/cpp/bad_199_0
crossvul-cpp_data_good_3304_1
/* * linux/drivers/char/mem.c * * Copyright (C) 1991, 1992 Linus Torvalds * * Added devfs support. * Jan-11-1998, C. Scott Ananian <cananian@alumni.princeton.edu> * Shared /dev/zero mmapping support, Feb 2000, Kanoj Sarcar <kanoj@sgi.com> */ #include <linux/mm.h> #include <linux/miscdevice.h> #include ...
./CrossVul/dataset_final_sorted/CWE-732/c/good_3304_1
crossvul-cpp_data_good_4284_5
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
./CrossVul/dataset_final_sorted/CWE-732/c/good_4284_5
crossvul-cpp_data_good_3304_0
#include <linux/gfp.h> #include <linux/initrd.h> #include <linux/ioport.h> #include <linux/swap.h> #include <linux/memblock.h> #include <linux/bootmem.h> /* for max_low_pfn */ #include <asm/cacheflush.h> #include <asm/e820.h> #include <asm/init.h> #include <asm/page.h> #include <asm/page_types.h> #include <asm/section...
./CrossVul/dataset_final_sorted/CWE-732/c/good_3304_0
crossvul-cpp_data_bad_3304_0
#include <linux/gfp.h> #include <linux/initrd.h> #include <linux/ioport.h> #include <linux/swap.h> #include <linux/memblock.h> #include <linux/bootmem.h> /* for max_low_pfn */ #include <asm/cacheflush.h> #include <asm/e820.h> #include <asm/init.h> #include <asm/page.h> #include <asm/page_types.h> #include <asm/section...
./CrossVul/dataset_final_sorted/CWE-732/c/bad_3304_0
crossvul-cpp_data_bad_4284_5
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
./CrossVul/dataset_final_sorted/CWE-732/c/bad_4284_5
crossvul-cpp_data_bad_237_1
/* The MIT License (MIT) * * Copyright (c) 2015 Main Street Softworks, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the right...
./CrossVul/dataset_final_sorted/CWE-732/c/bad_237_1
crossvul-cpp_data_bad_237_0
/* The MIT License (MIT) * * Copyright (c) 2015 Main Street Softworks, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rig...
./CrossVul/dataset_final_sorted/CWE-732/c/bad_237_0
crossvul-cpp_data_bad_3304_1
/* * linux/drivers/char/mem.c * * Copyright (C) 1991, 1992 Linus Torvalds * * Added devfs support. * Jan-11-1998, C. Scott Ananian <cananian@alumni.princeton.edu> * Shared /dev/zero mmapping support, Feb 2000, Kanoj Sarcar <kanoj@sgi.com> */ #include <linux/mm.h> #include <linux/miscdevice.h> #include ...
./CrossVul/dataset_final_sorted/CWE-732/c/bad_3304_1
crossvul-cpp_data_good_4284_6
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
./CrossVul/dataset_final_sorted/CWE-732/c/good_4284_6
crossvul-cpp_data_bad_4284_4
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
./CrossVul/dataset_final_sorted/CWE-732/c/bad_4284_4
crossvul-cpp_data_good_237_0
/* The MIT License (MIT) * * Copyright (c) 2015 Main Street Softworks, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rig...
./CrossVul/dataset_final_sorted/CWE-732/c/good_237_0
crossvul-cpp_data_good_4284_4
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
./CrossVul/dataset_final_sorted/CWE-732/c/good_4284_4
crossvul-cpp_data_good_237_1
/* The MIT License (MIT) * * Copyright (c) 2015 Main Street Softworks, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the right...
./CrossVul/dataset_final_sorted/CWE-732/c/good_237_1
crossvul-cpp_data_bad_4284_6
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
./CrossVul/dataset_final_sorted/CWE-732/c/bad_4284_6
crossvul-cpp_data_bad_4017_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-401/c/bad_4017_0
crossvul-cpp_data_bad_4668_0
/* * * Copyright (c) 2016 Nest Labs, Inc. * All rights reserved. * * 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 at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
./CrossVul/dataset_final_sorted/CWE-401/c/bad_4668_0
crossvul-cpp_data_good_4017_0
/* * Copyright (c) 2011-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 at * * http://www.apache.org/licenses/LICE...
./CrossVul/dataset_final_sorted/CWE-401/c/good_4017_0
crossvul-cpp_data_good_4668_0
/* * * Copyright (c) 2016 Nest Labs, Inc. * All rights reserved. * * 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 at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
./CrossVul/dataset_final_sorted/CWE-401/c/good_4668_0