id
stringlengths
25
30
content
stringlengths
14
942k
max_stars_repo_path
stringlengths
49
55
crossvul-cpp_data_good_3547_4
/* * 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. * * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.u...
./CrossVul/dataset_final_sorted/CWE-20/c/good_3547_4
crossvul-cpp_data_bad_5845_0
/* * algif_hash: User-space interface for hash algorithms * * This file provides the user-space API for hash algorithms. * * Copyright (c) 2010 Herbert Xu <herbert@gondor.apana.org.au> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_5845_0
crossvul-cpp_data_good_4716_2
/* * verify.c: * * Author: * Mono Project (http://www.mono-project.com) * * Copyright 2001-2003 Ximian, Inc (http://www.ximian.com) * Copyright 2004-2009 Novell, Inc (http://www.novell.com) */ #include <config.h> #include <mono/metadata/object-internals.h> #include <mono/metadata/verify.h> #include <mono/meta...
./CrossVul/dataset_final_sorted/CWE-20/c/good_4716_2
crossvul-cpp_data_bad_2891_2
/* Large capacity key type * * Copyright (C) 2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. * Copyright (C) 2013 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) * * This program is free software; you can redistribute it and/or * modify it under the terms of th...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_2891_2
crossvul-cpp_data_good_3480_0
// TODO some minor issues /* * 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 - 2007 Tensilica Inc. * * Joe Taylor <joe@tensilica.com, joetylr@yahoo.com> * Chris Zanke...
./CrossVul/dataset_final_sorted/CWE-20/c/good_3480_0
crossvul-cpp_data_bad_5113_0
/* netscreen.c * * Juniper NetScreen snoop output parser * Created by re-using a lot of code from cosine.c * Copyright (c) 2007 by Sake Blok <sake@euronet.nl> * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu> * * This program is free software; you can redistribute it and/or * ...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_5113_0
crossvul-cpp_data_good_2117_1
/* * Copyright (c) 2005 Voltaire Inc. All rights reserved. * Copyright (c) 2002-2005, Network Appliance, Inc. All rights reserved. * Copyright (c) 1999-2005, Mellanox Technologies, Inc. All rights reserved. * Copyright (c) 2005-2006 Intel Corporation. All rights reserved. * * This software is available to you u...
./CrossVul/dataset_final_sorted/CWE-20/c/good_2117_1
crossvul-cpp_data_bad_5844_5
/* * UDP over IPv6 * Linux INET6 implementation * * Authors: * Pedro Roque <roque@di.fc.ul.pt> * * Based on linux/ipv4/udp.c * * Fixes: * Hideaki YOSHIFUJI : sin6_scope_id support * YOSHIFUJI Hideaki @USAGI and: Support IPV6_V6ONLY socket option, which * Alexey Kuznetsov allow both IPv4 and IPv6 sockets t...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_5844_5
crossvul-cpp_data_good_1657_1
/* A Bison parser, made by GNU Bison 2.4.1. */ /* Skeleton implementation for Bison's Yacc-like parsers in C Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the...
./CrossVul/dataset_final_sorted/CWE-20/c/good_1657_1
crossvul-cpp_data_bad_2162_3
/* * Kernel-based Virtual Machine driver for Linux * * This module enables machines with Intel VT-x extensions to run virtual * machines without emulation or binary translation. * * Copyright (C) 2006 Qumranet, Inc. * Copyright 2010 Red Hat, Inc. and/or its affiliates. * * Authors: * Avi Kivity <avi@qumra...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_2162_3
crossvul-cpp_data_bad_3088_0
/* bubblewrap * Copyright (C) 2016 Alexander Larsson * * 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; either * version 2 of the License, or (at your option) any later version. * ...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_3088_0
crossvul-cpp_data_bad_3979_0
/* $OpenBSD: scp.c,v 1.208 2020/04/30 17:07:10 markus Exp $ */ /* * scp - secure remote copy. This is basically patched BSD rcp which * uses ssh to do the data transfer (instead of using rcmd). * * NOTE: This version should NOT be suid root. (This uses ssh to * do the transfer and ssh has the necessary privilege...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_3979_0
crossvul-cpp_data_bad_3722_0
/* * jabberd - Jabber Open Source Server * Copyright (c) 2002 Jeremie Miller, Thomas Muldowney, * Ryan Eatmon, Robert Norris * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Found...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_3722_0
crossvul-cpp_data_bad_3379_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-20/c/bad_3379_0
crossvul-cpp_data_good_1399_0
/* BGP attributes management routines. * Copyright (C) 1996, 97, 98, 1999 Kunihiro Ishiguro * * This file is part of GNU Zebra. * * GNU Zebra 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 versi...
./CrossVul/dataset_final_sorted/CWE-20/c/good_1399_0
crossvul-cpp_data_good_5604_0
/* * linux/fs/ext3/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-20/c/good_5604_0
crossvul-cpp_data_bad_5845_17
/* * IUCV protocol stack for Linux on zSeries * * Copyright IBM Corp. 2006, 2009 * * Author(s): Jennifer Hunt <jenhunt@us.ibm.com> * Hendrik Brueckner <brueckner@linux.vnet.ibm.com> * PM functions: * Ursula Braun <ursula.braun@de.ibm.com> */ #define KMSG_COMPONENT "af_iucv" #define pr_fmt(fmt) KMSG_COMP...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_5845_17
crossvul-cpp_data_good_5418_3
/* * 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-20/c/good_5418_3
crossvul-cpp_data_good_1776_0
/* * IPv6 Address [auto]configuration * Linux INET6 implementation * * Authors: * Pedro Roque <roque@di.fc.ul.pt> * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published ...
./CrossVul/dataset_final_sorted/CWE-20/c/good_1776_0
crossvul-cpp_data_bad_3195_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_3195_0
crossvul-cpp_data_bad_5844_3
/* * 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. * * The User Datagram Protocol (UDP). * * Authors: Ross Biro * Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_5844_3
crossvul-cpp_data_bad_1564_2
/* Copyright (C) 2009 RedHat 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 License, or (at your option) any later version. This program is dist...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_1564_2
crossvul-cpp_data_good_5576_0
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* kdc/do_tgs_req.c - KDC Routines to deal with TGS_REQ's */ /* * Copyright 1990,1991,2001,2007,2008,2009 by the Massachusetts Institute of Technology. * All Rights Reserved. * * Export of this software from the United States of America may * requir...
./CrossVul/dataset_final_sorted/CWE-20/c/good_5576_0
crossvul-cpp_data_bad_2253_2
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Monkey HTTP Server * ================== * Copyright 2001-2014 Monkey Software LLC <eduardo@monkey.io> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_2253_2
crossvul-cpp_data_bad_3547_3
/* * 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. * * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.u...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_3547_3
crossvul-cpp_data_good_2891_2
/* Large capacity key type * * Copyright (C) 2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. * Copyright (C) 2013 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) * * This program is free software; you can redistribute it and/or * modify it under the terms of th...
./CrossVul/dataset_final_sorted/CWE-20/c/good_2891_2
crossvul-cpp_data_bad_5845_15
/* * 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-20/c/bad_5845_15
crossvul-cpp_data_bad_2115_0
/* * Derived from "arch/i386/kernel/process.c" * Copyright (C) 1995 Linus Torvalds * * Updated and modified by Cort Dougan (cort@cs.nmt.edu) and * Paul Mackerras (paulus@cs.anu.edu.au) * * PowerPC version * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * This program is free software; y...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_2115_0
crossvul-cpp_data_good_2738_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-20/c/good_2738_0
crossvul-cpp_data_bad_5418_4
/* * Copyright (c) 2002-2003 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-20/c/bad_5418_4
crossvul-cpp_data_good_405_0
/* * Copyright (C) 2012,2013 - ARM Ltd * Author: Marc Zyngier <marc.zyngier@arm.com> * * Derived from arch/arm/kvm/guest.c: * Copyright (C) 2012 - Virtual Open Systems and Columbia University * Author: Christoffer Dall <c.dall@virtualopensystems.com> * * This program is free software; you can redistribute it an...
./CrossVul/dataset_final_sorted/CWE-20/c/good_405_0
crossvul-cpp_data_bad_4782_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_4782_0
crossvul-cpp_data_bad_5115_0
/* * packet-pktap.c * Routines for dissecting Apple's PKTAP header * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 2007 Gerald Combs * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * a...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_5115_0
crossvul-cpp_data_bad_5845_5
/* * DDP: An implementation of the AppleTalk DDP protocol for * Ethernet 'ELAP'. * * Alan Cox <alan@lxorguk.ukuu.org.uk> * * With more than a little assistance from * * Wesley Craig <netatalk@umich.edu> * * Fixes: * Neil Horman : Added missing device ioctls * Michael Callahan : Made routing work * ...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_5845_5
crossvul-cpp_data_good_1026_0
/* * Copyright (c) 1993, 1994, 1995, 1996, 1997 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that: (1) source code distributions * retain the above copyright notice and this paragr...
./CrossVul/dataset_final_sorted/CWE-20/c/good_1026_0
crossvul-cpp_data_good_5411_0
/* $Id$ */ #include <stdio.h> #include <math.h> #include <string.h> #include <stdlib.h> #include <stdarg.h> #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "gd_intern.h" /* 2.03: don't include zlib here or we can't build without PNG */ #include "gd.h" #include "gdhelpers.h" #include "gd_color.h" #include "...
./CrossVul/dataset_final_sorted/CWE-20/c/good_5411_0
crossvul-cpp_data_bad_5845_22
/* * 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. * * Copyright Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) ...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_5845_22
crossvul-cpp_data_bad_1022_0
/* * Copyright (c) 2002 - 2003 * NetGroup, Politecnico di Torino (Italy) * 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 copy...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_1022_0
crossvul-cpp_data_good_4965_0
/* * ALSA timer back-end using hrtimer * Copyright (C) 2008 Takashi Iwai * * 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) a...
./CrossVul/dataset_final_sorted/CWE-20/c/good_4965_0
crossvul-cpp_data_bad_364_2
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_364_2
crossvul-cpp_data_bad_2162_2
/* * Kernel-based Virtual Machine driver for Linux * * This module enables machines with Intel VT-x extensions to run virtual * machines without emulation or binary translation. * * MMU support * * Copyright (C) 2006 Qumranet, Inc. * Copyright 2010 Red Hat, Inc. and/or its affiliates. * * Authors: * Yaniv...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_2162_2
crossvul-cpp_data_good_1718_0
/* $OpenBSD: monitor.c,v 1.150 2015/06/22 23:42:16 djm Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * Copyright 2002 Markus Friedl <markus@openbsd.org> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the...
./CrossVul/dataset_final_sorted/CWE-20/c/good_1718_0
crossvul-cpp_data_good_1564_2
/* Copyright (C) 2009 RedHat 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 License, or (at your option) any later version. This program is dist...
./CrossVul/dataset_final_sorted/CWE-20/c/good_1564_2
crossvul-cpp_data_good_5420_0
/* $Id: file.c,v 1.266 2012/05/22 09:45:56 inu Exp $ */ #include "fm.h" #include <sys/types.h> #include "myctype.h" #include <signal.h> #include <setjmp.h> #if defined(HAVE_WAITPID) || defined(HAVE_WAIT3) #include <sys/wait.h> #endif #include <stdio.h> #include <time.h> #include <sys/stat.h> #include <fcntl.h> #include...
./CrossVul/dataset_final_sorted/CWE-20/c/good_5420_0
crossvul-cpp_data_bad_4790_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % M M AAA TTTTT L AAA BBBB ...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_4790_0
crossvul-cpp_data_good_3515_0
/* * AppArmor security module * * This file contains AppArmor LSM hooks. * * Copyright (C) 1998-2008 Novell/SUSE * Copyright 2009-2010 Canonical Ltd. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Softw...
./CrossVul/dataset_final_sorted/CWE-20/c/good_3515_0
crossvul-cpp_data_bad_5845_13
/* * 32bit Socket syscall emulation. Based on arch/sparc64/kernel/sys_sparc32.c. * * Copyright (C) 2000 VA Linux Co * Copyright (C) 2000 Don Dugger <n0ano@valinux.com> * Copyright (C) 1999 Arun Sharma <arun.sharma@intel.com> * Copyright (C) 1997,1998 Jakub Jelinek (jj@sunsite.mff.cuni.cz) * Copyright (C) 19...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_5845_13
crossvul-cpp_data_good_5184_0
#include <stdio.h> #include <stdlib.h> #include "gd.h" #include "gdtest.h" int main() { gdImagePtr im, exp; int error = 0; im = gdImageCreate(50, 50); if (!im) { gdTestErrorMsg("gdImageCreate failed.\n"); return 1; } gdImageCropThreshold(im, 1337, 0); gdImageDestroy(im); /* this bug tests a crash, it n...
./CrossVul/dataset_final_sorted/CWE-20/c/good_5184_0
crossvul-cpp_data_bad_2891_13
/* user_defined.c: user defined key type * * Copyright (C) 2004 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.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 F...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_2891_13
crossvul-cpp_data_bad_2253_1
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Monkey HTTP Server * ================== * Copyright 2001-2014 Monkey Software LLC <eduardo@monkey.io> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_2253_1
crossvul-cpp_data_good_1420_1
/* $OpenBSD: tcp_input.c,v 1.360 2019/07/10 18:45:31 bluhm Exp $ */ /* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */ /* * Copyright (c) 1982, 1986, 1988, 1990, 1993, 1994 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, ...
./CrossVul/dataset_final_sorted/CWE-20/c/good_1420_1
crossvul-cpp_data_good_2753_0
#include <linux/kernel.h> #include <linux/skbuff.h> #include <linux/export.h> #include <linux/ip.h> #include <linux/ipv6.h> #include <linux/if_vlan.h> #include <net/ip.h> #include <net/ipv6.h> #include <linux/igmp.h> #include <linux/icmp.h> #include <linux/sctp.h> #include <linux/dccp.h> #include <linux/if_tunnel.h> #i...
./CrossVul/dataset_final_sorted/CWE-20/c/good_2753_0
crossvul-cpp_data_bad_4900_2
/* vi:set ts=8 sts=4 sw=4 noet: * * VIM - Vi IMproved by Bram Moolenaar * * Do ":help uganda" in Vim to read copying and usage conditions. * Do ":help credits" in Vim to see a list of people who contributed. * See README.txt for an overview of the Vim source code. */ #include "vim.h" #ifdef AMIGA # include <...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_4900_2
crossvul-cpp_data_bad_1718_1
/* $OpenBSD: monitor_wrap.c,v 1.85 2015/05/01 03:23:51 djm Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * Copyright 2002 Markus Friedl <markus@openbsd.org> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_1718_1
crossvul-cpp_data_bad_1762_1
/* Request a key from userspace * * Copyright (C) 2004-2007 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.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 Found...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_1762_1
crossvul-cpp_data_good_3070_5
/* * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/lice...
./CrossVul/dataset_final_sorted/CWE-20/c/good_3070_5
crossvul-cpp_data_good_191_0
/* * MPEG-4 decoder * Copyright (c) 2000,2001 Fabrice Bellard * Copyright (c) 2002-2010 Michael Niedermayer <michaelni@gmx.at> * * 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 ...
./CrossVul/dataset_final_sorted/CWE-20/c/good_191_0
crossvul-cpp_data_good_5213_0
/* $OpenBSD: auth-passwd.c,v 1.45 2016/07/21 01:39:35 dtucker Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland * All rights reserved * Password authentication. This file contains the functions to check whether * the password is v...
./CrossVul/dataset_final_sorted/CWE-20/c/good_5213_0
crossvul-cpp_data_bad_539_0
/* * The copyright in this software is being made available under the 2-clauses * BSD License, included below. This software may be subject to other third * party and contributor rights, including patent rights, and no such rights * are granted under this license. * * Copyright (c) 2002-2014, Universite catholiqu...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_539_0
crossvul-cpp_data_good_1276_2
/* ** 2001 September 15 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** *******************...
./CrossVul/dataset_final_sorted/CWE-20/c/good_1276_2
crossvul-cpp_data_good_5562_0
/* * SUCS NET3: * * Generic datagram handling routines. These are generic for all * protocols. Possibly a generic IP version on top of these would * make sense. Not tonight however 8-). * This is used because UDP, RAW, PACKET, DDP, IPX, AX.25 and * NetROM layer all have identical poll code and mostly * identica...
./CrossVul/dataset_final_sorted/CWE-20/c/good_5562_0
crossvul-cpp_data_bad_2884_0
/* BNEP implementation for Linux Bluetooth stack (BlueZ). Copyright (C) 2001-2002 Inventel Systemes Written 2001-2002 by Clément Moreau <clement.moreau@inventel.fr> David Libault <david.libault@inventel.fr> Copyright (C) 2002 Maxim Krasnyansky <maxk@qualcomm.com> This program is free software; you c...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_2884_0
crossvul-cpp_data_bad_5107_0
/* packet-umts_fp.c * Routines for UMTS FP disassembly * * Martin Mathieson * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public Li...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_5107_0
crossvul-cpp_data_bad_5845_6
/* net/atm/common.c - ATM sockets (common part for PVC and SVC) */ /* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */ #define pr_fmt(fmt) KBUILD_MODNAME ":%s: " fmt, __func__ #include <linux/module.h> #include <linux/kmod.h> #include <linux/net.h> /* struct socket, struct proto_ops */ #include <linux/atm.h...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_5845_6
crossvul-cpp_data_good_3547_2
/* * 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. * * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.u...
./CrossVul/dataset_final_sorted/CWE-20/c/good_3547_2
crossvul-cpp_data_bad_2391_0
/* * linux/fs/isofs/rock.c * * (C) 1992, 1993 Eric Youngdale * * Rock Ridge Extensions to iso9660 */ #include <linux/slab.h> #include <linux/pagemap.h> #include "isofs.h" #include "rock.h" /* * These functions are designed to read the system areas of a directory record * and extract relevant information....
./CrossVul/dataset_final_sorted/CWE-20/c/bad_2391_0
crossvul-cpp_data_good_1563_1
/* Copyright (C) ABRT Team Copyright (C) RedHat 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 License, or (at your option) any later version. ...
./CrossVul/dataset_final_sorted/CWE-20/c/good_1563_1
crossvul-cpp_data_good_5849_0
/* * IKEv2 parent SA creation routines * Copyright (C) 2007-2008 Michael Richardson <mcr@xelerance.com> * Copyright (C) 2008-2011 Paul Wouters <paul@xelerance.com> * Copyright (C) 2008 Antony Antony <antony@xelerance.com> * Copyright (C) 2008-2009 David McCullough <david_mccullough@securecomputing.com> * Copyrigh...
./CrossVul/dataset_final_sorted/CWE-20/c/good_5849_0
crossvul-cpp_data_bad_5544_2
/* * Back-end of the driver for virtual network devices. This portion of the * driver exports a 'unified' network-device interface that can be accessed * by any operating system that implements a compatible front end. A * reference front-end implementation can be found in: * drivers/net/xen-netfront.c * * Copyr...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_5544_2
crossvul-cpp_data_good_2589_0
/* * RTMP input format * Copyright (c) 2009 Konstantin Shishkov * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, ...
./CrossVul/dataset_final_sorted/CWE-20/c/good_2589_0
crossvul-cpp_data_good_3038_0
/* * Linux IPv6 multicast routing support for BSD pim6sd * Based on net/ipv4/ipmr.c. * * (c) 2004 Mickael Hoerdt, <hoerdt@clarinet.u-strasbg.fr> * LSIIT Laboratory, Strasbourg, France * (c) 2004 Jean-Philippe Andriot, <jean-philippe.andriot@6WIND.com> * 6WIND, Paris, France * Copyright (C)2007,2008 USAGI/WIDE...
./CrossVul/dataset_final_sorted/CWE-20/c/good_3038_0
crossvul-cpp_data_good_721_2
/* Copyright (C) 2007-2014 Open Information Security Foundation * * You can copy, redistribute or modify this Program under the terms of * the GNU General Public License version 2 as published by the Free * Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY...
./CrossVul/dataset_final_sorted/CWE-20/c/good_721_2
crossvul-cpp_data_good_3160_1
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
./CrossVul/dataset_final_sorted/CWE-20/c/good_3160_1
crossvul-cpp_data_bad_5844_6
/* * L2TPv3 IP encapsulation support * * Copyright (c) 2008,2009,2010 Katalix Systems Ltd * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_5844_6
crossvul-cpp_data_good_906_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % CCC U U TTTTT ...
./CrossVul/dataset_final_sorted/CWE-20/c/good_906_0
crossvul-cpp_data_good_1027_0
/* * Copyright (c) 1993, 1994, 1995, 1996, 1997 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that: (1) source code distributions * retain the above copyright notice and this paragr...
./CrossVul/dataset_final_sorted/CWE-20/c/good_1027_0
crossvul-cpp_data_bad_5213_0
/* $OpenBSD: auth-passwd.c,v 1.44 2014/07/15 15:54:14 millert Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland * All rights reserved * Password authentication. This file contains the functions to check whether * the password is v...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_5213_0
crossvul-cpp_data_good_3442_0
/* BNEP implementation for Linux Bluetooth stack (BlueZ). Copyright (C) 2001-2002 Inventel Systemes Written 2001-2002 by David Libault <david.libault@inventel.fr> Copyright (C) 2002 Maxim Krasnyansky <maxk@qualcomm.com> This program is free software; you can redistribute it and/or modify it under ...
./CrossVul/dataset_final_sorted/CWE-20/c/good_3442_0
crossvul-cpp_data_bad_5770_2
/* * SSLv3/TLSv1 shared functions * * Copyright (C) 2006-2012, Brainspark B.V. * * This file is part of PolarSSL (http://www.polarssl.org) * Lead Maintainer: Paul Bakker <polarssl_maintainer at polarssl.org> * * All rights reserved. * * This program is free software; you can redistribute it and/or modif...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_5770_2
crossvul-cpp_data_good_2576_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-20/c/good_2576_0
crossvul-cpp_data_bad_332_0
// SPDX-License-Identifier: GPL-2.0 /* * Driver for Meywa-Denki & KAYAC YUREX * * Copyright (C) 2010 Tomoki Sekiyama (tomoki.sekiyama@gmail.com) */ #include <linux/kernel.h> #include <linux/errno.h> #include <linux/slab.h> #include <linux/module.h> #include <linux/kref.h> #include <linux/mutex.h> #include <linux/u...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_332_0
crossvul-cpp_data_good_2891_4
/* Key garbage collector * * Copyright (C) 2009-2011 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public Licence * as published by the Free Software Foundation; ...
./CrossVul/dataset_final_sorted/CWE-20/c/good_2891_4
crossvul-cpp_data_good_4900_2
/* vi:set ts=8 sts=4 sw=4 noet: * * VIM - Vi IMproved by Bram Moolenaar * * Do ":help uganda" in Vim to read copying and usage conditions. * Do ":help credits" in Vim to see a list of people who contributed. * See README.txt for an overview of the Vim source code. */ #include "vim.h" #ifdef AMIGA # include <...
./CrossVul/dataset_final_sorted/CWE-20/c/good_4900_2
crossvul-cpp_data_bad_2891_3
/* * Copyright (C) 2010 IBM Corporation * Copyright (C) 2010 Politecnico di Torino, Italy * TORSEC group -- http://security.polito.it * * Authors: * Mimi Zohar <zohar@us.ibm.com> * Roberto Sassu <roberto.sassu@polito.it> * * This program is free software; you can redistribute it and/or modif...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_2891_3
crossvul-cpp_data_bad_366_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_366_0
crossvul-cpp_data_good_2024_0
/* Copyright (C) 2009 Red Hat, Inc. * Author: Michael S. Tsirkin <mst@redhat.com> * * This work is licensed under the terms of the GNU GPL, version 2. * * virtio-net server in host kernel. */ #include <linux/compat.h> #include <linux/eventfd.h> #include <linux/vhost.h> #include <linux/virtio_net.h> #include <lin...
./CrossVul/dataset_final_sorted/CWE-20/c/good_2024_0
crossvul-cpp_data_bad_2789_0
/* mboxlist.c -- Mailbox list manipulation routines * * Copyright (c) 1994-2008 Carnegie Mellon University. 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 sourc...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_2789_0
crossvul-cpp_data_good_3580_0
/* * Functions related to io context handling */ #include <linux/kernel.h> #include <linux/module.h> #include <linux/init.h> #include <linux/bio.h> #include <linux/blkdev.h> #include <linux/bootmem.h> /* for max_pfn/max_low_pfn */ #include "blk.h" /* * For io context allocations */ static struct kmem_cache *iocon...
./CrossVul/dataset_final_sorted/CWE-20/c/good_3580_0
crossvul-cpp_data_bad_1583_0
/* * 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-20/c/bad_1583_0
crossvul-cpp_data_good_722_0
/* Copyright (C) 2007-2014 Open Information Security Foundation * * You can copy, redistribute or modify this Program under the terms of * the GNU General Public License version 2 as published by the Free * Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY...
./CrossVul/dataset_final_sorted/CWE-20/c/good_722_0
crossvul-cpp_data_good_2115_0
/* * Derived from "arch/i386/kernel/process.c" * Copyright (C) 1995 Linus Torvalds * * Updated and modified by Cort Dougan (cort@cs.nmt.edu) and * Paul Mackerras (paulus@cs.anu.edu.au) * * PowerPC version * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * This program is free software; y...
./CrossVul/dataset_final_sorted/CWE-20/c/good_2115_0
crossvul-cpp_data_bad_435_0
/* * 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/export.h> #include <linux/nsproxy.h> #include <linux/slab.h> #include <linux/sched/sig...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_435_0
crossvul-cpp_data_bad_5845_26
/* * Copyright (c) 2006 Oracle. 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 source tree, or t...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_5845_26
crossvul-cpp_data_good_3088_0
/* bubblewrap * Copyright (C) 2016 Alexander Larsson * * 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; either * version 2 of the License, or (at your option) any later version. * ...
./CrossVul/dataset_final_sorted/CWE-20/c/good_3088_0
crossvul-cpp_data_bad_5418_3
/* * 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-20/c/bad_5418_3
crossvul-cpp_data_bad_2433_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_2433_0
crossvul-cpp_data_good_2221_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 Intel Corp. * Copyright (c) 2001 La Monte H.P. Yarroll * * This file is part of the SCTP kernel implementation * * This module provides the abst...
./CrossVul/dataset_final_sorted/CWE-20/c/good_2221_0
crossvul-cpp_data_bad_5183_0
/* Crop support * manual crop using a gdRect or automatic crop using a background * color (automatic detections or using either the transparent color, * black or white). * An alternative method allows to crop using a given color and a * threshold. It works relatively well but it can be improved. * Maybe L*a*b* an...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_5183_0
crossvul-cpp_data_good_5595_0
/* * Copyright (C) 2001 MandrakeSoft S.A. * Copyright 2010 Red Hat, Inc. and/or its affiliates. * * MandrakeSoft S.A. * 43, rue d'Aboukir * 75002 Paris - France * http://www.linux-mandrake.com/ * http://www.mandrakesoft.com/ * * This library is free software; you can redistribute it and/or ...
./CrossVul/dataset_final_sorted/CWE-20/c/good_5595_0
crossvul-cpp_data_bad_722_0
/* Copyright (C) 2007-2014 Open Information Security Foundation * * You can copy, redistribute or modify this Program under the terms of * the GNU General Public License version 2 as published by the Free * Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY...
./CrossVul/dataset_final_sorted/CWE-20/c/bad_722_0