id stringlengths 25 30 | content stringlengths 14 942k | max_stars_repo_path stringlengths 49 55 |
|---|---|---|
crossvul-cpp_data_bad_2415_1 | /*
* namei.c
*
* PURPOSE
* Inode name 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 contr... | ./CrossVul/dataset_final_sorted/CWE-17/c/bad_2415_1 |
crossvul-cpp_data_bad_1482_1 | /*
* INET An implementation of the TCP/IP protocol suite for the LINUX
* operating system. INET is implemented using the BSD Socket
* interface as the means of communication with the user level.
*
* The IP forwarding functionality.
*
* Authors: see ip.c
*
* Fixes:
* Many : Split from ip.c , see ip_inp... | ./CrossVul/dataset_final_sorted/CWE-17/c/bad_1482_1 |
crossvul-cpp_data_bad_2348_5 | /*
* Copyright (C) 1991, 1992 Linus Torvalds
* Copyright (C) 2000, 2001, 2002 Andi Kleen, SuSE Labs
*
* Pentium III FXSR, SSE support
* Gareth Hughes <gareth@valinux.com>, May 2000
*/
/*
* Handle hardware traps and faults.
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/context_tracking.h>... | ./CrossVul/dataset_final_sorted/CWE-17/c/bad_2348_5 |
crossvul-cpp_data_bad_2306_0 | /*
* linux/fs/file_table.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
* Copyright (C) 1997 David S. Miller (davem@caip.rutgers.edu)
*/
#include <linux/string.h>
#include <linux/slab.h>
#include <linux/file.h>
#include <linux/fdtable.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/fs.h>
#... | ./CrossVul/dataset_final_sorted/CWE-17/c/bad_2306_0 |
crossvul-cpp_data_good_1482_2 | /*
* INET An implementation of the TCP/IP protocol suite for the LINUX
* operating system. INET is implemented using the BSD Socket
* interface as the means of communication with the user level.
*
* ROUTE - implementation of the IP router.
*
* Authors: Ross Biro
* Fred N. van Kempen, <waltje@uWalt.NL.Mug... | ./CrossVul/dataset_final_sorted/CWE-17/c/good_1482_2 |
crossvul-cpp_data_bad_2348_3 | /*
* Copyright (C) 1991, 1992 Linus Torvalds
* Copyright (C) 2000, 2001, 2002 Andi Kleen, SuSE Labs
*/
#include <linux/kallsyms.h>
#include <linux/kprobes.h>
#include <linux/uaccess.h>
#include <linux/hardirq.h>
#include <linux/kdebug.h>
#include <linux/module.h>
#include <linux/ptrace.h>
#include <linux/kexec.h>... | ./CrossVul/dataset_final_sorted/CWE-17/c/bad_2348_3 |
crossvul-cpp_data_bad_2306_3 | /*
* linux/fs/super.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*
* super.c contains code to handle: - mount structures
* - super-block tables
* - filesystem drivers list
* - mount system call
* ... | ./CrossVul/dataset_final_sorted/CWE-17/c/bad_2306_3 |
crossvul-cpp_data_bad_1510_0 | /*
* sysctl_net_llc.c: sysctl interface to LLC net subsystem.
*
* Arnaldo Carvalho de Melo <acme@conectiva.com.br>
*/
#include <linux/mm.h>
#include <linux/init.h>
#include <linux/sysctl.h>
#include <net/net_namespace.h>
#include <net/llc.h>
#ifndef CONFIG_SYSCTL
#error This file should not be compiled without CO... | ./CrossVul/dataset_final_sorted/CWE-17/c/bad_1510_0 |
crossvul-cpp_data_good_1498_0 | /*
* linux/fs/pipe.c
*
* Copyright (C) 1991, 1992, 1999 Linus Torvalds
*/
#include <linux/mm.h>
#include <linux/file.h>
#include <linux/poll.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/fs.h>
#include <linux/log2.h>
#include <linux/mount.h>
#include <linux/magic.h... | ./CrossVul/dataset_final_sorted/CWE-17/c/good_1498_0 |
crossvul-cpp_data_good_1643_0 | /* bpf_jit_comp.c : BPF JIT compiler
*
* Copyright (C) 2011-2013 Eric Dumazet (eric.dumazet@gmail.com)
* Internal BPF Copyright (c) 2011-2014 PLUMgrid, http://plumgrid.com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as publishe... | ./CrossVul/dataset_final_sorted/CWE-17/c/good_1643_0 |
crossvul-cpp_data_bad_1470_0 | /*
* lxc: linux Container library
*
* (C) Copyright IBM Corp. 2007, 2008
*
* Authors:
* Daniel Lezcano <daniel.lezcano at free.fr>
*
* 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 Foundati... | ./CrossVul/dataset_final_sorted/CWE-17/c/bad_1470_0 |
crossvul-cpp_data_good_2306_3 | /*
* linux/fs/super.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*
* super.c contains code to handle: - mount structures
* - super-block tables
* - filesystem drivers list
* - mount system call
* ... | ./CrossVul/dataset_final_sorted/CWE-17/c/good_2306_3 |
crossvul-cpp_data_good_1511_0 | /*
* Copyright (c) 2006 Oracle. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
* General Public License (GPL) Version 2, available from the file
* COPYING in the main directory of this source tree, or t... | ./CrossVul/dataset_final_sorted/CWE-17/c/good_1511_0 |
crossvul-cpp_data_good_1482_1 | /*
* INET An implementation of the TCP/IP protocol suite for the LINUX
* operating system. INET is implemented using the BSD Socket
* interface as the means of communication with the user level.
*
* The IP forwarding functionality.
*
* Authors: see ip.c
*
* Fixes:
* Many : Split from ip.c , see ip_inp... | ./CrossVul/dataset_final_sorted/CWE-17/c/good_1482_1 |
crossvul-cpp_data_bad_1643_0 | /* bpf_jit_comp.c : BPF JIT compiler
*
* Copyright (C) 2011-2013 Eric Dumazet (eric.dumazet@gmail.com)
* Internal BPF Copyright (c) 2011-2014 PLUMgrid, http://plumgrid.com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as publishe... | ./CrossVul/dataset_final_sorted/CWE-17/c/bad_1643_0 |
crossvul-cpp_data_bad_1629_0 | /*
** $Id: ldo.c,v 2.38.1.4 2012/01/18 02:27:10 roberto Exp $
** Stack and Call structure of Lua
** See Copyright Notice in lua.h
*/
#include <setjmp.h>
#include <stdlib.h>
#include <string.h>
#define ldo_c
#define LUA_CORE
#include "lua.h"
#include "ldebug.h"
#include "ldo.h"
#include "lfunc.h"
#include "lgc.h"
#... | ./CrossVul/dataset_final_sorted/CWE-17/c/bad_1629_0 |
crossvul-cpp_data_good_2348_3 | /*
* Copyright (C) 1991, 1992 Linus Torvalds
* Copyright (C) 2000, 2001, 2002 Andi Kleen, SuSE Labs
*/
#include <linux/kallsyms.h>
#include <linux/kprobes.h>
#include <linux/uaccess.h>
#include <linux/hardirq.h>
#include <linux/kdebug.h>
#include <linux/module.h>
#include <linux/ptrace.h>
#include <linux/kexec.h>... | ./CrossVul/dataset_final_sorted/CWE-17/c/good_2348_3 |
crossvul-cpp_data_good_2306_2 | /*
* linux/fs/open.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*/
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/file.h>
#include <linux/fdtable.h>
#include <linux/fsnotify.h>
#include <linux/module.h>
#include <linux/tty.h>
#include <linux/namei.h>
#include <linux/backing-dev.h>
#include <li... | ./CrossVul/dataset_final_sorted/CWE-17/c/good_2306_2 |
crossvul-cpp_data_bad_1546_0 | /*
* Neighbour Discovery for IPv6
* Linux INET6 implementation
*
* Authors:
* Pedro Roque <roque@di.fc.ul.pt>
* Mike Shaver <shaver@ingenia.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 Fre... | ./CrossVul/dataset_final_sorted/CWE-17/c/bad_1546_0 |
crossvul-cpp_data_bad_1499_2 | #include <linux/export.h>
#include <linux/uio.h>
#include <linux/pagemap.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>
size_t copy_page_to_iter(struct page *page, size_t offset, size_t bytes,
struct iov_iter *i)
{
size_t skip, copy, left, wanted;
const struct iovec *iov;
char __user *buf;
void *kaddr, ... | ./CrossVul/dataset_final_sorted/CWE-17/c/bad_1499_2 |
crossvul-cpp_data_good_2415_2 | /*
* 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-17/c/good_2415_2 |
crossvul-cpp_data_bad_1499_0 | /*
* linux/fs/pipe.c
*
* Copyright (C) 1991, 1992, 1999 Linus Torvalds
*/
#include <linux/mm.h>
#include <linux/file.h>
#include <linux/poll.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/fs.h>
#include <linux/log2.h>
#include <linux/mount.h>
#include <linux/magic.h... | ./CrossVul/dataset_final_sorted/CWE-17/c/bad_1499_0 |
crossvul-cpp_data_bad_1511_0 | /*
* Copyright (c) 2006 Oracle. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
* General Public License (GPL) Version 2, available from the file
* COPYING in the main directory of this source tree, or t... | ./CrossVul/dataset_final_sorted/CWE-17/c/bad_1511_0 |
crossvul-cpp_data_good_1546_0 | /*
* Neighbour Discovery for IPv6
* Linux INET6 implementation
*
* Authors:
* Pedro Roque <roque@di.fc.ul.pt>
* Mike Shaver <shaver@ingenia.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 Fre... | ./CrossVul/dataset_final_sorted/CWE-17/c/good_1546_0 |
crossvul-cpp_data_good_1510_0 | /*
* sysctl_net_llc.c: sysctl interface to LLC net subsystem.
*
* Arnaldo Carvalho de Melo <acme@conectiva.com.br>
*/
#include <linux/mm.h>
#include <linux/init.h>
#include <linux/sysctl.h>
#include <net/net_namespace.h>
#include <net/llc.h>
#ifndef CONFIG_SYSCTL
#error This file should not be compiled without CO... | ./CrossVul/dataset_final_sorted/CWE-17/c/good_1510_0 |
crossvul-cpp_data_good_1629_0 | /*
** $Id: ldo.c,v 2.38.1.4 2012/01/18 02:27:10 roberto Exp $
** Stack and Call structure of Lua
** See Copyright Notice in lua.h
*/
#include <setjmp.h>
#include <stdlib.h>
#include <string.h>
#define ldo_c
#define LUA_CORE
#include "lua.h"
#include "ldebug.h"
#include "ldo.h"
#include "lfunc.h"
#include "lgc.h"
#... | ./CrossVul/dataset_final_sorted/CWE-17/c/good_1629_0 |
crossvul-cpp_data_good_536_2 | /* SPDX-License-Identifier: LGPL-2.1+ */
/***
Copyright © 2016 Michal Soltys <soltys@ziu.info>
***/
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <linux/kd.h>
#include <linux/tiocl.h>
#include <linux/vt.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#includ... | ./CrossVul/dataset_final_sorted/CWE-255/c/good_536_2 |
crossvul-cpp_data_bad_536_0 | /* SPDX-License-Identifier: LGPL-2.1+ */
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <linux/kd.h>
#include <linux/tiocl.h>
#include <linux/vt.h>
#include <poll.h>
#include <signal.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <sys/inotify.h>
#include... | ./CrossVul/dataset_final_sorted/CWE-255/c/bad_536_0 |
crossvul-cpp_data_good_3557_0 | /*
* rlm_unix.c authentication: Unix user authentication
* accounting: Functions to write radwtmp file.
* Also contains handler for "Group".
*
* Version: $Id$
*
* 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-255/c/good_3557_0 |
crossvul-cpp_data_bad_2254_0 | /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 1993 OpenVision Technologies, Inc., All Rights Reserved
*
* $Header$
*/
#include "k5-int.h"
#include <sys/time.h>
#include <kadm5/admin.h>
#include <kdb.h>
#include "server_internal.h"
#ifdef USE_PASSWORD_SERV... | ./CrossVul/dataset_final_sorted/CWE-255/c/bad_2254_0 |
crossvul-cpp_data_bad_3557_0 | 404: Not Found | ./CrossVul/dataset_final_sorted/CWE-255/c/bad_3557_0 |
crossvul-cpp_data_good_536_0 | /* SPDX-License-Identifier: LGPL-2.1+ */
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <linux/kd.h>
#include <linux/tiocl.h>
#include <linux/vt.h>
#include <poll.h>
#include <signal.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <sys/inotify.h>
#include... | ./CrossVul/dataset_final_sorted/CWE-255/c/good_536_0 |
crossvul-cpp_data_good_2254_0 | /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 1993 OpenVision Technologies, Inc., All Rights Reserved
*
* $Header$
*/
#include "k5-int.h"
#include <sys/time.h>
#include <kadm5/admin.h>
#include <kdb.h>
#include "server_internal.h"
#ifdef USE_PASSWORD_SERV... | ./CrossVul/dataset_final_sorted/CWE-255/c/good_2254_0 |
crossvul-cpp_data_bad_536_2 | /* SPDX-License-Identifier: LGPL-2.1+ */
/***
Copyright © 2016 Michal Soltys <soltys@ziu.info>
***/
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <linux/kd.h>
#include <linux/tiocl.h>
#include <linux/vt.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#includ... | ./CrossVul/dataset_final_sorted/CWE-255/c/bad_536_2 |
crossvul-cpp_data_good_915_1 | /*
* Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd.
*
* Author: zccrs <zccrs@live.com>
*
* Maintainer: zccrs <zhangjide@deepin.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 Foun... | ./CrossVul/dataset_final_sorted/CWE-59/cpp/good_915_1 |
crossvul-cpp_data_bad_5719_2 | #include "TestSupport.h"
#include "ServerInstanceDir.h"
using namespace Passenger;
using namespace std;
namespace tut {
struct ServerInstanceDirTest {
string parentDir;
TempDir tmpDir;
string nobodyGroup;
ServerInstanceDirTest(): tmpDir("server_instance_dir_test.tmp") {
parentDir = "server_instance_dir... | ./CrossVul/dataset_final_sorted/CWE-59/cpp/bad_5719_2 |
crossvul-cpp_data_good_915_0 | /*
* Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd.
*
* Author: zccrs <zccrs@live.com>
*
* Maintainer: zccrs <zhangjide@deepin.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 Foun... | ./CrossVul/dataset_final_sorted/CWE-59/cpp/good_915_0 |
crossvul-cpp_data_bad_915_4 | /*
* Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd.
*
* Author: zccrs <zccrs@live.com>
*
* Maintainer: zccrs <zhangjide@deepin.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 Foun... | ./CrossVul/dataset_final_sorted/CWE-59/cpp/bad_915_4 |
crossvul-cpp_data_bad_915_3 | /*
* Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd.
*
* Author: zccrs <zccrs@live.com>
*
* Maintainer: zccrs <zhangjide@deepin.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 Foun... | ./CrossVul/dataset_final_sorted/CWE-59/cpp/bad_915_3 |
crossvul-cpp_data_bad_4278_0 | /*
* Copyright (c) 2007 Henrique Pinto <henrique.pinto@kdemail.net>
* Copyright (c) 2008-2009 Harald Hvaal <haraldhv@stud.ntnu.no>
* Copyright (c) 2010 Raphael Kubo da Costa <rakuco@FreeBSD.org>
* Copyright (c) 2016 Vladyslav Batyrenko <mvlabat@gmail.com>
*
* Redistribution and use in source and binary forms, wit... | ./CrossVul/dataset_final_sorted/CWE-59/cpp/bad_4278_0 |
crossvul-cpp_data_good_5719_2 | #include "TestSupport.h"
#include "ServerInstanceDir.h"
using namespace Passenger;
using namespace std;
namespace tut {
struct ServerInstanceDirTest {
string parentDir;
TempDir tmpDir;
string nobodyGroup;
ServerInstanceDirTest(): tmpDir("server_instance_dir_test.tmp") {
parentDir = "server_instance_dir... | ./CrossVul/dataset_final_sorted/CWE-59/cpp/good_5719_2 |
crossvul-cpp_data_good_2134_0 | /** \file env.c
Functions for setting and getting environment variables.
*/
#include "config.h"
#include <stdlib.h>
#include <wchar.h>
#include <string.h>
#include <stdio.h>
#include <locale.h>
#include <unistd.h>
#include <signal.h>
#include <assert.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <pthread.... | ./CrossVul/dataset_final_sorted/CWE-59/cpp/good_2134_0 |
crossvul-cpp_data_bad_2134_0 | /** \file env.c
Functions for setting and getting environment variables.
*/
#include "config.h"
#include <stdlib.h>
#include <wchar.h>
#include <string.h>
#include <stdio.h>
#include <locale.h>
#include <unistd.h>
#include <signal.h>
#include <assert.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <pthread.... | ./CrossVul/dataset_final_sorted/CWE-59/cpp/bad_2134_0 |
crossvul-cpp_data_good_915_4 | /*
* Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd.
*
* Author: zccrs <zccrs@live.com>
*
* Maintainer: zccrs <zhangjide@deepin.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 Foun... | ./CrossVul/dataset_final_sorted/CWE-59/cpp/good_915_4 |
crossvul-cpp_data_bad_915_1 | /*
* Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd.
*
* Author: zccrs <zccrs@live.com>
*
* Maintainer: zccrs <zhangjide@deepin.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 Foun... | ./CrossVul/dataset_final_sorted/CWE-59/cpp/bad_915_1 |
crossvul-cpp_data_good_4278_0 | /*
* Copyright (c) 2007 Henrique Pinto <henrique.pinto@kdemail.net>
* Copyright (c) 2008-2009 Harald Hvaal <haraldhv@stud.ntnu.no>
* Copyright (c) 2010 Raphael Kubo da Costa <rakuco@FreeBSD.org>
* Copyright (c) 2016 Vladyslav Batyrenko <mvlabat@gmail.com>
*
* Redistribution and use in source and binary forms, wit... | ./CrossVul/dataset_final_sorted/CWE-59/cpp/good_4278_0 |
crossvul-cpp_data_good_1993_0 | // Copyright 2005-2019 The Mumble Developers. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file at the root of the
// Mumble source tree or at <https://www.mumble.info/LICENSE>.
#include "mumble_pch.hpp"
#include "ConnectDialog.h"
#ifdef USE_B... | ./CrossVul/dataset_final_sorted/CWE-59/cpp/good_1993_0 |
crossvul-cpp_data_bad_1993_0 | // Copyright 2005-2019 The Mumble Developers. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file at the root of the
// Mumble source tree or at <https://www.mumble.info/LICENSE>.
#include "mumble_pch.hpp"
#include "ConnectDialog.h"
#ifdef USE_B... | ./CrossVul/dataset_final_sorted/CWE-59/cpp/bad_1993_0 |
crossvul-cpp_data_good_915_3 | /*
* Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd.
*
* Author: zccrs <zccrs@live.com>
*
* Maintainer: zccrs <zhangjide@deepin.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 Foun... | ./CrossVul/dataset_final_sorted/CWE-59/cpp/good_915_3 |
crossvul-cpp_data_bad_915_0 | /*
* Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd.
*
* Author: zccrs <zccrs@live.com>
*
* Maintainer: zccrs <zhangjide@deepin.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 Foun... | ./CrossVul/dataset_final_sorted/CWE-59/cpp/bad_915_0 |
crossvul-cpp_data_good_436_3 | /*
* Soft: Keepalived is a failover program for the LVS project
* <www.linuxvirtualserver.org>. It monitor & manipulate
* a loadbalanced server pool using multi-layer checks.
*
* Part: DBus server thread for VRRP
*
* Author: Alexandre Cassen, <acassen@linux-vs.org>
*... | ./CrossVul/dataset_final_sorted/CWE-59/c/good_436_3 |
crossvul-cpp_data_good_436_0 | /*
* Soft: Keepalived is a failover program for the LVS project
* <www.linuxvirtualserver.org>. It monitor & manipulate
* a loadbalanced server pool using multi-layer checks.
*
* Part: Main program structure.
*
* Author: Alexandre Cassen, <acassen@linux-vs.org>
*
* ... | ./CrossVul/dataset_final_sorted/CWE-59/c/good_436_0 |
crossvul-cpp_data_good_5487_2 | /*****************************************************************************
*
* LOGGING.C - Log file functions for use with Nagios
*
*
* License:
*
* 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 Fr... | ./CrossVul/dataset_final_sorted/CWE-59/c/good_5487_2 |
crossvul-cpp_data_good_436_11 | /*
* Soft: Keepalived is a failover program for the LVS project
* <www.linuxvirtualserver.org>. It monitor & manipulate
* a loadbalanced server pool using multi-layer checks.
*
* Part: Configuration file parser/reader. Place into the dynamic
* data structure re... | ./CrossVul/dataset_final_sorted/CWE-59/c/good_436_11 |
crossvul-cpp_data_good_436_4 | /*
* Soft: Vrrpd is an implementation of VRRPv2 as specified in rfc2338.
* VRRP is a protocol which elect a master server on a LAN. If the
* master fails, a backup server takes over.
* The original implementation has been made by jerome etienne.
*
* Part: Outpu... | ./CrossVul/dataset_final_sorted/CWE-59/c/good_436_4 |
crossvul-cpp_data_good_1592_0 | /*
abrt-hook-ccpp.cpp - the hook for C/C++ crashing program
Copyright (C) 2009 Zdenek Prikryl (zprikryl@redhat.com)
Copyright (C) 2009 RedHat inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free ... | ./CrossVul/dataset_final_sorted/CWE-59/c/good_1592_0 |
crossvul-cpp_data_bad_3273_0 | /** \ingroup payload
* \file lib/fsm.c
* File state machine to handle a payload from a package.
*/
#include "system.h"
#include <utime.h>
#include <errno.h>
#if WITH_CAP
#include <sys/capability.h>
#endif
#include <rpm/rpmte.h>
#include <rpm/rpmts.h>
#include <rpm/rpmlog.h>
#include "rpmio/rpmio_internal.h" /* f... | ./CrossVul/dataset_final_sorted/CWE-59/c/bad_3273_0 |
crossvul-cpp_data_good_1506_3 | /*
Copyright (C) 2009 RedHat inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is dist... | ./CrossVul/dataset_final_sorted/CWE-59/c/good_1506_3 |
crossvul-cpp_data_bad_1590_0 | /*
abrt-hook-ccpp.cpp - the hook for C/C++ crashing program
Copyright (C) 2009 Zdenek Prikryl (zprikryl@redhat.com)
Copyright (C) 2009 RedHat inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free ... | ./CrossVul/dataset_final_sorted/CWE-59/c/bad_1590_0 |
crossvul-cpp_data_good_825_0 | /*
* Copyright (C) 2015 Canonical Ltd
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WA... | ./CrossVul/dataset_final_sorted/CWE-59/c/good_825_0 |
crossvul-cpp_data_bad_2241_0 | /*
* linux/fs/namei.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*/
/*
* Some corrections by tytso.
*/
/* [Feb 1997 T. Schoebel-Theuer] Complete rewrite of the pathname
* lookup logic.
*/
/* [Feb-Apr 2000, AV] Rewrite to the new namespace architecture.
*/
#include <linux/init.h>
#include <linux/export.h... | ./CrossVul/dataset_final_sorted/CWE-59/c/bad_2241_0 |
crossvul-cpp_data_bad_436_6 | /*
* Soft: Vrrpd is an implementation of VRRPv2 as specified in rfc2338.
* VRRP is a protocol which elect a master server on a LAN. If the
* master fails, a backup server takes over.
* The original implementation has been made by jerome etienne.
*
* Part: Print... | ./CrossVul/dataset_final_sorted/CWE-59/c/bad_436_6 |
crossvul-cpp_data_good_3576_1 | /*
* internal.c: internal data structures and helpers
*
* Copyright (C) 2007-2011 David Lutterkort
*
* 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 Li... | ./CrossVul/dataset_final_sorted/CWE-59/c/good_3576_1 |
crossvul-cpp_data_good_3272_0 | /** \ingroup payload
* \file lib/fsm.c
* File state machine to handle a payload from a package.
*/
#include "system.h"
#include <utime.h>
#include <errno.h>
#if WITH_CAP
#include <sys/capability.h>
#endif
#include <rpm/rpmte.h>
#include <rpm/rpmts.h>
#include <rpm/rpmlog.h>
#include <rpm/rpmmacro.h>
#include "rp... | ./CrossVul/dataset_final_sorted/CWE-59/c/good_3272_0 |
crossvul-cpp_data_good_4226_4 | /*
* parse.c
*
*/
/* Portions of this file are subject to the following copyrights. See
* the Net-SNMP's COPYING file for more details and other copyrights
* that may apply:
*/
/******************************************************************
Copyright 1989, 1991, 1992 by Carnegie Mellon University
... | ./CrossVul/dataset_final_sorted/CWE-59/c/good_4226_4 |
crossvul-cpp_data_bad_1591_0 | /*
abrt-hook-ccpp.cpp - the hook for C/C++ crashing program
Copyright (C) 2009 Zdenek Prikryl (zprikryl@redhat.com)
Copyright (C) 2009 RedHat inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free ... | ./CrossVul/dataset_final_sorted/CWE-59/c/bad_1591_0 |
crossvul-cpp_data_good_3273_0 | /** \ingroup payload
* \file lib/fsm.c
* File state machine to handle a payload from a package.
*/
#include "system.h"
#include <utime.h>
#include <errno.h>
#if WITH_CAP
#include <sys/capability.h>
#endif
#include <rpm/rpmte.h>
#include <rpm/rpmts.h>
#include <rpm/rpmlog.h>
#include "rpmio/rpmio_internal.h" /* f... | ./CrossVul/dataset_final_sorted/CWE-59/c/good_3273_0 |
crossvul-cpp_data_bad_436_9 | /*
* Soft: Keepalived is a failover program for the LVS project
* <www.linuxvirtualserver.org>. It monitor & manipulate
* a loadbalanced server pool using multi-layer checks.
*
* Part: Memory management framework. This framework is used to
* find any memory lea... | ./CrossVul/dataset_final_sorted/CWE-59/c/bad_436_9 |
crossvul-cpp_data_bad_4226_4 | /*
* parse.c
*
*/
/* Portions of this file are subject to the following copyrights. See
* the Net-SNMP's COPYING file for more details and other copyrights
* that may apply:
*/
/******************************************************************
Copyright 1989, 1991, 1992 by Carnegie Mellon University
... | ./CrossVul/dataset_final_sorted/CWE-59/c/bad_4226_4 |
crossvul-cpp_data_good_4226_3 | /*
* mib.c
*
* $Id$
*
* Update: 1998-07-17 <jhy@gsu.edu>
* Added print_oid_report* functions.
*
*/
/* Portions of this file are subject to the following copyrights. See
* the Net-SNMP's COPYING file for more details and other copyrights
* that may apply:
*/
/*************************************************... | ./CrossVul/dataset_final_sorted/CWE-59/c/good_4226_3 |
crossvul-cpp_data_good_2241_0 | /*
* linux/fs/namei.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*/
/*
* Some corrections by tytso.
*/
/* [Feb 1997 T. Schoebel-Theuer] Complete rewrite of the pathname
* lookup logic.
*/
/* [Feb-Apr 2000, AV] Rewrite to the new namespace architecture.
*/
#include <linux/init.h>
#include <linux/export.h... | ./CrossVul/dataset_final_sorted/CWE-59/c/good_2241_0 |
crossvul-cpp_data_good_589_5 | /* $Id: rc.c,v 1.116 2010/08/20 09:47:09 htrb Exp $ */
/*
* Initialization file etc.
*/
#include "fm.h"
#include "myctype.h"
#include "proto.h"
#include <stdio.h>
#include <errno.h>
#include "parsetag.h"
#include "local.h"
#include "regex.h"
#include <stdlib.h>
#include <stddef.h>
struct param_ptr {
char *name;... | ./CrossVul/dataset_final_sorted/CWE-59/c/good_589_5 |
crossvul-cpp_data_good_1591_0 | /*
abrt-hook-ccpp.cpp - the hook for C/C++ crashing program
Copyright (C) 2009 Zdenek Prikryl (zprikryl@redhat.com)
Copyright (C) 2009 RedHat inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free ... | ./CrossVul/dataset_final_sorted/CWE-59/c/good_1591_0 |
crossvul-cpp_data_bad_3576_1 | /*
* internal.c: internal data structures and helpers
*
* Copyright (C) 2007-2011 David Lutterkort
*
* 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 Li... | ./CrossVul/dataset_final_sorted/CWE-59/c/bad_3576_1 |
crossvul-cpp_data_good_589_4 | /* $Id: main.c,v 1.270 2010/08/24 10:11:51 htrb Exp $ */
#define MAINPROGRAM
#include "fm.h"
#include <stdio.h>
#include <signal.h>
#include <setjmp.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
#if defined(HAVE_WAITPID) || defined(HAVE_WAIT3)
#include <sys/wait.h>
#endif
#inclu... | ./CrossVul/dataset_final_sorted/CWE-59/c/good_589_4 |
crossvul-cpp_data_bad_3272_0 | /** \ingroup payload
* \file lib/fsm.c
* File state machine to handle a payload from a package.
*/
#include "system.h"
#include <utime.h>
#include <errno.h>
#if WITH_CAP
#include <sys/capability.h>
#endif
#include <rpm/rpmte.h>
#include <rpm/rpmts.h>
#include <rpm/rpmlog.h>
#include <rpm/rpmmacro.h>
#include "rp... | ./CrossVul/dataset_final_sorted/CWE-59/c/bad_3272_0 |
crossvul-cpp_data_good_1506_0 | /*
Copyright (C) 2010 ABRT team
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 distributed in th... | ./CrossVul/dataset_final_sorted/CWE-59/c/good_1506_0 |
crossvul-cpp_data_good_1468_0 | /* liblxcapi
*
* Copyright © 2012 Serge Hallyn <serge.hallyn@ubuntu.com>.
* Copyright © 2012 Canonical Ltd.
*
* 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 ... | ./CrossVul/dataset_final_sorted/CWE-59/c/good_1468_0 |
crossvul-cpp_data_bad_3271_0 | /** \ingroup rpmcli
* \file lib/verify.c
* Verify installed payload files from package metadata.
*/
#include "system.h"
#include <errno.h>
#if WITH_CAP
#include <sys/capability.h>
#endif
#if WITH_ACL
#include <acl/libacl.h>
#endif
#include <rpm/rpmcli.h>
#include <rpm/header.h>
#include <rpm/rpmlog.h>
#include <r... | ./CrossVul/dataset_final_sorted/CWE-59/c/bad_3271_0 |
crossvul-cpp_data_bad_1670_1 | /*
Copyright (C) 2011 ABRT Team
Copyright (C) 2011 RedHat inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later... | ./CrossVul/dataset_final_sorted/CWE-59/c/bad_1670_1 |
crossvul-cpp_data_good_1471_1 | /*
* lxc: linux Container library
*
* (C) Copyright IBM Corp. 2007, 2008
*
* Authors:
* Daniel Lezcano <daniel.lezcano at free.fr>
*
* 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 Foundati... | ./CrossVul/dataset_final_sorted/CWE-59/c/good_1471_1 |
crossvul-cpp_data_bad_1471_3 | 404: Not Found | ./CrossVul/dataset_final_sorted/CWE-59/c/bad_1471_3 |
crossvul-cpp_data_bad_589_5 | /* $Id: rc.c,v 1.116 2010/08/20 09:47:09 htrb Exp $ */
/*
* Initialization file etc.
*/
#include "fm.h"
#include "myctype.h"
#include "proto.h"
#include <stdio.h>
#include <errno.h>
#include "parsetag.h"
#include "local.h"
#include "regex.h"
#include <stdlib.h>
#include <stddef.h>
struct param_ptr {
char *name;... | ./CrossVul/dataset_final_sorted/CWE-59/c/bad_589_5 |
crossvul-cpp_data_good_3263_0 | /*
* ProFTPD - FTP server daemon
* Copyright (c) 1997, 1998 Public Flood Software
* Copyright (c) 1999, 2000 MacGyver aka Habeeb J. Dihu <macgyver@tos.net>
* Copyright (c) 2001-2017 The ProFTPD Project team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU G... | ./CrossVul/dataset_final_sorted/CWE-59/c/good_3263_0 |
crossvul-cpp_data_good_436_10 | /*
* Soft: Keepalived is a failover program for the LVS project
* <www.linuxvirtualserver.org>. It monitor & manipulate
* a loadbalanced server pool using multi-layer checks.
*
* Part: Forked system call to launch an extra script.
*
* Author: Alexandre Cassen, <acasse... | ./CrossVul/dataset_final_sorted/CWE-59/c/good_436_10 |
crossvul-cpp_data_bad_436_8 | /*
* Soft: Keepalived is a failover program for the LVS project
* <www.linuxvirtualserver.org>. It monitor & manipulate
* a loadbalanced server pool using multi-layer checks.
*
* Part: logging facility.
*
* Author: Alexandre Cassen, <acassen@linux-vs.org>
*
* ... | ./CrossVul/dataset_final_sorted/CWE-59/c/bad_436_8 |
crossvul-cpp_data_bad_3576_3 | /*
* transform.c: support for building and running transformers
*
* Copyright (C) 2007-2011 David Lutterkort
*
* 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... | ./CrossVul/dataset_final_sorted/CWE-59/c/bad_3576_3 |
crossvul-cpp_data_bad_4226_3 | /*
* mib.c
*
* $Id$
*
* Update: 1998-07-17 <jhy@gsu.edu>
* Added print_oid_report* functions.
*
*/
/* Portions of this file are subject to the following copyrights. See
* the Net-SNMP's COPYING file for more details and other copyrights
* that may apply:
*/
/*************************************************... | ./CrossVul/dataset_final_sorted/CWE-59/c/bad_4226_3 |
crossvul-cpp_data_good_1590_0 | /*
abrt-hook-ccpp.cpp - the hook for C/C++ crashing program
Copyright (C) 2009 Zdenek Prikryl (zprikryl@redhat.com)
Copyright (C) 2009 RedHat inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free ... | ./CrossVul/dataset_final_sorted/CWE-59/c/good_1590_0 |
crossvul-cpp_data_good_436_12 | /*
* Soft: Keepalived is a failover program for the LVS project
* <www.linuxvirtualserver.org>. It monitor & manipulate
* a loadbalanced server pool using multi-layer checks.
*
* Part: General program utils.
*
* Author: Alexandre Cassen, <acassen@linux-vs.org>
*
* ... | ./CrossVul/dataset_final_sorted/CWE-59/c/good_436_12 |
crossvul-cpp_data_bad_1506_1 | #include <gio/gio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <pwd.h>
#include <grp.h>
#include "libabrt.h"
#include "abrt-polkit.h"
#include "abrt_glib.h"
#include <libreport/dump_dir.h>
#include "problem_api.h"
static GMainLoop *loop;
static guint g_timeout_source;
/* default, settable with -t: */
static ... | ./CrossVul/dataset_final_sorted/CWE-59/c/bad_1506_1 |
crossvul-cpp_data_bad_436_0 | /*
* Soft: Keepalived is a failover program for the LVS project
* <www.linuxvirtualserver.org>. It monitor & manipulate
* a loadbalanced server pool using multi-layer checks.
*
* Part: Main program structure.
*
* Author: Alexandre Cassen, <acassen@linux-vs.org>
*
* ... | ./CrossVul/dataset_final_sorted/CWE-59/c/bad_436_0 |
crossvul-cpp_data_bad_436_12 | /*
* Soft: Keepalived is a failover program for the LVS project
* <www.linuxvirtualserver.org>. It monitor & manipulate
* a loadbalanced server pool using multi-layer checks.
*
* Part: General program utils.
*
* Author: Alexandre Cassen, <acassen@linux-vs.org>
*
* ... | ./CrossVul/dataset_final_sorted/CWE-59/c/bad_436_12 |
crossvul-cpp_data_bad_3264_0 | /*
* ProFTPD - FTP server daemon
* Copyright (c) 1997, 1998 Public Flood Software
* Copyright (c) 1999, 2000 MacGyver aka Habeeb J. Dihu <macgyver@tos.net>
* Copyright (c) 2001-2017 The ProFTPD Project team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU G... | ./CrossVul/dataset_final_sorted/CWE-59/c/bad_3264_0 |
crossvul-cpp_data_good_436_6 | /*
* Soft: Vrrpd is an implementation of VRRPv2 as specified in rfc2338.
* VRRP is a protocol which elect a master server on a LAN. If the
* master fails, a backup server takes over.
* The original implementation has been made by jerome etienne.
*
* Part: Print... | ./CrossVul/dataset_final_sorted/CWE-59/c/good_436_6 |
crossvul-cpp_data_bad_1506_0 | /*
Copyright (C) 2010 ABRT team
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 distributed in th... | ./CrossVul/dataset_final_sorted/CWE-59/c/bad_1506_0 |
crossvul-cpp_data_bad_1471_1 | 404: Not Found | ./CrossVul/dataset_final_sorted/CWE-59/c/bad_1471_1 |
crossvul-cpp_data_bad_1505_0 | /*
Copyright (C) 2010 ABRT team
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 distributed in th... | ./CrossVul/dataset_final_sorted/CWE-59/c/bad_1505_0 |
crossvul-cpp_data_bad_436_11 | /*
* Soft: Keepalived is a failover program for the LVS project
* <www.linuxvirtualserver.org>. It monitor & manipulate
* a loadbalanced server pool using multi-layer checks.
*
* Part: Configuration file parser/reader. Place into the dynamic
* data structure re... | ./CrossVul/dataset_final_sorted/CWE-59/c/bad_436_11 |
crossvul-cpp_data_good_1670_1 | /*
Copyright (C) 2011 ABRT Team
Copyright (C) 2011 RedHat inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later... | ./CrossVul/dataset_final_sorted/CWE-59/c/good_1670_1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.