text
stringlengths
4
6.14k
/* * Copyright (C) 2015 Red Hat, Inc. * * Author: Nikos Mavrogiannopoulos * * This file is part of GnuTLS. * * GnuTLS 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, o...
#ifndef WEIGHTEDEVENTTEST_H_ #define WEIGHTEDEVENTTEST_H_ 1 #include <cxxtest/TestSuite.h> #include "MantidDataObjects/Events.h" #include "MantidKernel/Timer.h" #include <cmath> using namespace Mantid; using namespace Mantid::Kernel; using namespace Mantid::DataObjects; using std::runtime_error; using std::size_t; u...
// // Copyright (c) 2017 Open Whisper Systems. All rights reserved. // #import "TSYapDatabaseObject.h" #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @class TSInteraction; @class TSInvalidIdentityKeyReceivingErrorMessage; /** * TSThread is the superclass of TSContactThread and TSGroupThread */ @interface TSTh...
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */ /* libwpd * Version: MPL 2.0 / LGPLv2.1+ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2...
#ifndef NTL_vec_ZZVec__H #define NTL_vec_ZZVec__H #include <NTL/vector.h> #include <NTL/ZZVec.h> NTL_OPEN_NNS typedef Vec<ZZVec> vec_ZZVec; NTL_CLOSE_NNS #endif
/**************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the tools applications of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGP...
/* * Copyright (C) 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * Copyright (C) 2010 Stefan Kost <ensonic@users.sf.net> * * 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; version 2.1 of * the License, or (at your option) any later version. * ...
/*************************************************************************** begin : Thu Jun 24 2010 copyright : (C) 2010 by Martin Preuss email : martin@libchipcard.de *************************************************************************** * Please see toplevel file COPYING for license...
#define _GNU_SOURCE #include <math.h> void sincos(double t, double *y, double *x) { *y = sin(t); *x = cos(t); }
/***************************************************************************/ /* */ /* ftxf86.h */ /* */ /* Su...
/* kopeteaddrbookexport.h - Kopete Online Status Logic for exporting data acquired from messaging systems to the KDE address book Copyright (c) 2004 by Will Stephenson <wstephenson@kde.org> Kopete (c) 2002-2004 by the Kopete developers <kopete-devel@kde.org> *****************************...
/**************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the QtGui module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** ...
// The libMesh Finite Element Library. // Copyright (C) 2002-2017 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner // 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 ...
/**************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the Qt Mobility Components. ** ** $QT_BEGIN_LICENSE:LGPL$ ** GNU Less...
///////////////////////////////////////////////////////////////////////// // $Id: bswap.h 11891 2013-10-16 19:33:30Z vruppert $ ///////////////////////////////////////////////////////////////////////// // // Copyright (C) 2012-2013 The Bochs Project // // This library is free software; you can redistribute it and/or...
/* This file is part of the WebKit open source project. This file has been generated by generate-bindings.pl. DO NOT MODIFY! This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation...
// $Id: TGWin32InterpreterProxy.h,v 1.15 2007/03/08 15:52:17 rdm Exp $ // Author: Valeriy Onuchin 15/11/03 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. ...
/* Define to the type of arg 1 for `readlink'. */ #define READLINK_TYPE_ARG1 const char *path /* Define to the type of arg 2 for `readlink'. */ #define READLINK_TYPE_ARG2 char *buf /* Define to the type of arg 3 for `readlink'. */ #define READLINK_TYPE_ARG3 size_t bufsiz /* Define to the type of arg 1 for `scandir'...
#ifndef __TESTLIB_H__ #define __TESTLIB_H__ #include <gtk/gtk.h> void fake_realize (GtkWidget *widget); gboolean g_main_context_wait_for_event (GMainContext *context, int timeout); #endif
#include <stdio.h> #include <stdlib.h> #include "dataview-uniq.h" extern void adainit(); extern void controlflow_PI_run(); void controlflow_RI_assert(asn1SccBoolean *res, asn1SccCharString *msg) { if (!*res) { fprintf(stderr, "%.*s\n", (int)msg->nCount, msg->arr); exit(1); } } void controlflo...
/** \file * \brief Definitions of functors used in FME layout. * * \author Martin Gronemann * * \par License: * This file is part of the Open Graph Drawing Framework (OGDF). * * \par * Copyright (C)<br> * See README.md in the OGDF root directory for details. * * \par * This program is free software; you ca...
/******************************************************************************* * This file is part of PlexyDesk. * Maintained by : Siraj Razick <siraj@plexydesk.com> * Authored By : * * PlexyDesk is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License...
/* * $Revision: 3832 $ * * last checkin: * $Author: gutwenger $ * $Date: 2013-11-13 11:16:27 +0100 (Wed, 13 Nov 2013) $ ***************************************************************/ /** \file * \brief Declaration and implementation of the optimal third * phase of the Sugiyama algorithm. * * \au...
///////////////////////////////////////////////////////////////////////////// // Authors: Laurent Pugin and Rodolfo Zitellini // Created: 2014 // Copyright (c) Authors and others. All rights reserved. // // Code generated using a modified version of libmei // by Andrew Hankinson, Alastair Porter, and Others //...
/* Z Kit - keys/mathematics/geometry.h _____ _______________ /_ /_/ -_/_ _/ _ | /____/\___/ /__//___/_| Kit Copyright (C) 2006-2018 Manuel Sainz de Baranda y Goñi. Released under the terms of the GNU Lesser General Public License v3. */ #ifndef _Z_keys_mathematics_geometry_H_ #define _Z_keys_mathematics_geome...
/// @file /// @brief QK/C++ port to ARM, preemptive QK kernel, generic C++ compiler /// @cond ///*************************************************************************** /// Last updated for version 5.4.0 /// Last updated on 2015-05-04 /// /// Q u a n t u m L e a P s /// --...
/** * @file rand.c * @provides srand, rand * * $Id: rand.c 221 2007-07-11 18:45:46Z mschul $ */ /* Embedded XINU, Copyright (C) 2007. All rights reserved. */ static unsigned long randx = 1; /** * Sets the random seed. * @param x random seed */ void srand(unsigned long x) { randx = x; } /** * Generates a r...
#ifndef ROESOUND_H_ #define ROESOUND_H_ #include "RoeCommon.h" #ifdef ROE_COMPILE_AUDIO #include <SDL_mixer.h> #include <string> #include <map> namespace roe { struct S_SoundIntern { Mix_Chunk *chunk; //chunk float fStdVolume; //faktor }; class Sound { public: Sound(const float fVolume = 1.0f); ...
/* This file was generated by upbc (the upb compiler) from the input * file: * * envoy/type/v3/ratelimit_unit.proto * * Do not edit -- your changes will be discarded when the file is * regenerated. */ #include <stddef.h> #include "upb/msg_internal.h" #include "envoy/type/v3/ratelimit_unit.upb.h" #include "ud...
#pragma once #include "envoy/extensions/filters/http/wasm/v3/wasm.pb.h" #include "envoy/extensions/filters/http/wasm/v3/wasm.pb.validate.h" #include "source/extensions/filters/http/common/factory_base.h" namespace Envoy { namespace Extensions { namespace HttpFilters { namespace Wasm { /** * Config registration for...
// // CCSMASlipCandleStickChart.h // CocoaChartsSample // // Created by limc on 12/3/13. // Copyright (c) 2013 limc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the Licen...
/* limits.h -*-C-*- */ #ifndef INCLUDED_NATIVE_C_LIMITS #define INCLUDED_NATIVE_C_LIMITS #include <bsls_ident.h> BSLS_IDENT("$Id: $") /* //@PURPOSE: Provide functionality of the corresponding C++ Standard header. // //@SEE_ALSO: package bos+stdhdrs // //@DESCRI...
// // fileinfoModel.h // JieXinIphone // // Created by lxrent02 on 14-4-2. // Copyright (c) 2014年 sunboxsoft. All rights reserved. // #import <Foundation/Foundation.h> @interface fileinfoModel : NSObject //文档信息表 /* 字段含义 name 文件名称 programaid 所属栏目 title 文件标题 filedesc ...
/* Copyright 2016 Google Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
/*========================================================================= * * Copyright NumFOCUS * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.or...
#pragma once #include "../state.h" template<typename _Object> class CStateBurerAttackRunAround : public CState<_Object> { typedef CState<_Object> inherited; Fvector selected_point; u32 time_started; Fvector dest_direction; public: CStateBurerAttackRunAround (_Object *obj); virtual void initial...
/* This file was generated by upbc (the upb compiler) from the input * file: * * xds/annotations/v3/versioning.proto * * Do not edit -- your changes will be discarded when the file is * regenerated. */ #include <stddef.h> #include "upb/msg_internal.h" #include "xds/annotations/v3/versioning.upb.h" #include "...
/* Copyright (c) 2007 Cyrus Daboo. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless re...
/*========================================================================= * * Copyright NumFOCUS * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.or...
/**************************************************************************** Copyright (C) 2013 Henry van Merode. All rights reserved. Copyright (c) 2015 Chukong Technologies Inc. http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associa...
/** * FreeRDP: A Remote Desktop Protocol Implementation * RemoteFX USB Redirection * * Copyright 2012 Atrust corp. * Copyright 2012 Alfred Liu <alfred.liu@atruscorp.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You ...
/**************************************************************************** * * Copyright 2016 Samsung Electronics All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at...
/* * Copyright 2016 Davide Pianca * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
/** ****************************************************************************** * @file usbh_hid_keybd.h * @author MCD Application Team * @version V2.1.0 * @date 19-March-2012 * @brief This file contains all the prototypes for the usbh_hid_keybd.c *****************************************************...
#ifndef ALI_CMS_BATCH_CREATE_METRICS_TYPESH #define ALI_CMS_BATCH_CREATE_METRICS_TYPESH #include <stdio.h> #include <string> #include <vector> namespace aliyun { struct CmsBatchCreateMetricsRequestType { std::string project_name; std::string metric_stream_name; std::string sqls; }; struct CmsBatchCreat...
// @@@ START COPYRIGHT @@@ // // 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...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2022 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except...
#ifndef JACKUTILITY_H_ #define JACKUTILITY_H_ int endsWith(const char *str, const char *suffix); char *filenameFromFinpath(char *finpath); #endif // JACKUTILITY_H_
// // NSObject+CRBoost.h // ECO // // Created by RoundTu on 12/27/13. // Copyright (c) 2013 Cocoa. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #pragma mark - #pragma mark NSObject @interface NSObject (CRBoost) - (void)tryMethod:(SEL)sel; - (void)tryMethod:(SEL)sel arg:(id)arg...
/* * Copyright (c) 2014-2015, Intel Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions ...
/** * 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...
/* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ...
/* * idedsk.h -- IDE disk definitions */ #ifndef _IDEDSK_H_ #define _IDEDSK_H_ #define SECTOR_SIZE 512 #define WPS (SECTOR_SIZE / sizeof(unsigned int)) #define DISK_BASE ((unsigned *) 0xF0400000) /* disk base address */ #define DISK_CTRL (DISK_BASE + 0) /* control/status register */ #define DISK_CNT (DISK_BAS...
/* * Copyright (C) 2006 by Darren Reed. * * See the IPFILTER.LICENCE file for details on licencing. * * $Id: load_url.c,v 1.1.2.1 2006/08/25 21:13:04 darrenr Exp $ */ #include "ipf.h" alist_t * load_url(char *url) { alist_t *hosts = NULL; if (strncmp(url, "file://", 7) == 0) { /* * file:///etc/pa...
#pragma once #include <cstdint> #include <array> #include <limits> namespace rc { /// Implementation of a splittable random generator as described in: /// Claessen, K. och Palka, M. (2013) Splittable Pseudorandom Number /// Generators using Cryptographic Hashing. class Random { friend bool operator==(const Ran...
/*- * Copyright (c) 2009, Nathan Whitehorn <nwhitehorn@FreeBSD.org> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * ...
#ifndef _UI_FILTERS_H_ #define _UI_FILTERS_H_ #ifndef TEAM_H #include "team.h" #endif #ifndef MISGROUP_H #include "package.h" #endif #define _MAX_TEAMS_ (NUM_TEAMS) // (8) Kevin only has 7 defined #define _MAX_DIRECTIONS_ (8) #define _MIN_ZOOM_LEVEL_ (1) #define _MAX_ZOOM_LEVEL_ (32) #define I_NEED_TO_DRA...
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_VIEWS_USER_EDUCATION_FEATURE_PROMO_BUBBLE_OWNER_IMPL_H_ #define CHROME_BROWSER_UI_VIEWS_USER_EDUCATION_FEATURE_PROMO_BUBBLE_OWNE...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE369_Divide_by_Zero__int_rand_modulo_15.c Label Definition File: CWE369_Divide_by_Zero__int.label.xml Template File: sources-sinks-15.tmpl.c */ /* * @description * CWE: 369 Divide by Zero * BadSource: rand Set data to result of rand(), which may be zero * Goo...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE190_Integer_Overflow__int_fgets_multiply_65a.c Label Definition File: CWE190_Integer_Overflow__int.label.xml Template File: sources-sinks-65a.tmpl.c */ /* * @description * CWE: 190 Integer Overflow * BadSource: fgets Read data from the console using fgets() ...
/* $Id$ */ #ifndef HT_H #define HT_H 1 struct hashtable { int (*hash)(int i); int (*equal)(int i1,int i2); int tablen,used,limit; int *table; }; extern void ht_init(struct hashtable *ht,int len,int (*hash)(int),int (*equal)(int,int)); extern void ht_clear(struct hashtable *ht); extern void ht_dispose(struct ...
/*----------------------------------------------------------------------------*/ /* Copyright (c) FIRST 2011-2017. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of...
/* DO NOT EDIT THIS FILE - it is machine generated */ #include "jni.h" /* Header for class com_certh_iti_haptics_NativePhantomManager */ #ifndef _Included_com_certh_iti_haptics_NativePhantomManager #define _Included_com_certh_iti_haptics_NativePhantomManager #ifdef __cplusplus extern "C" { #endif /* * Class: com_...
#ifndef _PLOT_H_ #define _PLOT_H_ #include <qwt/qwt_plot.h> #include <qwt/qwt_interval.h> #include <qwt/qwt_system_clock.h> #include <qwt/qwt_plot_curve.h> class QwtPlotCurve; class QwtPlotMarker; class QwtPlotGrid; class QwtPlotDirectPainter; class SignalData; class MyMagnifier; class Plot: public QwtPlot { Q_...
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CustomElementAttributeChangedCallbackReaction_h #define CustomElementAttributeChangedCallbackReaction_h #include "core/CoreExport.h" #include "co...
#include "../../../../../hpc/include/platid_generated.h"
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE127_Buffer_Underread__wchar_t_alloca_cpy_54d.c Label Definition File: CWE127_Buffer_Underread.stack.label.xml Template File: sources-sink-54d.tmpl.c */ /* * @description * CWE: 127 Buffer Under-read * BadSource: Set data pointer to before the allocated memory...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_53d.c Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE805.label.xml Template File: sources-sink-53d.tmpl.c */ /* * @description * CWE: 121 Stack Based Buffer Overflow * BadSource: Se...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE617_Reachable_Assertion__connect_socket_63a.c Label Definition File: CWE617_Reachable_Assertion.label.xml Template File: sources-sink-63a.tmpl.c */ /* * @description * CWE: 617 Reachable Assertion * BadSource: connect_socket Read data using a connect socket (c...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE404_Improper_Resource_Shutdown__w32CreateFile_close_51a.c Label Definition File: CWE404_Improper_Resource_Shutdown__w32CreateFile.label.xml Template File: source-sinks-51a.tmpl.c */ /* * @description * CWE: 404 Improper Resource Shutdown or Release * BadSource...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_memcpy_81.h Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE193.label.xml Template File: sources-sink-81.tmpl.h */ /* * @description * CWE: 121 Stack Based Buffer Overflow * BadSource: Poin...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SANDBOX_LINUX_SECCOMP_BPF_DIE_H__ #define SANDBOX_LINUX_SECCOMP_BPF_DIE_H__ #include "base/basictypes.h" #include "sandbox/linux/sandbox_expo...
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SKY_ENGINE_CORE_TEXT_PARAGRAPHBUILDER_H_ #define SKY_ENGINE_CORE_TEXT_PARAGRAPHBUILDER_H_ #include "lib/tonic/dart_wrappable.h" #include "lib/ton...
/* * Copyright (C) Research In Motion Limited 2011. All rights reserved. * Copyright (C) 2013 Google Inc. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; eit...
// Copyright 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // A simple wrapper around invalidation::InvalidationClient that // handles all the startup/shutdown details and hookups. #ifndef SYNC_NOTIFIER_SYNC_IN...
// // ATConnect_Private.h // ApptentiveConnect // // Created by Andrew Wooster on 1/20/13. // Copyright (c) 2013 Apptentive, Inc. All rights reserved. // #import "ATConnect.h" extern NSString *const ATConnectCustomPersonDataChangedNotification; extern NSString *const ATConnectCustomDeviceDataChangedNotification; ...
@class DB; DB *DBSQLiteDatabaseForTesting();
#ifndef CMARK_REFERENCES_H #define CMARK_REFERENCES_H #include "chunk.h" #ifdef __cplusplus extern "C" { #endif struct cmark_reference { struct cmark_reference *next; unsigned char *label; unsigned char *url; unsigned char *title; unsigned int age; }; typedef struct cmark_reference cmark_reference; struc...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE126_Buffer_Overread__CWE170_wchar_t_strncpy_07.c Label Definition File: CWE126_Buffer_Overread__CWE170.label.xml Template File: point-flaw-07.tmpl.c */ /* * @description * CWE: 126 Buffer Overread * Sinks: strncpy * GoodSink: Copy a string using wcsncpy()...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE457_Use_of_Uninitialized_Variable__char_pointer_11.c Label Definition File: CWE457_Use_of_Uninitialized_Variable.c.label.xml Template File: sources-sinks-11.tmpl.c */ /* * @description * CWE: 457 Use of Uninitialized Variable * BadSource: no_init Don't initial...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBKIT_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_ #define WEBKIT_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_ #include <map> #include <st...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef REMOTING_PROTOCOL_CONNECTION_TO_CLIENT_H_ #define REMOTING_PROTOCOL_CONNECTION_TO_CLIENT_H_ #include <deque> #include <string> #include <vect...
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty o...
#ifndef GETOPT_H #define GETOPT_H extern int opterr; /* if error message should be printed */ extern int optind; /* index into parent argv vector */ extern int optopt; /* character checked for validity */ extern int optreset; /* reset getopt */ extern char *optarg; /* argument associated with option */ int getopt(...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54a.c Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE805.string.label.xml Template File: sources-sink-54a.tmpl.c */ /* * @description * CWE: 121 Stack Based Buffer Overflow * BadSource: S...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE191_Integer_Underflow__int_min_sub_01.c Label Definition File: CWE191_Integer_Underflow__int.label.xml Template File: sources-sinks-01.tmpl.c */ /* * @description * CWE: 191 Integer Underflow * BadSource: min Set data to the minimum value for int * GoodSourc...
#include <stdio.h> void print_fib(int n) { int a = 0; int b = 1; while (a < n) { int old_a = a; printf("%d ", a); a = b; b = old_a + b; } } int main() { print_fib(500); printf("\n"); return 0; }
#ifndef VPX_SCALE_RTCD_H_ #define VPX_SCALE_RTCD_H_ #ifdef RTCD_C #define RTCD_EXTERN #else #define RTCD_EXTERN extern #endif struct yv12_buffer_config; void vp8_horizontal_line_5_4_scale_c(const unsigned char *source, unsigned int source_width, unsigned char *dest, unsigned int dest_width); #define vp8_horizontal_l...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memcpy_67b.c Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE805.label.xml Template File: sources-sink-67b.tmpl.c */ /* * @description * CWE: 121 Stack Based Buffer Overflow * BadSource: Se...
/* Copyright (c) 2015, Linaro Limited * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <odp.h> #include "odp_cunit_common.h" #include "errno.h" void errno_test_odp_errno_sunny_day(void) { int my_errno; odp_errno_zero(); my_errno = odp_errno(); CU_ASSERT_TRUE(my_errno == 0); o...
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef MOJO_SHELL_RUNNER_HOST_CHILD_PROCESS_HOST_H_ #define MOJO_SHELL_RUNNER_HOST_CHILD_PROCESS_HOST_H_ #include <stdint.h> #include <string> #includ...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE124_Buffer_Underwrite__char_alloca_memcpy_13.c Label Definition File: CWE124_Buffer_Underwrite.stack.label.xml Template File: sources-sink-13.tmpl.c */ /* * @description * CWE: 124 Buffer Underwrite * BadSource: Set data pointer to before the allocated memory...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_41.c Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE805.string.label.xml Template File: sources-sink-41.tmpl.c */ /* * @description * CWE: 121 Stack Based Buffer Overflow * BadSource: ...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE193_wchar_t_memcpy_81.h Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE193.label.xml Template File: sources-sink-81.tmpl.h */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Allocate me...
/***********************************************************************/ /* */ /* Objective Caml */ /* */ /* Xavier Leroy ...
/* * Copyright (c) 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. * * @(#)exec.h 1.2 (2.11BSD GTE) 10/31/93 */ /* ** This code has been pulled from the 2.11BSD source tree. ** ** The difference...
// This code contains NVIDIA Confidential Information and is disclosed to you // under a form of NVIDIA software license agreement provided separately to you. // // Notice // NVIDIA Corporation and its licensors retain all intellectual property and // proprietary rights in and to this software and related documentatio...
/* !!!! GENERATED FILE - DO NOT EDIT !!!! * -------------------------------------- * * This file is part of liblcf. Copyright (c) 2021 liblcf authors. * https://github.com/EasyRPG/liblcf - https://easyrpg.org * * liblcf is Free/Libre Open Source Software, released under the MIT License. * For the full copyright ...