id
stringlengths
25
30
content
stringlengths
14
942k
max_stars_repo_path
stringlengths
49
55
crossvul-cpp_data_bad_276_1
/* This file is part of libmspack. * (C) 2003-2011 Stuart Caie. * * libmspack is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License (LGPL) version 2.1 * * For further details, see the file COPYING.LIB distributed with libmspack */ /* CHM decompress...
./CrossVul/dataset_final_sorted/CWE-682/c/bad_276_1
crossvul-cpp_data_good_3331_0
// imagew-bmp.c // Part of ImageWorsener, Copyright (c) 2011 by Jason Summers. // For more information, see the readme.txt file. #include "imagew-config.h" #include <stdio.h> // for SEEK_SET #include <stdlib.h> #include <string.h> #define IW_INCLUDE_UTIL_FUNCTIONS #include "imagew.h" #define IWBMP_BI_RGB 0 //...
./CrossVul/dataset_final_sorted/CWE-682/c/good_3331_0
crossvul-cpp_data_bad_2652_0
#include <config.h> #include <view.h> #include <controller.h> #include <configparser.h> #include <configcontainer.h> #include <exceptions.h> #include <downloadthread.h> #include <colormanager.h> #include <logger.h> #include <utils.h> #include <strprintf.h> #include <stflpp.h> #include <exception.h> #include <formatstri...
./CrossVul/dataset_final_sorted/CWE-943/cpp/bad_2652_0
crossvul-cpp_data_good_2652_0
#include <config.h> #include <view.h> #include <controller.h> #include <configparser.h> #include <configcontainer.h> #include <exceptions.h> #include <downloadthread.h> #include <colormanager.h> #include <logger.h> #include <utils.h> #include <strprintf.h> #include <stflpp.h> #include <exception.h> #include <formatstri...
./CrossVul/dataset_final_sorted/CWE-943/cpp/good_2652_0
crossvul-cpp_data_good_4751_0
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-2016 Facebook, Inc. (http://www.facebook.com) | +---------...
./CrossVul/dataset_final_sorted/CWE-665/cpp/good_4751_0
crossvul-cpp_data_bad_4751_0
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-2016 Facebook, Inc. (http://www.facebook.com) | +---------...
./CrossVul/dataset_final_sorted/CWE-665/cpp/bad_4751_0
crossvul-cpp_data_bad_1128_0
/* * Copyright (c) 2016 Hisilicon Limited. * Copyright (c) 2007, 2008 Mellanox Technologies. 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 fi...
./CrossVul/dataset_final_sorted/CWE-665/c/bad_1128_0
crossvul-cpp_data_bad_2629_2
/***************************************************************************** * * NAGIOS.C - Core Program Code For Nagios * * Program: Nagios Core * License: GPL * * First Written: 01-28-1999 (start of development) * * Description: * * Nagios is a network monitoring tool that will check hosts and services...
./CrossVul/dataset_final_sorted/CWE-665/c/bad_2629_2
crossvul-cpp_data_bad_738_0
//////////////////////////////////////////////////////////////////////////// // **** WAVPACK **** // // Hybrid Lossless Wavefile Compressor // // Copyright (c) 1998 - 2019 David Bryant. // // ...
./CrossVul/dataset_final_sorted/CWE-665/c/bad_738_0
crossvul-cpp_data_good_881_0
/* * Audible AA demuxer * Copyright (c) 2015 Vesselin Bontchev * * Header parsing is borrowed from https://github.com/jteeuwen/audible project. * Copyright (c) 2001-2014, Jim Teeuwen * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following ...
./CrossVul/dataset_final_sorted/CWE-665/c/good_881_0
crossvul-cpp_data_bad_739_0
//////////////////////////////////////////////////////////////////////////// // **** WAVPACK **** // // Hybrid Lossless Wavefile Compressor // // Copyright (c) 1998 - 2019 David Bryant. // // ...
./CrossVul/dataset_final_sorted/CWE-665/c/bad_739_0
crossvul-cpp_data_good_1128_0
/* * Copyright (c) 2016 Hisilicon Limited. * Copyright (c) 2007, 2008 Mellanox Technologies. 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 fi...
./CrossVul/dataset_final_sorted/CWE-665/c/good_1128_0
crossvul-cpp_data_good_739_0
//////////////////////////////////////////////////////////////////////////// // **** WAVPACK **** // // Hybrid Lossless Wavefile Compressor // // Copyright (c) 1998 - 2019 David Bryant. // // ...
./CrossVul/dataset_final_sorted/CWE-665/c/good_739_0
crossvul-cpp_data_bad_881_0
/* * Audible AA demuxer * Copyright (c) 2015 Vesselin Bontchev * * Header parsing is borrowed from https://github.com/jteeuwen/audible project. * Copyright (c) 2001-2014, Jim Teeuwen * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following ...
./CrossVul/dataset_final_sorted/CWE-665/c/bad_881_0
crossvul-cpp_data_good_2629_2
/***************************************************************************** * * NAGIOS.C - Core Program Code For Nagios * * Program: Nagios Core * License: GPL * * First Written: 01-28-1999 (start of development) * * Description: * * Nagios is a network monitoring tool that will check hosts and services...
./CrossVul/dataset_final_sorted/CWE-665/c/good_2629_2
crossvul-cpp_data_good_738_0
//////////////////////////////////////////////////////////////////////////// // **** WAVPACK **** // // Hybrid Lossless Wavefile Compressor // // Copyright (c) 1998 - 2019 David Bryant. // // ...
./CrossVul/dataset_final_sorted/CWE-665/c/good_738_0
crossvul-cpp_data_good_3092_0
/* * * (C) 2013-17 - ntop.org * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distribu...
./CrossVul/dataset_final_sorted/CWE-352/cpp/good_3092_0
crossvul-cpp_data_bad_3092_0
/* * * (C) 2013-17 - ntop.org * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distribu...
./CrossVul/dataset_final_sorted/CWE-352/cpp/bad_3092_0
crossvul-cpp_data_good_612_0
#include "uncurl/uncurl.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include "net.h" #include "tls.h" #include "http.h" #include "ws.h" #define LEN_IP4 16 #define LEN_CHUNK 64 #define LEN_ORIGIN 512 #if defined(__WINDOWS__) #include <winsock2.h> #define strdup(a) _strdup...
./CrossVul/dataset_final_sorted/CWE-352/c/good_612_0
crossvul-cpp_data_bad_612_0
#include "uncurl/uncurl.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include "net.h" #include "tls.h" #include "http.h" #include "ws.h" #define LEN_IP4 16 #define LEN_CHUNK 64 #define LEN_ORIGIN 512 #if defined(__WINDOWS__) #include <winsock2.h> #define strdup(a) _strdup...
./CrossVul/dataset_final_sorted/CWE-352/c/bad_612_0
crossvul-cpp_data_bad_3200_1
/* * Bittorrent Client using Qt and libtorrent. * Copyright (C) 2015 Vladimir Golovnev <glassez@yandex.ru> * Copyright (C) 2006 Christophe Dumez <chris@qbittorrent.org> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published...
./CrossVul/dataset_final_sorted/CWE-79/cpp/bad_3200_1
crossvul-cpp_data_good_3200_5
/* * Bittorrent Client using Qt4 and libtorrent. * Copyright (C) 2006 Christophe Dumez * * 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 op...
./CrossVul/dataset_final_sorted/CWE-79/cpp/good_3200_5
crossvul-cpp_data_bad_3200_0
#include "logger.h" #include <QDateTime> Logger* Logger::m_instance = 0; Logger::Logger() : lock(QReadWriteLock::Recursive) , msgCounter(0) , peerCounter(0) { } Logger::~Logger() {} Logger *Logger::instance() { return m_instance; } void Logger::initInstance() { if (!m_instance) m_insta...
./CrossVul/dataset_final_sorted/CWE-79/cpp/bad_3200_0
crossvul-cpp_data_good_3200_4
/* * Bittorrent Client using Qt4 and libtorrent. * Copyright (C) 2006 Christophe Dumez * * 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 op...
./CrossVul/dataset_final_sorted/CWE-79/cpp/good_3200_4
crossvul-cpp_data_good_3200_0
#include "logger.h" #include <QDateTime> #include "base/utils/string.h" Logger* Logger::m_instance = 0; Logger::Logger() : lock(QReadWriteLock::Recursive) , msgCounter(0) , peerCounter(0) { } Logger::~Logger() {} Logger *Logger::instance() { return m_instance; } void Logger::initInstance() { i...
./CrossVul/dataset_final_sorted/CWE-79/cpp/good_3200_0
crossvul-cpp_data_good_3200_1
/* * Bittorrent Client using Qt and libtorrent. * Copyright (C) 2015 Vladimir Golovnev <glassez@yandex.ru> * Copyright (C) 2006 Christophe Dumez <chris@qbittorrent.org> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published...
./CrossVul/dataset_final_sorted/CWE-79/cpp/good_3200_1
crossvul-cpp_data_bad_3200_5
/* * Bittorrent Client using Qt4 and libtorrent. * Copyright (C) 2006 Christophe Dumez * * 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 op...
./CrossVul/dataset_final_sorted/CWE-79/cpp/bad_3200_5
crossvul-cpp_data_good_2407_0
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) | | Copyrigh...
./CrossVul/dataset_final_sorted/CWE-79/cpp/good_2407_0
crossvul-cpp_data_bad_3200_4
/* * Bittorrent Client using Qt4 and libtorrent. * Copyright (C) 2006 Christophe Dumez * * 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 op...
./CrossVul/dataset_final_sorted/CWE-79/cpp/bad_3200_4
crossvul-cpp_data_bad_2407_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-79/cpp/bad_2407_0
crossvul-cpp_data_bad_384_0
/* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2016 The PHP Group | +---------...
./CrossVul/dataset_final_sorted/CWE-79/c/bad_384_0
crossvul-cpp_data_good_384_0
/* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2016 The PHP Group | +---------...
./CrossVul/dataset_final_sorted/CWE-79/c/good_384_0
crossvul-cpp_data_good_720_2
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
./CrossVul/dataset_final_sorted/CWE-79/c/good_720_2
crossvul-cpp_data_good_1838_3
/* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2015 The PHP Group | +--------...
./CrossVul/dataset_final_sorted/CWE-79/c/good_1838_3
crossvul-cpp_data_bad_1838_3
/* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2015 The PHP Group | +--------...
./CrossVul/dataset_final_sorted/CWE-79/c/bad_1838_3
crossvul-cpp_data_bad_720_2
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
./CrossVul/dataset_final_sorted/CWE-79/c/bad_720_2