id stringlengths 25 30 | content stringlengths 14 942k | max_stars_repo_path stringlengths 49 55 |
|---|---|---|
crossvul-cpp_data_good_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/good_1162_0 |
crossvul-cpp_data_good_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/good_653_0 |
crossvul-cpp_data_bad_2830_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-772/c/bad_2830_0 |
crossvul-cpp_data_bad_1168_0 | 404: Not Found | ./CrossVul/dataset_final_sorted/CWE-772/c/bad_1168_0 |
crossvul-cpp_data_bad_2741_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% M M AAA TTTTT L AAA BBBB ... | ./CrossVul/dataset_final_sorted/CWE-772/c/bad_2741_0 |
crossvul-cpp_data_bad_1162_1 | /* 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_1 |
crossvul-cpp_data_good_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/good_1194_0 |
crossvul-cpp_data_good_2619_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-772/c/good_2619_0 |
crossvul-cpp_data_good_2830_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-772/c/good_2830_0 |
crossvul-cpp_data_bad_2617_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-772/c/bad_2617_0 |
crossvul-cpp_data_good_1162_1 | /* 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/good_1162_1 |
crossvul-cpp_data_good_2615_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-772/c/good_2615_0 |
crossvul-cpp_data_good_2622_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-772/c/good_2622_0 |
crossvul-cpp_data_good_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/good_661_0 |
crossvul-cpp_data_bad_2620_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-772/c/bad_2620_0 |
crossvul-cpp_data_bad_4476_0 | /* $OpenBSD: table.c,v 1.48 2019/01/10 07:40:52 eric 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 the a... | ./CrossVul/dataset_final_sorted/CWE-772/c/bad_4476_0 |
crossvul-cpp_data_good_4069_0 | /**
* @file
* Low-level socket handling
*
* @authors
* Copyright (C) 1998,2000 Michael R. Elkins <me@mutt.org>
* Copyright (C) 1999-2006,2008 Brendan Cully <brendan@kublai.com>
* Copyright (C) 1999-2000 Tommi Komulainen <Tommi.Komulainen@iki.fi>
*
* @copyright
* This program is free software: you can redistri... | ./CrossVul/dataset_final_sorted/CWE-74/c/good_4069_0 |
crossvul-cpp_data_bad_1906_2 | /*
* Copyright © 2014-2019 Red Hat, Inc
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This libr... | ./CrossVul/dataset_final_sorted/CWE-74/c/bad_1906_2 |
crossvul-cpp_data_bad_4069_7 | /**
* @file
* Send email to an SMTP server
*
* @authors
* Copyright (C) 2002 Michael R. Elkins <me@mutt.org>
* Copyright (C) 2005-2009 Brendan Cully <brendan@kublai.com>
* Copyright (C) 2019 Pietro Cerutti <gahr@gahr.ch>
*
* @copyright
* This program is free software: you can redistribute it and/or modify it ... | ./CrossVul/dataset_final_sorted/CWE-74/c/bad_4069_7 |
crossvul-cpp_data_bad_1909_0 | /*
* Copyright © 2018 Red Hat, Inc
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library i... | ./CrossVul/dataset_final_sorted/CWE-74/c/bad_1909_0 |
crossvul-cpp_data_good_4069_2 | /**
* @file
* Send/receive commands to/from an IMAP server
*
* @authors
* Copyright (C) 1996-1998,2010,2012 Michael R. Elkins <me@mutt.org>
* Copyright (C) 1996-1999 Brandon Long <blong@fiction.net>
* Copyright (C) 1999-2009,2011 Brendan Cully <brendan@kublai.com>
* Copyright (C) 2018 Richard Russon <rich@flatc... | ./CrossVul/dataset_final_sorted/CWE-74/c/good_4069_2 |
crossvul-cpp_data_bad_1907_0 | /*
* Copyright © 2014-2018 Red Hat, Inc
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This libr... | ./CrossVul/dataset_final_sorted/CWE-74/c/bad_1907_0 |
crossvul-cpp_data_good_1003_1 | /***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1982-2013 AT&T Intellectual Property *
* a... | ./CrossVul/dataset_final_sorted/CWE-74/c/good_1003_1 |
crossvul-cpp_data_bad_433_0 | // SPDX-License-Identifier: GPL-3.0-or-later
#include "../libnetdata.h"
// ----------------------------------------------------------------------------
// URL encode / decode
// code from: http://www.geekhideout.com/urlcode.shtml
/* Converts a hex character to its integer value */
char from_hex(char ch) {
return... | ./CrossVul/dataset_final_sorted/CWE-74/c/bad_433_0 |
crossvul-cpp_data_good_433_0 | // SPDX-License-Identifier: GPL-3.0-or-later
#include "../libnetdata.h"
// ----------------------------------------------------------------------------
// URL encode / decode
// code from: http://www.geekhideout.com/urlcode.shtml
/* Converts a hex character to its integer value */
char from_hex(char ch) {
return... | ./CrossVul/dataset_final_sorted/CWE-74/c/good_433_0 |
crossvul-cpp_data_bad_1908_0 | /*
* Copyright © 2018 Red Hat, Inc
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library i... | ./CrossVul/dataset_final_sorted/CWE-74/c/bad_1908_0 |
crossvul-cpp_data_good_1906_1 | /*
* Copyright © 2014-2018 Red Hat, Inc
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This libr... | ./CrossVul/dataset_final_sorted/CWE-74/c/good_1906_1 |
crossvul-cpp_data_bad_4069_3 | /**
* @file
* IMAP network mailbox
*
* @authors
* Copyright (C) 1996-1998,2012 Michael R. Elkins <me@mutt.org>
* Copyright (C) 1996-1999 Brandon Long <blong@fiction.net>
* Copyright (C) 1999-2009,2012,2017 Brendan Cully <brendan@kublai.com>
* Copyright (C) 2018 Richard Russon <rich@flatcap.org>
*
* @copyright... | ./CrossVul/dataset_final_sorted/CWE-74/c/bad_4069_3 |
crossvul-cpp_data_bad_1205_0 | /* Copyright (C) 2007-2016 Open Information Security Foundation
*
* You can copy, redistribute or modify this Program 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 WITHOUT ANY... | ./CrossVul/dataset_final_sorted/CWE-74/c/bad_1205_0 |
crossvul-cpp_data_good_1906_2 | /*
* Copyright © 2014-2019 Red Hat, Inc
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This libr... | ./CrossVul/dataset_final_sorted/CWE-74/c/good_1906_2 |
crossvul-cpp_data_bad_1906_1 | /*
* Copyright © 2014-2018 Red Hat, Inc
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This libr... | ./CrossVul/dataset_final_sorted/CWE-74/c/bad_1906_1 |
crossvul-cpp_data_bad_4069_2 | /**
* @file
* Send/receive commands to/from an IMAP server
*
* @authors
* Copyright (C) 1996-1998,2010,2012 Michael R. Elkins <me@mutt.org>
* Copyright (C) 1996-1999 Brandon Long <blong@fiction.net>
* Copyright (C) 1999-2009,2011 Brendan Cully <brendan@kublai.com>
* Copyright (C) 2018 Richard Russon <rich@flatc... | ./CrossVul/dataset_final_sorted/CWE-74/c/bad_4069_2 |
crossvul-cpp_data_bad_4069_5 | /**
* @file
* Usenet network mailbox type; talk to an NNTP server
*
* @authors
* Copyright (C) 1998 Brandon Long <blong@fiction.net>
* Copyright (C) 1999 Andrej Gritsenko <andrej@lucky.net>
* Copyright (C) 2000-2017 Vsevolod Volkov <vvv@mutt.org.ua>
* Copyright (C) 2018 Richard Russon <rich@flatcap.org>
*
* @... | ./CrossVul/dataset_final_sorted/CWE-74/c/bad_4069_5 |
crossvul-cpp_data_good_1908_0 | /*
* Copyright © 2018 Red Hat, Inc
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library i... | ./CrossVul/dataset_final_sorted/CWE-74/c/good_1908_0 |
crossvul-cpp_data_bad_433_1 | // SPDX-License-Identifier: GPL-3.0-or-later
#include "web_api_v1.h"
static struct {
const char *name;
uint32_t hash;
RRDR_OPTIONS value;
} api_v1_data_options[] = {
{ "nonzero" , 0 , RRDR_OPTION_NONZERO}
, {"flip" , 0 , RRDR_OPTION_REVERSED}
, {"reversed"... | ./CrossVul/dataset_final_sorted/CWE-74/c/bad_433_1 |
crossvul-cpp_data_good_5255_0 | /*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2016 The PHP Group |
+---------... | ./CrossVul/dataset_final_sorted/CWE-74/c/good_5255_0 |
crossvul-cpp_data_good_1907_0 | /*
* Copyright © 2014-2018 Red Hat, Inc
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This libr... | ./CrossVul/dataset_final_sorted/CWE-74/c/good_1907_0 |
crossvul-cpp_data_good_1909_0 | /*
* Copyright © 2018 Red Hat, Inc
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library i... | ./CrossVul/dataset_final_sorted/CWE-74/c/good_1909_0 |
crossvul-cpp_data_good_4069_7 | /**
* @file
* Send email to an SMTP server
*
* @authors
* Copyright (C) 2002 Michael R. Elkins <me@mutt.org>
* Copyright (C) 2005-2009 Brendan Cully <brendan@kublai.com>
* Copyright (C) 2019 Pietro Cerutti <gahr@gahr.ch>
*
* @copyright
* This program is free software: you can redistribute it and/or modify it ... | ./CrossVul/dataset_final_sorted/CWE-74/c/good_4069_7 |
crossvul-cpp_data_bad_5255_0 | /*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2016 The PHP Group |
+---------... | ./CrossVul/dataset_final_sorted/CWE-74/c/bad_5255_0 |
crossvul-cpp_data_good_4069_6 | /**
* @file
* POP helper routines
*
* @authors
* Copyright (C) 2000-2003 Vsevolod Volkov <vvv@mutt.org.ua>
* Copyright (C) 2018 Richard Russon <rich@flatcap.org>
*
* @copyright
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as publ... | ./CrossVul/dataset_final_sorted/CWE-74/c/good_4069_6 |
crossvul-cpp_data_good_4400_1 | /*
* Copyright (c) 2009, Natacha Porté
* Copyright (c) 2015, Vicent Marti
*
* 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
... | ./CrossVul/dataset_final_sorted/CWE-74/c/good_4400_1 |
crossvul-cpp_data_good_5014_0 | /*
* APEI Error INJection support
*
* EINJ provides a hardware error injection mechanism, this is useful
* for debugging and testing of other APEI and RAS features.
*
* For more information about EINJ, please refer to ACPI Specification
* version 4.0, section 17.5.
*
* Copyright 2009-2010 Intel Corp.
* Auth... | ./CrossVul/dataset_final_sorted/CWE-74/c/good_5014_0 |
crossvul-cpp_data_good_4069_5 | /**
* @file
* Usenet network mailbox type; talk to an NNTP server
*
* @authors
* Copyright (C) 1998 Brandon Long <blong@fiction.net>
* Copyright (C) 1999 Andrej Gritsenko <andrej@lucky.net>
* Copyright (C) 2000-2017 Vsevolod Volkov <vvv@mutt.org.ua>
* Copyright (C) 2018 Richard Russon <rich@flatcap.org>
*
* @... | ./CrossVul/dataset_final_sorted/CWE-74/c/good_4069_5 |
crossvul-cpp_data_good_1204_0 | /* Copyright (C) 2007-2016 Open Information Security Foundation
*
* You can copy, redistribute or modify this Program 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 WITHOUT ANY... | ./CrossVul/dataset_final_sorted/CWE-74/c/good_1204_0 |
crossvul-cpp_data_bad_4069_0 | /**
* @file
* Low-level socket handling
*
* @authors
* Copyright (C) 1998,2000 Michael R. Elkins <me@mutt.org>
* Copyright (C) 1999-2006,2008 Brendan Cully <brendan@kublai.com>
* Copyright (C) 1999-2000 Tommi Komulainen <Tommi.Komulainen@iki.fi>
*
* @copyright
* This program is free software: you can redistri... | ./CrossVul/dataset_final_sorted/CWE-74/c/bad_4069_0 |
crossvul-cpp_data_good_433_1 | // SPDX-License-Identifier: GPL-3.0-or-later
#include "web_api_v1.h"
static struct {
const char *name;
uint32_t hash;
RRDR_OPTIONS value;
} api_v1_data_options[] = {
{ "nonzero" , 0 , RRDR_OPTION_NONZERO}
, {"flip" , 0 , RRDR_OPTION_REVERSED}
, {"reversed"... | ./CrossVul/dataset_final_sorted/CWE-74/c/good_433_1 |
crossvul-cpp_data_bad_1003_1 | /***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1982-2013 AT&T Intellectual Property *
* a... | ./CrossVul/dataset_final_sorted/CWE-74/c/bad_1003_1 |
crossvul-cpp_data_bad_4400_1 | /*
* Copyright (c) 2009, Natacha Porté
* Copyright (c) 2015, Vicent Marti
*
* 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
... | ./CrossVul/dataset_final_sorted/CWE-74/c/bad_4400_1 |
crossvul-cpp_data_bad_1204_0 | /* Copyright (C) 2007-2016 Open Information Security Foundation
*
* You can copy, redistribute or modify this Program 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 WITHOUT ANY... | ./CrossVul/dataset_final_sorted/CWE-74/c/bad_1204_0 |
crossvul-cpp_data_bad_5014_0 | 404: Not Found | ./CrossVul/dataset_final_sorted/CWE-74/c/bad_5014_0 |
crossvul-cpp_data_good_4069_3 | /**
* @file
* IMAP network mailbox
*
* @authors
* Copyright (C) 1996-1998,2012 Michael R. Elkins <me@mutt.org>
* Copyright (C) 1996-1999 Brandon Long <blong@fiction.net>
* Copyright (C) 1999-2009,2012,2017 Brendan Cully <brendan@kublai.com>
* Copyright (C) 2018 Richard Russon <rich@flatcap.org>
*
* @copyright... | ./CrossVul/dataset_final_sorted/CWE-74/c/good_4069_3 |
crossvul-cpp_data_bad_4069_6 | /**
* @file
* POP helper routines
*
* @authors
* Copyright (C) 2000-2003 Vsevolod Volkov <vvv@mutt.org.ua>
* Copyright (C) 2018 Richard Russon <rich@flatcap.org>
*
* @copyright
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as publ... | ./CrossVul/dataset_final_sorted/CWE-74/c/bad_4069_6 |
crossvul-cpp_data_good_1205_0 | /* Copyright (C) 2007-2016 Open Information Security Foundation
*
* You can copy, redistribute or modify this Program 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 WITHOUT ANY... | ./CrossVul/dataset_final_sorted/CWE-74/c/good_1205_0 |
crossvul-cpp_data_good_762_0 | #include "stdafx.h"
#include "WebServer.h"
#include "WebServerHelper.h"
#include <boost/bind.hpp>
#include <iostream>
#include <fstream>
#include "mainworker.h"
#include "Helper.h"
#include "localtime_r.h"
#include "EventSystem.h"
#include "dzVents.h"
#include "../httpclient/HTTPClient.h"
#include "../hardware/hardware... | ./CrossVul/dataset_final_sorted/CWE-89/cpp/good_762_0 |
crossvul-cpp_data_bad_762_0 | #include "stdafx.h"
#include "WebServer.h"
#include "WebServerHelper.h"
#include <boost/bind.hpp>
#include <iostream>
#include <fstream>
#include "mainworker.h"
#include "Helper.h"
#include "localtime_r.h"
#include "EventSystem.h"
#include "dzVents.h"
#include "../httpclient/HTTPClient.h"
#include "../hardware/hardware... | ./CrossVul/dataset_final_sorted/CWE-89/cpp/bad_762_0 |
crossvul-cpp_data_bad_3567_3 | /***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\... | ./CrossVul/dataset_final_sorted/CWE-89/c/bad_3567_3 |
crossvul-cpp_data_bad_3567_2 | /***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\... | ./CrossVul/dataset_final_sorted/CWE-89/c/bad_3567_2 |
crossvul-cpp_data_good_5843_0 | /******************************************************************************
* $Id$
*
* Project: MapServer
* Purpose: PostGIS CONNECTIONTYPE support.
* Author: Paul Ramsey <pramsey@cleverelephant.ca>
* Dave Blasby <dblasby@gmail.com>
*
***********************************************************... | ./CrossVul/dataset_final_sorted/CWE-89/c/good_5843_0 |
crossvul-cpp_data_bad_3567_0 | /***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\... | ./CrossVul/dataset_final_sorted/CWE-89/c/bad_3567_0 |
crossvul-cpp_data_good_3567_0 | /***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\... | ./CrossVul/dataset_final_sorted/CWE-89/c/good_3567_0 |
crossvul-cpp_data_good_3567_3 | /***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\... | ./CrossVul/dataset_final_sorted/CWE-89/c/good_3567_3 |
crossvul-cpp_data_bad_5843_0 | /******************************************************************************
* $Id$
*
* Project: MapServer
* Purpose: PostGIS CONNECTIONTYPE support.
* Author: Paul Ramsey <pramsey@cleverelephant.ca>
* Dave Blasby <dblasby@gmail.com>
*
***********************************************************... | ./CrossVul/dataset_final_sorted/CWE-89/c/bad_5843_0 |
crossvul-cpp_data_good_3567_2 | /***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\... | ./CrossVul/dataset_final_sorted/CWE-89/c/good_3567_2 |
crossvul-cpp_data_good_3567_4 | /***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\... | ./CrossVul/dataset_final_sorted/CWE-89/c/good_3567_4 |
crossvul-cpp_data_bad_3567_4 | /***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\... | ./CrossVul/dataset_final_sorted/CWE-89/c/bad_3567_4 |
crossvul-cpp_data_good_513_0 | /* $OpenBSD: scp.c,v 1.198 2018/11/16 03:03:10 djm Exp $ */
/*
* scp - secure remote copy. This is basically patched BSD rcp which
* uses ssh to do the data transfer (instead of using rcmd).
*
* NOTE: This version should NOT be suid root. (This uses ssh to
* do the transfer and ssh has the necessary privileges.)... | ./CrossVul/dataset_final_sorted/CWE-706/c/good_513_0 |
crossvul-cpp_data_bad_513_0 | /* $OpenBSD: scp.c,v 1.197 2018/06/01 04:31:48 dtucker Exp $ */
/*
* scp - secure remote copy. This is basically patched BSD rcp which
* uses ssh to do the data transfer (instead of using rcmd).
*
* NOTE: This version should NOT be suid root. (This uses ssh to
* do the transfer and ssh has the necessary privileg... | ./CrossVul/dataset_final_sorted/CWE-706/c/bad_513_0 |
crossvul-cpp_data_bad_2800_0 | #include <pb_controller.h>
#include <pb_view.h>
#include <poddlthread.h>
#include <config.h>
#include <utils.h>
#include <strprintf.h>
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <sys/stat.h>
#include <sys/types.h>
#include <pwd.h>
#include <cstdlib>
#include <thread>
#include <signal.h>
#include... | ./CrossVul/dataset_final_sorted/CWE-78/cpp/bad_2800_0 |
crossvul-cpp_data_good_2799_1 | #include <stflpp.h>
#include <utils.h>
#include <queueloader.h>
#include <cstdlib>
#include <logger.h>
#include <fstream>
#include <cstring>
#include <config.h>
#include <libgen.h>
#include <unistd.h>
using namespace newsbeuter;
namespace podbeuter {
queueloader::queueloader(const std::string& file, pb_controller *... | ./CrossVul/dataset_final_sorted/CWE-78/cpp/good_2799_1 |
crossvul-cpp_data_bad_2799_0 | #include <pb_controller.h>
#include <pb_view.h>
#include <poddlthread.h>
#include <config.h>
#include <utils.h>
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <sys/stat.h>
#include <sys/types.h>
#include <pwd.h>
#include <cstdlib>
#include <thread>
#include <signal.h>
#include <unistd.h>
#include <... | ./CrossVul/dataset_final_sorted/CWE-78/cpp/bad_2799_0 |
crossvul-cpp_data_bad_2800_1 | #include <stflpp.h>
#include <utils.h>
#include <queueloader.h>
#include <cstdlib>
#include <logger.h>
#include <fstream>
#include <cstring>
#include <config.h>
#include <libgen.h>
#include <unistd.h>
using namespace newsbeuter;
namespace podbeuter {
queueloader::queueloader(const std::string& file, pb_controller *... | ./CrossVul/dataset_final_sorted/CWE-78/cpp/bad_2800_1 |
crossvul-cpp_data_good_2800_1 | #include <stflpp.h>
#include <utils.h>
#include <queueloader.h>
#include <cstdlib>
#include <logger.h>
#include <fstream>
#include <cstring>
#include <config.h>
#include <libgen.h>
#include <unistd.h>
using namespace newsbeuter;
namespace podbeuter {
queueloader::queueloader(const std::string& file, pb_controller *... | ./CrossVul/dataset_final_sorted/CWE-78/cpp/good_2800_1 |
crossvul-cpp_data_good_2799_0 | #include <pb_controller.h>
#include <pb_view.h>
#include <poddlthread.h>
#include <config.h>
#include <utils.h>
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <sys/stat.h>
#include <sys/types.h>
#include <pwd.h>
#include <cstdlib>
#include <thread>
#include <signal.h>
#include <unistd.h>
#include <... | ./CrossVul/dataset_final_sorted/CWE-78/cpp/good_2799_0 |
crossvul-cpp_data_good_2800_0 | #include <pb_controller.h>
#include <pb_view.h>
#include <poddlthread.h>
#include <config.h>
#include <utils.h>
#include <strprintf.h>
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <sys/stat.h>
#include <sys/types.h>
#include <pwd.h>
#include <cstdlib>
#include <thread>
#include <signal.h>
#include... | ./CrossVul/dataset_final_sorted/CWE-78/cpp/good_2800_0 |
crossvul-cpp_data_bad_2799_1 | #include <stflpp.h>
#include <utils.h>
#include <queueloader.h>
#include <cstdlib>
#include <logger.h>
#include <fstream>
#include <cstring>
#include <config.h>
#include <libgen.h>
#include <unistd.h>
using namespace newsbeuter;
namespace podbeuter {
queueloader::queueloader(const std::string& file, pb_controller *... | ./CrossVul/dataset_final_sorted/CWE-78/cpp/bad_2799_1 |
crossvul-cpp_data_good_4099_0 | /* radare - LGPL - Copyright 2014-2017 - inisider */
#include <string.h>
#include <r_util.h>
#include <r_core.h>
#include "pdb_downloader.h"
static bool checkExtract() {
#if __WINDOWS__
if (r_sys_cmd ("expand -? >nul") != 0) {
return false;
}
#else
if (r_sys_cmd ("cabextract -v > /dev/null") != 0) {
return fal... | ./CrossVul/dataset_final_sorted/CWE-78/c/good_4099_0 |
crossvul-cpp_data_bad_2888_0 | 404: Not Found | ./CrossVul/dataset_final_sorted/CWE-78/c/bad_2888_0 |
crossvul-cpp_data_good_2888_0 | /*
* server.c - Provide shadowsocks service
*
* Copyright (C) 2013 - 2017, Max Lv <max.c.lv@gmail.com>
*
* This file is part of the shadowsocks-libev.
*
* shadowsocks-libev 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-78/c/good_2888_0 |
crossvul-cpp_data_bad_4099_0 | /* radare - LGPL - Copyright 2014-2017 - inisider */
#include <string.h>
#include <r_util.h>
#include <r_core.h>
#include "pdb_downloader.h"
static bool checkExtract() {
#if __WINDOWS__
if (r_sys_cmd ("expand -? >nul") != 0) {
return false;
}
#else
if (r_sys_cmd ("cabextract -v > /dev/null") != 0) {
return fal... | ./CrossVul/dataset_final_sorted/CWE-78/c/bad_4099_0 |
crossvul-cpp_data_good_1104_0 | /* radare - LGPL - Copyright 2009-2019 - nibble, pancake */
#if 0
* Use RList
* Support callback for null command (why?)
* Show help of commands
- long commands not yet tested at all
- added interface to export command list into an autocompletable
argc, argv for dietline
* r_cmd must provide a nesting char tabl... | ./CrossVul/dataset_final_sorted/CWE-78/c/good_1104_0 |
crossvul-cpp_data_bad_1104_0 | /* radare - LGPL - Copyright 2009-2019 - nibble, pancake */
#if 0
* Use RList
* Support callback for null command (why?)
* Show help of commands
- long commands not yet tested at all
- added interface to export command list into an autocompletable
argc, argv for dietline
* r_cmd must provide a nesting char tabl... | ./CrossVul/dataset_final_sorted/CWE-78/c/bad_1104_0 |
crossvul-cpp_data_good_882_2 | /* vi:set ts=8 sts=4 sw=4 noet:
*
* VIM - Vi IMproved by Bram Moolenaar
*
* Do ":help uganda" in Vim to read copying and usage conditions.
* Do ":help credits" in Vim to see a list of people who contributed.
* See README.txt for an overview of the Vim source code.
*/
#include "vim.h"
#ifdef AMIGA
# include <... | ./CrossVul/dataset_final_sorted/CWE-78/c/good_882_2 |
crossvul-cpp_data_bad_882_0 | /* vi:set ts=8 sts=4 sw=4 noet:
*
* VIM - Vi IMproved by Bram Moolenaar
*
* Do ":help uganda" in Vim to read copying and usage conditions.
* Do ":help credits" in Vim to see a list of people who contributed.
* See README.txt for an overview of the Vim source code.
*/
/*
* getchar.c
*
* functions related wit... | ./CrossVul/dataset_final_sorted/CWE-78/c/bad_882_0 |
crossvul-cpp_data_good_882_0 | /* vi:set ts=8 sts=4 sw=4 noet:
*
* VIM - Vi IMproved by Bram Moolenaar
*
* Do ":help uganda" in Vim to read copying and usage conditions.
* Do ":help credits" in Vim to see a list of people who contributed.
* See README.txt for an overview of the Vim source code.
*/
/*
* getchar.c
*
* functions related wit... | ./CrossVul/dataset_final_sorted/CWE-78/c/good_882_0 |
crossvul-cpp_data_bad_882_2 | /* vi:set ts=8 sts=4 sw=4 noet:
*
* VIM - Vi IMproved by Bram Moolenaar
*
* Do ":help uganda" in Vim to read copying and usage conditions.
* Do ":help credits" in Vim to see a list of people who contributed.
* See README.txt for an overview of the Vim source code.
*/
#include "vim.h"
#ifdef AMIGA
# include <... | ./CrossVul/dataset_final_sorted/CWE-78/c/bad_882_2 |
crossvul-cpp_data_bad_1103_0 | /* radare - LGPL - Copyright 2011-2019 - earada, pancake */
#include <r_core.h>
#include <r_config.h>
#include "r_util.h"
#include "r_util/r_time.h"
#define is_in_range(at, from, sz) ((at) >= (from) && (at) < ((from) + (sz)))
#define VA_FALSE 0
#define VA_TRUE 1
#define VA_NOREBASE 2
#define LOAD_BSS_MALLOC ... | ./CrossVul/dataset_final_sorted/CWE-78/c/bad_1103_0 |
crossvul-cpp_data_good_1103_0 | /* radare - LGPL - Copyright 2011-2019 - earada, pancake */
#include <r_core.h>
#include <r_config.h>
#include "r_util.h"
#include "r_util/r_time.h"
#define is_in_range(at, from, sz) ((at) >= (from) && (at) < ((from) + (sz)))
#define VA_FALSE 0
#define VA_TRUE 1
#define VA_NOREBASE 2
#define LOAD_BSS_MALLOC ... | ./CrossVul/dataset_final_sorted/CWE-78/c/good_1103_0 |
crossvul-cpp_data_bad_3010_0 | /*
* Client routines for the CUPS scheduler.
*
* Copyright 2007-2015 by Apple Inc.
* Copyright 1997-2007 by Easy Software Products, all rights reserved.
*
* This file contains Kerberos support code, copyright 2006 by
* Jelmer Vernooij.
*
* These coded instructions, statements, and computer programs are the
* ... | ./CrossVul/dataset_final_sorted/CWE-290/c/bad_3010_0 |
crossvul-cpp_data_good_3010_0 | /*
* Client routines for the CUPS scheduler.
*
* Copyright 2007-2015 by Apple Inc.
* Copyright 1997-2007 by Easy Software Products, all rights reserved.
*
* This file contains Kerberos support code, copyright 2006 by
* Jelmer Vernooij.
*
* These coded instructions, statements, and computer programs are the
* ... | ./CrossVul/dataset_final_sorted/CWE-290/c/good_3010_0 |
crossvul-cpp_data_bad_4121_0 | /*
* cotp.c
*
* ISO 8073 Connection Oriented Transport Protocol over TCP (RFC1006)
*
* Partial implementation of the ISO 8073 COTP (ISO TP0) protocol for MMS.
*
* Copyright 2013-2018 Michael Zillgith
*
* This file is part of libIEC61850.
*
* libIEC61850 is free software: you can redistribute it and/or ... | ./CrossVul/dataset_final_sorted/CWE-122/c/bad_4121_0 |
crossvul-cpp_data_good_4121_0 | /*
* cotp.c
*
* ISO 8073 Connection Oriented Transport Protocol over TCP (RFC1006)
*
* Partial implementation of the ISO 8073 COTP (ISO TP0) protocol for MMS.
*
* Copyright 2013-2018 Michael Zillgith
*
* This file is part of libIEC61850.
*
* libIEC61850 is free software: you can redistribute it and/or ... | ./CrossVul/dataset_final_sorted/CWE-122/c/good_4121_0 |
crossvul-cpp_data_bad_1571_9 | /*
Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed i... | ./CrossVul/dataset_final_sorted/CWE-284/c/bad_1571_9 |
crossvul-cpp_data_good_4896_1 | /*
* Process version 3 NFSACL requests.
*
* Copyright (C) 2002-2003 Andreas Gruenbacher <agruen@suse.de>
*/
#include "nfsd.h"
/* FIXME: nfsacl.h is a broken header */
#include <linux/nfsacl.h>
#include <linux/gfp.h>
#include "cache.h"
#include "xdr3.h"
#include "vfs.h"
#define RETURN_STATUS(st) { resp->status = (... | ./CrossVul/dataset_final_sorted/CWE-284/c/good_4896_1 |
crossvul-cpp_data_good_4786_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-284/c/good_4786_0 |
crossvul-cpp_data_good_2421_0 | /*
* Copyright (c) 2005-2007 William Pitcock, et al.
* Rights to this code are as documented in doc/LICENSE.
*
* This file contains code for the CService FLAGS functions.
*
*/
#include "atheme.h"
#include "template.h"
DECLARE_MODULE_V1
(
"chanserv/flags", false, _modinit, _moddeinit,
PACKAGE_STRING,
"Atheme ... | ./CrossVul/dataset_final_sorted/CWE-284/c/good_2421_0 |
crossvul-cpp_data_bad_1571_5 | /*
Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed i... | ./CrossVul/dataset_final_sorted/CWE-284/c/bad_1571_5 |
crossvul-cpp_data_bad_5396_2 | /*
* The Python Imaging Library
* $Id$
*
* imaging storage object
*
* This baseline implementation is designed to efficiently handle
* large images, provided they fit into the available memory.
*
* history:
* 1995-06-15 fl Created
* 1995-09-12 fl Updated API, compiles silently under ANSI C++
* 1995-11-2... | ./CrossVul/dataset_final_sorted/CWE-284/c/bad_5396_2 |
crossvul-cpp_data_bad_4810_0 | /*
* Copyright (C) the libgit2 contributors. All rights reserved.
*
* This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file.
*/
#ifndef GIT_WINHTTP
#include "git2.h"
#include "http_parser.h"
#include "buffer.h"
#include "netops.h"
#... | ./CrossVul/dataset_final_sorted/CWE-284/c/bad_4810_0 |
crossvul-cpp_data_bad_2409_0 | 404: Not Found | ./CrossVul/dataset_final_sorted/CWE-284/c/bad_2409_0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.