id
stringlengths
25
30
content
stringlengths
14
942k
max_stars_repo_path
stringlengths
49
55
crossvul-cpp_data_good_3498_6
/* * Implement CPU time clocks for the POSIX clock interface. */ #include <linux/sched.h> #include <linux/posix-timers.h> #include <linux/errno.h> #include <linux/math64.h> #include <asm/uaccess.h> static int check_clock(const clockid_t which_clock) { int error = 0; struct task_struct *p; const pid_t pid = CPUCL...
./CrossVul/dataset_final_sorted/CWE-189/c/good_3498_6
crossvul-cpp_data_good_2020_7
/* * txtquery io * Teodor Sigaev <teodor@stack.net> * contrib/ltree/ltxtquery_io.c */ #include "postgres.h" #include <ctype.h> #include "crc32.h" #include "ltree.h" #include "miscadmin.h" PG_FUNCTION_INFO_V1(ltxtq_in); Datum ltxtq_in(PG_FUNCTION_ARGS); PG_FUNCTION_INFO_V1(ltxtq_out); Datum ltxtq_out(PG_FUNCTI...
./CrossVul/dataset_final_sorted/CWE-189/c/good_2020_7
crossvul-cpp_data_bad_5755_1
/* * BRIEF MODULE DESCRIPTION * Au1100 LCD Driver. * * Rewritten for 2.6 by Embedded Alley Solutions * <source@embeddedalley.com>, based on submissions by * Karl Lessard <klessard@sunrisetelecom.com> * <c.pellegrin@exadron.com> * * PM support added by Rodolfo Giometti <giometti@linux.it> * Cursor enable/...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_5755_1
crossvul-cpp_data_good_4814_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % W W PPPP GGGG ...
./CrossVul/dataset_final_sorted/CWE-189/c/good_4814_0
crossvul-cpp_data_bad_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/bad_3527_4
crossvul-cpp_data_bad_2020_8
/*------------------------------------------------------------------------- * * geo_ops.c * 2D geometric operations * * Portions Copyright (c) 1996-2014, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * * IDENTIFICATION * src/backend/utils/adt/...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_2020_8
crossvul-cpp_data_good_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/good_5507_0
crossvul-cpp_data_good_2087_1
/* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2013 The PHP Group | +---------...
./CrossVul/dataset_final_sorted/CWE-189/c/good_2087_1
crossvul-cpp_data_good_4800_1
/* $Id$ * * tiff2pdf - converts a TIFF image to a PDF document * * Copyright (c) 2003 Ross Finlayson * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * that (i) the above copyright notices and this permission...
./CrossVul/dataset_final_sorted/CWE-189/c/good_4800_1
crossvul-cpp_data_bad_2124_0
/* * Linux Socket Filter - Kernel level socket filtering * * Based on the design of the Berkeley Packet Filter. The new * internal format has been designed by PLUMgrid: * * Copyright (c) 2011 - 2014 PLUMgrid, http://plumgrid.com * * Authors: * * Jay Schulist <jschlst@samba.org> * Alexei Starovoitov <ast@plum...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_2124_0
crossvul-cpp_data_good_2219_0
/* * Routines for driver control interface * Copyright (c) by 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 Free Software Foundation; either version 2 of the License,...
./CrossVul/dataset_final_sorted/CWE-189/c/good_2219_0
crossvul-cpp_data_good_2020_8
/*------------------------------------------------------------------------- * * geo_ops.c * 2D geometric operations * * Portions Copyright (c) 1996-2014, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * * IDENTIFICATION * src/backend/utils/adt/...
./CrossVul/dataset_final_sorted/CWE-189/c/good_2020_8
crossvul-cpp_data_bad_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/bad_3569_0
crossvul-cpp_data_good_3498_1
/* * Support for o32 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/good_3498_1
crossvul-cpp_data_bad_5000_0
/* * x_tables core - Backend for {ip,ip6,arp}_tables * * Copyright (C) 2006-2006 Harald Welte <laforge@netfilter.org> * Copyright (C) 2006-2012 Patrick McHardy <kaber@trash.net> * * Based on existing ip_tables code which is * Copyright (C) 1999 Paul `Rusty' Russell & Michael J. Neuling * Copyright (C) 2000-...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_5000_0
crossvul-cpp_data_good_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/good_3571_0
crossvul-cpp_data_good_2201_0
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c */ /* * Copyright (c) 2004-2005, Novell, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following con...
./CrossVul/dataset_final_sorted/CWE-189/c/good_2201_0
crossvul-cpp_data_bad_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/bad_5520_0
crossvul-cpp_data_good_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/good_3669_0
crossvul-cpp_data_good_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/good_3668_0
crossvul-cpp_data_bad_2020_2
/* * contrib/hstore/hstore_op.c */ #include "postgres.h" #include "access/hash.h" #include "access/htup_details.h" #include "catalog/pg_type.h" #include "funcapi.h" #include "utils/builtins.h" #include "hstore.h" /* old names for C functions */ HSTORE_POLLUTE(hstore_fetchval, fetchval); HSTORE_POLLUTE(hstore_exist...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_2020_2
crossvul-cpp_data_bad_2155_1
/*- * 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_2155_1
crossvul-cpp_data_good_5000_0
/* * x_tables core - Backend for {ip,ip6,arp}_tables * * Copyright (C) 2006-2006 Harald Welte <laforge@netfilter.org> * Copyright (C) 2006-2012 Patrick McHardy <kaber@trash.net> * * Based on existing ip_tables code which is * Copyright (C) 1999 Paul `Rusty' Russell & Michael J. Neuling * Copyright (C) 2000-...
./CrossVul/dataset_final_sorted/CWE-189/c/good_5000_0
crossvul-cpp_data_good_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/good_5668_1
crossvul-cpp_data_good_2020_10
/*------------------------------------------------------------------------- * * tsquery_util.c * Utilities for tsquery datatype * * Portions Copyright (c) 1996-2014, PostgreSQL Global Development Group * * * IDENTIFICATION * src/backend/utils/adt/tsquery_util.c * *----------------------------------------...
./CrossVul/dataset_final_sorted/CWE-189/c/good_2020_10
crossvul-cpp_data_good_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/good_995_0
crossvul-cpp_data_good_3527_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_3527_0
crossvul-cpp_data_good_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/good_996_0
crossvul-cpp_data_bad_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/bad_3497_0
crossvul-cpp_data_bad_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/bad_3447_4
crossvul-cpp_data_bad_2417_0
/* ** Copyright (C) 2002-2013 Erik de Castro Lopo <erikd@mega-nerd.com> ** Copyright (C) 2003 Ross Bencina <rbencina@iprimus.com.au> ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU Lesser General Public License as published by ** the Free Software Foundation; ...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_2417_0
crossvul-cpp_data_good_5755_2
/* * BRIEF MODULE DESCRIPTION * Au1200 LCD Driver. * * Copyright 2004-2005 AMD * Author: AMD * * Based on: * linux/drivers/video/skeletonfb.c -- Skeleton for a frame buffer device * Created 28 Dec 1997 by Geert Uytterhoeven * * This program is free software; you can redistribute it and/or modify it * un...
./CrossVul/dataset_final_sorted/CWE-189/c/good_5755_2
crossvul-cpp_data_good_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 /* Decode literal, length, and distance codes and write ou...
./CrossVul/dataset_final_sorted/CWE-189/c/good_5506_0
crossvul-cpp_data_bad_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/bad_1412_1
crossvul-cpp_data_good_1613_0
/* ----------------------------------------------------------------------------- * Copyright (c) 2011 Ozmo Inc * Released under the GNU General Public License Version 2 (GPLv2). * * This file provides the implementation of a USB host controller device that * does not have any associated hardware. Instead the virtu...
./CrossVul/dataset_final_sorted/CWE-189/c/good_1613_0
crossvul-cpp_data_bad_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/bad_2120_0
crossvul-cpp_data_bad_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/bad_5540_0
crossvul-cpp_data_bad_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/bad_3689_2
crossvul-cpp_data_good_5818_0
/* * PNG image format * Copyright (c) 2008 Loren Merrit <lorenm@u.washington.edu> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2....
./CrossVul/dataset_final_sorted/CWE-189/c/good_5818_0
crossvul-cpp_data_good_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/good_1696_0
crossvul-cpp_data_good_2155_1
/*- * 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_2155_1
crossvul-cpp_data_good_4987_3
/* Just try to read the invalid gd2 image & not crash. */ #include "gd.h" #include <stdio.h> #include <stdlib.h> #include "gdtest.h" int main() { gdImagePtr im; FILE *fp; char path[1024]; /* Read the corrupt image. */ sprintf(path, "%s/gd2/invalid_neg_size.gd2", GDTEST_TOP_DIR); fp = fopen(path, "rb"); if (!fp...
./CrossVul/dataset_final_sorted/CWE-189/c/good_4987_3
crossvul-cpp_data_good_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/good_3667_0
crossvul-cpp_data_good_3541_1
/* * Performance event support - powerpc architecture code * * Copyright 2008-2009 Paul Mackerras, IBM Corporation. * * 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 o...
./CrossVul/dataset_final_sorted/CWE-189/c/good_3541_1
crossvul-cpp_data_bad_1616_0
/* ----------------------------------------------------------------------------- * Copyright (c) 2011 Ozmo Inc * Released under the GNU General Public License Version 2 (GPLv2). * * This file implements the protocol specific parts of the USB service for a PD. * -----------------------------------------------------...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_1616_0
crossvul-cpp_data_bad_4987_3
404: Not Found
./CrossVul/dataset_final_sorted/CWE-189/c/bad_4987_3
crossvul-cpp_data_good_3484_0
/* * pmcraid.c -- driver for PMC Sierra MaxRAID controller adapters * * Written By: Anil Ravindranath<anil_ravindranath@pmc-sierra.com> * PMC-Sierra Inc * * Copyright (C) 2008, 2009 PMC Sierra Inc * * This program is free software; you can redistribute it and/or modify * it under the terms of the G...
./CrossVul/dataset_final_sorted/CWE-189/c/good_3484_0
crossvul-cpp_data_bad_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/bad_1411_1
crossvul-cpp_data_good_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/good_3478_0
crossvul-cpp_data_bad_5798_0
#include <linux/dcache.h> #include <linux/debugfs.h> #include <linux/delay.h> #include <linux/hardirq.h> #include <linux/mm.h> #include <linux/string.h> #include <linux/slab.h> #include <linux/export.h> #include "decl.h" #include "cmd.h" #include "debugfs.h" static struct dentry *lbs_dir; static char *szStates[] = { ...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_5798_0
crossvul-cpp_data_good_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/good_2319_0
crossvul-cpp_data_bad_2020_6
/* * in/out function for ltree and lquery * Teodor Sigaev <teodor@stack.net> * contrib/ltree/ltree_io.c */ #include "postgres.h" #include <ctype.h> #include "ltree.h" #include "crc32.h" PG_FUNCTION_INFO_V1(ltree_in); Datum ltree_in(PG_FUNCTION_ARGS); PG_FUNCTION_INFO_V1(ltree_out); Datum ltree_out(PG_FUNCTION...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_2020_6
crossvul-cpp_data_bad_3521_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-189/c/bad_3521_0
crossvul-cpp_data_bad_2218_0
/* * Routines for driver control interface * Copyright (c) by 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 Free Software Foundation; either version 2 of the License,...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_2218_0
crossvul-cpp_data_good_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/good_3447_1
crossvul-cpp_data_bad_5640_0
/* * Performance events core code: * * Copyright (C) 2008 Thomas Gleixner <tglx@linutronix.de> * Copyright (C) 2008-2011 Red Hat, Inc., Ingo Molnar * Copyright (C) 2008-2011 Red Hat, Inc., Peter Zijlstra <pzijlstr@redhat.com> * Copyright © 2009 Paul Mackerras, IBM Corp. <paulus@au1.ibm.com> * * For licens...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_5640_0
crossvul-cpp_data_bad_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/bad_2154_0
crossvul-cpp_data_good_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/good_3475_0
crossvul-cpp_data_bad_3653_0
/* * Copyright © 2008,2010 Intel Corporation * * 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 rights to use, copy, modify, merge...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_3653_0
crossvul-cpp_data_good_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/good_1831_0
crossvul-cpp_data_good_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/good_1697_0
crossvul-cpp_data_bad_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/bad_3527_1
crossvul-cpp_data_bad_1613_0
/* ----------------------------------------------------------------------------- * Copyright (c) 2011 Ozmo Inc * Released under the GNU General Public License Version 2 (GPLv2). * * This file provides the implementation of a USB host controller device that * does not have any associated hardware. Instead the virtu...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_1613_0
crossvul-cpp_data_bad_1635_1
/* This file is part of libmspack. * (C) 2003-2013 Stuart Caie. * * The LZX method was created by Jonathan Forbes and Tomi Poutanen, adapted * by Microsoft Corporation. * * libmspack is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License (LGPL) versi...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_1635_1
crossvul-cpp_data_bad_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/bad_3665_1
crossvul-cpp_data_bad_5818_0
/* * PNG image format * Copyright (c) 2008 Loren Merrit <lorenm@u.washington.edu> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2....
./CrossVul/dataset_final_sorted/CWE-189/c/bad_5818_0
crossvul-cpp_data_good_1635_1
/* This file is part of libmspack. * (C) 2003-2013 Stuart Caie. * * The LZX method was created by Jonathan Forbes and Tomi Poutanen, adapted * by Microsoft Corporation. * * libmspack is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License (LGPL) versi...
./CrossVul/dataset_final_sorted/CWE-189/c/good_1635_1
crossvul-cpp_data_bad_5764_0
/* * IPV6 GSO/GRO offload support * Linux INET6 implementation * * 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 ...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_5764_0
crossvul-cpp_data_bad_3498_1
/* * Support for o32 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_1
crossvul-cpp_data_good_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/good_3498_9
crossvul-cpp_data_good_3654_0
/* * Copyright © 2008,2010 Intel Corporation * * 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 rights to use, copy, modify, merge...
./CrossVul/dataset_final_sorted/CWE-189/c/good_3654_0
crossvul-cpp_data_bad_3541_1
/* * Performance event support - powerpc architecture code * * Copyright 2008-2009 Paul Mackerras, IBM Corporation. * * 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 o...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_3541_1
crossvul-cpp_data_bad_2020_7
/* * txtquery io * Teodor Sigaev <teodor@stack.net> * contrib/ltree/ltxtquery_io.c */ #include "postgres.h" #include <ctype.h> #include "crc32.h" #include "ltree.h" PG_FUNCTION_INFO_V1(ltxtq_in); Datum ltxtq_in(PG_FUNCTION_ARGS); PG_FUNCTION_INFO_V1(ltxtq_out); Datum ltxtq_out(PG_FUNCTION_ARGS); /* parser's...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_2020_7
crossvul-cpp_data_good_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/good_3498_7
crossvul-cpp_data_bad_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/bad_728_0
crossvul-cpp_data_good_2020_4
/* * contrib/intarray/_int_bool.c */ #include "postgres.h" #include "miscadmin.h" #include "utils/builtins.h" #include "_int.h" PG_FUNCTION_INFO_V1(bqarr_in); PG_FUNCTION_INFO_V1(bqarr_out); Datum bqarr_in(PG_FUNCTION_ARGS); Datum bqarr_out(PG_FUNCTION_ARGS); PG_FUNCTION_INFO_V1(boolop); Datum boolop(PG_FUNCTI...
./CrossVul/dataset_final_sorted/CWE-189/c/good_2020_4
crossvul-cpp_data_bad_5755_2
/* * BRIEF MODULE DESCRIPTION * Au1200 LCD Driver. * * Copyright 2004-2005 AMD * Author: AMD * * Based on: * linux/drivers/video/skeletonfb.c -- Skeleton for a frame buffer device * Created 28 Dec 1997 by Geert Uytterhoeven * * This program is free software; you can redistribute it and/or modify it * un...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_5755_2
crossvul-cpp_data_good_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/memu...
./CrossVul/dataset_final_sorted/CWE-189/c/good_2020_1
crossvul-cpp_data_good_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/good_5793_0
crossvul-cpp_data_good_3521_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-189/c/good_3521_0
crossvul-cpp_data_bad_3663_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_3663_0
crossvul-cpp_data_good_3689_0
/**************************************************************************** * Driver for Solarflare Solarstorm network controllers and boards * Copyright 2005-2006 Fen Systems Ltd. * Copyright 2005-2011 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_0
crossvul-cpp_data_good_2020_2
/* * contrib/hstore/hstore_op.c */ #include "postgres.h" #include "access/hash.h" #include "access/htup_details.h" #include "catalog/pg_type.h" #include "funcapi.h" #include "utils/builtins.h" #include "utils/memutils.h" #include "hstore.h" /* old names for C functions */ HSTORE_POLLUTE(hstore_fetchval, fetchval);...
./CrossVul/dataset_final_sorted/CWE-189/c/good_2020_2
crossvul-cpp_data_bad_5797_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_5797_0
crossvul-cpp_data_good_2417_0
/* ** Copyright (C) 2002-2014 Erik de Castro Lopo <erikd@mega-nerd.com> ** Copyright (C) 2003 Ross Bencina <rbencina@iprimus.com.au> ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU Lesser General Public License as published by ** the Free Software Foundation; ...
./CrossVul/dataset_final_sorted/CWE-189/c/good_2417_0
crossvul-cpp_data_bad_2219_0
/* * Routines for driver control interface * Copyright (c) by 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 Free Software Foundation; either version 2 of the License,...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_2219_0
crossvul-cpp_data_good_5755_1
/* * BRIEF MODULE DESCRIPTION * Au1100 LCD Driver. * * Rewritten for 2.6 by Embedded Alley Solutions * <source@embeddedalley.com>, based on submissions by * Karl Lessard <klessard@sunrisetelecom.com> * <c.pellegrin@exadron.com> * * PM support added by Rodolfo Giometti <giometti@linux.it> * Cursor enable/...
./CrossVul/dataset_final_sorted/CWE-189/c/good_5755_1
crossvul-cpp_data_bad_2020_4
/* * contrib/intarray/_int_bool.c */ #include "postgres.h" #include "miscadmin.h" #include "utils/builtins.h" #include "_int.h" PG_FUNCTION_INFO_V1(bqarr_in); PG_FUNCTION_INFO_V1(bqarr_out); Datum bqarr_in(PG_FUNCTION_ARGS); Datum bqarr_out(PG_FUNCTION_ARGS); PG_FUNCTION_INFO_V1(boolop); Datum boolop(PG_FUNCTI...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_2020_4
crossvul-cpp_data_good_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/good_3570_0
crossvul-cpp_data_good_4822_0
/* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2016 The PHP Group | +---------...
./CrossVul/dataset_final_sorted/CWE-189/c/good_4822_0
crossvul-cpp_data_good_2046_0
/** * FreeRDP: A Remote Desktop Protocol Implementation * RDP Licensing * * Copyright 2011-2013 Marc-Andre Moreau <marcandre.moreau@gmail.com> * * 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 Lic...
./CrossVul/dataset_final_sorted/CWE-189/c/good_2046_0
crossvul-cpp_data_good_5764_0
/* * IPV6 GSO/GRO offload support * Linux INET6 implementation * * 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 ...
./CrossVul/dataset_final_sorted/CWE-189/c/good_5764_0
crossvul-cpp_data_good_5798_0
#include <linux/dcache.h> #include <linux/debugfs.h> #include <linux/delay.h> #include <linux/hardirq.h> #include <linux/mm.h> #include <linux/string.h> #include <linux/slab.h> #include <linux/export.h> #include "decl.h" #include "cmd.h" #include "debugfs.h" static struct dentry *lbs_dir; static char *szStates[] = { ...
./CrossVul/dataset_final_sorted/CWE-189/c/good_5798_0
crossvul-cpp_data_bad_1624_0
/* * inode.c * * PURPOSE * Inode handling routines for the OSTA-UDF(tm) filesystem. * * COPYRIGHT * This file is distributed under the terms of the GNU General Public * License (GPL). Copies of the GPL can be obtained from: * ftp://prep.ai.mit.edu/pub/gnu/GPL * Each contributing author retains all righ...
./CrossVul/dataset_final_sorted/CWE-189/c/bad_1624_0
crossvul-cpp_data_good_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/good_3631_0
crossvul-cpp_data_good_5797_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/good_5797_0
crossvul-cpp_data_bad_3527_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_3527_0
crossvul-cpp_data_bad_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/bad_2158_0
crossvul-cpp_data_good_5814_0
/* * DSP utils * Copyright (c) 2000, 2001 Fabrice Bellard * Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at> * * gmc & q-pel & 32/64 bit based MC by Michael Niedermayer <michaelni@gmx.at> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it und...
./CrossVul/dataset_final_sorted/CWE-189/c/good_5814_0
crossvul-cpp_data_bad_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/bad_3666_0