id
stringlengths
25
30
content
stringlengths
14
942k
max_stars_repo_path
stringlengths
49
55
crossvul-cpp_data_bad_186_4
/* * ECDSA implemenation * (C) 2007 Manuel Hartl, FlexSecure GmbH * 2007 Falko Strenzke, FlexSecure GmbH * 2008-2010,2015,2016,2018 Jack Lloyd * 2016 René Korthaus * * Botan is released under the Simplified BSD License (see license.txt) */ #include <botan/ecdsa.h> #include <botan/internal/pk_ops_impl.h> #i...
./CrossVul/dataset_final_sorted/CWE-200/cpp/bad_186_4
crossvul-cpp_data_bad_1810_1
/**************************************************************************** ** libebml : parse EBML files, see http://embl.sourceforge.net/ ** ** <file/class description> ** ** Copyright (C) 2002-2010 Steve Lhomme. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it ...
./CrossVul/dataset_final_sorted/CWE-200/cpp/bad_1810_1
crossvul-cpp_data_good_1650_2
/* Copyright (C) 2003 - 2015 by David White <dave@whitevine.net> Part of the Battle for Wesnoth Project http://www.wesnoth.org/ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either v...
./CrossVul/dataset_final_sorted/CWE-200/cpp/good_1650_2
crossvul-cpp_data_bad_1809_1
/**************************************************************************** ** libebml : parse EBML files, see http://embl.sourceforge.net/ ** ** <file/class description> ** ** Copyright (C) 2002-2010 Steve Lhomme. All rights reserved. ** ** This file is part of libebml. ** ** This library is free software; you can ...
./CrossVul/dataset_final_sorted/CWE-200/cpp/bad_1809_1
crossvul-cpp_data_good_1649_2
/* $Id$ */ /* Copyright (C) 2003 - 2012 by David White <dave@whitevine.net> Part of the Battle for Wesnoth Project http://www.wesnoth.org/ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundatio...
./CrossVul/dataset_final_sorted/CWE-200/cpp/good_1649_2
crossvul-cpp_data_good_1387_0
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) | +---------...
./CrossVul/dataset_final_sorted/CWE-200/cpp/good_1387_0
crossvul-cpp_data_good_1649_1
/* Copyright (C) 2003 - 2015 by David White <dave@whitevine.net> Part of the Battle for Wesnoth Project http://www.wesnoth.org/ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either v...
./CrossVul/dataset_final_sorted/CWE-200/cpp/good_1649_1
crossvul-cpp_data_good_186_4
/* * ECDSA implemenation * (C) 2007 Manuel Hartl, FlexSecure GmbH * 2007 Falko Strenzke, FlexSecure GmbH * 2008-2010,2015,2016,2018 Jack Lloyd * 2016 René Korthaus * * Botan is released under the Simplified BSD License (see license.txt) */ #include <botan/ecdsa.h> #include <botan/internal/pk_ops_impl.h> #i...
./CrossVul/dataset_final_sorted/CWE-200/cpp/good_186_4
crossvul-cpp_data_bad_1649_1
/* Copyright (C) 2003 - 2015 by David White <dave@whitevine.net> Part of the Battle for Wesnoth Project http://www.wesnoth.org/ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either v...
./CrossVul/dataset_final_sorted/CWE-200/cpp/bad_1649_1
crossvul-cpp_data_good_1512_0
// rw.cpp - written and placed in the public domain by Wei Dai #include "pch.h" #include "rw.h" #include "nbtheory.h" #include "asn.h" #ifndef CRYPTOPP_IMPORTS NAMESPACE_BEGIN(CryptoPP) void RWFunction::BERDecode(BufferedTransformation &bt) { BERSequenceDecoder seq(bt); m_n.BERDecode(seq); seq.MessageEnd(); } v...
./CrossVul/dataset_final_sorted/CWE-200/cpp/good_1512_0
crossvul-cpp_data_bad_5850_0
/* * Copyright (C) 2003-2005 Tommi Maekitalo * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * As...
./CrossVul/dataset_final_sorted/CWE-200/cpp/bad_5850_0
crossvul-cpp_data_bad_2112_0
/* Copyright (C) 2006 - 2014 Jan Kundrát <jkt@flaska.net> This file is part of the Trojita Qt IMAP e-mail client, http://trojita.flaska.net/ 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 Founda...
./CrossVul/dataset_final_sorted/CWE-200/cpp/bad_2112_0
crossvul-cpp_data_good_5850_0
/* * Copyright (C) 2003-2005 Tommi Maekitalo * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * As...
./CrossVul/dataset_final_sorted/CWE-200/cpp/good_5850_0
crossvul-cpp_data_good_5212_1
/* linenoise.c -- guerrilla line editing library against the idea that a * * Copyright (c) 2010, Salvatore Sanfilippo <antirez at gmail dot com> * Copyright (c) 2010, Pieter Noordhuis <pcnoordhuis at gmail dot com> * * All rights reserved. * * Redistribution and use in source and binary forms, with or without *...
./CrossVul/dataset_final_sorted/CWE-200/cpp/good_5212_1
crossvul-cpp_data_bad_2264_0
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) | | Copyrigh...
./CrossVul/dataset_final_sorted/CWE-200/cpp/bad_2264_0
crossvul-cpp_data_good_2487_0
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
./CrossVul/dataset_final_sorted/CWE-200/cpp/good_2487_0
crossvul-cpp_data_bad_1387_0
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) | +---------...
./CrossVul/dataset_final_sorted/CWE-200/cpp/bad_1387_0
crossvul-cpp_data_bad_1512_0
// rw.cpp - written and placed in the public domain by Wei Dai #include "pch.h" #include "rw.h" #include "nbtheory.h" #include "asn.h" #ifndef CRYPTOPP_IMPORTS NAMESPACE_BEGIN(CryptoPP) void RWFunction::BERDecode(BufferedTransformation &bt) { BERSequenceDecoder seq(bt); m_n.BERDecode(seq); seq.MessageEnd(); } v...
./CrossVul/dataset_final_sorted/CWE-200/cpp/bad_1512_0
crossvul-cpp_data_bad_5212_1
/* linenoise.c -- guerrilla line editing library against the idea that a * * Copyright (c) 2010, Salvatore Sanfilippo <antirez at gmail dot com> * Copyright (c) 2010, Pieter Noordhuis <pcnoordhuis at gmail dot com> * * All rights reserved. * * Redistribution and use in source and binary forms, with or without *...
./CrossVul/dataset_final_sorted/CWE-200/cpp/bad_5212_1
crossvul-cpp_data_bad_1650_2
/* Copyright (C) 2003 - 2015 by David White <dave@whitevine.net> Part of the Battle for Wesnoth Project http://www.wesnoth.org/ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either v...
./CrossVul/dataset_final_sorted/CWE-200/cpp/bad_1650_2
crossvul-cpp_data_bad_1811_1
/**************************************************************************** ** libmatroska : parse Matroska files, see http://www.matroska.org/ ** ** <file/class description> ** ** Copyright (C) 2002-2010 Steve Lhomme. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify...
./CrossVul/dataset_final_sorted/CWE-200/cpp/bad_1811_1
crossvul-cpp_data_bad_1649_2
/* $Id$ */ /* Copyright (C) 2003 - 2012 by David White <dave@whitevine.net> Part of the Battle for Wesnoth Project http://www.wesnoth.org/ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundatio...
./CrossVul/dataset_final_sorted/CWE-200/cpp/bad_1649_2
crossvul-cpp_data_good_2264_0
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) | | Copyrigh...
./CrossVul/dataset_final_sorted/CWE-200/cpp/good_2264_0
crossvul-cpp_data_good_1811_1
/**************************************************************************** ** libmatroska : parse Matroska files, see http://www.matroska.org/ ** ** <file/class description> ** ** Copyright (C) 2002-2010 Steve Lhomme. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify...
./CrossVul/dataset_final_sorted/CWE-200/cpp/good_1811_1
crossvul-cpp_data_bad_2487_0
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
./CrossVul/dataset_final_sorted/CWE-200/cpp/bad_2487_0
crossvul-cpp_data_good_1809_1
/**************************************************************************** ** libebml : parse EBML files, see http://embl.sourceforge.net/ ** ** <file/class description> ** ** Copyright (C) 2002-2010 Steve Lhomme. All rights reserved. ** ** This file is part of libebml. ** ** This library is free software; you can ...
./CrossVul/dataset_final_sorted/CWE-200/cpp/good_1809_1
crossvul-cpp_data_good_186_2
/* * ECC Domain Parameters * * (C) 2007 Falko Strenzke, FlexSecure GmbH * (C) 2008,2018 Jack Lloyd * (C) 2018 Tobias Niemann * * Botan is released under the Simplified BSD License (see license.txt) */ #include <botan/ec_group.h> #include <botan/internal/point_mul.h> #include <botan/ber_dec.h> #include <botan/der_enc.h...
./CrossVul/dataset_final_sorted/CWE-200/cpp/good_186_2
crossvul-cpp_data_bad_186_2
/* * ECC Domain Parameters * * (C) 2007 Falko Strenzke, FlexSecure GmbH * (C) 2008,2018 Jack Lloyd * (C) 2018 Tobias Niemann * * Botan is released under the Simplified BSD License (see license.txt) */ #include <botan/ec_group.h> #include <botan/internal/point_mul.h> #include <botan/ber_dec.h> #include <botan/der_enc.h...
./CrossVul/dataset_final_sorted/CWE-200/cpp/bad_186_2
crossvul-cpp_data_good_1810_1
/**************************************************************************** ** libebml : parse EBML files, see http://embl.sourceforge.net/ ** ** <file/class description> ** ** Copyright (C) 2002-2010 Steve Lhomme. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it ...
./CrossVul/dataset_final_sorted/CWE-200/cpp/good_1810_1
crossvul-cpp_data_bad_186_1
/* * DSA * (C) 1999-2010,2014,2016 Jack Lloyd * (C) 2016 René Korthaus * * Botan is released under the Simplified BSD License (see license.txt) */ #include <botan/dsa.h> #include <botan/keypair.h> #include <botan/reducer.h> #include <botan/rng.h> #include <botan/internal/pk_ops_impl.h> #if defined(BOTAN_HAS_RFC6979_G...
./CrossVul/dataset_final_sorted/CWE-200/cpp/bad_186_1
crossvul-cpp_data_bad_3401_0
/************************************************************************** * * Copyright © 2009-2015 VMware, Inc., Palo Alto, CA., USA * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * "Software"),...
./CrossVul/dataset_final_sorted/CWE-200/c/bad_3401_0
crossvul-cpp_data_bad_2958_1
/* vi:set ts=8 sts=4 sw=4 noet: * * VIM - Vi IMproved by Bram Moolenaar * * Do ":help uganda" in Vim to read copying and usage conditions. * Do ":help credits" in Vim to see a list of people who contributed. * See README.txt for an overview of the Vim source code. */ /* * fileio.c: read from and write to a fi...
./CrossVul/dataset_final_sorted/CWE-200/c/bad_2958_1
crossvul-cpp_data_bad_1508_7
/* Copyright (C) 2012 ABRT Team Copyright (C) 2012 Red Hat, 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 lat...
./CrossVul/dataset_final_sorted/CWE-200/c/bad_1508_7
crossvul-cpp_data_good_2752_0
/******************************************************************************* * * Module Name: nseval - Object evaluation, includes control method execution * ******************************************************************************/ /************************************************************************...
./CrossVul/dataset_final_sorted/CWE-200/c/good_2752_0
crossvul-cpp_data_good_693_0
/* * Copyright (c) 2011-2014 Yubico AB * Copyright (c) 2011 Tollef Fog Heen <tfheen@err.no> * All rights reserved. * * Author : Fredrik Thulin <fredrik@yubico.com> * Author : Tollef Fog Heen <tfheen@err.no> * * Redistribution and use in source and binary forms, with or without * modification, are permitted pro...
./CrossVul/dataset_final_sorted/CWE-200/c/good_693_0
crossvul-cpp_data_good_5060_0
/* * X.25 Packet Layer release 002 * * This is ALPHA test software. This code may break your machine, * randomly fail to work with new releases, misbehave and/or generally * screw up. It might even work. * * This code REQUIRES 2.1.15 or higher * * This module: * This module is free software; you can redistri...
./CrossVul/dataset_final_sorted/CWE-200/c/good_5060_0
crossvul-cpp_data_bad_1508_6
/* Copyright (C) 2011 ABRT team Copyright (C) 2011 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 ...
./CrossVul/dataset_final_sorted/CWE-200/c/bad_1508_6
crossvul-cpp_data_good_867_0
/* * Copyright (C) 2014-2019 Yubico AB - See COPYING */ /* Define which PAM interfaces we provide */ #define PAM_SM_AUTH /* Include PAM headers */ #include <security/pam_appl.h> #include <security/pam_modules.h> #include <fcntl.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <stdlib.h...
./CrossVul/dataset_final_sorted/CWE-200/c/good_867_0
crossvul-cpp_data_bad_1405_1
/* tracked memory * * 2/11/99 JC * - from im_open.c and callback.c * - malloc tracking stuff added * 11/3/01 JC * - im_strncpy() added * 20/4/01 JC * - im_(v)snprintf() added * 6/7/05 * - more tracking for DEBUGM * 20/10/06 * - return NULL for size <= 0 * 11/5/06 * - abort() on malloc() failure with D...
./CrossVul/dataset_final_sorted/CWE-200/c/bad_1405_1
crossvul-cpp_data_good_5048_0
/*****************************************************************************/ /* * devio.c -- User space communication with USB devices. * * Copyright (C) 1999-2000 Thomas Sailer (sailer@ife.ee.ethz.ch) * * This program is free software; you can redistribute it and/or modify * it under t...
./CrossVul/dataset_final_sorted/CWE-200/c/good_5048_0
crossvul-cpp_data_bad_1125_3
/* * Elliptic curve DSA * * Copyright (C) 2006-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 * *...
./CrossVul/dataset_final_sorted/CWE-200/c/bad_1125_3
crossvul-cpp_data_good_3835_0
/* RFCOMM implementation for Linux Bluetooth stack (BlueZ). Copyright (C) 2002 Maxim Krasnyansky <maxk@qualcomm.com> Copyright (C) 2002 Marcel Holtmann <marcel@holtmann.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version ...
./CrossVul/dataset_final_sorted/CWE-200/c/good_3835_0
crossvul-cpp_data_bad_3769_1
/* * linux/fs/binfmt_script.c * * Copyright (C) 1996 Martin von Löwis * original #!-checking implemented by tytso. */ #include <linux/module.h> #include <linux/string.h> #include <linux/stat.h> #include <linux/binfmts.h> #include <linux/init.h> #include <linux/file.h> #include <linux/err.h> #include <linux/fs...
./CrossVul/dataset_final_sorted/CWE-200/c/bad_3769_1
crossvul-cpp_data_bad_3825_0
/* xfrm_user.c: User interface to configure xfrm engine. * * Copyright (C) 2002 David S. Miller (davem@redhat.com) * * Changes: * Mitsuru KANDA @USAGI * Kazunori MIYAZAWA @USAGI * Kunihiro Ishiguro <kunihiro@ipinfusion.com> * IPv6 support * */ #include <linux/crypto.h> #include <linux/module.h> #include ...
./CrossVul/dataset_final_sorted/CWE-200/c/bad_3825_0
crossvul-cpp_data_good_1829_4
/***********************************************************************/ /* */ /* OCaml */ /* */ /* Xavier Ler...
./CrossVul/dataset_final_sorted/CWE-200/c/good_1829_4
crossvul-cpp_data_bad_5695_0
/* * net/tipc/socket.c: TIPC socket API * * Copyright (c) 2001-2007, 2012 Ericsson AB * Copyright (c) 2004-2008, 2010-2012, Wind River Systems * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are me...
./CrossVul/dataset_final_sorted/CWE-200/c/bad_5695_0
crossvul-cpp_data_bad_4074_0
/*-------------------------------------------------------------------------*/ /** @file iniparser.c @author N. Devillard @brief Parser for ini files. */ /*--------------------------------------------------------------------------*/ /*---------------------------- Includes --------------------------------...
./CrossVul/dataset_final_sorted/CWE-200/c/bad_4074_0
crossvul-cpp_data_bad_3823_0
/* xfrm_user.c: User interface to configure xfrm engine. * * Copyright (C) 2002 David S. Miller (davem@redhat.com) * * Changes: * Mitsuru KANDA @USAGI * Kazunori MIYAZAWA @USAGI * Kunihiro Ishiguro <kunihiro@ipinfusion.com> * IPv6 support * */ #include <linux/crypto.h> #include <linux/module.h> #include ...
./CrossVul/dataset_final_sorted/CWE-200/c/bad_3823_0
crossvul-cpp_data_bad_837_0
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2003-2006, Cluster File Systems, Inc, info@clusterfs.com * Written by Alex Tomas <alex@clusterfs.com> * * Architecture independence: * Copyright (c) 2005, Bull S.A. * Written by Pierre Peiffer <pierre.peiffer@bull.net> */ /* * Extents support for EXT4 ...
./CrossVul/dataset_final_sorted/CWE-200/c/bad_837_0
crossvul-cpp_data_bad_2426_0
/* * kernel/sched/core.c * * Kernel scheduler and related syscalls * * Copyright (C) 1991-2002 Linus Torvalds * * 1996-12-23 Modified by Dave Grothe to fix bugs in semaphores and * make semaphores SMP safe * 1998-11-19 Implemented schedule_timeout() and related stuff * by Andrea Arcangeli * 2002-01...
./CrossVul/dataset_final_sorted/CWE-200/c/bad_2426_0
crossvul-cpp_data_good_432_0
/* linux/drivers/cdrom/cdrom.c Copyright (c) 1996, 1997 David A. van Leeuwen. Copyright (c) 1997, 1998 Erik Andersen <andersee@debian.org> Copyright (c) 1998, 1999 Jens Axboe <axboe@image.dk> May be copied or modified under the terms of the GNU General Public License. See linux/COPYING for more informa...
./CrossVul/dataset_final_sorted/CWE-200/c/good_432_0
crossvul-cpp_data_good_3769_2
/* * linux/fs/exec.c * * Copyright (C) 1991, 1992 Linus Torvalds */ /* * #!-checking implemented by tytso. */ /* * Demand-loading implemented 01.12.91 - no need to read anything but * the header into memory. The inode of the executable is put into * "current->executable", and page faults do the actual load...
./CrossVul/dataset_final_sorted/CWE-200/c/good_3769_2
crossvul-cpp_data_bad_2375_1
/* lib/rpc/svc_auth_gss.c */ /* Copyright (c) 2000 The Regents of the University of Michigan. All rights reserved. Copyright (c) 2000 Dug Song <dugsong@UMICH.EDU>. All rights reserved, all wrongs reversed. Redistribution and use in source and binary forms, with or without modification, are permitted provi...
./CrossVul/dataset_final_sorted/CWE-200/c/bad_2375_1
crossvul-cpp_data_bad_5636_1
/* * OpenVPN -- An application to securely tunnel IP networks * over a single TCP/UDP port, with support for SSL/TLS-based * session authentication and key exchange, * packet encryption, packet authentication, and * packet compression. * * Copyright (C) 2002-2010...
./CrossVul/dataset_final_sorted/CWE-200/c/bad_5636_1
crossvul-cpp_data_bad_2958_3
/* 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-200/c/bad_2958_3
crossvul-cpp_data_bad_953_0
/* * Copyright (c) Dan Harkins, 2012 * * Copyright holder grants permission for redistribution and use in source * and binary forms, with or without modification, provided that the * following conditions are met: * 1. Redistribution of source code must retain the above copyright * notice, this list of con...
./CrossVul/dataset_final_sorted/CWE-200/c/bad_953_0
crossvul-cpp_data_bad_1124_4
/* * Elliptic curve DSA * * Copyright (C) 2006-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 * *...
./CrossVul/dataset_final_sorted/CWE-200/c/bad_1124_4
crossvul-cpp_data_bad_2864_0
/* * FPU register's regset abstraction, for ptrace, core dumps, etc. */ #include <asm/fpu/internal.h> #include <asm/fpu/signal.h> #include <asm/fpu/regset.h> #include <asm/fpu/xstate.h> #include <linux/sched/task_stack.h> /* * The xstateregs_active() routine is the same as the regset_fpregs_active() routine, * as ...
./CrossVul/dataset_final_sorted/CWE-200/c/bad_2864_0
crossvul-cpp_data_bad_3361_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-200/c/bad_3361_0
crossvul-cpp_data_bad_4240_0
/* * random.c -- A strong random number generator * * Copyright (C) 2017 Jason A. Donenfeld <Jason@zx2c4.com>. All * Rights Reserved. * * Copyright Matt Mackall <mpm@selenic.com>, 2003, 2004, 2005 * * Copyright Theodore Ts'o, 1994, 1995, 1996, 1997, 1998, 1999. All * rights reserved. * * Redistribution and ...
./CrossVul/dataset_final_sorted/CWE-200/c/bad_4240_0
crossvul-cpp_data_bad_3568_4
/** * Copyright 2008-2011 Digital Bazaar, Inc. * * This file is part of librdfa. * * librdfa is Free Software, and can be licensed under any of the * following three licenses: * * 1. GNU Lesser General Public License (LGPL) V2.1 or any * newer version * 2. GNU General Public License (GPL) V2 or any n...
./CrossVul/dataset_final_sorted/CWE-200/c/bad_3568_4
crossvul-cpp_data_bad_5569_0
/* HIDP implementation for Linux Bluetooth stack (BlueZ). Copyright (C) 2003-2004 Marcel Holtmann <marcel@holtmann.org> 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; TH...
./CrossVul/dataset_final_sorted/CWE-200/c/bad_5569_0
crossvul-cpp_data_good_1765_0
/* * vivid-osd.c - osd support for testing overlays. * * Copyright 2014 Cisco Systems, Inc. and/or its affiliates. All rights reserved. * * This program is free software; you may redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; v...
./CrossVul/dataset_final_sorted/CWE-200/c/good_1765_0
crossvul-cpp_data_bad_2286_1
/* * Generic address resultion entity * * Authors: * net_random Alan Cox * net_ratelimit Andi Kleen * in{4,6}_pton YOSHIFUJI Hideaki, Copyright (C)2006 USAGI/WIDE Project * * Created by Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> * * This program is free software; you can redistribute it and/or * modify it ...
./CrossVul/dataset_final_sorted/CWE-200/c/bad_2286_1
crossvul-cpp_data_good_5681_0
/* 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-200/c/good_5681_0
crossvul-cpp_data_good_5058_0
/* * Timers abstract layer * 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, or * (at you...
./CrossVul/dataset_final_sorted/CWE-200/c/good_5058_0
crossvul-cpp_data_good_3823_0
/* xfrm_user.c: User interface to configure xfrm engine. * * Copyright (C) 2002 David S. Miller (davem@redhat.com) * * Changes: * Mitsuru KANDA @USAGI * Kazunori MIYAZAWA @USAGI * Kunihiro Ishiguro <kunihiro@ipinfusion.com> * IPv6 support * */ #include <linux/crypto.h> #include <linux/module.h> #include ...
./CrossVul/dataset_final_sorted/CWE-200/c/good_3823_0
crossvul-cpp_data_bad_3485_0
/* comedi/comedi_fops.c comedi kernel module COMEDI - Linux Control and Measurement Device Interface Copyright (C) 1997-2000 David A. Schleef <ds@schleef.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published ...
./CrossVul/dataset_final_sorted/CWE-200/c/bad_3485_0
crossvul-cpp_data_bad_2526_0
/* * Timers abstract layer * 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, or * (at you...
./CrossVul/dataset_final_sorted/CWE-200/c/bad_2526_0
crossvul-cpp_data_bad_293_0
/* +----------------------------------------------------------------------+ | PHP Version 7 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2017 The PHP Group | +---------...
./CrossVul/dataset_final_sorted/CWE-200/c/bad_293_0
crossvul-cpp_data_good_1626_0
/* * linux/fs/namespace.c * * (C) Copyright Al Viro 2000, 2001 * Released under GPL v2. * * Based on code from fs/super.c, copyright Linus Torvalds and others. * Heavily rewritten. */ #include <linux/syscalls.h> #include <linux/export.h> #include <linux/capability.h> #include <linux/mnt_namespace.h> #include ...
./CrossVul/dataset_final_sorted/CWE-200/c/good_1626_0
crossvul-cpp_data_good_1102_0
/* * Copyright (c) 2006, 2019 Oracle and/or its affiliates. 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 director...
./CrossVul/dataset_final_sorted/CWE-200/c/good_1102_0
crossvul-cpp_data_good_308_0
/* Paravirtualization interfaces Copyright (C) 2006 Rusty Russell 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 of the License, or (at your opt...
./CrossVul/dataset_final_sorted/CWE-200/c/good_308_0
crossvul-cpp_data_bad_1331_0
// SPDX-License-Identifier: GPL-2.0 /* Parts of this driver are based on the following: * - Kvaser linux leaf driver (version 4.78) * - CAN driver for esd CAN-USB/2 * - Kvaser linux usbcanII driver (version 5.3) * * Copyright (C) 2002-2018 KVASER AB, Sweden. All rights reserved. * Copyright (C) 2010 Matthias F...
./CrossVul/dataset_final_sorted/CWE-200/c/bad_1331_0
crossvul-cpp_data_good_5759_0
#include <linux/fs.h> #include "headers.h" /*************************************************************** * Function - bcm_char_open() * * Description - This is the "open" entry point for the character * driver. * * Parameters - inode: Pointer to the Inode structure of char device * filp : File pointer of t...
./CrossVul/dataset_final_sorted/CWE-200/c/good_5759_0
crossvul-cpp_data_good_5340_0
/* Netfilter messages via netlink socket. Allows for user space * protocol helpers and general trouble making from userspace. * * (C) 2001 by Jay Schulist <jschlst@samba.org>, * (C) 2002-2005 by Harald Welte <laforge@gnumonks.org> * (C) 2005,2007 by Pablo Neira Ayuso <pablo@netfilter.org> * * Initial netfilter m...
./CrossVul/dataset_final_sorted/CWE-200/c/good_5340_0
crossvul-cpp_data_good_3361_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-200/c/good_3361_0
crossvul-cpp_data_good_1860_0
#include <linux/types.h> #include <linux/errno.h> #include <linux/kmod.h> #include <linux/sched.h> #include <linux/interrupt.h> #include <linux/tty.h> #include <linux/tty_driver.h> #include <linux/file.h> #include <linux/mm.h> #include <linux/string.h> #include <linux/slab.h> #include <linux/poll.h> #include <linux/pro...
./CrossVul/dataset_final_sorted/CWE-200/c/good_1860_0
crossvul-cpp_data_bad_3829_0
/* * Copyright (c) 2007 The University of Aberdeen, Scotland, UK * Copyright (c) 2005-7 The University of Waikato, Hamilton, New Zealand. * Copyright (c) 2005-7 Ian McDonald <ian.mcdonald@jandi.co.nz> * * An implementation of the DCCP protocol * * This code has been developed by the University of Waikato ...
./CrossVul/dataset_final_sorted/CWE-200/c/bad_3829_0
crossvul-cpp_data_bad_368_0
/* linux/drivers/cdrom/cdrom.c Copyright (c) 1996, 1997 David A. van Leeuwen. Copyright (c) 1997, 1998 Erik Andersen <andersee@debian.org> Copyright (c) 1998, 1999 Jens Axboe <axboe@image.dk> May be copied or modified under the terms of the GNU General Public License. See linux/COPYING for more informa...
./CrossVul/dataset_final_sorted/CWE-200/c/bad_368_0
crossvul-cpp_data_good_1405_1
/* tracked memory * * 2/11/99 JC * - from im_open.c and callback.c * - malloc tracking stuff added * 11/3/01 JC * - im_strncpy() added * 20/4/01 JC * - im_(v)snprintf() added * 6/7/05 * - more tracking for DEBUGM * 20/10/06 * - return NULL for size <= 0 * 11/5/06 * - abort() on malloc() failure with D...
./CrossVul/dataset_final_sorted/CWE-200/c/good_1405_1
crossvul-cpp_data_good_4240_0
/* * random.c -- A strong random number generator * * Copyright (C) 2017 Jason A. Donenfeld <Jason@zx2c4.com>. All * Rights Reserved. * * Copyright Matt Mackall <mpm@selenic.com>, 2003, 2004, 2005 * * Copyright Theodore Ts'o, 1994, 1995, 1996, 1997, 1998, 1999. All * rights reserved. * * Redistribution and ...
./CrossVul/dataset_final_sorted/CWE-200/c/good_4240_0
crossvul-cpp_data_good_3824_0
/* xfrm_user.c: User interface to configure xfrm engine. * * Copyright (C) 2002 David S. Miller (davem@redhat.com) * * Changes: * Mitsuru KANDA @USAGI * Kazunori MIYAZAWA @USAGI * Kunihiro Ishiguro <kunihiro@ipinfusion.com> * IPv6 support * */ #include <linux/crypto.h> #include <linux/module.h> #include ...
./CrossVul/dataset_final_sorted/CWE-200/c/good_3824_0
crossvul-cpp_data_bad_2490_1
/* Copyright (c) 2001 Matej Pfajfar. * Copyright (c) 2001-2004, Roger Dingledine. * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson. * Copyright (c) 2007-2016, The Tor Project, Inc. */ /* See LICENSE for licensing information */ /** * \file entrynodes.c * \brief Code to manage our fixed first nodes for ...
./CrossVul/dataset_final_sorted/CWE-200/c/bad_2490_1
crossvul-cpp_data_good_4051_0
/* * Copyright (C) 1996-1998,2012 Michael R. Elkins <me@mutt.org> * Copyright (C) 1996-1999 Brandon Long <blong@fiction.net> * Copyright (C) 1999-2009,2012,2017 Brendan Cully <brendan@kublai.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Gener...
./CrossVul/dataset_final_sorted/CWE-200/c/good_4051_0
crossvul-cpp_data_bad_3568_8
/* -*- Mode: c; c-basic-offset: 2 -*- * * raptor_rdfxml.c - Raptor RDF/XML Parser * * Copyright (C) 2000-2008, David Beckett http://www.dajobe.org/ * Copyright (C) 2000-2005, University of Bristol, UK http://www.bristol.ac.uk/ * * This package is Free Software and part of Redland http://librdf.org/ * * It is...
./CrossVul/dataset_final_sorted/CWE-200/c/bad_3568_8
crossvul-cpp_data_bad_5678_1
/* * algif_skcipher: User-space interface for skcipher algorithms * * This file provides the user-space API for symmetric key ciphers. * * 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 ...
./CrossVul/dataset_final_sorted/CWE-200/c/bad_5678_1
crossvul-cpp_data_bad_2559_0
/****************************************************************************** * * Back-end of the driver for virtual block devices. This portion of the * driver exports a 'unified' block-device interface that can be accessed * by any operating system that implements a compatible front end. A * reference front-en...
./CrossVul/dataset_final_sorted/CWE-200/c/bad_2559_0
crossvul-cpp_data_good_4936_0
/* * Copyright(c) 2006 - 2007 Atheros Corporation. All rights reserved. * Copyright(c) 2007 - 2008 Chris Snook <csnook@redhat.com> * * Derived from Intel e1000 driver * Copyright(c) 1999 - 2005 Intel Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * ...
./CrossVul/dataset_final_sorted/CWE-200/c/good_4936_0
crossvul-cpp_data_good_1508_5
/* 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-200/c/good_1508_5
crossvul-cpp_data_good_1829_2
/***********************************************************************/ /* */ /* OCaml */ /* */ /* Xavier Leroy ...
./CrossVul/dataset_final_sorted/CWE-200/c/good_1829_2
crossvul-cpp_data_good_5049_0
/* * af_llc.c - LLC User Interface SAPs * Description: * Functions in this module are implementation of socket based llc * communications for the Linux operating system. Support of llc class * one and class two is provided via SOCK_DGRAM and SOCK_STREAM * respectively. * * An llc2 connection is (mac +...
./CrossVul/dataset_final_sorted/CWE-200/c/good_5049_0
crossvul-cpp_data_bad_5760_0
#include "sb_pci_mp.h" #include <linux/module.h> #include <linux/parport.h> extern struct parport *parport_pc_probe_port(unsigned long base_lo, unsigned long base_hi, int irq, int dma, struct device *dev, int irqflags); static struct mp_device_t mp_devs[MAX_MP_DEV]; static int mp_nrpcibrds = sizeof(mp_pciboar...
./CrossVul/dataset_final_sorted/CWE-200/c/bad_5760_0
crossvul-cpp_data_good_3416_0
/* * Apple HTTP Live Streaming demuxer * Copyright (c) 2010 Martin Storsjo * Copyright (c) 2013 Anssi Hannula * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Fou...
./CrossVul/dataset_final_sorted/CWE-200/c/good_3416_0
crossvul-cpp_data_good_3568_8
/* -*- Mode: c; c-basic-offset: 2 -*- * * raptor_rdfxml.c - Raptor RDF/XML Parser * * Copyright (C) 2000-2008, David Beckett http://www.dajobe.org/ * Copyright (C) 2000-2005, University of Bristol, UK http://www.bristol.ac.uk/ * * This package is Free Software and part of Redland http://librdf.org/ * * It is...
./CrossVul/dataset_final_sorted/CWE-200/c/good_3568_8
crossvul-cpp_data_good_837_0
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2003-2006, Cluster File Systems, Inc, info@clusterfs.com * Written by Alex Tomas <alex@clusterfs.com> * * Architecture independence: * Copyright (c) 2005, Bull S.A. * Written by Pierre Peiffer <pierre.peiffer@bull.net> */ /* * Extents support for EXT4 ...
./CrossVul/dataset_final_sorted/CWE-200/c/good_837_0
crossvul-cpp_data_good_438_3
/* * Soft: Keepalived is a failover program for the LVS project * <www.linuxvirtualserver.org>. It monitor & manipulate * a loadbalanced server pool using multi-layer checks. * * Part: Dynamic data structure definition. * * Author: Alexandre Cassen, <acassen@linux-vs....
./CrossVul/dataset_final_sorted/CWE-200/c/good_438_3
crossvul-cpp_data_good_2559_0
/****************************************************************************** * * Back-end of the driver for virtual block devices. This portion of the * driver exports a 'unified' block-device interface that can be accessed * by any operating system that implements a compatible front end. A * reference front-en...
./CrossVul/dataset_final_sorted/CWE-200/c/good_2559_0
crossvul-cpp_data_bad_3837_0
/* RFCOMM implementation for Linux Bluetooth stack (BlueZ). Copyright (C) 2002 Maxim Krasnyansky <maxk@qualcomm.com> Copyright (C) 2002 Marcel Holtmann <marcel@holtmann.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version ...
./CrossVul/dataset_final_sorted/CWE-200/c/bad_3837_0
crossvul-cpp_data_bad_3836_0
/* RFCOMM implementation for Linux Bluetooth stack (BlueZ). Copyright (C) 2002 Maxim Krasnyansky <maxk@qualcomm.com> Copyright (C) 2002 Marcel Holtmann <marcel@holtmann.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version ...
./CrossVul/dataset_final_sorted/CWE-200/c/bad_3836_0