id
stringlengths
25
30
content
stringlengths
14
942k
max_stars_repo_path
stringlengths
49
55
crossvul-cpp_data_bad_4005_0
/* * Marvell Wireless LAN device driver: WMM * * Copyright (C) 2011-2014, Marvell International Ltd. * * This software file (the "File") is distributed by Marvell International * Ltd. under the terms of the GNU General Public License Version 2, June 1991 * (the "License"). You may use, redistribute and/or modif...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_4005_0
crossvul-cpp_data_good_5478_1
/* $Id$ */ /* * Copyright (c) 1996-1997 Sam Leffler * Copyright (c) 1996 Pixar * * 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 notice appear in * al...
./CrossVul/dataset_final_sorted/CWE-787/c/good_5478_1
crossvul-cpp_data_good_5272_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 catholi...
./CrossVul/dataset_final_sorted/CWE-787/c/good_5272_0
crossvul-cpp_data_bad_1005_2
/****************************************************************************** * pdf.c * * pdfresurrect - PDF history extraction tool * * Copyright (C) 2008-2010, 2012-2013, 2017-19, Matt Davis (enferex). * * Special thanks to all of the contributors: See AUTHORS. * * Special thanks to 757labs (757 crew), t...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_1005_2
crossvul-cpp_data_bad_519_0
/* * Copyright (C) 2000-2002 Constantin Kaplinsky. All Rights Reserved. * Copyright (C) 2000 Tridia Corporation. All Rights Reserved. * Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved. * * This is free software; you can redistribute it and/or modify * it under the terms of the GNU Gene...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_519_0
crossvul-cpp_data_good_158_0
/* * This file is part of Espruino, a JavaScript interpreter for Microcontrollers * * Copyright (C) 2013 Gordon Williams <gw@pur3.co.uk> * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http...
./CrossVul/dataset_final_sorted/CWE-787/c/good_158_0
crossvul-cpp_data_bad_3105_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_3105_0
crossvul-cpp_data_good_3297_0
/* * utils for libavcodec * Copyright (c) 2001 Fabrice Bellard * Copyright (c) 2002-2004 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-787/c/good_3297_0
crossvul-cpp_data_bad_2760_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-787/c/bad_2760_0
crossvul-cpp_data_good_674_2
/** * FreeRDP: A Remote Desktop Protocol Implementation * NSCodec Encoder * * Copyright 2012 Vic Lee * Copyright 2016 Armin Novak <armin.novak@thincast.com> * Copyright 2016 Thincast Technologies GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in comp...
./CrossVul/dataset_final_sorted/CWE-787/c/good_674_2
crossvul-cpp_data_good_518_0
/* * Copyright (C) 2000-2002 Constantin Kaplinsky. All Rights Reserved. * Copyright (C) 2000 Tridia Corporation. All Rights Reserved. * Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved. * * This is free software; you can redistribute it and/or modify * it under the terms of the GNU Gene...
./CrossVul/dataset_final_sorted/CWE-787/c/good_518_0
crossvul-cpp_data_bad_978_0
/* 3APA3A simpliest proxy server (c) 2002-2008 by ZARAZA <3APA3A@security.nnov.ru> please read License Agreement */ #include "proxy.h" #define RETURN(xxx) { param->res = xxx; goto CLEANRET; } #define LINESIZE 2048 extern FILE *writable; FILE * confopen(); extern void decodeurl(unsigned char *s, int filte...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_978_0
crossvul-cpp_data_bad_1040_1
/* * rfbserver.c - deal with server-side of the RFB protocol. */ /* * Copyright (C) 2009-2019 D. R. Commander. All Rights Reserved. * Copyright (C) 2010 University Corporation for Atmospheric Research. * All Rights Reserved. * Copyright (C) 2005-2008 Sun Microsystems, Inc. All Rights Res...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_1040_1
crossvul-cpp_data_bad_518_0
/* * Copyright (C) 2000-2002 Constantin Kaplinsky. All Rights Reserved. * Copyright (C) 2000 Tridia Corporation. All Rights Reserved. * Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved. * * This is free software; you can redistribute it and/or modify * it under the terms of the GNU Gene...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_518_0
crossvul-cpp_data_good_96_1
//////////////////////////////////////////////////////////////////////////// // **** WAVPACK **** // // Hybrid Lossless Wavefile Compressor // // Copyright (c) 1998 - 2016 David Bryant. // // ...
./CrossVul/dataset_final_sorted/CWE-787/c/good_96_1
crossvul-cpp_data_good_4410_0
/* $OpenBSD$ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE S...
./CrossVul/dataset_final_sorted/CWE-787/c/good_4410_0
crossvul-cpp_data_good_5478_2
/* $Id$ */ /* * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * 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 n...
./CrossVul/dataset_final_sorted/CWE-787/c/good_5478_2
crossvul-cpp_data_good_4234_0
/* The code below is mostly derived from cx_bsdiff (written by Anthony Tuininga, http://cx-bsdiff.sourceforge.net/). The cx_bsdiff code in turn was derived from bsdiff, the standalone utility produced for BSD which can be found at http://www.daemonology.net/bsdiff. */ #define PY_SSIZE_T_CLEAN #include <Python...
./CrossVul/dataset_final_sorted/CWE-787/c/good_4234_0
crossvul-cpp_data_good_4485_0
/* * OpenEXR (.exr) image decoder * Copyright (c) 2006 Industrial Light & Magic, a division of Lucas Digital Ltd. LLC * Copyright (c) 2009 Jimmy Christensen * * B44/B44A, Tile, UINT32 added by Jokyo Images support by CNC - French National Center for Cinema * * This file is part of FFmpeg. * * FFmpeg is free so...
./CrossVul/dataset_final_sorted/CWE-787/c/good_4485_0
crossvul-cpp_data_good_3295_0
/* * Pictor/PC Paint decoder * Copyright (c) 2010 Peter Ross <pross@xvid.org> * * 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...
./CrossVul/dataset_final_sorted/CWE-787/c/good_3295_0
crossvul-cpp_data_good_1288_0
/** * @file parser.c * @author Radek Krejci <rkrejci@cesnet.cz> * @brief common libyang parsers routines implementations * * Copyright (c) 2015-2017 CESNET, z.s.p.o. * * This source code is licensed under BSD 3-Clause License (the "License"). * You may not use this file except in compliance with the License. *...
./CrossVul/dataset_final_sorted/CWE-787/c/good_1288_0
crossvul-cpp_data_good_3172_0
/* * file.c -- functions for dealing with file output * * Copyright (C)1999-2006 Mark Simpson <damned@theworld.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; either version 2, or ...
./CrossVul/dataset_final_sorted/CWE-787/c/good_3172_0
crossvul-cpp_data_good_5474_2
/* $Id$ */ /* * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * 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 n...
./CrossVul/dataset_final_sorted/CWE-787/c/good_5474_2
crossvul-cpp_data_good_2758_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-787/c/good_2758_0
crossvul-cpp_data_good_2457_0
// SPDX-License-Identifier: GPL-2.0-only /* * Simple NUMA memory policy for the Linux kernel. * * Copyright 2003,2004 Andi Kleen, SuSE Labs. * (C) Copyright 2005 Christoph Lameter, Silicon Graphics, Inc. * * NUMA policy allows the user to give hints in which node(s) memory should * be allocated. * * Support fo...
./CrossVul/dataset_final_sorted/CWE-787/c/good_2457_0
crossvul-cpp_data_bad_4036_0
/* * QEMU Executable loader * * Copyright (c) 2006 Fabrice Bellard * * 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 ...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_4036_0
crossvul-cpp_data_bad_522_0
/* * rfbserver.c - deal with server-side of the RFB protocol. */ /* * Copyright (C) 2011-2012 D. R. Commander * Copyright (C) 2005 Rohit Kumar, Johannes E. Schindelin * Copyright (C) 2002 RealVNC Ltd. * OSXvnc Copyright (C) 2001 Dan McGuirk <mcguirk@incompleteness.net>. * Original Xvnc code Copyright (C) 1...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_522_0
crossvul-cpp_data_good_1005_0
/****************************************************************************** * main.c * * pdfresurrect - PDF history extraction tool * * Copyright (C) 2008-2010, 2012, 2017, 2019 Matt Davis (enferex). * * Special thanks to all of the contributors: See AUTHORS. * * Special thanks to 757labs (757 crew), the...
./CrossVul/dataset_final_sorted/CWE-787/c/good_1005_0
crossvul-cpp_data_good_3107_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-787/c/good_3107_0
crossvul-cpp_data_good_4402_0
/* * card-tcos.c: Support for TCOS cards * * Copyright (C) 2011 Peter Koch <pk@opensc-project.org> * Copyright (C) 2002 g10 Code GmbH * Copyright (C) 2001 Juha Yrjölä <juha.yrjola@iki.fi> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
./CrossVul/dataset_final_sorted/CWE-787/c/good_4402_0
crossvul-cpp_data_bad_674_1
/** * FreeRDP: A Remote Desktop Protocol Implementation * NSCodec Codec * * Copyright 2011 Samsung, Author Jiten Pathy * Copyright 2012 Vic Lee * Copyright 2016 Armin Novak <armin.novak@thincast.com> * Copyright 2016 Thincast Technologies GmbH * * Licensed under the Apache License, Version 2.0 (the "License");...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_674_1
crossvul-cpp_data_good_3301_0
/* wallpaper.c Copyright (C) 1999-2003 Tom Gilbert. Copyright (C) 2010-2011 Daniel Friesel. 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 r...
./CrossVul/dataset_final_sorted/CWE-787/c/good_3301_0
crossvul-cpp_data_good_5474_4
/* $Id$ */ /* tiffcrop.c -- a port of tiffcp.c extended to include manipulations of * the image data through additional options listed below * * Original code: * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * Additions (c) Richard Nolde 2006-2010 * * Permission to use, ...
./CrossVul/dataset_final_sorted/CWE-787/c/good_5474_4
crossvul-cpp_data_good_205_2
/* * ring buffer based function tracer * * Copyright (C) 2007-2012 Steven Rostedt <srostedt@redhat.com> * Copyright (C) 2008 Ingo Molnar <mingo@redhat.com> * * Originally taken from the RT patch by: * Arnaldo Carvalho de Melo <acme@redhat.com> * * Based on code from the latency_tracer, that is: * Copyrigh...
./CrossVul/dataset_final_sorted/CWE-787/c/good_205_2
crossvul-cpp_data_good_3373_1
/* This file was converted by gperf_unfold_key_conv.py from gperf output file. */ /* ANSI-C code produced by gperf version 3.0.4 */ /* Command-line: gperf -n -C -T -c -t -j1 -L ANSI-C -F,-1,0 -N unicode_unfold_key unicode_unfold_key.gperf */ /* Computed positions: -k'1-3' */ /* This gperf source file was gene...
./CrossVul/dataset_final_sorted/CWE-787/c/good_3373_1
crossvul-cpp_data_bad_674_4
/** * FreeRDP: A Remote Desktop Protocol Implementation * NSCodec Library - SSE2 Optimizations * * Copyright 2012 Vic Lee * * 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 * * htt...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_674_4
crossvul-cpp_data_good_2775_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-787/c/good_2775_0
crossvul-cpp_data_bad_5499_0
/* * IPv6 fragment reassembly for connection tracking * * Copyright (C)2004 USAGI/WIDE Project * * Author: * Yasuyuki Kozakai @USAGI <yasuyuki.kozakai@toshiba.co.jp> * * Based on: net/ipv6/reassembly.c * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Ge...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_5499_0
crossvul-cpp_data_bad_3992_0
/* * 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, or (at your option) any later version. * * FFmpeg is distributed...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_3992_0
crossvul-cpp_data_good_5102_1
/* $Id$ */ /* * Copyright (c) 1996-1997 Sam Leffler * Copyright (c) 1996 Pixar * * 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 notice appear in * al...
./CrossVul/dataset_final_sorted/CWE-787/c/good_5102_1
crossvul-cpp_data_bad_3106_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_3106_0
crossvul-cpp_data_good_674_1
/** * FreeRDP: A Remote Desktop Protocol Implementation * NSCodec Codec * * Copyright 2011 Samsung, Author Jiten Pathy * Copyright 2012 Vic Lee * Copyright 2016 Armin Novak <armin.novak@thincast.com> * Copyright 2016 Thincast Technologies GmbH * * Licensed under the Apache License, Version 2.0 (the "License");...
./CrossVul/dataset_final_sorted/CWE-787/c/good_674_1
crossvul-cpp_data_good_1197_0
/* lookup.c - implementation of IDNA2008 lookup functions Copyright (C) 2011-2017 Simon Josefsson Libidn2 is free software: you can redistribute it and/or modify it under the terms of either: * the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of...
./CrossVul/dataset_final_sorted/CWE-787/c/good_1197_0
crossvul-cpp_data_bad_95_1
//////////////////////////////////////////////////////////////////////////// // **** WAVPACK **** // // Hybrid Lossless Wavefile Compressor // // Copyright (c) 1998 - 2016 David Bryant. // // ...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_95_1
crossvul-cpp_data_good_4263_1
/****************************************************************************** * pdf.c * * pdfresurrect - PDF history extraction tool * * Copyright (C) 2008-2010, 2012-2013, 2017-20, Matt Davis (enferex). * * Special thanks to all of the contributors: See AUTHORS. * * Special thanks to 757labs (757 crew), t...
./CrossVul/dataset_final_sorted/CWE-787/c/good_4263_1
crossvul-cpp_data_bad_2758_1
/* * 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-787/c/bad_2758_1
crossvul-cpp_data_bad_5482_1
/* $Id$ */ /* * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * Revised: 2/18/01 BAR -- added syntax for extracting single images from * multi-image TIFF files. * * New syntax is: sourceFileName,image# * * image# ranges from 0..<n-1> wher...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_5482_1
crossvul-cpp_data_bad_3411_1
// Notes and useful links: // This conversation (https://www.sourceware.org/ml/gdb/2009-02/msg00100.html) suggests GDB clients usually ignore error codes // Useful, but not to be blindly trusted - http://www.embecosm.com/appnotes/ean4/embecosm-howto-rsp-server-ean4-issue-2.html // https://github.com/llvm-mirror/lldb/bl...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_3411_1
crossvul-cpp_data_good_3374_0
/********************************************************************** regparse.c - Oniguruma (regular expression library) **********************************************************************/ /*- * Copyright (c) 2002-2016 K.Kosako <sndgk393 AT ybb DOT ne DOT jp> * All rights reserved. * * Redistribution an...
./CrossVul/dataset_final_sorted/CWE-787/c/good_3374_0
crossvul-cpp_data_bad_3172_1
/* * tnef.c -- extract files from microsoft TNEF format * * Copyright (C)1999-2006 Mark Simpson <damned@theworld.com> * Copyright (C)1997 Thomas Boll <tb@boll.ch> [ORIGINAL AUTHOR] * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as ...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_3172_1
crossvul-cpp_data_good_277_2
/* This file is part of libmspack. * (C) 2003-2011 Stuart Caie. * * KWAJ is a format very similar to SZDD. KWAJ method 3 (LZH) was * written by Jeff Johnson. * * libmspack is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License (LGPL) version 2.1 * ...
./CrossVul/dataset_final_sorted/CWE-787/c/good_277_2
crossvul-cpp_data_bad_3296_0
/* * PNG image format * Copyright (c) 2003 Fabrice Bellard * * 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, or (a...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_3296_0
crossvul-cpp_data_bad_106_0
/* * ebtables * * Author: * Bart De Schuymer <bdschuym@pandora.be> * * ebtables.c,v 2.0, July, 2002 * * This code is strongly inspired by the iptables code which is * Copyright (C) 1999 Paul `Rusty' Russell & Michael J. Neuling * * This program is free software; you can redistribute it and/or * mod...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_106_0
crossvul-cpp_data_bad_5474_2
/* $Id$ */ /* * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * 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 n...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_5474_2
crossvul-cpp_data_good_5304_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % W W PPPP GGGG ...
./CrossVul/dataset_final_sorted/CWE-787/c/good_5304_0
crossvul-cpp_data_bad_526_1
/* * GPAC - Multimedia Framework C SDK * * Authors: Jean Le Feuvre * Copyright (c) Telecom ParisTech 2000-2012 * All rights reserved * * This file is part of GPAC / Media Tools sub-project * * GPAC is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser Gene...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_526_1
crossvul-cpp_data_bad_4490_0
/* rsa.c * * Copyright (C) 2006-2020 wolfSSL Inc. * * This file is part of wolfSSL. * * wolfSSL 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-787/c/bad_4490_0
crossvul-cpp_data_bad_205_3
/* * trace_events_filter - generic event filtering * * 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 pr...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_205_3
crossvul-cpp_data_good_5257_0
/* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2016 The PHP Group | +---------...
./CrossVul/dataset_final_sorted/CWE-787/c/good_5257_0
crossvul-cpp_data_bad_1881_0
/* * $Id: pam_radius_auth.c,v 1.39 2007/03/26 05:35:31 fcusack Exp $ * pam_radius_auth * Authenticate a user via a RADIUS session * * 0.9.0 - Didn't compile quite right. * 0.9.1 - Hands off passwords properly. Solaris still isn't completely happy * 0.9.2 - Solaris now does challenge-response. Added config...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_1881_0
crossvul-cpp_data_bad_205_1
/* * linux/kernel/softirq.c * * Copyright (C) 1992 Linus Torvalds * * Distribute under GPLv2. * * Rewritten. Old one was good in 2.2, but in 2.3 it was immoral. --ANK (990903) */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/export.h> #include <linux/kernel_stat.h> #include <linux/interrupt.h> #...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_205_1
crossvul-cpp_data_bad_3873_0
/* regcomp.c */ /* * 'A fair jaw-cracker dwarf-language must be.' --Samwise Gamgee * * [p.285 of _The Lord of the Rings_, II/iii: "The Ring Goes South"] */ /* This file contains functions for compiling a regular expression. See * also regexec.c which funnily enough, contains functions for exe...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_3873_0
crossvul-cpp_data_good_2760_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-787/c/good_2760_0
crossvul-cpp_data_bad_4491_0
/* rsa.c * * Copyright (C) 2006-2020 wolfSSL Inc. * * This file is part of wolfSSL. * * wolfSSL 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-787/c/bad_4491_0
crossvul-cpp_data_bad_5479_3
/* $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-787/c/bad_5479_3
crossvul-cpp_data_bad_5499_1
/* (C) 1999-2001 Paul `Rusty' Russell * (C) 2002-2004 Netfilter Core Team <coreteam@netfilter.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. */ #include <linux/types.h> ...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_5499_1
crossvul-cpp_data_bad_5479_2
/* $Id$ */ /* * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * 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 n...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_5479_2
crossvul-cpp_data_bad_4318_0
/********************************************************************** regcomp.c - Oniguruma (regular expression library) **********************************************************************/ /*- * Copyright (c) 2002-2020 K.Kosako * All rights reserved. * * Redistribution and use in source and binary forms, ...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_4318_0
crossvul-cpp_data_bad_96_0
//////////////////////////////////////////////////////////////////////////// // **** WAVPACK **** // // Hybrid Lossless Wavefile Compressor // // Copyright (c) 1998 - 2016 David Bryant. // // ...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_96_0
crossvul-cpp_data_good_5305_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % W W PPPP GGGG ...
./CrossVul/dataset_final_sorted/CWE-787/c/good_5305_0
crossvul-cpp_data_good_526_1
/* * GPAC - Multimedia Framework C SDK * * Authors: Jean Le Feuvre * Copyright (c) Telecom ParisTech 2000-2012 * All rights reserved * * This file is part of GPAC / Media Tools sub-project * * GPAC is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser Gene...
./CrossVul/dataset_final_sorted/CWE-787/c/good_526_1
crossvul-cpp_data_bad_2759_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-787/c/bad_2759_0
crossvul-cpp_data_good_3368_1
// imagew-main.c // Part of ImageWorsener, Copyright (c) 2011 by Jason Summers. // For more information, see the readme.txt file. #include "imagew-config.h" #include <stdlib.h> #include <string.h> #include <math.h> #include "imagew-internals.h" // Given a color type having an alpha channel, returns the index of th...
./CrossVul/dataset_final_sorted/CWE-787/c/good_3368_1
crossvul-cpp_data_bad_4265_0
/*- * Copyright (c) 2003-2011 Tim Kientzle * Copyright (c) 2011-2012 Michihiro NAKAJIMA * 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 th...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_4265_0
crossvul-cpp_data_good_4036_0
/* * QEMU Executable loader * * Copyright (c) 2006 Fabrice Bellard * * 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 ...
./CrossVul/dataset_final_sorted/CWE-787/c/good_4036_0
crossvul-cpp_data_good_5317_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-787/c/good_5317_0
crossvul-cpp_data_good_1287_0
/** * @file parser.c * @author Radek Krejci <rkrejci@cesnet.cz> * @brief common libyang parsers routines implementations * * Copyright (c) 2015-2017 CESNET, z.s.p.o. * * This source code is licensed under BSD 3-Clause License (the "License"). * You may not use this file except in compliance with the License. *...
./CrossVul/dataset_final_sorted/CWE-787/c/good_1287_0
crossvul-cpp_data_good_4318_0
/********************************************************************** regcomp.c - Oniguruma (regular expression library) **********************************************************************/ /*- * Copyright (c) 2002-2020 K.Kosako * All rights reserved. * * Redistribution and use in source and binary forms, ...
./CrossVul/dataset_final_sorted/CWE-787/c/good_4318_0
crossvul-cpp_data_bad_5102_1
/* $Id$ */ /* * Copyright (c) 1996-1997 Sam Leffler * Copyright (c) 1996 Pixar * * 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 notice appear in * al...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_5102_1
crossvul-cpp_data_bad_3411_3
/* fshelp.c -- Filesystem helper functions */ /* * GRUB -- GRand Unified Bootloader * Copyright (C) 2004,2005,2006,2007,2008 Free Software Foundation, Inc. * * GRUB 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 Sof...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_3411_3
crossvul-cpp_data_bad_3107_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_3107_0
crossvul-cpp_data_bad_4028_0
/** * FreeRDP: A Remote Desktop Protocol Implementation * Cryptographic Abstraction Layer * * Copyright 2011-2012 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...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_4028_0
crossvul-cpp_data_good_978_0
/* 3APA3A simpliest proxy server (c) 2002-2008 by ZARAZA <3APA3A@security.nnov.ru> please read License Agreement */ #include "proxy.h" #define RETURN(xxx) { param->res = xxx; goto CLEANRET; } #define LINESIZE 65536 extern FILE *writable; FILE * confopen(); extern void decodeurl(unsigned char *s, int filt...
./CrossVul/dataset_final_sorted/CWE-787/c/good_978_0
crossvul-cpp_data_good_443_0
/* * uriparser - RFC 3986 URI parsing library * * Copyright (C) 2007, Weijia Song <songweijia@gmail.com> * Copyright (C) 2007, Sebastian Pipping <sebastian@pipping.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-787/c/good_443_0
crossvul-cpp_data_good_2758_1
/* * 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-787/c/good_2758_1
crossvul-cpp_data_good_205_3
/* * trace_events_filter - generic event filtering * * 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 pr...
./CrossVul/dataset_final_sorted/CWE-787/c/good_205_3
crossvul-cpp_data_bad_1288_0
/** * @file parser.c * @author Radek Krejci <rkrejci@cesnet.cz> * @brief common libyang parsers routines implementations * * Copyright (c) 2015-2017 CESNET, z.s.p.o. * * This source code is licensed under BSD 3-Clause License (the "License"). * You may not use this file except in compliance with the License. *...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_1288_0
crossvul-cpp_data_bad_2775_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-787/c/bad_2775_0
crossvul-cpp_data_good_205_1
/* * linux/kernel/softirq.c * * Copyright (C) 1992 Linus Torvalds * * Distribute under GPLv2. * * Rewritten. Old one was good in 2.2, but in 2.3 it was immoral. --ANK (990903) */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/export.h> #include <linux/kernel_stat.h> #include <linux/interrupt.h> #...
./CrossVul/dataset_final_sorted/CWE-787/c/good_205_1
crossvul-cpp_data_good_3298_0
/* * PNG image format * Copyright (c) 2003 Fabrice Bellard * * 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, or (a...
./CrossVul/dataset_final_sorted/CWE-787/c/good_3298_0
crossvul-cpp_data_bad_2776_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-787/c/bad_2776_0
crossvul-cpp_data_bad_1005_0
/****************************************************************************** * main.c * * pdfresurrect - PDF history extraction tool * * Copyright (C) 2008-2010, 2012, 2017, 2019 Matt Davis (enferex). * * Special thanks to all of the contributors: See AUTHORS. * * Special thanks to 757labs (757 crew), the...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_1005_0
crossvul-cpp_data_bad_4484_0
/* * Vividas VIV format Demuxer * Copyright (c) 2012 Krzysztof Klinikowski * Copyright (c) 2010 Andrzej Szombierski * based on vivparse Copyright (c) 2007 Måns Rullgård * * 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 Gen...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_4484_0
crossvul-cpp_data_good_3411_1
// Notes and useful links: // This conversation (https://www.sourceware.org/ml/gdb/2009-02/msg00100.html) suggests GDB clients usually ignore error codes // Useful, but not to be blindly trusted - http://www.embecosm.com/appnotes/ean4/embecosm-howto-rsp-server-ean4-issue-2.html // https://github.com/llvm-mirror/lldb/bl...
./CrossVul/dataset_final_sorted/CWE-787/c/good_3411_1
crossvul-cpp_data_bad_1805_1
/* $Id$ */ /* * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * 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-787/c/bad_1805_1
crossvul-cpp_data_bad_3295_0
/* * Pictor/PC Paint decoder * Copyright (c) 2010 Peter Ross <pross@xvid.org> * * 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...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_3295_0
crossvul-cpp_data_bad_3375_0
/********************************************************************** regparse.c - Oniguruma (regular expression library) **********************************************************************/ /*- * Copyright (c) 2002-2016 K.Kosako <sndgk393 AT ybb DOT ne DOT jp> * All rights reserved. * * Redistribution an...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_3375_0
crossvul-cpp_data_bad_4401_0
/* * PKCS15 emulation layer for Oberthur card. * * Copyright (C) 2010, Viktor Tarasov <vtarasov@opentrust.com> * Copyright (C) 2005, Andrea Frigido <andrea@frisoft.it> * Copyright (C) 2005, Sirio Capizzi <graaf@virgilio.it> * Copyright (C) 2004, Antonino Iacono <ant_iacono@tin.it> * Copyright (C) 2003, Olaf Kirc...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_4401_0
crossvul-cpp_data_bad_5479_1
/* $Id$ */ /* * Copyright (c) 1996-1997 Sam Leffler * Copyright (c) 1996 Pixar * * 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 notice appear in * al...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_5479_1
crossvul-cpp_data_bad_2457_0
// SPDX-License-Identifier: GPL-2.0-only /* * Simple NUMA memory policy for the Linux kernel. * * Copyright 2003,2004 Andi Kleen, SuSE Labs. * (C) Copyright 2005 Christoph Lameter, Silicon Graphics, Inc. * * NUMA policy allows the user to give hints in which node(s) memory should * be allocated. * * Support fo...
./CrossVul/dataset_final_sorted/CWE-787/c/bad_2457_0