id stringlengths 25 30 | content stringlengths 14 942k | max_stars_repo_path stringlengths 49 55 |
|---|---|---|
crossvul-cpp_data_bad_938_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_938_0 |
crossvul-cpp_data_good_1611_5 | /* t1mac
*
* This program converts Type 1 fonts in PFA or PFB format into Macintosh Type
* 1 fonts stored in MacBinary (I or II), AppleSingle, AppleDouble, BinHex, or
* raw resource fork format.
*
* Copyright (c) 2000-2013 Eddie Kohler
*
* Permission is hereby granted, free of charge, to any person obtaining a
... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_1611_5 |
crossvul-cpp_data_good_3087_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-119/c/good_3087_1 |
crossvul-cpp_data_bad_345_7 | /*
* sc.c: General functions
*
* Copyright (C) 2001, 2002 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 Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, ... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_345_7 |
crossvul-cpp_data_bad_1299_0 | /*
* card-cac1.c: Support for legacy CAC-1
* card-default.c: Support for cards with no driver
*
* Copyright (C) 2001, 2002 Juha Yrjölä <juha.yrjola@iki.fi>
* Copyright (C) 2005,2006,2007,2008,2009,2010 Douglas E. Engert <deengert@anl.gov>
* Copyright (C) 2006, Identity Alliance, Thomas Harning <thomas.harning@id... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_1299_0 |
crossvul-cpp_data_bad_2414_0 | /*
* symlink.c
*
* PURPOSE
* Symlink handling routines for the OSTA-UDF(tm) filesystem.
*
* COPYRIGHT
* This file is distributed under the terms of the GNU General Public
* License (GPL). Copies of the GPL can be obtained from:
* ftp://prep.ai.mit.edu/pub/gnu/GPL
* Each contributing author retains all rights... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_2414_0 |
crossvul-cpp_data_bad_341_5 | /*
* 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.
*
* This library is distributed in the hope that it wi... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_341_5 |
crossvul-cpp_data_good_5111_0 | /* cosine.c
*
* CoSine IPNOS L2 debug output parsing
* Copyright (c) 2002 by Motonori Shindo <motonori@shin.do>
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Pub... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_5111_0 |
crossvul-cpp_data_bad_4905_0 | /**
* eCryptfs: Linux filesystem encryption layer
*
* Copyright (C) 2008 International Business Machines Corp.
* Author(s): Michael A. Halcrow <mahalcro@us.ibm.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... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_4905_0 |
crossvul-cpp_data_bad_5368_1 | /* Copyright (c) 2001 Matej Pfajfar.
* Copyright (c) 2001-2004, Roger Dingledine.
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
* Copyright (c) 2007-2015, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file buffers.c
* \brief Implements a generic interface buffer. Buff... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_5368_1 |
crossvul-cpp_data_good_3322_0 | /*
* irc-ctcp.c - IRC CTCP protocol
*
* Copyright (C) 2003-2017 Sébastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
* WeeChat is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* th... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_3322_0 |
crossvul-cpp_data_bad_734_1 | /* This file is part of libmspack.
* (C) 2003-2018 Stuart Caie.
*
* 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
*
* For further details, see the file COPYING.LIB distributed with libmspack
*/
/* CHM decompress... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_734_1 |
crossvul-cpp_data_bad_3020_0 | /*
* Copyright (c) 2014-2015 Hisilicon Limited.
*
* 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.
*/
#include <l... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_3020_0 |
crossvul-cpp_data_good_395_5 | /*
Copyright 1996-2014 Han The Thanh <thanh@pdftex.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 version 2 of the License, or
(at your option) any later version.
This program is distri... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_395_5 |
crossvul-cpp_data_good_5280_2 | /* Generated by re2c 0.13.7.5 */
#line 1 "ext/standard/var_unserializer.re"
/*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_5280_2 |
crossvul-cpp_data_good_651_2 | /*
* GPAC - Multimedia Framework C SDK
*
* Authors: Jean Le Feuvre, Romain Bouqueau, Cyril Concolato
* 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 unde... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_651_2 |
crossvul-cpp_data_good_2133_0 | /***************************************************************************
* Copyright (C) 2010-2012 by Bruno Prémont <bonbons@linux-vserver.org> *
* *
* Based on Logitech G13 driver (v0.4) *
* Copyr... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_2133_0 |
crossvul-cpp_data_bad_346_1 | /*
* Support for ePass2003 smart cards
*
* Copyright (C) 2008, Weitao Sun <weitao@ftsafe.com>
* Copyright (C) 2011, Xiaoshuo Wu <xiaoshuo@ftsafe.com>
*
* 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 ... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_346_1 |
crossvul-cpp_data_bad_5263_0 | /*
+----------------------------------------------------------------------+
| PHP Version 7 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2016 The PHP Group |
+---------... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_5263_0 |
crossvul-cpp_data_bad_5762_0 | /*
* Luminary Micro Stellaris Ethernet Controller
*
* Copyright (c) 2007 CodeSourcery.
* Written by Paul Brook
*
* This code is licensed under the GPL.
*/
#include "hw/sysbus.h"
#include "net/net.h"
#include <zlib.h>
//#define DEBUG_STELLARIS_ENET 1
#ifdef DEBUG_STELLARIS_ENET
#define DPRINTF(fmt, ...) \
do { ... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_5762_0 |
crossvul-cpp_data_bad_343_7 | /*
* sc.c: General functions
*
* Copyright (C) 2001, 2002 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 Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, ... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_343_7 |
crossvul-cpp_data_good_341_0 | /*
* card-cac.c: Support for CAC from NIST SP800-73
* card-default.c: Support for cards with no driver
*
* Copyright (C) 2001, 2002 Juha Yrjölä <juha.yrjola@iki.fi>
* Copyright (C) 2005,2006,2007,2008,2009,2010 Douglas E. Engert <deengert@anl.gov>
* Copyright (C) 2006, Identity Alliance, Thomas Harning <thomas.h... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_341_0 |
crossvul-cpp_data_good_3020_2 | /*
* Copyright (c) 2014-2015 Hisilicon Limited.
*
* 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.
*/
#include <l... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_3020_2 |
crossvul-cpp_data_good_3716_0 | /*
* Copyright (C) 2005-2012 Gilles Darold
*
* 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 3 of the License, or
* (at your option) any later version.
*
* This prog... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_3716_0 |
crossvul-cpp_data_bad_2183_1 | /* $Id: miniwget.c,v 1.60 2013/10/07 10:03:16 nanard Exp $ */
/* Project : miniupnp
* Website : http://miniupnp.free.fr/
* Author : Thomas Bernard
* Copyright (c) 2005-2013 Thomas Bernard
* This software is subject to the conditions detailed in the
* LICENCE file provided in this distribution. */
#include <stdio.... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_2183_1 |
crossvul-cpp_data_good_1050_2 | /* -*- coding: utf-8 -*- */
/* Copyright (C) 2000-2012 by George Williams */
/*
* 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, this
* list of ... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_1050_2 |
crossvul-cpp_data_good_340_7 | /*
* sc.c: General functions
*
* Copyright (C) 2001, 2002 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 Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, ... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_340_7 |
crossvul-cpp_data_good_639_0 | /*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2016 The PHP Group |
+---------... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_639_0 |
crossvul-cpp_data_good_4865_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-119/c/good_4865_0 |
crossvul-cpp_data_good_160_4 | /*
* 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-119/c/good_160_4 |
crossvul-cpp_data_good_118_0 | /*
* PowerPC version
* Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
*
* Derived from "arch/m68k/kernel/ptrace.c"
* Copyright (C) 1994 by Hamish Macdonald
* Taken from linux/kernel/ptrace.c and modified for M680x0.
* linux/kernel/ptrace.c is by Ross Biro 1/23/92, edited by Linus Torvalds
*
* M... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_118_0 |
crossvul-cpp_data_good_5127_2 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% W W PPPP GGGG ... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_5127_2 |
crossvul-cpp_data_good_3508_0 | /*
Broadcom B43 wireless driver
DMA ringbuffer and descriptor allocation/management
Copyright (c) 2005, 2006 Michael Buesch <mb@bu3sch.de>
Some code in this file is derived from the b44.c driver
Copyright (C) 2002 David S. Miller
Copyright (C) Pekka Pietikainen
This program is free software; you can ... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_3508_0 |
crossvul-cpp_data_bad_2819_1 | /*
* logger.c - logger plugin for WeeChat: save buffer lines to disk files
*
* Copyright (C) 2003-2017 Sébastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
* WeeChat is free software; you can redistribute it and/or modify
* it under the terms of the GNU Gener... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_2819_1 |
crossvul-cpp_data_good_726_0 | // SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2015-2016, Linaro Limited
* Copyright (c) 2014, STMicroelectronics International N.V.
*/
#include <assert.h>
#include <bench.h>
#include <compiler.h>
#include <initcall.h>
#include <io.h>
#include <kernel/linker.h>
#include <kernel/msg_param.h>
#include <k... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_726_0 |
crossvul-cpp_data_good_2131_5 | /*
* HID driver for some sunplus "special" devices
*
* Copyright (c) 1999 Andreas Gal
* Copyright (c) 2000-2005 Vojtech Pavlik <vojtech@suse.cz>
* Copyright (c) 2005 Michael Haboustak <mike-@cinci.rr.com> for Concept2, Inc
* Copyright (c) 2006-2007 Jiri Kosina
* Copyright (c) 2008 Jiri Slaby
*/
/*
* Thi... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_2131_5 |
crossvul-cpp_data_good_4798_1 | /* $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-119/c/good_4798_1 |
crossvul-cpp_data_bad_5353_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-119/c/bad_5353_1 |
crossvul-cpp_data_good_4787_1 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_4787_1 |
crossvul-cpp_data_good_252_5 | #define TEST_NO_MAIN
#include "acutest.h"
#include "mutt/base64.h"
#include <string.h>
static const char clear[] = "Hello";
static const char encoded[] = "SGVsbG8=";
void test_base64_encode(void)
{
char buffer[16];
size_t len = mutt_b64_encode(buffer, clear, sizeof(clear) - 1, sizeof(buffer));
if (!TEST_CHECK... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_252_5 |
crossvul-cpp_data_good_651_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 / ISO Media File Format sub-project
*
* GPAC is free software; you can redistribute it and/or modify
* it under the terms of the GNU L... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_651_1 |
crossvul-cpp_data_good_731_0 | // SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2014, STMicroelectronics International N.V.
*/
#include <assert.h>
#include <compiler.h>
#include <crypto/crypto.h>
#include <kernel/tee_ta_manager.h>
#include <mm/tee_mmu.h>
#include <string_ext.h>
#include <string.h>
#include <sys/queue.h>
#include <tee_a... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_731_0 |
crossvul-cpp_data_good_3406_1 | /* radare - LGPL - Copyright 2009-2017 - pancake */
#include <string.h>
#include "r_bin.h"
#include "r_config.h"
#include "r_cons.h"
#include "r_core.h"
#define PAIR_WIDTH 9
// TODO: reuse implementation in core/bin.c
static void pair(const char *a, const char *b) {
char ws[16];
int al = strlen (a);
if (!b) {
re... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_3406_1 |
crossvul-cpp_data_bad_342_6 | /*
* pkcs15-sc-hsm.c : Initialize PKCS#15 emulation
*
* Copyright (C) 2012 Andreas Schwier, CardContact, Minden, Germany
*
* 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
*... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_342_6 |
crossvul-cpp_data_good_4779_3 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_4779_3 |
crossvul-cpp_data_bad_252_1 | /**
* @file
* IMAP GSS authentication method
*
* @authors
* Copyright (C) 1999-2001,2005,2009 Brendan Cully <brendan@kublai.com>
*
* @copyright
* 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
* Foun... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_252_1 |
crossvul-cpp_data_bad_3011_0 | /*
* f2fs extent cache support
*
* Copyright (c) 2015 Motorola Mobility
* Copyright (c) 2015 Samsung Electronics
* Authors: Jaegeuk Kim <jaegeuk@kernel.org>
* Chao Yu <chao2.yu@samsung.com>
*
* 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-119/c/bad_3011_0 |
crossvul-cpp_data_good_2038_0 | /*-
* Copyright (c) 2008 Christos Zoulas
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of con... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_2038_0 |
crossvul-cpp_data_good_2157_0 | /*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2014 The PHP Group |
+---------... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_2157_0 |
crossvul-cpp_data_good_3020_3 | /*
* Copyright (c) 2014-2015 Hisilicon Limited.
*
* 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.
*/
#include <l... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_3020_3 |
crossvul-cpp_data_bad_5756_0 | /*
* Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
* Licensed under the GPL
*/
#include <linux/ctype.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <linux/types.h>
#include <asm/uaccess.h>
/*
* ... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_5756_0 |
crossvul-cpp_data_bad_5589_1 | /*
* linux/kernel/printk.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*
* Modified to make sys_syslog() more flexible: added commands to
* return the last 4k of kernel messages, regardless of whether
* they've been read or not. Added option to suppress kernel printk's
* to the console. Added hook for send... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_5589_1 |
crossvul-cpp_data_bad_160_1 | /*
* 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-119/c/bad_160_1 |
crossvul-cpp_data_good_5291_0 | /*
+----------------------------------------------------------------------+
| PHP Version 7 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2016 The PHP Group |
+---------... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_5291_0 |
crossvul-cpp_data_good_342_6 | /*
* pkcs15-sc-hsm.c : Initialize PKCS#15 emulation
*
* Copyright (C) 2012 Andreas Schwier, CardContact, Minden, Germany
*
* 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
*... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_342_6 |
crossvul-cpp_data_good_4233_0 | /* Copyright (C) 2001-2020 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
implied.
This software is distributed under license and may not be copied,
modified or distributed except as expressly authorized under the terms
of the license ... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_4233_0 |
crossvul-cpp_data_bad_2353_0 | /*
* Copyright (c) 1990, 1991, 1993, 1994, 1995, 1996, 1997
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that: (1) source code distributions
* retain the above copyright notice and... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_2353_0 |
crossvul-cpp_data_good_344_5 | /*
* 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.
*
* This library is distributed in the hope that it wi... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_344_5 |
crossvul-cpp_data_bad_3111_0 | /**********************************************************************
* $Id$
*
* Project: MapServer
* Purpose: OGC Filter Encoding implementation
* Author: Y. Assefa, DM Solutions Group (assefa@dmsolutions.ca)
*
**********************************************************************
* Copyright (c) 2003, Y... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_3111_0 |
crossvul-cpp_data_bad_2769_0 | /*
zip_open.c -- open zip archive by name
Copyright (C) 1999-2016 Dieter Baron and Thomas Klausner
This file is part of libzip, a library to manipulate ZIP archives.
The authors can be contacted at <libzip@nih.at>
Redistribution and use in source and binary forms, with or without
modification, are permitt... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_2769_0 |
crossvul-cpp_data_good_3501_0 | /*
* SCSI Device emulation
*
* Copyright (c) 2006 CodeSourcery.
* Based on code by Fabrice Bellard
*
* Written by Paul Brook
* Modifications:
* 2009-Dec-12 Artyom Tarasenko : implemented stamdard inquiry for the case
* when the allocation length of CDB is smaller
* ... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_3501_0 |
crossvul-cpp_data_bad_341_3 | /*
* 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-119/c/bad_341_3 |
crossvul-cpp_data_good_507_4 | /******************************************************************************
** Copyright (c) 2015-2018, Intel Corporation **
** All rights reserved. **
** **
... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_507_4 |
crossvul-cpp_data_bad_252_4 | /**
* @file
* RFC2047 MIME extensions encoding / decoding routines
*
* @authors
* Copyright (C) 1996-2000,2010 Michael R. Elkins <me@mutt.org>
* Copyright (C) 2000-2002 Edmund Grimley Evans <edmundo@rano.org>
* Copyright (C) 2018 Pietro Cerutti <gahr@gahr.ch>
*
* @copyright
* This program is free software: yo... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_252_4 |
crossvul-cpp_data_bad_3635_0 | #include <linux/etherdevice.h>
#include <linux/if_macvlan.h>
#include <linux/interrupt.h>
#include <linux/nsproxy.h>
#include <linux/compat.h>
#include <linux/if_tun.h>
#include <linux/module.h>
#include <linux/skbuff.h>
#include <linux/cache.h>
#include <linux/sched.h>
#include <linux/types.h>
#include <linux/slab.h>
... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_3635_0 |
crossvul-cpp_data_good_344_0 | /*
* card-cac.c: Support for CAC from NIST SP800-73
* card-default.c: Support for cards with no driver
*
* Copyright (C) 2001, 2002 Juha Yrjölä <juha.yrjola@iki.fi>
* Copyright (C) 2005,2006,2007,2008,2009,2010 Douglas E. Engert <deengert@anl.gov>
* Copyright (C) 2006, Identity Alliance, Thomas Harning <thomas.h... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_344_0 |
crossvul-cpp_data_good_2397_0 | /*****************************************************************************
* rtpfmt.c: RTP payload formats
*****************************************************************************
* Copyright (C) 2003-2004 VLC authors and VideoLAN
* Copyright © 2007 Rémi Denis-Courmont
* $Id$
*
* Authors: Laurent Aimar ... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_2397_0 |
crossvul-cpp_data_bad_5079_2 | /*
* Packet matching code.
*
* Copyright (C) 1999 Paul `Rusty' Russell & Michael J. Neuling
* Copyright (C) 2000-2005 Netfilter Core Team <coreteam@netfilter.org>
* Copyright (c) 2006-2010 Patrick McHardy <kaber@trash.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the t... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_5079_2 |
crossvul-cpp_data_good_340_10 | /*
* util.c: utility functions used by OpenSC command line tools.
*
* Copyright (C) 2011 OpenSC Project developers
*
* 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
* versi... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_340_10 |
crossvul-cpp_data_bad_346_8 | /*
* cryptoflex-tool.c: Tool for doing various Cryptoflex related stuff
*
* 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 Public
* License as published by the Free Software Foundation; e... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_346_8 |
crossvul-cpp_data_bad_730_0 | // SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2014, STMicroelectronics International N.V.
*/
#include <assert.h>
#include <crypto/crypto.h>
#include <kernel/tee_ta_manager.h>
#include <mm/tee_mmu.h>
#include <string_ext.h>
#include <string.h>
#include <sys/queue.h>
#include <tee_api_types.h>
#include <... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_730_0 |
crossvul-cpp_data_bad_2384_0 | /*
** Copyright (C) 2001-2014 Erik de Castro Lopo <erikd@mega-nerd.com>
** Copyright (C) 2004 Paavo Jumppanen
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU Lesser General Public License as published by
** the Free Software Foundation; either version 2.1 of t... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_2384_0 |
crossvul-cpp_data_bad_1655_0 | /* A network driver using virtio.
*
* Copyright 2007 Rusty Russell <rusty@rustcorp.com.au> 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... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_1655_0 |
crossvul-cpp_data_good_344_10 | /*
* util.c: utility functions used by OpenSC command line tools.
*
* Copyright (C) 2011 OpenSC Project developers
*
* 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
* versi... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_344_10 |
crossvul-cpp_data_good_5056_0 | /*
* videobuf2-v4l2.c - V4L2 driver helper framework
*
* Copyright (C) 2010 Samsung Electronics
*
* Author: Pawel Osciak <pawel@osciak.com>
* Marek Szyprowski <m.szyprowski@samsung.com>
*
* The vb2_thread implementation was based on code from videobuf-dvb.c:
* (c) 2004 Gerd Knorr <kraxel@bytesex.org> [SUSE ... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_5056_0 |
crossvul-cpp_data_bad_395_5 | /*
Copyright 1996-2014 Han The Thanh <thanh@pdftex.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 version 2 of the License, or
(at your option) any later version.
This program is distri... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_395_5 |
crossvul-cpp_data_good_5733_8 | /*
* Copyright (c) 2008 vmrsss
* Copyright (c) 2009 Stefano Sabatini
*
* 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 Lice... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_5733_8 |
crossvul-cpp_data_good_4787_7 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_4787_7 |
crossvul-cpp_data_good_3464_0 | /**
* ldm - Support for Windows Logical Disk Manager (Dynamic Disks)
*
* Copyright (C) 2001,2002 Richard Russon <ldm@flatcap.org>
* Copyright (c) 2001-2007 Anton Altaparmakov
* Copyright (C) 2001,2002 Jakob Kemi <jakob.kemi@telia.com>
*
* Documentation is available at http://www.linux-ntfs.org/doku.php?id=downlo... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_3464_0 |
crossvul-cpp_data_good_341_9 | /*
* Copyright (C) 2017 Frank Morgner <frankmorgner@gmail.com>
*
* This file is part of OpenSC.
*
* 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 Licen... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_341_9 |
crossvul-cpp_data_bad_3277_0 | /*
* Copyright (c) 2010 Broadcom Corporation
*
* Permission to use, copy, modify, and/or 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 SOFTWARE IS PROVIDED "AS IS" AND THE AUTHO... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_3277_0 |
crossvul-cpp_data_bad_1826_0 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "jv.h"
#include "jv_dtoa.h"
#include "jv_unicode.h"
#include "jv_alloc.h"
#include "jv_dtoa.h"
typedef const char* presult;
#define TRY(x) do {presult msg__ = (x); if (msg__) return msg__; } while(0)
#ifdef __GNUC__
#define pfunc ... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_1826_0 |
crossvul-cpp_data_bad_2483_3 | /*
* Architecture-specific setup.
*
* Copyright (C) 1998-2001, 2003-2004 Hewlett-Packard Co
* David Mosberger-Tang <davidm@hpl.hp.com>
* Stephane Eranian <eranian@hpl.hp.com>
* Copyright (C) 2000, 2004 Intel Corp
* Rohit Seth <rohit.seth@intel.com>
* Suresh Siddha <suresh.b.siddha@intel.com>
* Gordon Jin <g... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_2483_3 |
crossvul-cpp_data_good_2273_0 |
#include <linux/ceph/ceph_debug.h>
#include <linux/err.h>
#include <linux/module.h>
#include <linux/random.h>
#include <linux/slab.h>
#include <linux/ceph/decode.h>
#include <linux/ceph/auth.h>
#include "crypto.h"
#include "auth_x.h"
#include "auth_x_protocol.h"
static void ceph_x_validate_tickets(struct ceph_auth... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_2273_0 |
crossvul-cpp_data_bad_5289_0 | /*
*******************************************************************************
** O.S : Linux
** FILE NAME : arcmsr_hba.c
** BY : Nick Cheng, C.L. Huang
** Description: SCSI RAID Device Driver for Areca RAID Controller
*************************************************************************... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_5289_0 |
crossvul-cpp_data_bad_1436_0 | /*
Copyright (C) 2013-2015 Yubico AB
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1, or (at your option) any
later version.
This program is distributed in the ... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_1436_0 |
crossvul-cpp_data_bad_3418_1 | /*
* WebP (.webp) image decoder
* Copyright (c) 2013 Aneesh Dogra <aneesh@sugarlabs.org>
* Copyright (c) 2013 Justin Ruggles <justin.ruggles@gmail.com>
*
* 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
* Lic... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_3418_1 |
crossvul-cpp_data_bad_4788_4 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_4788_4 |
crossvul-cpp_data_good_5475_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-119/c/good_5475_4 |
crossvul-cpp_data_bad_5203_0 | /**
* collectd - src/network.c
* Copyright (C) 2005-2013 Florian octo Forster
* Copyright (C) 2009 Aman Gupta
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; only version ... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_5203_0 |
crossvul-cpp_data_good_346_9 | /*
* Copyright (C) 2017 Frank Morgner <frankmorgner@gmail.com>
*
* This file is part of OpenSC.
*
* 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 Licen... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_346_9 |
crossvul-cpp_data_good_160_2 | /*
* 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-119/c/good_160_2 |
crossvul-cpp_data_bad_374_0 | /***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_374_0 |
crossvul-cpp_data_bad_344_9 | /*
* Copyright (C) 2017 Frank Morgner <frankmorgner@gmail.com>
*
* This file is part of OpenSC.
*
* 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 Licen... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_344_9 |
crossvul-cpp_data_bad_339_4 | /*
* PKCS15 emulation layer for EstEID card.
*
* Copyright (C) 2004, Martin Paljak <martin@martinpaljak.net>
* Copyright (C) 2004, Bud P. Bruegger <bud@comune.grosseto.it>
* Copyright (C) 2004, Antonino Iacono <ant_iacono@tin.it>
* Copyright (C) 2003, Olaf Kirch <okir@suse.de>
*
* This library is free software;... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_339_4 |
crossvul-cpp_data_bad_3305_0 | /*
* XDR support for nfsd/protocol version 3.
*
* Copyright (C) 1995, 1996, 1997 Olaf Kirch <okir@monad.swb.de>
*
* 2003-08-09 Jamie Lokier: Use htonl() for nanoseconds, not htons()!
*/
#include <linux/namei.h>
#include <linux/sunrpc/svc_xprt.h>
#include "xdr3.h"
#include "auth.h"
#include "netns.h"
#include "vf... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_3305_0 |
crossvul-cpp_data_good_4787_5 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_4787_5 |
crossvul-cpp_data_bad_622_4 | /*====================================================================*
- Copyright (C) 2001 Leptonica. 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 c... | ./CrossVul/dataset_final_sorted/CWE-119/c/bad_622_4 |
crossvul-cpp_data_good_2019_1 | /* src/interfaces/ecpg/pgtypeslib/datetime.c */
#include "postgres_fe.h"
#include <time.h>
#include <ctype.h>
#include <float.h>
#include <limits.h>
#include "extern.h"
#include "dt.h"
#include "pgtypes_error.h"
#include "pgtypes_date.h"
date *
PGTYPESdate_new(void)
{
date *result;
result = (date *) pgtypes_a... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_2019_1 |
crossvul-cpp_data_good_740_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-119/c/good_740_0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.