id
stringlengths
25
30
content
stringlengths
14
942k
max_stars_repo_path
stringlengths
49
55
crossvul-cpp_data_bad_5262_0
/* +----------------------------------------------------------------------+ | Zend Engine | +----------------------------------------------------------------------+ | Copyright (c) 1998-2016 Zend Technologies Ltd. (http://www.zend.com) | +---------...
./CrossVul/dataset_final_sorted/CWE-190/c/bad_5262_0
crossvul-cpp_data_good_4425_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-190/c/good_4425_0
crossvul-cpp_data_bad_797_0
#include "first.h" #include "burl.h" #include <string.h> #include "buffer.h" #include "base64.h" static const char hex_chars_uc[] = "0123456789ABCDEF"; /* everything except: ! $ & ' ( ) * + , - . / 0-9 : ; = ? @ A-Z _ a-z ~ */ static const char encoded_chars_http_uri_reqd[] = { /* 0 1 2 3 4 5 6 7 8 9 ...
./CrossVul/dataset_final_sorted/CWE-190/c/bad_797_0
crossvul-cpp_data_good_5223_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-190/c/good_5223_1
crossvul-cpp_data_bad_4015_2
404: Not Found
./CrossVul/dataset_final_sorted/CWE-190/c/bad_4015_2
crossvul-cpp_data_good_620_0
/* * Fast Userspace Mutexes (which I call "Futexes!"). * (C) Rusty Russell, IBM 2002 * * Generalized futexes, futex requeueing, misc fixes by Ingo Molnar * (C) Copyright 2003 Red Hat Inc, All Rights Reserved * * Removed page pinning, fix privately mapped COW pages and other cleanups * (C) Copyright 2003, ...
./CrossVul/dataset_final_sorted/CWE-190/c/good_620_0
crossvul-cpp_data_good_2492_0
#include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <sys/ioctl.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/mman.h> #include <fcntl.h> #include <limits.h> #include <inttypes.h> /* * PoC By Scott Bauer * Bug found by derrek */ static const char *dev = "/dev/qce"; #define QCEDEV_M...
./CrossVul/dataset_final_sorted/CWE-190/c/good_2492_0
crossvul-cpp_data_good_1433_0
/* exif-data.c * * Copyright (c) 2001 Lutz Mueller <lutz@users.sourceforge.net> * * 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 of the License, or (at your opt...
./CrossVul/dataset_final_sorted/CWE-190/c/good_1433_0
crossvul-cpp_data_bad_1943_1
/* SDSLib 2.0 -- A C dynamic strings library * * Copyright (c) 2006-2015, Salvatore Sanfilippo <antirez at gmail dot com> * Copyright (c) 2015, Oran Agra * Copyright (c) 2015, Redis Labs, Inc * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permit...
./CrossVul/dataset_final_sorted/CWE-190/c/bad_1943_1
crossvul-cpp_data_bad_111_1
404: Not Found
./CrossVul/dataset_final_sorted/CWE-190/c/bad_111_1
crossvul-cpp_data_good_540_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-190/c/good_540_0
crossvul-cpp_data_good_3885_3
/* 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-190/c/good_3885_3
crossvul-cpp_data_good_496_0
/* Core extension modules are built-in on some platforms (e.g. Windows). */ #ifdef Py_BUILD_CORE #define Py_BUILD_CORE_BUILTIN #undef Py_BUILD_CORE #endif #include "Python.h" #include "structmember.h" PyDoc_STRVAR(pickle_module_doc, "Optimized C implementation for the Python pickle module."); /*[clinic input] modul...
./CrossVul/dataset_final_sorted/CWE-190/c/good_496_0
crossvul-cpp_data_bad_5223_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-190/c/bad_5223_1
crossvul-cpp_data_good_3121_0
/* * Copyright © 2014 Broadcom * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, dis...
./CrossVul/dataset_final_sorted/CWE-190/c/good_3121_0
crossvul-cpp_data_good_5400_1
/* * Copyright (c) 1999-2000 Image Power, Inc. and the University of * British Columbia. * Copyright (c) 2001-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 P...
./CrossVul/dataset_final_sorted/CWE-190/c/good_5400_1
crossvul-cpp_data_bad_207_1
// SPDX-License-Identifier: GPL-2.0 /* * Implement CPU time clocks for the POSIX clock interface. */ #include <linux/sched/signal.h> #include <linux/sched/cputime.h> #include <linux/posix-timers.h> #include <linux/errno.h> #include <linux/math64.h> #include <linux/uaccess.h> #include <linux/kernel_stat.h> #include <...
./CrossVul/dataset_final_sorted/CWE-190/c/bad_207_1
crossvul-cpp_data_bad_400_0
/* * Description: network buf manager * History: yang@haipo.me, 2016/03/16, create */ # include <errno.h> # include <string.h> # include "nw_buf.h" # define NW_BUF_POOL_INIT_SIZE 64 # define NW_CACHE_INIT_SIZE 64 size_t nw_buf_size(nw_buf *buf) { return buf->wpos - buf->rpos; } size_t nw_buf_avail(nw_...
./CrossVul/dataset_final_sorted/CWE-190/c/bad_400_0
crossvul-cpp_data_good_5375_0
/* * Copyright (C) 2012 Red Hat, Inc. All rights reserved. * Author: Alex Williamson <alex.williamson@redhat.com> * * 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. * * Der...
./CrossVul/dataset_final_sorted/CWE-190/c/good_5375_0
crossvul-cpp_data_good_4988_0
/* +----------------------------------------------------------------------+ | PHP Version 7 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2016 The PHP Group | +--------------...
./CrossVul/dataset_final_sorted/CWE-190/c/good_4988_0
crossvul-cpp_data_bad_5181_0
/*- * Copyright (c) 2003-2007 Tim Kientzle * Copyright (c) 2009 Andreas Henriksson <andreas@fatal.se> * Copyright (c) 2009-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 * ...
./CrossVul/dataset_final_sorted/CWE-190/c/bad_5181_0
crossvul-cpp_data_bad_3028_0
/* * fs/f2fs/data.c * * Copyright (c) 2012 Samsung Electronics Co., Ltd. * http://www.samsung.com/ * * 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 <l...
./CrossVul/dataset_final_sorted/CWE-190/c/bad_3028_0
crossvul-cpp_data_good_5412_0
/* * Copyright (c) 1999-2000 Image Power, Inc. and the University of * British Columbia. * Copyright (c) 2001-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 P...
./CrossVul/dataset_final_sorted/CWE-190/c/good_5412_0
crossvul-cpp_data_good_5177_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-190/c/good_5177_0
crossvul-cpp_data_bad_1834_6
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-190/c/bad_1834_6
crossvul-cpp_data_bad_3153_0
/* 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. */ /* * spellfile.c: code for reading and wri...
./CrossVul/dataset_final_sorted/CWE-190/c/bad_3153_0
crossvul-cpp_data_good_5162_0
/*--------------------------------------------------------------------------- pngquant: RGBA -> RGBA-palette quantization program rwpng.c --------------------------------------------------------------------------- © 1998-2000 by Greg Roelofs. © 2009-2015 by Kornel Lesiński. All rights res...
./CrossVul/dataset_final_sorted/CWE-190/c/good_5162_0
crossvul-cpp_data_bad_400_3
/* * Description: * History: yang@haipo.me, 2017/04/26, create */ # include <stdbool.h> # include <openssl/sha.h> # include "ut_log.h" # include "ut_misc.h" # include "ut_base64.h" # include "ut_ws_svr.h" struct ws_frame { uint8_t fin; uint8_t opcode; uint64_t payload_len; void ...
./CrossVul/dataset_final_sorted/CWE-190/c/bad_400_3
crossvul-cpp_data_bad_3179_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. */ #include "vim.h" #ifdef AMIGA # include <...
./CrossVul/dataset_final_sorted/CWE-190/c/bad_3179_1
crossvul-cpp_data_bad_966_0
// SPDX-License-Identifier: GPL-2.0-only /* * linux/drivers/block/floppy.c * * Copyright (C) 1991, 1992 Linus Torvalds * Copyright (C) 1993, 1994 Alain Knaff * Copyright (C) 1998 Alan Cox */ /* * 02.12.91 - Changed to static variables to indicate need for reset * and recalibrate. This makes some things e...
./CrossVul/dataset_final_sorted/CWE-190/c/bad_966_0
crossvul-cpp_data_bad_5395_2
/* * The Python Imaging Library. * * standard memory mapping interface for the Imaging library * * history: * 1998-03-05 fl added Win32 read mapping * 1999-02-06 fl added "I;16" support * 2003-04-21 fl added PyImaging_MapBuffer primitive * * Copyright (c) 1998-2003 by Secret Labs AB. * Copyright (c) 20...
./CrossVul/dataset_final_sorted/CWE-190/c/bad_5395_2
crossvul-cpp_data_good_3089_0
/* +----------------------------------------------------------------------+ | Zend Engine | +----------------------------------------------------------------------+ | Copyright (c) 1998-2016 Zend Technologies Ltd. (http://www.zend.com) | +---------...
./CrossVul/dataset_final_sorted/CWE-190/c/good_3089_0
crossvul-cpp_data_good_582_0
#ifndef IGNOREALL /* dcraw.c -- Dave Coffin's raw photo decoder Copyright 1997-2015 by Dave Coffin, dcoffin a cybercom o net This is a command-line ANSI C program to convert raw photos from any digital camera on any computer running any operating system. No license is required to download and use dcraw...
./CrossVul/dataset_final_sorted/CWE-190/c/good_582_0
crossvul-cpp_data_bad_3237_0
/* Capstone Disassembly Engine */ /* By Satoshi Tanda <tanda.sat@gmail.com>, 2016 */ #include "winkernel_mm.h" #include <ntddk.h> // A pool tag for memory allocation static const ULONG CS_WINKERNEL_POOL_TAG = 'kwsC'; // A structure to implement realloc() typedef struct _CS_WINKERNEL_MEMBLOCK { size_t size; // A ...
./CrossVul/dataset_final_sorted/CWE-190/c/bad_3237_0
crossvul-cpp_data_good_207_2
/* * linux/kernel/posix-timers.c * * * 2002-10-15 Posix Clocks & timers * by George Anzinger george@mvista.com * * Copyright (C) 2002 2003 by MontaVista Software. * * 2004-06-01 Fix CLOCK_REALTIME clock/timer TIMER_ABSTIME bug. * Copyright (C) 2004 Boris Hu * * This...
./CrossVul/dataset_final_sorted/CWE-190/c/good_207_2
crossvul-cpp_data_bad_3089_0
/* +----------------------------------------------------------------------+ | Zend Engine | +----------------------------------------------------------------------+ | Copyright (c) 1998-2016 Zend Technologies Ltd. (http://www.zend.com) | +---------...
./CrossVul/dataset_final_sorted/CWE-190/c/bad_3089_0
crossvul-cpp_data_bad_5498_0
/* * Generic ring buffer * * Copyright (C) 2008 Steven Rostedt <srostedt@redhat.com> */ #include <linux/trace_events.h> #include <linux/ring_buffer.h> #include <linux/trace_clock.h> #include <linux/trace_seq.h> #include <linux/spinlock.h> #include <linux/irq_work.h> #include <linux/uaccess.h> #include <linux/hardir...
./CrossVul/dataset_final_sorted/CWE-190/c/bad_5498_0
crossvul-cpp_data_good_3153_0
/* 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. */ /* * spellfile.c: code for reading and wri...
./CrossVul/dataset_final_sorted/CWE-190/c/good_3153_0
crossvul-cpp_data_bad_3983_1
/* bson.c */ /* Copyright 2009, 2010 10gen Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required b...
./CrossVul/dataset_final_sorted/CWE-190/c/bad_3983_1
crossvul-cpp_data_bad_5375_1
/* * VFIO PCI interrupt handling * * Copyright (C) 2012 Red Hat, Inc. All rights reserved. * Author: Alex Williamson <alex.williamson@redhat.com> * * 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 F...
./CrossVul/dataset_final_sorted/CWE-190/c/bad_5375_1
crossvul-cpp_data_bad_711_0
/* ** The Sleuth Kit ** ** This software is subject to the IBM Public License ver. 1.0, ** which was displayed prior to download and is included in the readme.txt ** file accompanying the Sleuth Kit files. It may also be requested from: ** Crucial Security Inc. ** 14900 Conference Center Drive ** Chantilly, VA 20151 *...
./CrossVul/dataset_final_sorted/CWE-190/c/bad_711_0
crossvul-cpp_data_good_111_0
/* * Copyright (C) the libgit2 contributors. All rights reserved. * * This file is part of libgit2, distributed under the GNU GPL v2 with * a Linking Exception. For full terms see the included COPYING file. */ #include "delta.h" /* maximum hash entry list for the same hash bucket */ #define HASH_LIMIT 64 #defin...
./CrossVul/dataset_final_sorted/CWE-190/c/good_111_0
crossvul-cpp_data_good_3179_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. */ #include "vim.h" #ifdef AMIGA # include <...
./CrossVul/dataset_final_sorted/CWE-190/c/good_3179_1
crossvul-cpp_data_good_3983_1
/* bson.c */ /* Copyright 2009, 2010 10gen Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required b...
./CrossVul/dataset_final_sorted/CWE-190/c/good_3983_1
crossvul-cpp_data_bad_5375_0
/* * Copyright (C) 2012 Red Hat, Inc. All rights reserved. * Author: Alex Williamson <alex.williamson@redhat.com> * * 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. * * Der...
./CrossVul/dataset_final_sorted/CWE-190/c/bad_5375_0
crossvul-cpp_data_good_401_3
/* * Description: * History: yang@haipo.me, 2017/04/26, create */ # include <stdbool.h> # include <openssl/sha.h> # include "ut_log.h" # include "ut_misc.h" # include "ut_base64.h" # include "ut_ws_svr.h" struct ws_frame { uint8_t fin; uint8_t opcode; uint64_t payload_len; void ...
./CrossVul/dataset_final_sorted/CWE-190/c/good_401_3
crossvul-cpp_data_good_673_0
/** * FreeRDP: A Remote Desktop Protocol Implementation * Graphical Objects * * Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com> * 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-190/c/good_673_0
crossvul-cpp_data_bad_4867_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-190/c/bad_4867_0
crossvul-cpp_data_bad_1943_0
/* Configuration file parsing and CONFIG GET/SET commands implementation. * * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions ...
./CrossVul/dataset_final_sorted/CWE-190/c/bad_1943_0
crossvul-cpp_data_bad_400_1
/* * Description: * History: yang@haipo.me, 2016/03/30, create */ # include <stdlib.h> # include <assert.h> # include "ut_rpc.h" # include "ut_crc32.h" # include "ut_misc.h" int rpc_decode(nw_ses *ses, void *data, size_t max) { if (max < RPC_PKG_HEAD_SIZE) return 0; rpc_pkg *pkg = data; ...
./CrossVul/dataset_final_sorted/CWE-190/c/bad_400_1
crossvul-cpp_data_bad_3973_0
/* * ssh.c * * Copyright (C) 2009-2011 by ipoque GmbH * Copyright (C) 2011-20 - ntop.org * * This file is part of nDPI, an open source deep packet inspection * library based on the OpenDPI and PACE technology by ipoque GmbH * * nDPI is free software: you can redistribute it and/or modify * it under the terms ...
./CrossVul/dataset_final_sorted/CWE-190/c/bad_3973_0
crossvul-cpp_data_good_400_1
/* * Description: * History: yang@haipo.me, 2016/03/30, create */ # include <stdlib.h> # include <assert.h> # include "ut_rpc.h" # include "ut_crc32.h" # include "ut_misc.h" int rpc_decode(nw_ses *ses, void *data, size_t max) { if (max < RPC_PKG_HEAD_SIZE) return 0; rpc_pkg *pkg = data; ...
./CrossVul/dataset_final_sorted/CWE-190/c/good_400_1
crossvul-cpp_data_bad_131_0
/* ** {====================================================== ** Library for packing/unpacking structures. ** $Id: struct.c,v 1.7 2018/05/11 22:04:31 roberto Exp $ ** See Copyright Notice at the end of this file ** ======================================================= */ /* ** Valid formats: ** > - big endian ** < - ...
./CrossVul/dataset_final_sorted/CWE-190/c/bad_131_0
crossvul-cpp_data_bad_35_0
/** * miniSphere JavaScript game engine * Copyright (c) 2015-2018, Fat Cerberus * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the a...
./CrossVul/dataset_final_sorted/CWE-190/c/bad_35_0
crossvul-cpp_data_bad_222_0
/* * A framebuffer driver for VBE 2.0+ compliant video cards * * (c) 2007 Michal Januszewski <spock@gentoo.org> * Loosely based upon the vesafb driver. * */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/init.h> #include <linux/module.h> #include <linux/moduleparam.h> #include <linux/skbuff.h> ...
./CrossVul/dataset_final_sorted/CWE-190/c/bad_222_0
crossvul-cpp_data_bad_3983_0
/* bcon.c */ /* Copyright 2009-2012 10gen Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
./CrossVul/dataset_final_sorted/CWE-190/c/bad_3983_0
crossvul-cpp_data_good_1203_0
/* * ***** BEGIN LICENSE BLOCK ***** * Version: MIT * * Portions created by Alan Antonuk are Copyright (c) 2012-2014 * Alan Antonuk. All Rights Reserved. * * Portions created by VMware are Copyright (c) 2007-2012 VMware, Inc. * All Rights Reserved. * * Portions created by Tony Garnock-Jones are Copyright (c) ...
./CrossVul/dataset_final_sorted/CWE-190/c/good_1203_0
crossvul-cpp_data_bad_402_3
/* * Description: * History: yang@haipo.me, 2017/04/26, create */ # include <stdbool.h> # include <openssl/sha.h> # include "ut_log.h" # include "ut_misc.h" # include "ut_base64.h" # include "ut_ws_svr.h" struct ws_frame { uint8_t fin; uint8_t opcode; uint64_t payload_len; void ...
./CrossVul/dataset_final_sorted/CWE-190/c/bad_402_3
crossvul-cpp_data_good_3028_0
/* * fs/f2fs/data.c * * Copyright (c) 2012 Samsung Electronics Co., Ltd. * http://www.samsung.com/ * * 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 <l...
./CrossVul/dataset_final_sorted/CWE-190/c/good_3028_0
crossvul-cpp_data_bad_3027_0
/* * Performance events core code: * * Copyright (C) 2008 Thomas Gleixner <tglx@linutronix.de> * Copyright (C) 2008-2011 Red Hat, Inc., Ingo Molnar * Copyright (C) 2008-2011 Red Hat, Inc., Peter Zijlstra * Copyright © 2009 Paul Mackerras, IBM Corp. <paulus@au1.ibm.com> * * For licensing details see kernel...
./CrossVul/dataset_final_sorted/CWE-190/c/bad_3027_0
crossvul-cpp_data_bad_5167_1
#include <math.h> #include <string.h> #include <stdlib.h> #include "gd.h" #include "gdhelpers.h" #include "php.h" #ifdef _MSC_VER # if _MSC_VER >= 1300 /* in MSVC.NET these are available but only for __cplusplus and not _MSC_EXTENSIONS */ # if !defined(_MSC_EXTENSIONS) && defined(__cplusplus) # define HAVE_FABSF ...
./CrossVul/dataset_final_sorted/CWE-190/c/bad_5167_1
crossvul-cpp_data_good_401_0
/* * Description: network buf manager * History: yang@haipo.me, 2016/03/16, create */ # include <errno.h> # include <string.h> # include "nw_buf.h" # define NW_BUF_POOL_INIT_SIZE 64 # define NW_BUF_POOL_MAX_SIZE 65535 # define NW_CACHE_INIT_SIZE 64 # define NW_CACHE_MAX_SIZE 65535 size_t nw_buf_size(n...
./CrossVul/dataset_final_sorted/CWE-190/c/good_401_0
crossvul-cpp_data_bad_352_9
//--------------------------------------------------------------------------------- // // Little Color Management System // Copyright (c) 1998-2017 Marti Maria Saguer // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the "Softwar...
./CrossVul/dataset_final_sorted/CWE-190/c/bad_352_9
crossvul-cpp_data_bad_582_0
#ifndef IGNOREALL /* dcraw.c -- Dave Coffin's raw photo decoder Copyright 1997-2015 by Dave Coffin, dcoffin a cybercom o net This is a command-line ANSI C program to convert raw photos from any digital camera on any computer running any operating system. No license is required to download and use dcraw...
./CrossVul/dataset_final_sorted/CWE-190/c/bad_582_0
crossvul-cpp_data_good_402_3
/* * Description: * History: yang@haipo.me, 2017/04/26, create */ # include <stdbool.h> # include <openssl/sha.h> # include "ut_log.h" # include "ut_misc.h" # include "ut_base64.h" # include "ut_ws_svr.h" struct ws_frame { uint8_t fin; uint8_t opcode; uint64_t payload_len; void ...
./CrossVul/dataset_final_sorted/CWE-190/c/good_402_3
crossvul-cpp_data_bad_496_0
/* Core extension modules are built-in on some platforms (e.g. Windows). */ #ifdef Py_BUILD_CORE #define Py_BUILD_CORE_BUILTIN #undef Py_BUILD_CORE #endif #include "Python.h" #include "structmember.h" PyDoc_STRVAR(pickle_module_doc, "Optimized C implementation for the Python pickle module."); /*[clinic input] modul...
./CrossVul/dataset_final_sorted/CWE-190/c/bad_496_0
crossvul-cpp_data_bad_4170_4
// Copyright (c) Open Enclave SDK contributors. // Licensed under the MIT License. #include <openenclave/enclave.h> #include <openenclave/corelibc/stdio.h> #include <openenclave/corelibc/stdlib.h> #include <openenclave/corelibc/string.h> #include <openenclave/internal/print.h> #include <openenclave/internal/syscall/f...
./CrossVul/dataset_final_sorted/CWE-552/c/bad_4170_4
crossvul-cpp_data_good_4170_4
// Copyright (c) Open Enclave SDK contributors. // Licensed under the MIT License. #include <openenclave/enclave.h> #include <openenclave/corelibc/stdio.h> #include <openenclave/corelibc/stdlib.h> #include <openenclave/corelibc/string.h> #include <openenclave/internal/print.h> #include <openenclave/internal/syscall/f...
./CrossVul/dataset_final_sorted/CWE-552/c/good_4170_4
crossvul-cpp_data_good_1535_1
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 1993 by OpenVision Technologies, Inc. * * Permission to use, copy, modify, distribute, and sell this software * and its documentation for any purpose is hereby granted without fee, * provided that the above copyright notice appears in a...
./CrossVul/dataset_final_sorted/CWE-18/c/good_1535_1
crossvul-cpp_data_bad_1535_1
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 1993 by OpenVision Technologies, Inc. * * Permission to use, copy, modify, distribute, and sell this software * and its documentation for any purpose is hereby granted without fee, * provided that the above copyright notice appears in a...
./CrossVul/dataset_final_sorted/CWE-18/c/bad_1535_1
crossvul-cpp_data_bad_824_0
//////////////////////////////////////////////////////////////////////////// // **** WAVPACK **** // // Hybrid Lossless Wavefile Compressor // // Copyright (c) 1998 - 2019 David Bryant. // // ...
./CrossVul/dataset_final_sorted/CWE-824/c/bad_824_0
crossvul-cpp_data_good_250_0
/** * @file * POP network mailbox * * @authors * Copyright (C) 2000-2002 Vsevolod Volkov <vvv@mutt.org.ua> * Copyright (C) 2006-2007,2009 Rocco Rutte <pdmef@gmx.net> * * @copyright * 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-824/c/good_250_0
crossvul-cpp_data_good_4684_0
/* 0) alias file format. alternating lines of alias and dir (this enables embedded whitespace in dir and alias without quoting rules) optional blank lines optional lines beginning with '#' as comments (no you can't put a '#' just anywhere) 1) data structure for alias list nodes. typedef struct DirAlias_ { ...
./CrossVul/dataset_final_sorted/CWE-824/c/good_4684_0
crossvul-cpp_data_good_168_0
/* ** kernel.c - Kernel module ** ** See Copyright Notice in mruby.h */ #include <mruby.h> #include <mruby/array.h> #include <mruby/hash.h> #include <mruby/class.h> #include <mruby/proc.h> #include <mruby/string.h> #include <mruby/variable.h> #include <mruby/error.h> #include <mruby/istruct.h> typedef enum { NOEX_P...
./CrossVul/dataset_final_sorted/CWE-824/c/good_168_0
crossvul-cpp_data_bad_4684_0
/* 0) alias file format. alternating lines of alias and dir (this enables embedded whitespace in dir and alias without quoting rules) optional blank lines optional lines beginning with '#' as comments (no you can't put a '#' just anywhere) 1) data structure for alias list nodes. typedef struct DirAlias_ { ...
./CrossVul/dataset_final_sorted/CWE-824/c/bad_4684_0
crossvul-cpp_data_bad_250_0
/** * @file * POP network mailbox * * @authors * Copyright (C) 2000-2002 Vsevolod Volkov <vvv@mutt.org.ua> * Copyright (C) 2006-2007,2009 Rocco Rutte <pdmef@gmx.net> * * @copyright * 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-824/c/bad_250_0
crossvul-cpp_data_bad_168_0
/* ** kernel.c - Kernel module ** ** See Copyright Notice in mruby.h */ #include <mruby.h> #include <mruby/array.h> #include <mruby/hash.h> #include <mruby/class.h> #include <mruby/proc.h> #include <mruby/string.h> #include <mruby/variable.h> #include <mruby/error.h> #include <mruby/istruct.h> typedef enum { NOEX_P...
./CrossVul/dataset_final_sorted/CWE-824/c/bad_168_0
crossvul-cpp_data_good_824_0
//////////////////////////////////////////////////////////////////////////// // **** WAVPACK **** // // Hybrid Lossless Wavefile Compressor // // Copyright (c) 1998 - 2019 David Bryant. // // ...
./CrossVul/dataset_final_sorted/CWE-824/c/good_824_0
crossvul-cpp_data_bad_3579_1
/* Copyright (C) 2005-2011, Thorvald Natvig <thorvald@natvig.com> Copyright (C) 2009-2011, Stefan Hacker <dd0t@users.sourceforge.net> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: -...
./CrossVul/dataset_final_sorted/CWE-310/cpp/bad_3579_1
crossvul-cpp_data_good_2259_0
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) | | Copyrigh...
./CrossVul/dataset_final_sorted/CWE-310/cpp/good_2259_0
crossvul-cpp_data_bad_3579_0
/* Copyright (C) 2005-2011, Thorvald Natvig <thorvald@natvig.com> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice,...
./CrossVul/dataset_final_sorted/CWE-310/cpp/bad_3579_0
crossvul-cpp_data_bad_2259_0
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) | | Copyrigh...
./CrossVul/dataset_final_sorted/CWE-310/cpp/bad_2259_0
crossvul-cpp_data_good_3579_1
/* Copyright (C) 2005-2011, Thorvald Natvig <thorvald@natvig.com> Copyright (C) 2009-2011, Stefan Hacker <dd0t@users.sourceforge.net> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: -...
./CrossVul/dataset_final_sorted/CWE-310/cpp/good_3579_1
crossvul-cpp_data_good_3579_0
/* Copyright (C) 2005-2011, Thorvald Natvig <thorvald@natvig.com> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice,...
./CrossVul/dataset_final_sorted/CWE-310/cpp/good_3579_0
crossvul-cpp_data_bad_1445_5
/* ssl/s3_srvr.c -*- mode:C; c-file-style: "eay" -*- */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * * This package is an SSL implementation written * by Eric Young (eay@cryptsoft.com). * The implementation was written so as to conform with Netscapes SSL. * * This library i...
./CrossVul/dataset_final_sorted/CWE-310/c/bad_1445_5
crossvul-cpp_data_good_1445_5
/* ssl/s3_srvr.c -*- mode:C; c-file-style: "eay" -*- */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * * This package is an SSL implementation written * by Eric Young (eay@cryptsoft.com). * The implementation was written so as to conform with Netscapes SSL. * * This library i...
./CrossVul/dataset_final_sorted/CWE-310/c/good_1445_5
crossvul-cpp_data_bad_4932_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-310/c/bad_4932_0
crossvul-cpp_data_bad_5666_2
/* * Asynchronous Cryptographic Hash operations. * * This is the asynchronous version of hash.c with notification of * completion via a callback. * * Copyright (c) 2008 Loc Ho <lho@amcc.com> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public ...
./CrossVul/dataset_final_sorted/CWE-310/c/bad_5666_2
crossvul-cpp_data_bad_3783_3
/* * Copyright (C) 2007 Oracle. All rights reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License v2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHO...
./CrossVul/dataset_final_sorted/CWE-310/c/bad_3783_3
crossvul-cpp_data_bad_2309_4
/* crypto/x509/x_all.c */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * * This package is an SSL implementation written * by Eric Young (eay@cryptsoft.com). * The implementation was written so as to conform with Netscapes SSL. * * This library is free for commercial and non-...
./CrossVul/dataset_final_sorted/CWE-310/c/bad_2309_4
crossvul-cpp_data_good_5329_0
/* * 'OpenSSL for Ruby' project * Copyright (C) 2001-2002 Michal Rokos <m.rokos@sh.cvut.cz> * All rights reserved. */ /* * This program is licensed under the same licence as Ruby. * (See the file 'LICENCE'.) */ #include "ossl.h" #define NewCipher(klass) \ TypedData_Wrap_Struct((klass), &ossl_cipher_type, 0...
./CrossVul/dataset_final_sorted/CWE-310/c/good_5329_0
crossvul-cpp_data_bad_3783_4
/* * Copyright (C) 2007 Oracle. All rights reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License v2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHO...
./CrossVul/dataset_final_sorted/CWE-310/c/bad_3783_4
crossvul-cpp_data_bad_2152_1
/* ssl/s3_clnt.c */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * * This package is an SSL implementation written * by Eric Young (eay@cryptsoft.com). * The implementation was written so as to conform with Netscapes SSL. * * This library is free for commercial and non-commer...
./CrossVul/dataset_final_sorted/CWE-310/c/bad_2152_1
crossvul-cpp_data_good_2310_0
/* crypto/asn1/a_verify.c */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * * This package is an SSL implementation written * by Eric Young (eay@cryptsoft.com). * The implementation was written so as to conform with Netscapes SSL. * * This library is free for commercial and n...
./CrossVul/dataset_final_sorted/CWE-310/c/good_2310_0
crossvul-cpp_data_good_892_0
/* cipher-gcm.c - Generic Galois Counter Mode implementation * Copyright (C) 2013 Dmitry Eremin-Solenikov * Copyright (C) 2013, 2018-2019 Jussi Kivilinna <jussi.kivilinna@iki.fi> * * This file is part of Libgcrypt. * * Libgcrypt is free software; you can redistribute it and/or modify * it under the terms of the...
./CrossVul/dataset_final_sorted/CWE-310/c/good_892_0
crossvul-cpp_data_good_2309_1
/* crypto/asn1/a_verify.c */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * * This package is an SSL implementation written * by Eric Young (eay@cryptsoft.com). * The implementation was written so as to conform with Netscapes SSL. * * This library is free for commercial and n...
./CrossVul/dataset_final_sorted/CWE-310/c/good_2309_1
crossvul-cpp_data_bad_3428_0
/* * %CopyrightBegin% * * Copyright Ericsson AB 2010-2011. All Rights Reserved. * * The contents of this file are subject to the Erlang Public License, * Version 1.1, (the "License"); you may not use this file except in * compliance with the License. You should have received a copy of the * Erlang Public Licen...
./CrossVul/dataset_final_sorted/CWE-310/c/bad_3428_0
crossvul-cpp_data_bad_5666_6
/* * Cryptographic API. * * RNG operations. * * Copyright (c) 2008 Neil Horman <nhorman@tuxdriver.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 of the License,...
./CrossVul/dataset_final_sorted/CWE-310/c/bad_5666_6
crossvul-cpp_data_good_5666_5
/* * Cryptographic API. * * Partial (de)compression operations. * * Copyright 2008 Sony 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; version 2 of the License. * * Thi...
./CrossVul/dataset_final_sorted/CWE-310/c/good_5666_5
crossvul-cpp_data_bad_5867_1
/* * ssl.c v0.0.3 * Copyright (C) 2000 -- DaP <profeta@freemail.c3.hu> * * 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-310/c/bad_5867_1