id
stringlengths
25
30
content
stringlengths
14
942k
max_stars_repo_path
stringlengths
49
55
crossvul-cpp_data_bad_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/bad_1592_0
crossvul-cpp_data_bad_825_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-59/c/bad_825_0
crossvul-cpp_data_bad_3262_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-2016 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_3262_0
crossvul-cpp_data_good_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/good_436_9
crossvul-cpp_data_bad_1471_2
404: Not Found
./CrossVul/dataset_final_sorted/CWE-59/c/bad_1471_2
crossvul-cpp_data_bad_2235_0
/* * * Copyright (C) 2006-2011 Anders Brander <anders@brander.dk>, * * Anders Kvist <akv@lnxbx.dk> and Klaus Post <klauspost@gmail.com> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; e...
./CrossVul/dataset_final_sorted/CWE-59/c/bad_2235_0
crossvul-cpp_data_good_436_2
/* * 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: SMTP WRAPPER connect to a specified smtp server and send mail * using the sm...
./CrossVul/dataset_final_sorted/CWE-59/c/good_436_2
crossvul-cpp_data_bad_1593_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_1593_0
crossvul-cpp_data_bad_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/bad_436_10
crossvul-cpp_data_bad_436_7
/* * 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: Sheduling framework for vrrp code. * * Author: Alexandre Cassen, <acassen@linux-vs....
./CrossVul/dataset_final_sorted/CWE-59/c/bad_436_7
crossvul-cpp_data_bad_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/bad_1468_0
crossvul-cpp_data_good_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/good_3264_0
crossvul-cpp_data_good_436_5
/* * 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_5
crossvul-cpp_data_good_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/good_436_8
crossvul-cpp_data_good_436_7
/* * 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: Sheduling framework for vrrp code. * * Author: Alexandre Cassen, <acassen@linux-vs....
./CrossVul/dataset_final_sorted/CWE-59/c/good_436_7
crossvul-cpp_data_good_3262_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_3262_0
crossvul-cpp_data_good_1471_2
/* * 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_2
crossvul-cpp_data_good_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/good_1506_1
crossvul-cpp_data_bad_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/bad_1506_3
crossvul-cpp_data_good_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/good_3576_3
crossvul-cpp_data_bad_1673_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_1673_0
crossvul-cpp_data_good_1471_3
/* * 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_3
crossvul-cpp_data_bad_436_5
/* * 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_5
crossvul-cpp_data_bad_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/bad_436_4
crossvul-cpp_data_good_2235_0
/* * * Copyright (C) 2006-2011 Anders Brander <anders@brander.dk>, * * Anders Kvist <akv@lnxbx.dk> and Klaus Post <klauspost@gmail.com> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; e...
./CrossVul/dataset_final_sorted/CWE-59/c/good_2235_0
crossvul-cpp_data_good_1673_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_1673_0
crossvul-cpp_data_bad_436_1
/* * 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: pidfile utility. * * Author: Alexandre Cassen, <acassen@linux-vs.org> * * ...
./CrossVul/dataset_final_sorted/CWE-59/c/bad_436_1
crossvul-cpp_data_bad_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/bad_5487_2
crossvul-cpp_data_bad_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/bad_3263_0
crossvul-cpp_data_bad_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/bad_436_3
crossvul-cpp_data_bad_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/bad_589_4
crossvul-cpp_data_good_1593_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_1593_0
crossvul-cpp_data_good_436_1
/* * 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: pidfile utility. * * Author: Alexandre Cassen, <acassen@linux-vs.org> * * ...
./CrossVul/dataset_final_sorted/CWE-59/c/good_436_1
crossvul-cpp_data_bad_436_2
/* * 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: SMTP WRAPPER connect to a specified smtp server and send mail * using the sm...
./CrossVul/dataset_final_sorted/CWE-59/c/bad_436_2
crossvul-cpp_data_good_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/good_1505_0
crossvul-cpp_data_good_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/good_3271_0
crossvul-cpp_data_good_4262_0
/* vips7 compat stub for vips_dzsave() * * 11/6/13 * - from im_vips2tiff() */ /* This file is part of VIPS. VIPS 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 ...
./CrossVul/dataset_final_sorted/CWE-908/c/good_4262_0
crossvul-cpp_data_bad_4262_0
/* vips7 compat stub for vips_dzsave() * * 11/6/13 * - from im_vips2tiff() */ /* This file is part of VIPS. VIPS 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 ...
./CrossVul/dataset_final_sorted/CWE-908/c/bad_4262_0
crossvul-cpp_data_good_3196_1
// This may look like C code, but it is really -*- C++ -*- // // Copyright Bob Friesenhahn, 1999, 2000, 2001, 2002, 2003 // Copyright Dirk Lemstra 2014-2015 // // Implementation of Exception and derived classes // #define MAGICKCORE_IMPLEMENTATION 1 #define MAGICK_PLUSPLUS_IMPLEMENTATION 1 #include "Magick++/Include...
./CrossVul/dataset_final_sorted/CWE-772/cpp/good_3196_1
crossvul-cpp_data_bad_3196_1
// This may look like C code, but it is really -*- C++ -*- // // Copyright Bob Friesenhahn, 1999, 2000, 2001, 2002, 2003 // Copyright Dirk Lemstra 2014-2015 // // Implementation of Exception and derived classes // #define MAGICKCORE_IMPLEMENTATION 1 #define MAGICK_PLUSPLUS_IMPLEMENTATION 1 #include "Magick++/Include...
./CrossVul/dataset_final_sorted/CWE-772/cpp/bad_3196_1
crossvul-cpp_data_bad_2619_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-772/c/bad_2619_0
crossvul-cpp_data_bad_661_0
/* * mac80211_hwsim - software simulator of 802.11 radio(s) for mac80211 * Copyright (c) 2008, Jouni Malinen <j@w1.fi> * Copyright (c) 2011, Javier Lopez <jlopex@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as ...
./CrossVul/dataset_final_sorted/CWE-772/c/bad_661_0
crossvul-cpp_data_bad_2603_0
/* * Copyright (C) 2001 Jens Axboe <axboe@kernel.dk> * * 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 the hope that it will be useful, * but...
./CrossVul/dataset_final_sorted/CWE-772/c/bad_2603_0
crossvul-cpp_data_bad_653_0
/* * Serial Attached SCSI (SAS) Expander discovery and configuration * * Copyright (C) 2005 Adaptec, Inc. All rights reserved. * Copyright (C) 2005 Luben Tuikov <luben_tuikov@adaptec.com> * * This file is licensed under GPLv2. * * This program is free software; you can redistribute it and/or * modify it under...
./CrossVul/dataset_final_sorted/CWE-772/c/bad_653_0
crossvul-cpp_data_bad_2616_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-772/c/bad_2616_0
crossvul-cpp_data_bad_2623_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-772/c/bad_2623_1
crossvul-cpp_data_good_2616_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-772/c/good_2616_0
crossvul-cpp_data_good_1356_0
/* SPDX-License-Identifier: LGPL-2.1+ */ #include <errno.h> #include <fcntl.h> #include <string.h> #include <sys/ioctl.h> #include <unistd.h> #include <linux/input.h> #include "sd-messages.h" #include "alloc-util.h" #include "fd-util.h" #include "logind-button.h" #include "missing_input.h" #include "string-util.h" #...
./CrossVul/dataset_final_sorted/CWE-772/c/good_1356_0
crossvul-cpp_data_bad_2608_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-772/c/bad_2608_1
crossvul-cpp_data_bad_1161_0
/* * IPv6 over IPv4 tunnel device - Simple Internet Transition (SIT) * Linux INET6 implementation * * Authors: * Pedro Roque <roque@di.fc.ul.pt> * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> * * 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-772/c/bad_1161_0
crossvul-cpp_data_good_2613_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-772/c/good_2613_1
crossvul-cpp_data_bad_2618_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-772/c/bad_2618_1
crossvul-cpp_data_good_2618_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-772/c/good_2618_0
crossvul-cpp_data_good_361_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-772/c/good_361_0
crossvul-cpp_data_bad_1168_2
404: Not Found
./CrossVul/dataset_final_sorted/CWE-772/c/bad_1168_2
crossvul-cpp_data_good_2617_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-772/c/good_2617_0
crossvul-cpp_data_bad_2621_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % M M AAA TTTTT L AAA BBBB ...
./CrossVul/dataset_final_sorted/CWE-772/c/bad_2621_0
crossvul-cpp_data_good_3364_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-772/c/good_3364_0
crossvul-cpp_data_bad_1039_0
/* * rfbserver.c - deal with server-side of the RFB protocol. */ /* * Copyright (C) 2011-2012 D. R. Commander * Copyright (C) 2005 Rohit Kumar, Johannes E. Schindelin * Copyright (C) 2002 RealVNC Ltd. * OSXvnc Copyright (C) 2001 Dan McGuirk <mcguirk@incompleteness.net>. * Original Xvnc code Copyright (C) 1...
./CrossVul/dataset_final_sorted/CWE-772/c/bad_1039_0
crossvul-cpp_data_bad_2615_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-772/c/bad_2615_0
crossvul-cpp_data_good_2557_0
/* * Copyright (C) 2015 Red Hat, Inc. * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, co...
./CrossVul/dataset_final_sorted/CWE-772/c/good_2557_0
crossvul-cpp_data_bad_2623_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-772/c/bad_2623_0
crossvul-cpp_data_bad_3450_2
/* ruleset.c - rsyslog's ruleset object * * We have a two-way structure of linked lists: one global linked list * (llAllRulesets) hold alls rule sets that we know. Included in each * list is a list of rules (which contain a list of actions, but that's * a different story). * * Usually, only a single rule set is ...
./CrossVul/dataset_final_sorted/CWE-772/c/bad_3450_2
crossvul-cpp_data_bad_2574_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-772/c/bad_2574_0
crossvul-cpp_data_good_2829_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-772/c/good_2829_0
crossvul-cpp_data_good_1168_0
#include <stdlib.h> #include <stdio.h> #include <ctype.h> #include <string.h> #include "../common/cmdline.h" #define TAG FREERDP_TAG("generate_argument_docbook") LPSTR tr_esc_str(LPCSTR arg, bool format) { LPSTR tmp = NULL; LPSTR tmp2 = NULL; size_t cs = 0, x, ds, len; size_t s; if (NULL == arg) return NULL; ...
./CrossVul/dataset_final_sorted/CWE-772/c/good_1168_0
crossvul-cpp_data_bad_1162_0
/* Copyright 2011-2014 Autronica Fire and Security AS * * 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. * * Autho...
./CrossVul/dataset_final_sorted/CWE-772/c/bad_1162_0
crossvul-cpp_data_good_3450_2
/* ruleset.c - rsyslog's ruleset object * * We have a two-way structure of linked lists: one global linked list * (llAllRulesets) hold alls rule sets that we know. Included in each * list is a list of rules (which contain a list of actions, but that's * a different story). * * Usually, only a single rule set is ...
./CrossVul/dataset_final_sorted/CWE-772/c/good_3450_2
crossvul-cpp_data_good_2621_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % M M AAA TTTTT L AAA BBBB ...
./CrossVul/dataset_final_sorted/CWE-772/c/good_2621_0
crossvul-cpp_data_good_2623_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-772/c/good_2623_0
crossvul-cpp_data_good_2741_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % M M AAA TTTTT L AAA BBBB ...
./CrossVul/dataset_final_sorted/CWE-772/c/good_2741_0
crossvul-cpp_data_good_2567_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-772/c/good_2567_1
crossvul-cpp_data_bad_3103_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-772/c/bad_3103_1
crossvul-cpp_data_bad_2829_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-772/c/bad_2829_0
crossvul-cpp_data_good_1168_1
/** * FreeRDP: A Remote Desktop Protocol Implementation * * Copyright 2014 Thincast Technologies GmbH * Copyright 2014 Hardening <contact@hardening-consulting.com> * Copyright 2017 Armin Novak <armin.novak@thincast.com> * Copyright 2017 Thincast Technologies GmbH * * Licensed under the Apache License, Version 2...
./CrossVul/dataset_final_sorted/CWE-772/c/good_1168_1
crossvul-cpp_data_bad_361_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-772/c/bad_361_0
crossvul-cpp_data_good_2618_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-772/c/good_2618_1
crossvul-cpp_data_bad_2613_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-772/c/bad_2613_1
crossvul-cpp_data_bad_3364_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-772/c/bad_3364_0
crossvul-cpp_data_bad_2604_0
/* * Copyright (C) 2001 Jens Axboe <axboe@kernel.dk> * * 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 the hope that it will be useful, * but...
./CrossVul/dataset_final_sorted/CWE-772/c/bad_2604_0
crossvul-cpp_data_good_2623_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-772/c/good_2623_1
crossvul-cpp_data_good_1168_2
/* LodePNG version 20140823 Copyright (c) 2005-2014 Lode Vandevenne This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, incl...
./CrossVul/dataset_final_sorted/CWE-772/c/good_1168_2
crossvul-cpp_data_good_1161_0
/* * IPv6 over IPv4 tunnel device - Simple Internet Transition (SIT) * Linux INET6 implementation * * Authors: * Pedro Roque <roque@di.fc.ul.pt> * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> * * 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-772/c/good_1161_0
crossvul-cpp_data_bad_1168_1
404: Not Found
./CrossVul/dataset_final_sorted/CWE-772/c/bad_1168_1
crossvul-cpp_data_good_362_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-772/c/good_362_0
crossvul-cpp_data_bad_2618_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-772/c/bad_2618_0
crossvul-cpp_data_good_3103_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-772/c/good_3103_1
crossvul-cpp_data_good_1039_0
/* * rfbserver.c - deal with server-side of the RFB protocol. */ /* * Copyright (C) 2011-2012 D. R. Commander * Copyright (C) 2005 Rohit Kumar, Johannes E. Schindelin * Copyright (C) 2002 RealVNC Ltd. * OSXvnc Copyright (C) 2001 Dan McGuirk <mcguirk@incompleteness.net>. * Original Xvnc code Copyright (C) 1...
./CrossVul/dataset_final_sorted/CWE-772/c/good_1039_0
crossvul-cpp_data_bad_2557_0
/* * Copyright (C) 2015 Red Hat, Inc. * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, co...
./CrossVul/dataset_final_sorted/CWE-772/c/bad_2557_0
crossvul-cpp_data_good_2574_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-772/c/good_2574_0
crossvul-cpp_data_good_2620_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-772/c/good_2620_0
crossvul-cpp_data_bad_1194_0
// SPDX-License-Identifier: GPL-2.0-only /* * net/ipv6/fib6_rules.c IPv6 Routing Policy Rules * * Copyright (C)2003-2006 Helsinki University of Technology * Copyright (C)2003-2006 USAGI/WIDE Project * * Authors * Thomas Graf <tgraf@suug.ch> * Ville Nuorvala <vnuorval@tcs.hut.fi> */ #include <linux/netdevice...
./CrossVul/dataset_final_sorted/CWE-772/c/bad_1194_0
crossvul-cpp_data_bad_362_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-772/c/bad_362_0
crossvul-cpp_data_bad_2567_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-772/c/bad_2567_1
crossvul-cpp_data_good_2603_0
/* * Copyright (C) 2001 Jens Axboe <axboe@kernel.dk> * * 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 the hope that it will be useful, * but...
./CrossVul/dataset_final_sorted/CWE-772/c/good_2603_0
crossvul-cpp_data_good_2604_0
/* * Copyright (C) 2001 Jens Axboe <axboe@kernel.dk> * * 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 the hope that it will be useful, * but...
./CrossVul/dataset_final_sorted/CWE-772/c/good_2604_0
crossvul-cpp_data_bad_2622_0
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-772/c/bad_2622_0
crossvul-cpp_data_good_4476_0
/* $OpenBSD: table.c,v 1.49 2020/12/23 08:12:14 martijn Exp $ */ /* * Copyright (c) 2013 Eric Faurot <eric@openbsd.org> * Copyright (c) 2008 Gilles Chehade <gilles@poolp.org> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that th...
./CrossVul/dataset_final_sorted/CWE-772/c/good_4476_0
crossvul-cpp_data_good_2608_1
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
./CrossVul/dataset_final_sorted/CWE-772/c/good_2608_1
crossvul-cpp_data_bad_1356_0
/* SPDX-License-Identifier: LGPL-2.1+ */ #include <errno.h> #include <fcntl.h> #include <string.h> #include <sys/ioctl.h> #include <unistd.h> #include <linux/input.h> #include "sd-messages.h" #include "alloc-util.h" #include "fd-util.h" #include "logind-button.h" #include "missing_input.h" #include "string-util.h" #...
./CrossVul/dataset_final_sorted/CWE-772/c/bad_1356_0