file_name
int64
0
72.3k
vulnerable_line_numbers
stringlengths
1
1.06k
dataset_type
stringclasses
1 value
commit_hash
stringlengths
40
44
unique_id
int64
0
271k
project
stringclasses
10 values
target
int64
0
1
repo_url
stringclasses
10 values
date
stringlengths
25
25
code
stringlengths
0
20.4M
CVE
stringlengths
13
43
CWE
stringclasses
50 values
commit_link
stringlengths
73
97
severity
stringclasses
4 values
__index_level_0__
int64
0
124k
43,808
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
208,803
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * MIPI DSI Bus * * Copyright (C) 2012-2013, Samsung Electronics, Co., Ltd. * Andrzej Hajda <a.hajda@samsung.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 * published by the Free Software Foundation. */ #ifnd...
null
null
null
null
117,150
42,760
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
207,755
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * Copyright (C) 2014 Samsung Electronics Co.Ltd * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundationr */ #ifndef EXYNOS_REGS_DECON_H #define EXYNOS_REGS_DECON_H /* Exynos543X DE...
null
null
null
null
116,102
36,084
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
36,084
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
/* * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple 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 S...
null
null
null
null
32,947
2,764
null
train_val
04b570817b2b38e35675b17328239746212f4c3f
155,821
FFmpeg
0
https://github.com/FFmpeg/FFmpeg
2018-06-01 01:23:12+05:30
/* * Copyright (c) 2015 - 2017 Manojkumar Bhosale (Manojkumar.Bhosale@imgtec.com) * * 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 * version 2.1...
null
null
null
null
71,876
32,899
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
32,899
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
/* * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org> * * 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 Foundatio...
null
null
null
null
29,762
46,926
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
46,926
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2013 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 GIN_OBJECT_TEMPLATE_BUILDER_H_ #define GIN_OBJECT_TEMPLATE_BUILDER_H_ #include <type_traits> #include "base/bind.h" #include "base/callback.h" #...
null
null
null
null
43,789
287
1,34,35,36,37,38,39,40,41,42,43,52,59,63,64,65,70,71,89,93,97,103,114,138,139,143,144,155,165,186,193,200,208,211,214,221,229,230,232,243,246,297,311,312,313,343,353,354,376,410,411,412,413,455,462,463,464,465,466,476,477,478,481,482,483,490,491,492,495,496,497,504,505,506,509,510,511,518,519,520,522,523,524,525,526,52...
train_val
dc7b094a338c6c521f918f478e993f0f74bbea0d
287
Chrome
1
https://github.com/chromium/chromium
2011-06-15 06:45:53+00:00
InputMethodLibraryImpl() : input_method_status_connection_(NULL), should_launch_ime_(false), ime_connected_(false), defer_ime_startup_(false), enable_auto_ime_shutdown_(true), ibus_daemon_process_handle_(base::kNullProcessHandle), #if !defined(TOUCH_UI) initialized_successfully_(false), candidate_window_controlle...
CVE-2011-2804
CWE-399
https://github.com/chromium/chromium/commit/dc7b094a338c6c521f918f478e993f0f74bbea0d
Low
287
37,480
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
37,480
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
/* * Copyright (C) 2008 Apple 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: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
null
null
null
null
34,343
29,657
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
29,657
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
/* ** 2008 November 18 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ********************...
null
null
null
null
26,520
26,067
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
26,067
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2013 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 EXTENSIONS_BROWSER_API_SYSTEM_INFO_SYSTEM_INFO_PROVIDER_H_ #define EXTENSIONS_BROWSER_API_SYSTEM_INFO_SYSTEM_INFO_PROVIDER_H_ #include "base/bind...
null
null
null
null
22,930
744
null
train_val
83ed75feba32e46f736fcce0d96a0445f29b96c2
162,588
krb5
0
https://github.com/krb5/krb5
2016-01-27 15:43:28-05:00
/* ccapi/server/ccs_callback.c */ /* * Copyright 2006 Massachusetts Institute of Technology. * All Rights Reserved. * * Export of this software from the United States of America may * require a specific license from the United States Government. * It is the responsibility of any person or organization contemplati...
null
null
null
null
73,896
31,568
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
31,568
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// 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. #include "third_party/blink/renderer/core/css/local_font_face_source.h" #include "third_party/blink/renderer/platform/fonts/font_cache.h" #include "third...
null
null
null
null
28,431
46,910
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
46,910
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2013 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. #include "gin/dictionary.h" namespace gin { Dictionary::Dictionary(v8::Isolate* isolate) : isolate_(isolate) { } Dictionary::Dictionary(v8::Isolate...
null
null
null
null
43,773
23,097
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
188,092
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
#include <linux/export.h> #include <linux/power_supply.h> #include <linux/of.h> #include <linux/mfd/abx500.h> #include <linux/mfd/abx500/ab8500.h> #include <linux/mfd/abx500/ab8500-bm.h> /* * These are the defined batteries that uses a NTC and ID resistor placed * inside of the battery pack. * Note that the res_to_...
null
null
null
null
96,439
26,714
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
26,714
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright (c) 2005, Google 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 of conditi...
null
null
null
null
23,577
51,122
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
51,122
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright (c) 2013 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. #include <utility> #include <vector> #include "base/macros.h" #include "base/memory/ptr_util.h" #include "testing/gtest/include/gtest/gtest.h" #inclu...
null
null
null
null
47,985
69,873
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
69,873
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// 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. #include "device/bluetooth/bluetooth_classic_win_fake.h" #include "base/logging.h" namespace device { namespace win { BluetoothClassicWrapperFake::Blue...
null
null
null
null
66,736
69,783
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
69,783
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// 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 DEVICE_GAMEPAD_GAMEPAD_MONITOR_H_ #define DEVICE_GAMEPAD_GAMEPAD_MONITOR_H_ #include "base/compiler_specific.h" #include "base/macros.h" #inc...
null
null
null
null
66,646
44,166
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
44,166
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2013 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. #include "ppapi/cpp/var_array.h" #include "ppapi/c/ppb_var_array.h" #include "ppapi/cpp/logging.h" #include "ppapi/cpp/module_impl.h" namespace pp { na...
null
null
null
null
41,029
10,106
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
175,101
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * arch/arm/mach-ks8695/board-dsm320.c * * DSM-320 D-Link Wireless Media Player, board support. * * Copyright 2008 Simtec Electronics * Daniel Silverstone <dsilvers@simtec.co.uk> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License...
null
null
null
null
83,448
43,842
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
208,837
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * Copyright (c) 2006-2009 Red Hat Inc. * Copyright (c) 2006-2008 Intel Corporation * Copyright (c) 2007 Dave Airlie <airlied@linux.ie> * * DRM framebuffer helper functions * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without...
null
null
null
null
117,184
46,006
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
46,006
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2017 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 ASH_WM_BASE_STATE_H_ #define ASH_WM_BASE_STATE_H_ #include "ash/wm/window_state.h" #include "ash/wm/wm_event.h" #include "base/macros.h" namespa...
null
null
null
null
42,869
6,095
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
6,095
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2017 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 CHROMEOS_COMPONENTS_TETHER_BLE_SCANNER_IMPL_H_ #define CHROMEOS_COMPONENTS_TETHER_BLE_SCANNER_IMPL_H_ #include <map> #include "base/macros.h" #i...
null
null
null
null
2,958
14,647
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
179,642
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * OpenRISC Linux * * Linux architectural port borrowing liberally from similar works of * others. All original copyrights apply as per the original source * declaration. * * OpenRISC implementation: * Copyright (C) 2003 Matjaz Breskvar <phoenix@bsemi.com> * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpo...
null
null
null
null
87,989
2,013
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
167,008
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * linux/net/netfilter/xt_IDLETIMER.c * * Netfilter module to trigger a timer when packet matches. * After timer expires a kevent will be sent. * * Copyright (C) 2004, 2010 Nokia Corporation * Written by Timo Teras <ext-timo.teras@nokia.com> * * Converted to x_tables and reworked for upstream inclusion * by...
null
null
null
null
75,356
3,296
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
3,296
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// 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. #include <memory> #include "base/bind.h" #include "base/location.h" #include "base/message_loop/message_loop.h" #include "base/run_loop.h" #include "base...
null
null
null
null
159
54,911
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
54,911
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// 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. #include "chrome/renderer/extensions/app_bindings.h" #include <memory> #include "base/bind.h" #include "extensions/renderer/script_context.h" #inclu...
null
null
null
null
51,774
1,519
null
train_val
31e986bc171719c9e6d40d0c2cb1501796a69e6c
260,474
php-src
0
https://github.com/php/php-src
2016-10-24 10:37:20+01:00
/* WBMP: Wireless Bitmap Type 0: B/W, Uncompressed Bitmap Specification of the WBMP format can be found in the file: SPEC-WAESpec-19990524.pdf You can download the WAP specification on: http://www.wapforum.com/ gd_wbmp.c Copyright (C) Johan Van den Brande (johan@vandenbrande.com) Fixed: gdImageW...
null
null
null
null
120,395
1,043
null
train_val
1b0d3845b454eaaac0b2064c78926ca4d739a080
263,611
qemu
0
https://github.com/bonzini/qemu
2016-10-18 11:40:27+01:00
#include "io.h" int main(void) { long long rd, rt; long long result; rt = 0x87654321; result = 0x32801080; __asm ("precequ.ph.qbra %0, %1\n\t" : "=r"(rd) : "r"(rt) ); if (result != rd) { printf("precequ.ph.qbra wrong\n"); return -1; } ...
null
null
null
null
121,735
52,304
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
52,304
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// 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 MEDIA_AUDIO_PULSE_PULSE_INPUT_H_ #define MEDIA_AUDIO_PULSE_PULSE_INPUT_H_ #include <pulse/pulseaudio.h> #include <stddef.h> #include <string>...
null
null
null
null
49,167
16,471
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
16,471
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2013 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. #include "components/sync/driver/sync_service_observer.h" namespace syncer { void SyncServiceObserver::OnSyncCycleCompleted(SyncService* sync) { OnSta...
null
null
null
null
13,334
59,492
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
59,492
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// 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 CHROME_BROWSER_EXTENSIONS_API_INSTANCE_ID_INSTANCE_ID_API_H_ #define CHROME_BROWSER_EXTENSIONS_API_INSTANCE_ID_INSTANCE_ID_API_H_ #include "base/...
null
null
null
null
56,355
27,211
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
27,211
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
/*********************************************************************** Copyright (c) 2006-2011, Skype 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: - Redistributions of source code must retai...
null
null
null
null
24,074
2,395
null
train_val
04b570817b2b38e35675b17328239746212f4c3f
155,452
FFmpeg
0
https://github.com/FFmpeg/FFmpeg
2018-06-01 01:23:12+05:30
/* * 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 * version 2.1 of the License, or (at your option) any later version. * * FFmpeg is distributed...
null
null
null
null
71,507
28,786
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
193,781
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* Copyright 2008 - 2016 Freescale Semiconductor, Inc. * * 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 and t...
null
null
null
null
102,128
62,656
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
62,656
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// 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. #include "chrome/browser/ui/startup/startup_tab_provider.h" #include "base/strings/utf_string_conversions.h" #include "build/build_config.h" #include "ch...
null
null
null
null
59,519
37,926
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
37,926
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
/* * Copyright (C) 2003, 2004, 2005, 2006, 2008 Apple 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: * 1. Redistributions of source code must retain the above copyright * notice, t...
null
null
null
null
34,789
27,981
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
192,976
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc. * 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; either version 2 of the License, or * (at your opt...
null
null
null
null
101,323
10,480
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
175,475
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
#ifndef __PCM037_H__ #define __PCM037_H__ enum pcm037_board_variant { PCM037_PCM970, PCM037_EET, }; extern enum pcm037_board_variant pcm037_variant(void); #ifdef CONFIG_MACH_PCM037_EET int pcm037_eet_init_devices(void); #else static inline int pcm037_eet_init_devices(void) { return 0; } #endif #endif
null
null
null
null
83,822
14,948
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
14,948
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2017 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 COMPONENTS_UKM_OBSERVERS_SYNC_DISABLE_OBSERVER_H_ #define COMPONENTS_UKM_OBSERVERS_SYNC_DISABLE_OBSERVER_H_ #include <map> #include "base/scoped...
null
null
null
null
11,811
37,423
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
202,418
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * Copyright 2013 Emilio López * * Emilio López <emilio@elopez.com.ar> * * 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 late...
null
null
null
null
110,765
14,476
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
179,471
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
#ifndef __iop_sw_spu_defs_h #define __iop_sw_spu_defs_h /* * This file is autogenerated from * file: iop_sw_spu.r * * by ../../../tools/rdesc/bin/rdes2c -outfile iop_sw_spu_defs.h iop_sw_spu.r * Any changes here will be lost. * * -*- buffer-read-only: t -*- */ /* Main access macros */ #ifndef RE...
null
null
null
null
87,818
56,819
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
56,819
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// 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 CHROME_BROWSER_CHROMEOS_EXTENSIONS_DEFAULT_APP_ORDER_H_ #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_DEFAULT_APP_ORDER_H_ #include <stddef.h> ...
null
null
null
null
53,682
7,181
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
7,181
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// 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. #include "net/quic/core/quic_crypto_server_handshaker.h" #include <memory> #include "net/quic/platform/api/quic_arraysize.h" #include "net/quic/plat...
null
null
null
null
4,044
47,364
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
47,364
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// 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. #include "cc/trees/proxy_common.h" #include "cc/trees/layer_tree_host.h" namespace cc { BeginMainFrameAndCommitState::BeginMainFrameAndCommitState() = ...
null
null
null
null
44,227
39,558
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
39,558
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// 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. #include "third_party/blink/renderer/modules/encryptedmedia/content_decryption_module_result_promise.h" #include "third_party/blink/public/platform/web_s...
null
null
null
null
36,421
41,426
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
41,426
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// 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 TOOLS_GN_NINJA_BUNDLE_DATA_TARGET_WRITER_H_ #define TOOLS_GN_NINJA_BUNDLE_DATA_TARGET_WRITER_H_ #include "base/macros.h" #include "tools/gn/ninja...
null
null
null
null
38,289
56,728
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
56,728
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// 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 CHROME_BROWSER_CHROMEOS_POWER_POWER_DATA_COLLECTOR_H_ #define CHROME_BROWSER_CHROMEOS_POWER_POWER_DATA_COLLECTOR_H_ #include "base/compiler_speci...
null
null
null
null
53,591
8,293
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
173,288
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
#ifndef _UAPI_ASM_X86_PROCESSOR_FLAGS_H #define _UAPI_ASM_X86_PROCESSOR_FLAGS_H /* Various flags defined: can be included from assembler. */ #include <linux/const.h> /* * EFLAGS bits */ #define X86_EFLAGS_CF_BIT 0 /* Carry Flag */ #define X86_EFLAGS_CF _BITUL(X86_EFLAGS_CF_BIT) #define X86_EFLAGS_FIXED_BIT 1 /* Bi...
null
null
null
null
81,635
59,094
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
59,094
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// 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. #include "base/command_line.h" #include "base/macros.h" #include "chrome/browser/extensions/extension_apitest.h" #include "chrome/browser/permissions/perm...
null
null
null
null
55,957
29,509
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
29,509
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
/* ** 2017-04-16 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** **************************...
null
null
null
null
26,372
50,015
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
50,015
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// 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 UI_BASE_CURSOR_OZONE_BITMAP_CURSOR_FACTORY_OZONE_H_ #define UI_BASE_CURSOR_OZONE_BITMAP_CURSOR_FACTORY_OZONE_H_ #include <map> #include "base/ma...
null
null
null
null
46,878
8,385
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
173,380
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* MN10300 On-chip serial driver for gdbstub I/O * * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public Licence * as published by the Free So...
null
null
null
null
81,727
525
31,32
train_val
bceaa90240b6019ed73b49965eac7d167610be69
165,520
linux
1
https://github.com/torvalds/linux
2013-11-18 15:12:03-05:00
static int dgram_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { size_t copied = 0; int err = -EOPNOTSUPP; struct sk_buff *skb; struct sockaddr_ieee802154 *saddr; saddr = (struct sockaddr_ieee802154 *)msg->msg_name; skb = skb_recv_datagram(sk, flag...
CVE-2013-7281
CWE-200
https://github.com/torvalds/linux/commit/bceaa90240b6019ed73b49965eac7d167610be69
Low
3,414
24,246
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
24,246
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// 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 CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ #include <stddef....
null
null
null
null
21,109
802
6,7
train_val
8e2d61e0aed2b7c4ecb35844fe07e0b2b762dee4
165,797
linux
1
https://github.com/torvalds/linux
2015-09-11 15:00:02-07:00
static void __net_exit sctp_net_exit(struct net *net) { /* Free the local address list */ sctp_free_addr_wq(net); sctp_free_local_addr_list(net); /* Free the control endpoint. * inet_ctl_sock_destroy(net->sctp.ctl_sock); sctp_dbg_objcnt_exit(net); sctp_proc_exit(net); cleanup_sctp_mibs(net); sctp_sysctl_net_unregi...
CVE-2015-5283
CWE-119
https://github.com/torvalds/linux/commit/8e2d61e0aed2b7c4ecb35844fe07e0b2b762dee4
Medium
3,691
12,754
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
177,749
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * ELF register definitions.. * * 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. */ #ifndef _ASM_POWERPC_ELF_H #...
null
null
null
null
86,096
1,989
null
train_val
1b0d3845b454eaaac0b2064c78926ca4d739a080
264,557
qemu
0
https://github.com/bonzini/qemu
2016-10-18 11:40:27+01:00
/* * WM8750 audio CODEC. * * Copyright (c) 2006 Openedhand Ltd. * Written by Andrzej Zaborowski <balrog@zabor.org> * * This file is licensed under GNU GPL. */ #include "qemu/osdep.h" #include "hw/hw.h" #include "hw/i2c/i2c.h" #include "audio/audio.h" #define IN_PORT_N 3 #define OUT_PORT_N 3 #define CODEC "wm...
null
null
null
null
122,681
23,169
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
188,164
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
#ifndef _MMC_CORE_BLOCK_H #define _MMC_CORE_BLOCK_H struct mmc_queue; struct request; void mmc_blk_issue_rq(struct mmc_queue *mq, struct request *req); #endif
null
null
null
null
96,511
46,103
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
46,103
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// 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. #include "ash/wm/cursor_manager_chromeos.h" #include <utility> #include "base/logging.h" #include "ui/aura/env.h" #include "ui/events/event.h" #include ...
null
null
null
null
42,966
1,054
3,4,5,8,9,10,11,21,22,23,24,25,26
train_val
2117d5398c81554fbf803f5fd1dc55eb78216c0c
166,049
linux
1
https://github.com/torvalds/linux
2016-11-24 18:36:54+01:00
static int em_jmp_far(struct x86_emulate_ctxt *ctxt) { int rc; unsigned short sel, old_sel; struct desc_struct old_desc, new_desc; const struct x86_emulate_ops *ops = ctxt->ops; u8 cpl = ctxt->ops->cpl(ctxt); /* Assignment of RIP may only fail in 64-bit mode * if (ctxt->mode == X86EMUL_MODE_PROT64) ops->get_seg...
CVE-2016-9756
CWE-200
https://github.com/torvalds/linux/commit/2117d5398c81554fbf803f5fd1dc55eb78216c0c
Low
3,943
62,508
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
62,508
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2013 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. #include "chrome/browser/ui/screen_capture_notification_ui.h" #include "base/logging.h" // Stub implementation of the ScreenCaptureNotificationUI interf...
null
null
null
null
59,371
4,472
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
169,467
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * Copyright 2000 by Hans Reiser, licensing governed by reiserfs/README * * Trivial changes by Alan Cox to remove EHASHCOLLISION for compatibility * * Trivial Changes: * Rights granted to Hans Reiser to redistribute under other terms providing * he accepts all liability including but not limited to patent, fit...
null
null
null
null
77,814
32,073
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
32,073
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2018 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. #include "third_party/blink/renderer/core/css/properties/longhands/text_decoration_style.h" #include "third_party/blink/renderer/core/css/properties/comp...
null
null
null
null
28,936
11,433
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
176,428
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * Copyright 2010 Tilera Corporation. 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. * * This program is distributed in the hope that it will ...
null
null
null
null
84,775
15,129
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
15,129
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// 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. #include "components/signin/core/browser/signin_error_controller.h" #include "components/signin/core/browser/signin_metrics.h" namespace { typedef std:...
null
null
null
null
11,992
11,775
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
11,775
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// 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. #include "components/omnibox/browser/search_suggestion_parser.h" #include <stddef.h> #include <algorithm> #include <memory> #include <utility> #include...
null
null
null
null
8,638
32,357
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
32,357
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2017 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. #include "third_party/blink/renderer/core/script/modulator.h" #include "testing/gtest/include/gtest/gtest.h" #include "third_party/blink/public/platform/...
null
null
null
null
29,220
50,137
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
50,137
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2017 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. #include "ui/base/resource/resource_bundle.h" #include "base/logging.h" #include "base/macros.h" #include "ui/gfx/image/image.h" namespace ui { void Re...
null
null
null
null
47,000
44,807
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
44,807
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// 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. #include "ppapi/utility/threading/simple_thread.h" #ifdef WIN32 #include <windows.h> #endif namespace pp { namespace { // Use 2MB default stack si...
null
null
null
null
41,670
23,116
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
23,116
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2013 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. #include "content/browser/service_worker/service_worker_provider_host.h" #include <utility> #include "base/callback_helpers.h" #include "base/guid.h" #i...
null
null
null
null
19,979
62,901
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
62,901
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// 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. #include "chrome/browser/ui/views/frame/browser_frame.h" #include <utility> #include "base/command_line.h" #include "base/debug/leak_annotations.h" ...
null
null
null
null
59,764
43,204
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
43,204
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright (c) 2011 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. #include "base/synchronization/atomic_flag.h" #include "base/bind.h" #include "base/logging.h" #include "base/single_thread_task_runner.h" #include "...
null
null
null
null
40,067
58,195
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
58,195
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// 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. #include "chrome/browser/permissions/permission_decision_auto_blocker.h" #include <memory> #include <string> #include <utility> #include "base/feature_l...
null
null
null
null
55,058
13,175
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
13,175
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// 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. #include "components/password_manager/core/browser/log_router.h" #include "base/macros.h" #include "components/password_manager/core/browser/log_receiver...
null
null
null
null
10,038
81
19,20,29,50,51,60
train_val
6045de69c7dedcba3eadf7c4bba424b19c81d00d
259,036
php-src
1
https://github.com/php/php-src
2016-10-23 20:09:23-07:00
static void php_wddx_serialize_object(wddx_packet *packet, zval *obj) { /* OBJECTS_FIXME */ zval **ent, *fname, **varname; zval *retval = NULL; const char *key; ulong idx; char tmp_buf[WDDX_BUF_LEN]; HashTable *objhash, *sleephash; TSRMLS_FETCH(); MAKE_STD_ZVAL(fname); ZVAL_STRING(fname, "__sleep", 1); /* * We try to ...
CVE-2016-9934
CWE-476
https://github.com/php/php-src/commit/6045de69c7dedcba3eadf7c4bba424b19c81d00d
Low
4,239
63,469
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
63,469
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// 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 CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_DIALOG_VIEWS_H_ #define CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_DIALOG_VIEWS_H...
null
null
null
null
60,332
2,913
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
167,908
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * 6LoWPAN Extension Header compression according to RFC7400 * * 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. ...
null
null
null
null
76,256
4,929
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
169,924
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * Driver for Digigram VX222 PCI soundcards * * Copyright (c) 2002 by Takashi Iwai <tiwai@suse.de> * * 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 Licens...
null
null
null
null
78,271
12,570
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
177,565
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * hack-coff.c - hack the header of an xcoff file to fill in * a few fields needed by the Open Firmware xcoff loader on * Power Macs but not initialized by objcopy. * * Copyright (C) Paul Mackerras 1997. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU G...
null
null
null
null
85,912
42,797
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
207,792
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * hecubafb.h - definitions for the hecuba framebuffer driver * * Copyright (C) 2008 by Jaya Kumar * * This file is subject to the terms and conditions of the GNU General Public * License. See the file COPYING in the main directory of this archive for * more details. * */ #ifndef _LINUX_HECUBAFB_H_ #define ...
null
null
null
null
116,139
35,993
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
35,993
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// 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 THIRD_PARTY_BLINK_RENDERER_CORE_ANIMATION_CSS_FILTER_LIST_INTERPOLATION_TYPE_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_ANIMATION_CSS_FILTER_LIST_...
null
null
null
null
32,856
19,523
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
19,523
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// 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. #ifndef COMPONENTS_SESSIONS_CORE_SESSION_TYPES_H_ #define COMPONENTS_SESSIONS_CORE_SESSION_TYPES_H_ #include <algorithm> #include <memory> #include <stri...
null
null
null
null
16,386
29,320
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
194,315
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * Intel MIC Platform Software Stack (MPSS) * * Copyright(c) 2016 Intel Corporation. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License, version 2, as * published by the Free Software Foundation. * * This program is distributed in t...
null
null
null
null
102,662
143
85
train_val
7b8c1df65b25d6671f113e2306982eded44ce3b4
160,271
ImageMagick
1
https://github.com/ImageMagick/ImageMagick
null
static Image *ReadARTImage(const ImageInfo *image_info,ExceptionInfo *exception) { const unsigned char *pixels; Image *image; QuantumInfo *quantum_info; QuantumType quantum_type; MagickBooleanType status; size_t length; ssize_t count, y; /* Open image file. */ assert(image_info != (const ImageInfo *) NULL); asse...
CVE-2017-9143
CWE-772
https://github.com/ImageMagick/ImageMagick/commit/7b8c1df65b25d6671f113e2306982eded44ce3b4
Medium
2,720
13,150
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
178,145
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
#ifndef _ASMAXP_PTRACE_H #define _ASMAXP_PTRACE_H #include <uapi/asm/ptrace.h> #define arch_has_single_step() (1) #define user_mode(regs) (((regs)->ps & 8) != 0) #define instruction_pointer(regs) ((regs)->pc) #define profile_pc(regs) instruction_pointer(regs) #define current_user_stack_pointer() rdusp() #define ta...
null
null
null
null
86,492
726
83,84
train_val
c4f40933f2cd7f975af63e56ea4cdcdc6c636f73
726
Chrome
1
https://github.com/chromium/chromium
2012-05-18 21:08:00+00:00
void TaskManagerView::Init() { table_model_.reset(new TaskManagerTableModel(model_)); // Page column has no header label. columns_.push_back(ui::TableColumn(IDS_TASK_MANAGER_TASK_COLUMN, ui::TableColumn::LEFT, -1, 1)); columns_.back().sortable = true; columns_.push_back(ui::TableColumn(IDS_TASK_MANAGER_PROFILE_NAME_CO...
CVE-2012-2862
CWE-399
https://github.com/chromium/chromium/commit/c4f40933f2cd7f975af63e56ea4cdcdc6c636f73
Medium
726
27,501
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
27,501
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
/* * Copyright 2004 The WebRTC Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing ...
null
null
null
null
24,364
21,962
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
186,957
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * This file is part of wl12xx * * Copyright (C) 1998-2009, 2011 Texas Instruments. All rights reserved. * Copyright (C) 2009 Nokia Corporation * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * version 2 as published by the Free S...
null
null
null
null
95,304
38,820
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
203,815
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * Created by: Jason Wessel <jason.wessel@windriver.com> * * Copyright (c) 2010 Wind River Systems, Inc. All Rights Reserved. * * This file is licensed under the terms of the GNU General Public * License version 2. This program is licensed "as is" without any * warranty of any kind, whether express or implied...
null
null
null
null
112,162
676
null
train_val
1b0d3845b454eaaac0b2064c78926ca4d739a080
263,244
qemu
0
https://github.com/bonzini/qemu
2016-10-18 11:40:27+01:00
#define exec_op glue(exec_, OP) #define exec_opq glue(glue(exec_, OP), q) #define exec_opl glue(glue(exec_, OP), l) #define exec_opw glue(glue(exec_, OP), w) #define exec_opb glue(glue(exec_, OP), b) #ifndef OP_SHIFTD #ifdef OP_NOBYTE #define EXECSHIFT(size, rsize, res, s1, s2, flags) \ asm ("push %4\n\t"\ ...
null
null
null
null
121,368
62,913
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
62,913
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2013 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. #include "chrome/browser/ui/views/frame/test_with_browser_view.h" #include <memory> #include "base/threading/sequenced_task_runner_handle.h" #include "b...
null
null
null
null
59,776
60,981
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
60,981
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// 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. #include "chrome/browser/android/compositor/layer_title_cache.h" #include <android/bitmap.h> #include <memory> #include "cc/layers/layer.h" #include "c...
null
null
null
null
57,844
43,308
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
43,308
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// 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 BASE_MAC_SCOPED_TYPEREF_H_ #define BASE_MAC_SCOPED_TYPEREF_H_ #include "base/compiler_specific.h" #include "base/logging.h" #include "base/memory...
null
null
null
null
40,171
32,065
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
197,060
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * Radisys 82600 Embedded chipset Memory Controller kernel module * (C) 2005 EADS Astrium * This file may be distributed under the terms of the * GNU General Public License. * * Written by Tim Small <tim@buttersideup.com>, based on work by Thayne * Harbaugh, Dan Hollis <goemon at anime dot net> and others. * ...
null
null
null
null
105,407
5,453
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
170,448
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * tegra_pcm.h - Definitions for Tegra PCM driver * * Author: Stephen Warren <swarren@nvidia.com> * Copyright (C) 2010,2012 - NVIDIA, Inc. * * Based on code copyright/by: * * Copyright (c) 2009-2010, NVIDIA Corporation. * Scott Peterson <speterson@nvidia.com> * * Copyright (C) 2010 Google, Inc. * Iliyan M...
null
null
null
null
78,795
712
4,18,19,20,21,22,23,27,28,29,33,35,36,37,38,39,40,41,44,45,46,49,50,51,52,53,54,55,56,57,58,59,60,63,64,65,67,68,69,71,72,73,74,75,76,77,78,79,80,83,84,85,88,90,91,92,93
train_val
5f5bc6b1e2d5a6f827bc860ef2dc5b6f365d1339
165,707
linux
1
https://github.com/torvalds/linux
2014-11-20 17:20:07-08:00
static int do_setxattr(struct btrfs_trans_handle *trans, struct inode *inode, const char *name, const void *value, size_t size, int flags) { struct btrfs_dir_item *di; struct btrfs_root *root = BTRFS_I(inode)->root; struct btrfs_path *path; size_t name_len = strlen(name); int ret = 0; if (name_len + size > BTRFS_MAX_...
CVE-2014-9710
CWE-362
https://github.com/torvalds/linux/commit/5f5bc6b1e2d5a6f827bc860ef2dc5b6f365d1339
Medium
3,601
19,089
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
19,089
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2017 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 COMPONENTS_LOCATION_LOCATION_SETTINGS_DIALOG_OUTCOME_H_ #define COMPONENTS_LOCATION_LOCATION_SETTINGS_DIALOG_OUTCOME_H_ // An enum to describe th...
null
null
null
null
15,952
45,280
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
45,280
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// 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. #include "ash/screen_util.h" #include "ash/shelf/shelf.h" #include "ash/shell.h" #include "base/logging.h" #include "ui/aura/client/screen_position_clien...
null
null
null
null
42,143
15,223
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
15,223
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2017 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 COMPONENTS_FAVICON_CORE_TEST_MOCK_FAVICON_SERVICE_H_ #define COMPONENTS_FAVICON_CORE_TEST_MOCK_FAVICON_SERVICE_H_ #include <vector> #include "ba...
null
null
null
null
12,086