id
stringlengths
25
30
content
stringlengths
14
942k
max_stars_repo_path
stringlengths
49
55
crossvul-cpp_data_good_1536_0
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* lib/krb5/krb/bld_princ.c - Build a principal from a list of strings */ /* * Copyright 1991 by the Massachusetts Institute of Technology. * All Rights Reserved. * * Export of this software from the United States of America may * require a specific...
./CrossVul/dataset_final_sorted/CWE-119/c/good_1536_0
crossvul-cpp_data_good_339_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/good_339_8
crossvul-cpp_data_bad_896_0
#include "mongoose.h" #ifdef MG_MODULE_LINES #line 1 "mongoose/src/mg_internal.h" #endif /* * Copyright (c) 2014 Cesanta Software Limited * All rights reserved */ #ifndef CS_MONGOOSE_SRC_INTERNAL_H_ #define CS_MONGOOSE_SRC_INTERNAL_H_ /* Amalgamated: #include "common/mg_mem.h" */ #ifndef MBUF_REALLOC #define MBUF...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_896_0
crossvul-cpp_data_bad_344_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_344_3
crossvul-cpp_data_good_927_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_927_0
crossvul-cpp_data_bad_342_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_342_4
crossvul-cpp_data_bad_4787_20
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_4787_20
crossvul-cpp_data_good_2521_0
/* * Copyright (c) Christos Zoulas 2003. * 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 immediately at t...
./CrossVul/dataset_final_sorted/CWE-119/c/good_2521_0
crossvul-cpp_data_good_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/good_3011_0
crossvul-cpp_data_bad_507_1
/****************************************************************************** ** Copyright (c) 2017-2018, Intel Corporation ** ** All rights reserved. ** ** ** ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_507_1
crossvul-cpp_data_bad_3071_0
/* * Copyright 2006-2016 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/lice...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_3071_0
crossvul-cpp_data_bad_342_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_342_7
crossvul-cpp_data_bad_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/bad_1050_2
crossvul-cpp_data_good_341_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_341_10
crossvul-cpp_data_bad_5112_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/bad_5112_0
crossvul-cpp_data_bad_2540_0
/* $Id: upnpreplyparse.c,v 1.19 2015/07/15 10:29:11 nanard Exp $ */ /* MiniUPnP project * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ * (c) 2006-2015 Thomas Bernard * This software is subject to the conditions detailed * in the LICENCE file provided within the distribution */ #include <stdlib.h> #in...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_2540_0
crossvul-cpp_data_bad_4779_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_4779_1
crossvul-cpp_data_good_5484_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_5484_0
crossvul-cpp_data_good_3115_0
/* * HID driver for Corsair devices * * Supported devices: * - Vengeance K90 Keyboard * * Copyright (c) 2015 Clement Vuchener */ /* * 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; ei...
./CrossVul/dataset_final_sorted/CWE-119/c/good_3115_0
crossvul-cpp_data_bad_4946_1
#include "cache.h" #include "commit.h" #include "diff.h" #include "revision.h" #include "list-objects.h" #include "pack.h" #include "pack-bitmap.h" #include "builtin.h" #include "log-tree.h" #include "graph.h" #include "bisect.h" static const char rev_list_usage[] = "git rev-list [OPTION] <commit-id>... [ -- paths... ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_4946_1
crossvul-cpp_data_good_525_2
/* * GPAC - Multimedia Framework C SDK * * Authors: Jean Le Feuvre * Copyright (c) Telecom ParisTech 2000-2012 * All rights reserved * * This file is part of GPAC / FFMPEG module * * GPAC is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public...
./CrossVul/dataset_final_sorted/CWE-119/c/good_525_2
crossvul-cpp_data_bad_3104_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_3104_1
crossvul-cpp_data_bad_252_2
/** * @file * Conversion to/from base64 encoding * * @authors * Copyright (C) 1993,1995 Carl Harris * Copyright (C) 1997 Eric S. Raymond * Copyright (C) 1999 Brendan Cully <brendan@kublai.com> * * @copyright * This program is free software: you can redistribute it and/or modify it under * the terms of the GN...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_252_2
crossvul-cpp_data_bad_83_0
/* * linux/kernel/signal.c * * Copyright (C) 1991, 1992 Linus Torvalds * * 1997-11-02 Modified for POSIX.1b signals by Richard Henderson * * 2003-06-02 Jim Houston - Concurrent Computer Corp. * Changes to use preallocated sigqueue structures * to allow signals to be sent reliably. */ #include <linux...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_83_0
crossvul-cpp_data_bad_5182_1
/* +--------------------------------------------------------------------+ | PECL :: http | +--------------------------------------------------------------------+ | Redistribution and use in source and binary forms, with or without | | modificatio...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_5182_1
crossvul-cpp_data_bad_5476_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-119/c/bad_5476_1
crossvul-cpp_data_bad_4735_0
/* * NetLabel CIPSO/IPv4 Support * * This file defines the CIPSO/IPv4 functions for the NetLabel system. The * NetLabel system manages static and dynamic label mappings for network * protocols such as CIPSO and RIPSO. * * Author: Paul Moore <paul.moore@hp.com> * */ /* * (c) Copyright Hewlett-Packard Develop...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_4735_0
crossvul-cpp_data_good_4907_1
/* * linux/fs/proc/root.c * * Copyright (C) 1991, 1992 Linus Torvalds * * proc root directory handling functions */ #include <asm/uaccess.h> #include <linux/errno.h> #include <linux/time.h> #include <linux/proc_fs.h> #include <linux/stat.h> #include <linux/init.h> #include <linux/sched.h> #include <linux/mod...
./CrossVul/dataset_final_sorted/CWE-119/c/good_4907_1
crossvul-cpp_data_bad_5477_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-119/c/bad_5477_1
crossvul-cpp_data_bad_410_0
/* util.c * * Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, * 2002, 2003, 2004, 2005, 2006, 2007, 2008 by Larry Wall and others * * You may distribute under the terms of either the GNU General Public * License or the Artistic License, as specified in the README file. * */ /...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_410_0
crossvul-cpp_data_good_5127_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_5127_1
crossvul-cpp_data_good_2045_0
/* * OpenPBS (Portable Batch System) v2.3 Software License * * Copyright (c) 1999-2000 Veridian Information Solutions, Inc. * All rights reserved. * * --------------------------------------------------------------------------- * For a license to use or redistribute the OpenPBS software under conditions * other ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_2045_0
crossvul-cpp_data_good_3413_0
/* * XPM image format * * Copyright (c) 2012 Paul B Mahol * Copyright (c) 2017 Paras Chadha * * 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 ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_3413_0
crossvul-cpp_data_bad_1063_0
/* * asn1.c: ASN.1 decoding functions (DER) * * 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 o...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_1063_0
crossvul-cpp_data_good_2918_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % W W PPPP GGGG ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_2918_0
crossvul-cpp_data_good_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/good_341_3
crossvul-cpp_data_bad_343_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/bad_343_10
crossvul-cpp_data_bad_3445_0
/********************************************************************* * * Filename: iriap.c * Version: 0.8 * Description: Information Access Protocol (IAP) * Status: Experimental. * Author: Dag Brattli <dagb@cs.uit.no> * Created at: Thu Aug 21 00:02:07 1997 * Modified at: Sat De...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_3445_0
crossvul-cpp_data_bad_1611_4
/* t1lib * * This file contains functions for reading PFA and PFB files. * * Copyright (c) 1998-2013 Eddie Kohler * * 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...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_1611_4
crossvul-cpp_data_bad_4734_0
/* * helper functions for vmalloc video4linux capture buffers * * The functions expect the hardware being able to scatter gatter * (i.e. the buffers are not linear in physical memory, but fragmented * into PAGE_SIZE chunks). They also assume the driver does not need * to touch the video data. * * (c) 2007 Maur...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_4734_0
crossvul-cpp_data_bad_4787_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_4787_1
crossvul-cpp_data_bad_2593_1
404: Not Found
./CrossVul/dataset_final_sorted/CWE-119/c/bad_2593_1
crossvul-cpp_data_bad_5283_2
/* +----------------------------------------------------------------------+ | phar php single-file executable PHP extension | | utility functions | +----------------------------------------------------------------------+ | Copyright (c)...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_5283_2
crossvul-cpp_data_bad_3316_0
/* * Copyright (C) 2006, 2007, 2009 Rusty Russell, IBM Corporation * Copyright (C) 2009, 2010, 2011 Red Hat, Inc. * Copyright (C) 2009, 2010, 2011 Amit Shah <amit.shah@redhat.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as pub...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_3316_0
crossvul-cpp_data_good_2143_1
/* * NET3 Protocol independent device support routines. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. * ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_2143_1
crossvul-cpp_data_good_346_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_346_5
crossvul-cpp_data_good_3337_0
/*- * Copyright (c) 2006 Verdens Gang AS * Copyright (c) 2006-2015 Varnish Software AS * All rights reserved. * * Author: Poul-Henning Kamp <phk@phk.freebsd.dk> * * 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-119/c/good_3337_0
crossvul-cpp_data_bad_2918_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % W W PPPP GGGG ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_2918_0
crossvul-cpp_data_good_1746_0
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*** This file is part of systemd. Copyright 2014 Lennart Poettering systemd 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_1746_0
crossvul-cpp_data_bad_2346_0
/* * Copyright (C) 2007-2008 Sourcefire, Inc. * * Authors: Alberto Wu, Tomasz Kojm * * 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. * * This program is distributed in t...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_2346_0
crossvul-cpp_data_bad_2400_0
/* * Copyright (c) Ian F. Darwin 1986-1995. * Software written by Ian F. Darwin and others; * maintained 1995-present by Christos Zoulas and others. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistr...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_2400_0
crossvul-cpp_data_bad_2899_0
/* radare - LGPL - Copyright 2008-2017 - nibble, pancake, alvaro_fe */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <r_types.h> #include <r_util.h> #include "elf.h" #ifdef IFDBG #undef IFDBG #endif #define DO_THE_DBG 0 #define IFDBG if (DO_THE_DBG) #define IFINT if (0) #de...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_2899_0
crossvul-cpp_data_good_2135_0
/* * Copyright (c) Ian F. Darwin 1986-1995. * Software written by Ian F. Darwin and others; * maintained 1995-present by Christos Zoulas and others. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistr...
./CrossVul/dataset_final_sorted/CWE-119/c/good_2135_0
crossvul-cpp_data_good_2834_0
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * COPYRIGHT (C) 2006,2007 * THE REGENTS OF THE UNIVERSITY OF MICHIGAN * ALL RIGHTS RESERVED * * Permission is granted to use, copy, create derivative works * and redistribute this software and such derivative works * for any purpose, so long as t...
./CrossVul/dataset_final_sorted/CWE-119/c/good_2834_0
crossvul-cpp_data_good_552_3
/* * Boa, an http server * Copyright (C) 1995 Paul Phillips <paulp@go2net.com> * Copyright (C) 1996-1999 Larry Doolittle <ldoolitt@boa.org> * Copyright (C) 1999-2004 Jon Nelson <jnelson@boa.org> * * 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/good_552_3
crossvul-cpp_data_bad_5871_1
/* -*- C -*- */ /* * block_template.c : Generic framework for block encryption algorithms * * Written by Andrew Kuchling and others * * =================================================================== * The contents of this file are dedicated to the public domain. To * the extent that dedication to the pub...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_5871_1
crossvul-cpp_data_bad_641_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-119/c/bad_641_0
crossvul-cpp_data_bad_3638_0
/* * linux/fs/proc/root.c * * Copyright (C) 1991, 1992 Linus Torvalds * * proc root directory handling functions */ #include <asm/uaccess.h> #include <linux/errno.h> #include <linux/time.h> #include <linux/proc_fs.h> #include <linux/stat.h> #include <linux/init.h> #include <linux/sched.h> #include <linux/mod...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_3638_0
crossvul-cpp_data_bad_507_2
/****************************************************************************** ** Copyright (c) 2014-2018, Intel Corporation ** ** All rights reserved. ** ** ** ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_507_2
crossvul-cpp_data_good_4774_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_4774_0
crossvul-cpp_data_bad_183_0
/* Redis CLI (command line interface) * * 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 are met: * * * Redistributions o...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_183_0
crossvul-cpp_data_good_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/good_5762_0
crossvul-cpp_data_good_2947_1
/* * parser.c : an XML 1.0 parser, namespaces and validity support are mostly * implemented on top of the SAX interfaces * * References: * The XML specification: * http://www.w3.org/TR/REC-xml * Original 1.0 version: * http://www.w3.org/TR/1998/REC-xml-19980210 * XML second edition wor...
./CrossVul/dataset_final_sorted/CWE-119/c/good_2947_1
crossvul-cpp_data_bad_1536_0
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* lib/krb5/krb/bld_princ.c - Build a principal from a list of strings */ /* * Copyright 1991 by the Massachusetts Institute of Technology. * All Rights Reserved. * * Export of this software from the United States of America may * require a specific...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_1536_0
crossvul-cpp_data_bad_4787_6
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_4787_6
crossvul-cpp_data_bad_5733_1
/* * Copyright (c) 2002 Jindrich Makovicka <makovick@gmail.com> * Copyright (c) 2011 Stefano Sabatini * Copyright (c) 2013 Jean Delvare <khali@linux-fr.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 General Public License ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_5733_1
crossvul-cpp_data_good_4945_0
/* Alternative malloc implementation for multiple threads without lock contention based on dlmalloc. (C) 2005-2006 Niall Douglas Boost Software License - Version 1.0 - August 17th, 2003 Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying docume...
./CrossVul/dataset_final_sorted/CWE-119/c/good_4945_0
crossvul-cpp_data_good_4787_11
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_4787_11
crossvul-cpp_data_bad_3199_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_3199_1
crossvul-cpp_data_good_4788_4
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_4788_4
crossvul-cpp_data_good_810_0
#include "jsi.h" #include "jsvalue.h" #include "jsbuiltin.h" #if defined(_MSC_VER) && (_MSC_VER < 1700) /* VS2012 has stdint.h */ typedef unsigned __int64 uint64_t; #else #include <stdint.h> #endif static void jsB_new_Number(js_State *J) { js_newnumber(J, js_gettop(J) > 1 ? js_tonumber(J, 1) : 0); } static void jsB...
./CrossVul/dataset_final_sorted/CWE-119/c/good_810_0
crossvul-cpp_data_good_3199_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_3199_1
crossvul-cpp_data_good_4775_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_4775_1
crossvul-cpp_data_bad_2197_0
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2001, 2007 by the Massachusetts Institute of Technology. * 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...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_2197_0
crossvul-cpp_data_bad_4787_24
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_4787_24
crossvul-cpp_data_good_2915_0
/* * message.c - synchronous message handling * * Released under the GPLv2 only. * SPDX-License-Identifier: GPL-2.0 */ #include <linux/pci.h> /* for scatterlist macros */ #include <linux/usb.h> #include <linux/module.h> #include <linux/slab.h> #include <linux/mm.h> #include <linux/timer.h> #include <linux/ctype.h...
./CrossVul/dataset_final_sorted/CWE-119/c/good_2915_0
crossvul-cpp_data_bad_901_0
/**************************************************************************** * * Copyright (C) 2006,2007 A.Kleine * * 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...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_901_0
crossvul-cpp_data_bad_5475_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-119/c/bad_5475_2
crossvul-cpp_data_bad_346_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/bad_346_10
crossvul-cpp_data_bad_4788_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_4788_1
crossvul-cpp_data_good_5733_9
/* * Copyright (c) 2011 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 License, or (at your option) any lat...
./CrossVul/dataset_final_sorted/CWE-119/c/good_5733_9
crossvul-cpp_data_bad_1848_3
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_1848_3
crossvul-cpp_data_bad_5283_3
/* +----------------------------------------------------------------------+ | ZIP archive support for Phar | +----------------------------------------------------------------------+ | Copyright (c) 2007-2016 The PHP Group | +--------------...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_5283_3
crossvul-cpp_data_good_5733_10
/* * Copyright (c) 2013 Clément Bœsch * * 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 lat...
./CrossVul/dataset_final_sorted/CWE-119/c/good_5733_10
crossvul-cpp_data_good_3522_1
/* * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved. * * This copyrighted material is made available to anyone wishing to use, * modify, copy, or redistribute it subject to the terms and conditions * of the GNU General Public Licen...
./CrossVul/dataset_final_sorted/CWE-119/c/good_3522_1
crossvul-cpp_data_good_3163_0
/* radare - LGPL - Copyright 2016 - Oscar Salvador */ #include <r_types.h> #include <r_util.h> #include <r_lib.h> #include <r_bin.h> #include <r_io.h> #include "bflt/bflt.h" static void *load_bytes(RBinFile *arch, const ut8 *buf, ut64 sz, ut64 loaddr, Sdb *sdb) { if (!buf || !sz || sz == UT64_MAX) { return NULL; ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_3163_0
crossvul-cpp_data_bad_3312_0
/* DVB USB compliant linux driver for Conexant USB reference design. * * The Conexant reference design I saw on their website was only for analogue * capturing (using the cx25842). The box I took to write this driver (reverse * engineered) is the one labeled Medion MD95700. In addition to the cx25842 * for analogu...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_3312_0
crossvul-cpp_data_bad_342_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_342_5
crossvul-cpp_data_good_715_0
/* Legal Notice: Some portions of the source code contained in this file were derived from the source code of TrueCrypt 7.1a, which is Copyright (c) 2003-2012 TrueCrypt Developers Association and which is governed by the TrueCrypt License 3.0, also from the source code of Encryption for the Masses 2.02a, which is ...
./CrossVul/dataset_final_sorted/CWE-119/c/good_715_0
crossvul-cpp_data_good_4907_2
/* * kernel/sched/core.c * * Kernel scheduler and related syscalls * * Copyright (C) 1991-2002 Linus Torvalds * * 1996-12-23 Modified by Dave Grothe to fix bugs in semaphores and * make semaphores SMP safe * 1998-11-19 Implemented schedule_timeout() and related stuff * by Andrea Arcangeli * 2002-01...
./CrossVul/dataset_final_sorted/CWE-119/c/good_4907_2
crossvul-cpp_data_bad_3116_0
/* * atusb.c - Driver for the ATUSB IEEE 802.15.4 dongle * * Written 2013 by Werner Almesberger <werner@almesberger.net> * * Copyright (c) 2015 - 2016 Stefan Schmidt <stefan@datenfreihafen.org> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Publi...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_3116_0
crossvul-cpp_data_bad_896_1
/* * Copyright (c) 2014 Cesanta Software Limited * All rights reserved */ #if MG_ENABLE_MQTT #include <string.h> #include "mg_internal.h" #include "mg_mqtt.h" static uint16_t getu16(const char *p) { const uint8_t *up = (const uint8_t *) p; return (up[0] << 8) + up[1]; } static const char *scanto(const char ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_896_1
crossvul-cpp_data_good_5355_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/good_5355_0
crossvul-cpp_data_bad_342_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_342_3
crossvul-cpp_data_bad_1494_0
/* crypto/x509/x509_vfy.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 no...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_1494_0
crossvul-cpp_data_good_4946_5
#include "cache.h" #include "commit.h" #include "tag.h" #include "diff.h" #include "revision.h" #include "progress.h" #include "list-objects.h" #include "pack.h" #include "pack-bitmap.h" #include "pack-revindex.h" #include "pack-objects.h" /* * An entry on the bitmap index, representing the bitmap for a given * comm...
./CrossVul/dataset_final_sorted/CWE-119/c/good_4946_5
crossvul-cpp_data_good_5142_0
/* * Intel MIC Platform Software Stack (MPSS) * * Copyright(c) 2016 Intel Corporation. * * 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. * * This program is distributed in t...
./CrossVul/dataset_final_sorted/CWE-119/c/good_5142_0
crossvul-cpp_data_bad_4787_7
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_4787_7
crossvul-cpp_data_bad_935_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_935_0
crossvul-cpp_data_bad_4787_17
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-119/c/bad_4787_17