id
stringlengths
10
13
source_dataset
stringclasses
1 value
cwe
stringclasses
158 values
language
stringclasses
10 values
vulnerable_code
stringlengths
53
508k
secure_code
stringlengths
53
508k
url
stringclasses
1 value
repository
stringclasses
1 value
commit_hash
stringclasses
1 value
timestamp
stringclasses
1 value
cvss_score
stringclasses
1 value
severity
stringclasses
1 value
metadata
dict
crossvul_0
CrossVul
CWE-1021
go
package controllers import ( "compress/gzip" "context" "crypto/tls" "html/template" "net/http" "net/url" "time" "github.com/NYTimes/gziphandler" "github.com/gophish/gophish/auth" "github.com/gophish/gophish/config" ctx "github.com/gophish/gophish/context" "github.com/gophish/gophish/controllers/api" log ...
package controllers import ( "compress/gzip" "context" "crypto/tls" "html/template" "net/http" "net/url" "time" "github.com/NYTimes/gziphandler" "github.com/gophish/gophish/auth" "github.com/gophish/gophish/config" ctx "github.com/gophish/gophish/context" "github.com/gophish/gophish/controllers/api" log ...
crossvul
medium
{ "cwe_description": "Improper Restriction of Rendered UI Layers or Frames - A web application is expected to place restrictions on whether it is allowed to be rendered within frames, iframes, objects, embed or applet elements.", "dataset_source": "CrossVul", "file_pair_id": "4282_0", "language_dir": "go" }
crossvul_1
CrossVul
CWE-1021
go
package middleware import ( "encoding/json" "fmt" "net/http" "strings" ctx "github.com/gophish/gophish/context" "github.com/gophish/gophish/models" "github.com/gorilla/csrf" ) // CSRFExemptPrefixes are a list of routes that are exempt from CSRF protection var CSRFExemptPrefixes = []string{ "/api", } // CSRF...
package middleware import ( "encoding/json" "fmt" "net/http" "strings" ctx "github.com/gophish/gophish/context" "github.com/gophish/gophish/models" "github.com/gorilla/csrf" ) // CSRFExemptPrefixes are a list of routes that are exempt from CSRF protection var CSRFExemptPrefixes = []string{ "/api", } // CSRF...
crossvul
medium
{ "cwe_description": "Improper Restriction of Rendered UI Layers or Frames - A web application is expected to place restrictions on whether it is allowed to be rendered within frames, iframes, objects, embed or applet elements.", "dataset_source": "CrossVul", "file_pair_id": "4282_1", "language_dir": "go" }
crossvul_2
CrossVul
CWE-1021
php
<?php /* * LimeSurvey * Copyright (C) 2007-2016 The LimeSurvey Project Team / Carsten Schmitz * All rights reserved. * License: GNU/GPL License v3 or later, see LICENSE.php * LimeSurvey is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includ...
<?php /* * LimeSurvey * Copyright (C) 2007-2016 The LimeSurvey Project Team / Carsten Schmitz * All rights reserved. * License: GNU/GPL License v3 or later, see LICENSE.php * LimeSurvey is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includ...
crossvul
medium
{ "cwe_description": "Improper Restriction of Rendered UI Layers or Frames - A web application is expected to place restrictions on whether it is allowed to be rendered within frames, iframes, objects, embed or applet elements.", "dataset_source": "CrossVul", "file_pair_id": "1075_0", "language_dir": "php" }
crossvul_3
CrossVul
CWE-113
javascript
'use strict'; const util = require('util'); const net = require('net'); const HTTPParser = process.binding('http_parser').HTTPParser; const assert = require('assert').ok; const common = require('_http_common'); const parsers = common.parsers; const freeParser = common.freeParser; const debug = common.debug; const CRLF...
'use strict'; const util = require('util'); const net = require('net'); const HTTPParser = process.binding('http_parser').HTTPParser; const assert = require('assert').ok; const common = require('_http_common'); const parsers = common.parsers; const freeParser = common.freeParser; const debug = common.debug; const CRLF...
crossvul
medium
{ "cwe_description": "Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting') - HTTP agents or components may include a web server, load balancer, reverse proxy, web caching proxy, application firewall, web browser, etc.", "dataset_source": "CrossVul", "file_pair_id": "5103_0...
crossvul_4
CrossVul
CWE-116
python
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyrigt: (c) 2017, Yanis Guenane <yanis+ansible@guenane.org> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = r''' --- module...
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyrigt: (c) 2017, Yanis Guenane <yanis+ansible@guenane.org> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = r''' --- module...
crossvul
medium
{ "cwe_description": "Improper Encoding or Escaping of Output - Improper encoding or escaping can allow attackers to change the commands that are sent to another component, inserting malicious commands instead.", "dataset_source": "CrossVul", "file_pair_id": "4295_1", "language_dir": "py" }
crossvul_5
CrossVul
CWE-116
python
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2016, Yanis Guenane <yanis+ansible@guenane.org> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = r''' --- modul...
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2016, Yanis Guenane <yanis+ansible@guenane.org> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = r''' --- modul...
crossvul
medium
{ "cwe_description": "Improper Encoding or Escaping of Output - Improper encoding or escaping can allow attackers to change the commands that are sent to another component, inserting malicious commands instead.", "dataset_source": "CrossVul", "file_pair_id": "4295_2", "language_dir": "py" }
crossvul_6
CrossVul
CWE-116
python
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2016-2017, Yanis Guenane <yanis+ansible@guenane.org> # Copyright: (c) 2017, Markus Teufelberger <mteufelberger+ansible@mgit.at> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import...
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2016-2017, Yanis Guenane <yanis+ansible@guenane.org> # Copyright: (c) 2017, Markus Teufelberger <mteufelberger+ansible@mgit.at> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import...
crossvul
medium
{ "cwe_description": "Improper Encoding or Escaping of Output - Improper encoding or escaping can allow attackers to change the commands that are sent to another component, inserting malicious commands instead.", "dataset_source": "CrossVul", "file_pair_id": "4295_3", "language_dir": "py" }
crossvul_7
CrossVul
CWE-116
python
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2016, Yanis Guenane <yanis+ansible@guenane.org> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = r''' --- modul...
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2016, Yanis Guenane <yanis+ansible@guenane.org> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = r''' --- modul...
crossvul
medium
{ "cwe_description": "Improper Encoding or Escaping of Output - Improper encoding or escaping can allow attackers to change the commands that are sent to another component, inserting malicious commands instead.", "dataset_source": "CrossVul", "file_pair_id": "4295_4", "language_dir": "py" }
crossvul_8
CrossVul
CWE-116
python
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2019, Patrick Pichler <ppichler+ansible@mgit.at> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = r''' --- modu...
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2019, Patrick Pichler <ppichler+ansible@mgit.at> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = r''' --- modu...
crossvul
medium
{ "cwe_description": "Improper Encoding or Escaping of Output - Improper encoding or escaping can allow attackers to change the commands that are sent to another component, inserting malicious commands instead.", "dataset_source": "CrossVul", "file_pair_id": "4295_5", "language_dir": "py" }
crossvul_9
CrossVul
CWE-116
python
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2016-2017, Yanis Guenane <yanis+ansible@guenane.org> # Copyright: (c) 2017, Markus Teufelberger <mteufelberger+ansible@mgit.at> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import...
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2016-2017, Yanis Guenane <yanis+ansible@guenane.org> # Copyright: (c) 2017, Markus Teufelberger <mteufelberger+ansible@mgit.at> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import...
crossvul
medium
{ "cwe_description": "Improper Encoding or Escaping of Output - Improper encoding or escaping can allow attackers to change the commands that are sent to another component, inserting malicious commands instead.", "dataset_source": "CrossVul", "file_pair_id": "4295_6", "language_dir": "py" }
crossvul_10
CrossVul
CWE-116
python
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2019, Felix Fontein <felix@fontein.de> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = r''' --- module: x509_c...
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2019, Felix Fontein <felix@fontein.de> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = r''' --- module: x509_c...
crossvul
medium
{ "cwe_description": "Improper Encoding or Escaping of Output - Improper encoding or escaping can allow attackers to change the commands that are sent to another component, inserting malicious commands instead.", "dataset_source": "CrossVul", "file_pair_id": "4295_7", "language_dir": "py" }
crossvul_11
CrossVul
CWE-116
javascript
const {escapeRegExp, size, isString} = require('lodash'); const {SECRET_REPLACEMENT, SECRET_MIN_SIZE} = require('./definitions/constants'); module.exports = (env) => { const toReplace = Object.keys(env).filter((envVar) => { // https://github.com/semantic-release/semantic-release/issues/1558 if (envVar === 'G...
const {escapeRegExp, size, isString} = require('lodash'); const {SECRET_REPLACEMENT, SECRET_MIN_SIZE} = require('./definitions/constants'); module.exports = (env) => { const toReplace = Object.keys(env).filter((envVar) => { // https://github.com/semantic-release/semantic-release/issues/1558 if (envVar === 'G...
crossvul
medium
{ "cwe_description": "Improper Encoding or Escaping of Output - Improper encoding or escaping can allow attackers to change the commands that are sent to another component, inserting malicious commands instead.", "dataset_source": "CrossVul", "file_pair_id": "4339_0", "language_dir": "js" }
crossvul_12
CrossVul
CWE-116
php
<?php /** * edih_csv_inc.php * * Copyright 2012 Kevin McCormick * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * ...
<?php /** * edih_csv_inc.php * * Copyright 2012 Kevin McCormick * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * ...
crossvul
medium
{ "cwe_description": "Improper Encoding or Escaping of Output - Improper encoding or escaping can allow attackers to change the commands that are sent to another component, inserting malicious commands instead.", "dataset_source": "CrossVul", "file_pair_id": "2597_0", "language_dir": "php" }
crossvul_13
CrossVul
CWE-116
c
# bash/zsh git prompt support # # Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org> # Distributed under the GNU General Public License, version 2.0. # # This script allows you to see repository status in your prompt. # # To enable: # # 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh). # 2) Add t...
# bash/zsh git prompt support # # Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org> # Distributed under the GNU General Public License, version 2.0. # # This script allows you to see repository status in your prompt. # # To enable: # # 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh). # 2) Add t...
crossvul
medium
{ "cwe_description": "Improper Encoding or Escaping of Output - Improper encoding or escaping can allow attackers to change the commands that are sent to another component, inserting malicious commands instead.", "dataset_source": "CrossVul", "file_pair_id": "2439_0", "language_dir": "sh" }
crossvul_14
CrossVul
CWE-116
c
#!/bin/sh # # Copyright (c) 2012 SZEDER Gábor # test_description='test git-specific bash prompt functions' . ./lib-bash.sh . "$GIT_BUILD_DIR/contrib/completion/git-prompt.sh" actual="$TRASH_DIRECTORY/actual" c_red='\\[\\e[31m\\]' c_green='\\[\\e[32m\\]' c_lblue='\\[\\e[1;34m\\]' c_clear='\\[\\e[0m\\]' test_expect_...
#!/bin/sh # # Copyright (c) 2012 SZEDER Gábor # test_description='test git-specific bash prompt functions' . ./lib-bash.sh . "$GIT_BUILD_DIR/contrib/completion/git-prompt.sh" actual="$TRASH_DIRECTORY/actual" c_red='\\[\\e[31m\\]' c_green='\\[\\e[32m\\]' c_lblue='\\[\\e[1;34m\\]' c_clear='\\[\\e[0m\\]' test_expect_...
crossvul
medium
{ "cwe_description": "Improper Encoding or Escaping of Output - Improper encoding or escaping can allow attackers to change the commands that are sent to another component, inserting malicious commands instead.", "dataset_source": "CrossVul", "file_pair_id": "2439_1", "language_dir": "sh" }
crossvul_15
CrossVul
CWE-1187
cpp
/* -*-mode:c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /** Copyright (c) 2006...2016, Matthias Stirner and HTW Aalen University 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. ...
/* -*-mode:c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /** Copyright (c) 2006...2016, Matthias Stirner and HTW Aalen University 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. ...
crossvul
medium
{ "cwe_description": "DEPRECATED: Use of Uninitialized Resource - This entry has been deprecated because it was a duplicate of CWE-908.", "dataset_source": "CrossVul", "file_pair_id": "3343_0", "language_dir": "cc" }
crossvul_16
CrossVul
CWE-1187
cpp
#include "lepton_codec.hh" #include "uncompressed_components.hh" #include "../vp8/decoder/decoder.hh" template<class Left, class Middle, class Right, bool force_memory_optimization> void LeptonCodec::ThreadState::decode_row(Left & left_model, Middle& middle_model, ...
#include "lepton_codec.hh" #include "uncompressed_components.hh" #include "../vp8/decoder/decoder.hh" template<class Left, class Middle, class Right, bool force_memory_optimization> void LeptonCodec::ThreadState::decode_row(Left & left_model, Middle& middle_model, ...
crossvul
medium
{ "cwe_description": "DEPRECATED: Use of Uninitialized Resource - This entry has been deprecated because it was a duplicate of CWE-908.", "dataset_source": "CrossVul", "file_pair_id": "3343_2", "language_dir": "cc" }
crossvul_17
CrossVul
CWE-1187
cpp
/* -*-mode:c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ #include <algorithm> #include <cassert> #include <iostream> #include <tuple> #include "bitops.hh" #include "component_info.hh" #include "uncompressed_components.hh" #include "jpgcoder.hh" #include "vp8_decoder.hh" #include "../io/Reader.hh...
/* -*-mode:c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ #include <algorithm> #include <cassert> #include <iostream> #include <tuple> #include "bitops.hh" #include "component_info.hh" #include "uncompressed_components.hh" #include "jpgcoder.hh" #include "vp8_decoder.hh" #include "../io/Reader.hh...
crossvul
medium
{ "cwe_description": "DEPRECATED: Use of Uninitialized Resource - This entry has been deprecated because it was a duplicate of CWE-908.", "dataset_source": "CrossVul", "file_pair_id": "3343_3", "language_dir": "cc" }
crossvul_18
CrossVul
CWE-1187
c
/* $OpenBSD: doas.c,v 1.57 2016/06/19 19:29:43 martijn Exp $ */ /* * Copyright (c) 2015 Ted Unangst <tedu@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 app...
/* $OpenBSD: doas.c,v 1.57 2016/06/19 19:29:43 martijn Exp $ */ /* * Copyright (c) 2015 Ted Unangst <tedu@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 app...
crossvul
medium
{ "cwe_description": "DEPRECATED: Use of Uninitialized Resource - This entry has been deprecated because it was a duplicate of CWE-908.", "dataset_source": "CrossVul", "file_pair_id": "1052_1", "language_dir": "c" }
crossvul_19
CrossVul
CWE-1188
javascript
'use strict'; var grunt = require('../grunt'); // Nodejs libs. var fs = require('fs'); var path = require('path'); // The module to be exported. var file = module.exports = {}; // External libs. file.glob = require('glob'); file.minimatch = require('minimatch'); file.findup = require('findup-sync'); var YAML = requ...
'use strict'; var grunt = require('../grunt'); // Nodejs libs. var fs = require('fs'); var path = require('path'); // The module to be exported. var file = module.exports = {}; // External libs. file.glob = require('glob'); file.minimatch = require('minimatch'); file.findup = require('findup-sync'); var YAML = requ...
crossvul
medium
{ "cwe_description": "Initialization of a Resource with an Insecure Default - Developers often choose default values that leave the product as open and easy to use as possible out-of-the-box, under the assumption that the administrator can (or should) change the default value.", "dataset_source": "CrossVul", "fil...
crossvul_20
CrossVul
CWE-1188
php
<?php /** * The WordPress version string * * @global string $wp_version */ $wp_version = '4.8-alpha-39760'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * * @global int $wp_db_version */ $wp_db_version = 38590; /** * Holds the TinyMCE version * * @glob...
<?php /** * The WordPress version string * * @global string $wp_version */ $wp_version = '4.8-alpha-39772'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * * @global int $wp_db_version */ $wp_db_version = 38590; /** * Holds the TinyMCE version * * @glob...
crossvul
medium
{ "cwe_description": "Initialization of a Resource with an Insecure Default - Developers often choose default values that leave the product as open and easy to use as possible out-of-the-box, under the assumption that the administrator can (or should) change the default value.", "dataset_source": "CrossVul", "fil...
crossvul_21
CrossVul
CWE-1188
php
<?php /** * Gets the email message from the user's mailbox to add as * a WordPress post. Mailbox connection information must be * configured under Settings > Writing * * @package WordPress */ /** Make sure that the WordPress bootstrap has run before continuing. */ require(dirname(__FILE__) . '/wp-load.php'); /*...
<?php /** * Gets the email message from the user's mailbox to add as * a WordPress post. Mailbox connection information must be * configured under Settings > Writing * * @package WordPress */ /** Make sure that the WordPress bootstrap has run before continuing. */ require(dirname(__FILE__) . '/wp-load.php'); /*...
crossvul
medium
{ "cwe_description": "Initialization of a Resource with an Insecure Default - Developers often choose default values that leave the product as open and easy to use as possible out-of-the-box, under the assumption that the administrator can (or should) change the default value.", "dataset_source": "CrossVul", "fil...
crossvul_22
CrossVul
CWE-119
php
#*************************************************************************** # _ _ ____ _ # Project ___| | | | _ \| | # / __| | | | |_) | | # | (__| |_| | _ <| |___ # \___|\___/|...
#*************************************************************************** # _ _ ____ _ # Project ___| | | | _ \| | # / __| | | | |_) | | # | (__| |_| | _ <| |___ # \___|\___/|...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_23
CrossVul
CWE-119
python
# Authors: # Trevor Perrin # Google (adapted by Sam Rushing) - NPN support # Google - minimal padding # Martin von Loewis - python 3 port # Yngve Pettersen (ported by Paul Sokolovsky) - TLS 1.2 # # See the LICENSE file for legal information regarding use of this file. """Helper class for TLSConnection.""" f...
# Authors: # Trevor Perrin # Google (adapted by Sam Rushing) - NPN support # Google - minimal padding # Martin von Loewis - python 3 port # Yngve Pettersen (ported by Paul Sokolovsky) - TLS 1.2 # # See the LICENSE file for legal information regarding use of this file. """Helper class for TLSConnection.""" f...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_24
CrossVul
CWE-119
python
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 OpenStack LLC # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 - 2012 Justin Santa Barbara # All Rights Reserved. # # Licensed under the Apache License, ...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 OpenStack LLC # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 - 2012 Justin Santa Barbara # All Rights Reserved. # # Licensed under the Apache License, ...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_25
CrossVul
CWE-119
python
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 OpenStack LLC # # 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 requ...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 OpenStack LLC # # 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 requ...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_26
CrossVul
CWE-119
python
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 OpenStack LLC # # 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 requ...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 OpenStack LLC # # 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 requ...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_27
CrossVul
CWE-119
python
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 OpenStack LLC # # 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 requ...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 OpenStack LLC # # 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 requ...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_28
CrossVul
CWE-119
python
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 OpenStack LLC # # 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 requ...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 OpenStack LLC # # 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 requ...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_29
CrossVul
CWE-119
python
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 OpenStack LLC # # 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 requ...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 OpenStack LLC # # 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 requ...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_30
CrossVul
CWE-119
python
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 OpenStack LLC # # 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 requ...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 OpenStack LLC # # 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 requ...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_31
CrossVul
CWE-119
python
# -*- coding: utf-8 -*- # # SelfTest/Hash/common.py: Common code for Crypto.SelfTest.Hash # # Written in 2008 by Dwayne C. Litzenberger <dlitz@dlitz.net> # # =================================================================== # The contents of this file are dedicated to the public domain. To # the extent that dedicat...
# -*- coding: utf-8 -*- # # SelfTest/Hash/common.py: Common code for Crypto.SelfTest.Hash # # Written in 2008 by Dwayne C. Litzenberger <dlitz@dlitz.net> # # =================================================================== # The contents of this file are dedicated to the public domain. To # the extent that dedicat...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_32
CrossVul
CWE-119
javascript
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_33
CrossVul
CWE-119
javascript
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_34
CrossVul
CWE-119
cpp
#if defined(HAVE_CONFIG_H) #include "config.h" #endif #include <memory> #include "rutil/Logger.hxx" #include "resip/stack/ConnectionBase.hxx" #include "resip/stack/WsConnectionBase.hxx" #include "resip/stack/SipMessage.hxx" #include "resip/stack/WsDecorator.hxx" #include "resip/stack/Cookie.hxx" #include "resip/stack...
#if defined(HAVE_CONFIG_H) #include "config.h" #endif #include <memory> #include "rutil/Logger.hxx" #include "resip/stack/ConnectionBase.hxx" #include "resip/stack/WsConnectionBase.hxx" #include "resip/stack/SipMessage.hxx" #include "resip/stack/WsDecorator.hxx" #include "resip/stack/Cookie.hxx" #include "resip/stack...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_35
CrossVul
CWE-119
cpp
/* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved. * Copyright 2014 Pierre Ossman for Cendio AB * * This 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 * ...
/* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved. * Copyright 2014 Pierre Ossman for Cendio AB * * This 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 * ...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_36
CrossVul
CWE-119
cpp
/* * Copyright (C) 2004 Red Hat Inc. * Copyright (C) 2005 Martin Koegler * Copyright (C) 2010 TigerVNC Team * Copyright (C) 2010 m-privacy GmbH * * This 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 Foundati...
/* * Copyright (C) 2004 Red Hat Inc. * Copyright (C) 2005 Martin Koegler * Copyright (C) 2010 TigerVNC Team * Copyright (C) 2010 m-privacy GmbH * * This 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 Foundati...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_37
CrossVul
CWE-119
cpp
/* * Copyright (C) 2004 Red Hat Inc. * Copyright (C) 2005 Martin Koegler * Copyright (C) 2010 TigerVNC Team * * This 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,...
/* * Copyright (C) 2004 Red Hat Inc. * Copyright (C) 2005 Martin Koegler * Copyright (C) 2010 TigerVNC Team * * This 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,...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_38
CrossVul
CWE-119
java
/* * Copyright 2012 The Netty Project * * The Netty Project licenses this file to you 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 ...
/* * Copyright 2012 The Netty Project * * The Netty Project licenses this file to you 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 ...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_39
CrossVul
CWE-119
java
/* * Copyright (C) 2016 Southern Storm Software, Pty Ltd. * * 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, ...
/* * Copyright (C) 2016 Southern Storm Software, Pty Ltd. * * 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, ...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_40
CrossVul
CWE-119
java
/* * Copyright (C) 2016 Southern Storm Software, Pty Ltd. * * 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, ...
/* * Copyright (C) 2016 Southern Storm Software, Pty Ltd. * * 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, ...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_41
CrossVul
CWE-119
java
/* * Copyright (C) 2016 Southern Storm Software, Pty Ltd. * * 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, ...
/* * Copyright (C) 2016 Southern Storm Software, Pty Ltd. * * 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, ...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_42
CrossVul
CWE-119
java
/* * Copyright (C) 2016 Southern Storm Software, Pty Ltd. * * 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, ...
/* * Copyright (C) 2016 Southern Storm Software, Pty Ltd. * * 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, ...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_43
CrossVul
CWE-119
rust
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MI...
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MI...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_44
CrossVul
CWE-119
php
<?hh function nop($unused) { /* value sink */ } function testApc($before) { apc_delete("indep"); if (!apc_add("indep", $before)) { echo "add failure. weird.\n"; exit(1); } # fetch. $after = __hhvm_intrinsics\apc_fetch_no_check("indep"); var_dump($after); if (!$after) { echo "fetch failure. ...
<?hh function nop($unused) { /* value sink */ } function testApc($before) { apc_delete("indep"); if (!apc_add("indep", $before)) { echo "add failure. weird.\n"; exit(1); } # fetch. $after = __hhvm_intrinsics\apc_fetch_no_check("indep"); var_dump($after); if (!$after) { echo "fetch failure. ...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_45
CrossVul
CWE-119
c
/* Copyright (C) 2000-2012 by George Williams */ /* * 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 the following...
/* Copyright (C) 2000-2012 by George Williams */ /* * 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 the following...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_46
CrossVul
CWE-119
c
/* Copyright (C) 2000-2012 by George Williams */ /* * 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 the following...
/* Copyright (C) 2000-2012 by George Williams */ /* * 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 the following...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_47
CrossVul
CWE-119
c
/* Copyright (C) 2000-2012 by George Williams */ /* * 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 the following...
/* Copyright (C) 2000-2012 by George Williams */ /* * 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 the following...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_48
CrossVul
CWE-119
c
/** * @file tree_internal.h * @author Radek Krejci <rkrejci@cesnet.cz> * @brief libyang internal functions for manipulating with the data model and * data trees. * * Copyright (c) 2015 CESNET, z.s.p.o. * * This source code is licensed under BSD 3-Clause License (the "License"). * You may not use this file exce...
/** * @file tree_internal.h * @author Radek Krejci <rkrejci@cesnet.cz> * @brief libyang internal functions for manipulating with the data model and * data trees. * * Copyright (c) 2015 CESNET, z.s.p.o. * * This source code is licensed under BSD 3-Clause License (the "License"). * You may not use this file exce...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_49
CrossVul
CWE-119
c
/* -*- mode: c; indent-tabs-mode: nil -*- */ /* * Copyright 2000, 2008 by the 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...
/* -*- mode: c; indent-tabs-mode: nil -*- */ /* * Copyright 2000, 2008 by the 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...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_50
CrossVul
CWE-119
c
/* Copyright 1999-2015 ImageMagick Studio LLC, a non-profit organization dedicated to making software imaging solutions freely available. You may not use this file except in compliance with the License. obtain a copy of the License at http://www.imagemagick.org/script/license.php Unless required by app...
/* Copyright 1999-2015 ImageMagick Studio LLC, a non-profit organization dedicated to making software imaging solutions freely available. You may not use this file except in compliance with the License. obtain a copy of the License at http://www.imagemagick.org/script/license.php Unless required by app...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_51
CrossVul
CWE-119
c
/*------------------------------------------------------------------------- * * datetime.h * Definitions for date/time support code. * The support code is shared with other date data types, * including abstime, reltime, date, and time. * * * Portions Copyright (c) 1996-2014, PostgreSQL Global Development...
/*------------------------------------------------------------------------- * * datetime.h * Definitions for date/time support code. * The support code is shared with other date data types, * including abstime, reltime, date, and time. * * * Portions Copyright (c) 1996-2014, PostgreSQL Global Development...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_52
CrossVul
CWE-119
c
/* src/interfaces/ecpg/pgtypeslib/dt.h */ #ifndef DT_H #define DT_H #include <pgtypes_timestamp.h> #define MAXTZLEN 10 #ifdef HAVE_INT64_TIMESTAMP typedef int32 fsec_t; #else typedef double fsec_t; /* round off to MAX_TIMESTAMP_PRECISION decimal places */ /* note: this is also used for rounding off intervals ...
/* src/interfaces/ecpg/pgtypeslib/dt.h */ #ifndef DT_H #define DT_H #include <pgtypes_timestamp.h> #define MAXTZLEN 10 #ifdef HAVE_INT64_TIMESTAMP typedef int32 fsec_t; #else typedef double fsec_t; /* round off to MAX_TIMESTAMP_PRECISION decimal places */ /* note: this is also used for rounding off intervals ...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_53
CrossVul
CWE-119
c
/* * INET An implementation of the TCP/IP protocol suite for the LINUX * operating system. INET is implemented using the BSD Socket * interface as the means of communication with the user level. * * Definitions for the Interfaces handler. * * Version: @(#)dev.h 1.0.10 08/12/93 * * Authors: Ross Biro * ...
/* * INET An implementation of the TCP/IP protocol suite for the LINUX * operating system. INET is implemented using the BSD Socket * interface as the means of communication with the user level. * * Definitions for the Interfaces handler. * * Version: @(#)dev.h 1.0.10 08/12/93 * * Authors: Ross Biro * ...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_54
CrossVul
CWE-119
c
// Copyright 2012 the V8 project 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: // // * Redistributions of source code must retain the above copyright // notice, this list of ...
// Copyright 2012 the V8 project 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: // // * Redistributions of source code must retain the above copyright // notice, this list of ...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_55
CrossVul
CWE-119
c
/* xdelta3 - delta compression tools and library * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, * 2009, 2010, 2011, 2012, 2013 Joshua P. MacDonald * * 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 * t...
/* xdelta3 - delta compression tools and library * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, * 2009, 2010, 2011, 2012, 2013 Joshua P. MacDonald * * 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 * t...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_56
CrossVul
CWE-119
c
#include <asm/cache.h> #include "entry.h" #ifdef CONFIG_VIRT_CPU_ACCOUNTING /* read ar.itc in advance, and use it before leaving bank 0 */ #define ACCOUNT_GET_STAMP \ (pUStk) mov.m r20=ar.itc; #define ACCOUNT_SYS_ENTER \ (pUStk) br.call.spnt rp=account_sys_enter \ ;; #else #define ACCOUNT_GET_STAMP #define AC...
#include <asm/cache.h> #include "entry.h" #ifdef CONFIG_VIRT_CPU_ACCOUNTING /* read ar.itc in advance, and use it before leaving bank 0 */ #define ACCOUNT_GET_STAMP \ (pUStk) mov.m r20=ar.itc; #define ACCOUNT_SYS_ENTER \ (pUStk) br.call.spnt rp=account_sys_enter \ ;; #else #define ACCOUNT_GET_STAMP #define AC...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_57
CrossVul
CWE-119
c
#ifndef _ASM_IA64_PATCH_H #define _ASM_IA64_PATCH_H /* * Copyright (C) 2003 Hewlett-Packard Co * David Mosberger-Tang <davidm@hpl.hp.com> * * There are a number of reasons for patching instructions. Rather than duplicating code * all over the place, we put the common stuff here. Reasons for patching: in-kernel ...
#ifndef _ASM_IA64_PATCH_H #define _ASM_IA64_PATCH_H /* * Copyright (C) 2003 Hewlett-Packard Co * David Mosberger-Tang <davidm@hpl.hp.com> * * There are a number of reasons for patching instructions. Rather than duplicating code * all over the place, we put the common stuff here. Reasons for patching: in-kernel ...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_58
CrossVul
CWE-119
c
#ifndef _ASM_IA64_PTRACE_H #define _ASM_IA64_PTRACE_H /* * Copyright (C) 1998-2004 Hewlett-Packard Co * David Mosberger-Tang <davidm@hpl.hp.com> * Stephane Eranian <eranian@hpl.hp.com> * Copyright (C) 2003 Intel Co * Suresh Siddha <suresh.b.siddha@intel.com> * Fenghua Yu <fenghua.yu@intel.com> * Arun Sharma <ar...
#ifndef _ASM_IA64_PTRACE_H #define _ASM_IA64_PTRACE_H /* * Copyright (C) 1998-2004 Hewlett-Packard Co * David Mosberger-Tang <davidm@hpl.hp.com> * Stephane Eranian <eranian@hpl.hp.com> * Copyright (C) 2003 Intel Co * Suresh Siddha <suresh.b.siddha@intel.com> * Fenghua Yu <fenghua.yu@intel.com> * Arun Sharma <ar...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_59
CrossVul
CWE-119
c
#ifndef _ASM_IA64_SECTIONS_H #define _ASM_IA64_SECTIONS_H /* * Copyright (C) 1998-2003 Hewlett-Packard Co * David Mosberger-Tang <davidm@hpl.hp.com> */ #include <asm-generic/sections.h> extern char __per_cpu_start[], __per_cpu_end[], __phys_per_cpu_start[]; extern char __start___vtop_patchlist[], __end___vtop_pat...
#ifndef _ASM_IA64_SECTIONS_H #define _ASM_IA64_SECTIONS_H /* * Copyright (C) 1998-2003 Hewlett-Packard Co * David Mosberger-Tang <davidm@hpl.hp.com> */ #include <asm-generic/sections.h> extern char __per_cpu_start[], __per_cpu_end[], __phys_per_cpu_start[]; extern char __start___vtop_patchlist[], __end___vtop_pat...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_60
CrossVul
CWE-119
c
/* BlueZ - Bluetooth protocol stack for Linux Copyright (C) 2000-2001 Qualcomm Incorporated Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.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 ...
/* BlueZ - Bluetooth protocol stack for Linux Copyright (C) 2000-2001 Qualcomm Incorporated Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.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 ...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_61
CrossVul
CWE-119
c
/** * @file * Conversion to/from base64 encoding * * @authors * @copyright * 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 ...
/** * @file * Conversion to/from base64 encoding * * @authors * @copyright * 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 ...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_62
CrossVul
CWE-119
c
#ifndef _GENERATOR_H_ #define _GENERATOR_H_ #include <string.h> #include <math.h> #include <ctype.h> #include "ruby.h" #ifdef HAVE_RUBY_RE_H #include "ruby/re.h" #else #include "re.h" #endif #ifndef rb_intern_str #define rb_intern_str(string) SYM2ID(rb_str_intern(string)) #endif #ifndef rb_obj_instance_variables #...
#ifndef _GENERATOR_H_ #define _GENERATOR_H_ #include <math.h> #include <ctype.h> #include "ruby.h" #ifdef HAVE_RUBY_RE_H #include "ruby/re.h" #else #include "re.h" #endif #ifndef rb_intern_str #define rb_intern_str(string) SYM2ID(rb_str_intern(string)) #endif #ifndef rb_obj_instance_variables #define rb_obj_instan...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_63
CrossVul
CWE-119
c
/* * This file holds USB constants and structures that are needed for * USB device APIs. These are used by the USB device model, which is * defined in chapter 9 of the USB 2.0 specification and in the * Wireless USB 1.0 (spread around). Linux has several APIs in C that * need these: * * - the master/host side ...
/* * This file holds USB constants and structures that are needed for * USB device APIs. These are used by the USB device model, which is * defined in chapter 9 of the USB 2.0 specification and in the * Wireless USB 1.0 (spread around). Linux has several APIs in C that * need these: * * - the master/host side ...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_64
CrossVul
CWE-119
c
/* -*- C++ -*- * File: libraw_const.h * Copyright 2008-2017 LibRaw LLC (info@libraw.org) * Created: Sat Mar 8 , 2008 * LibRaw error codes LibRaw is free software; you can redistribute it and/or modify it under the terms of the one of two licenses as you choose: 1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1 ...
/* -*- C++ -*- * File: libraw_const.h * Copyright 2008-2017 LibRaw LLC (info@libraw.org) * Created: Sat Mar 8 , 2008 * LibRaw error codes LibRaw is free software; you can redistribute it and/or modify it under the terms of the one of two licenses as you choose: 1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1 ...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_65
CrossVul
CWE-119
c
// imagew-internals.h // Part of ImageWorsener, Copyright (c) 2011 by Jason Summers. // For more information, see the readme.txt file. #define IW_INCLUDE_UTIL_FUNCTIONS #include "imagew.h" #define IW_COPYRIGHT_YEAR "2011" "\xe2\x80\x93" "2015" #ifdef IW_WINDOWS #define IW_INLINE __inline #else #define IW_INLINE inli...
// imagew-internals.h // Part of ImageWorsener, Copyright (c) 2011 by Jason Summers. // For more information, see the readme.txt file. #define IW_INCLUDE_UTIL_FUNCTIONS #include "imagew.h" #define IW_COPYRIGHT_YEAR "2011" "\xe2\x80\x93" "2015" #ifdef IW_WINDOWS #define IW_INLINE __inline #else #define IW_INLINE inli...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_66
CrossVul
CWE-119
c
#ifndef B43_DMA_H_ #define B43_DMA_H_ #include <linux/err.h> #include "b43.h" /* DMA-Interrupt reasons. */ #define B43_DMAIRQ_FATALMASK ((1 << 10) | (1 << 11) | (1 << 12) \ | (1 << 14) | (1 << 15)) #define B43_DMAIRQ_NONFATALMASK (1 << 13) #define B43_DMAIRQ_RX_DONE (1 << 16) /*** 32-bit DMA Engine. ***/ /...
#ifndef B43_DMA_H_ #define B43_DMA_H_ #include <linux/err.h> #include "b43.h" /* DMA-Interrupt reasons. */ #define B43_DMAIRQ_FATALMASK ((1 << 10) | (1 << 11) | (1 << 12) \ | (1 << 14) | (1 << 15)) #define B43_DMAIRQ_NONFATALMASK (1 << 13) #define B43_DMAIRQ_RX_DONE (1 << 16) /*** 32-bit DMA Engine. ***/ /...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_67
CrossVul
CWE-119
c
/* * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved. * * This copyrighted material is made available to anyone wishing to use, * modify, copy, or redistribute it subject to the terms and conditions * of the GNU General Public Licen...
/* * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved. * * This copyrighted material is made available to anyone wishing to use, * modify, copy, or redistribute it subject to the terms and conditions * of the GNU General Public Licen...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_68
CrossVul
CWE-119
c
/* Copyright 2019 The TensorFlow 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 applicable law or a...
/* Copyright 2019 The TensorFlow 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 applicable law or a...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_69
CrossVul
CWE-119
c
/* $OpenBSD: monitor.h,v 1.19 2015/01/19 19:52:16 markus Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * 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. Redistribu...
/* $OpenBSD: monitor.h,v 1.20 2016/09/28 16:33:07 djm Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * 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. Redistributio...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_70
CrossVul
CWE-119
c
/* Copyright 1999-2016 ImageMagick Studio LLC, a non-profit organization dedicated to making software imaging solutions freely available. You may not use this file except in compliance with the License. obtain a copy of the License at http://www.imagemagick.org/script/license.php Unless required ...
/* Copyright 1999-2016 ImageMagick Studio LLC, a non-profit organization dedicated to making software imaging solutions freely available. You may not use this file except in compliance with the License. obtain a copy of the License at http://www.imagemagick.org/script/license.php Unless required ...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_71
CrossVul
CWE-119
c
/* * Copyright (C) 2004 Red Hat Inc. * Copyright (C) 2005 Martin Koegler * Copyright (C) 2010 TigerVNC Team * * This 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,...
/* * Copyright (C) 2004 Red Hat Inc. * Copyright (C) 2005 Martin Koegler * Copyright (C) 2010 TigerVNC Team * * This 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,...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_72
CrossVul
CWE-119
c
/* * Copyright (C) 2004 Red Hat Inc. * Copyright (C) 2005 Martin Koegler * Copyright (C) 2010 TigerVNC Team * * This 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,...
/* * Copyright (C) 2004 Red Hat Inc. * Copyright (C) 2005 Martin Koegler * Copyright (C) 2010 TigerVNC Team * * This 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,...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_73
CrossVul
CWE-119
c
#ifndef LIST_OBJECTS_H #define LIST_OBJECTS_H typedef void (*show_commit_fn)(struct commit *, void *); typedef void (*show_object_fn)(struct object *, struct strbuf *, const char *, void *); void traverse_commit_list(struct rev_info *, show_commit_fn, show_object_fn, void *); typedef void (*show_edge_fn)(struct commi...
#ifndef LIST_OBJECTS_H #define LIST_OBJECTS_H typedef void (*show_commit_fn)(struct commit *, void *); typedef void (*show_object_fn)(struct object *, const char *, void *); void traverse_commit_list(struct rev_info *, show_commit_fn, show_object_fn, void *); typedef void (*show_edge_fn)(struct commit *); void mark_e...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_74
CrossVul
CWE-119
c
#ifndef REVISION_H #define REVISION_H #include "parse-options.h" #include "grep.h" #include "notes.h" #include "commit.h" #include "diff.h" /* Remember to update object flag allocation in object.h */ #define SEEN (1u<<0) #define UNINTERESTING (1u<<1) #define TREESAME (1u<<2) #define SHOWN (1u<<3) #define TMP_MARK...
#ifndef REVISION_H #define REVISION_H #include "parse-options.h" #include "grep.h" #include "notes.h" #include "commit.h" #include "diff.h" /* Remember to update object flag allocation in object.h */ #define SEEN (1u<<0) #define UNINTERESTING (1u<<1) #define TREESAME (1u<<2) #define SHOWN (1u<<3) #define TMP_MARK...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_75
CrossVul
CWE-119
c
/****************************************************************************** ** Copyright (c) 2017-2018, Intel Corporation ** ** All rights reserved. ** ** ** ...
/****************************************************************************** ** Copyright (c) 2017-2018, Intel Corporation ** ** All rights reserved. ** ** ** ...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_76
CrossVul
CWE-119
c
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */ /* If you are missing that file, acquire a complete release at teeworlds.com. */ #ifndef ENGINE_SHARED_SNAPSHOT_H #define ENGINE_SHARED_SNAPSHOT_H #include <base/system.h> // CSnapshot class CSnapshotItem {...
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */ /* If you are missing that file, acquire a complete release at teeworlds.com. */ #ifndef ENGINE_SHARED_SNAPSHOT_H #define ENGINE_SHARED_SNAPSHOT_H #include <base/system.h> // CSnapshot class CSnapshotItem {...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_77
CrossVul
CWE-119
c
#ifndef _ASM_X86_PGTABLE_H #define _ASM_X86_PGTABLE_H #include <asm/page.h> #include <asm/e820.h> #include <asm/pgtable_types.h> /* * Macro to mark a page protection value as UC- */ #define pgprot_noncached(prot) \ ((boot_cpu_data.x86 > 3) \ ? (__pgprot(pgprot_val(prot) | _PAGE_CACHE_UC_MINUS)) \ : (pr...
#ifndef _ASM_X86_PGTABLE_H #define _ASM_X86_PGTABLE_H #include <asm/page.h> #include <asm/e820.h> #include <asm/pgtable_types.h> /* * Macro to mark a page protection value as UC- */ #define pgprot_noncached(prot) \ ((boot_cpu_data.x86 > 3) \ ? (__pgprot(pgprot_val(prot) | _PAGE_CACHE_UC_MINUS)) \ : (pr...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_78
CrossVul
CWE-119
c
/* Syslog internals * * Copyright 2010 Canonical, Ltd. * Author: Kees Cook <kees.cook@canonical.com> * * 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, or (at your ...
/* Syslog internals * * Copyright 2010 Canonical, Ltd. * Author: Kees Cook <kees.cook@canonical.com> * * 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, or (at your ...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_79
CrossVul
CWE-119
c
#ifndef _LINUX_NLS_H #define _LINUX_NLS_H #include <linux/init.h> /* Unicode has changed over the years. Unicode code points no longer * fit into 16 bits; as of Unicode 5 valid code points range from 0 * to 0x10ffff (17 planes, where each plane holds 65536 code points). * * The original decision to represent Uni...
#ifndef _LINUX_NLS_H #define _LINUX_NLS_H #include <linux/init.h> /* Unicode has changed over the years. Unicode code points no longer * fit into 16 bits; as of Unicode 5 valid code points range from 0 * to 0x10ffff (17 planes, where each plane holds 65536 code points). * * The original decision to represent Uni...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_80
CrossVul
CWE-119
c
/*- * Copyright (c) 2002-2003 Brian Somers <brian@Awfulhak.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 * n...
/*- * Copyright (c) 2002-2003 Brian Somers <brian@Awfulhak.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 * n...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_81
CrossVul
CWE-119
c
#ifndef ISCSI_PARAMETERS_H #define ISCSI_PARAMETERS_H struct iscsi_extra_response { char key[64]; char value[32]; struct list_head er_list; } ____cacheline_aligned; struct iscsi_param { char *name; char *value; u8 set_param; u8 phase; u8 scope; u8 sender; u8 type; u8 use; u16 type_range; u32 state; stru...
#ifndef ISCSI_PARAMETERS_H #define ISCSI_PARAMETERS_H #include <scsi/iscsi_proto.h> struct iscsi_extra_response { char key[KEY_MAXLEN]; char value[32]; struct list_head er_list; } ____cacheline_aligned; struct iscsi_param { char *name; char *value; u8 set_param; u8 phase; u8 scope; u8 sender; u8 type; u8 ...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_82
CrossVul
CWE-119
c
#ifndef _LINUX_SCHED_H #define _LINUX_SCHED_H #include <uapi/linux/sched.h> #include <linux/sched/prio.h> struct sched_param { int sched_priority; }; #include <asm/param.h> /* for HZ */ #include <linux/capability.h> #include <linux/threads.h> #include <linux/kernel.h> #include <linux/types.h> #include <linux/tim...
#ifndef _LINUX_SCHED_H #define _LINUX_SCHED_H #include <uapi/linux/sched.h> #include <linux/sched/prio.h> struct sched_param { int sched_priority; }; #include <asm/param.h> /* for HZ */ #include <linux/capability.h> #include <linux/threads.h> #include <linux/kernel.h> #include <linux/types.h> #include <linux/tim...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_83
CrossVul
CWE-119
c
/* * $Id: json_object.h,v 1.12 2006/01/30 23:07:57 mclark Exp $ * * Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd. * Michael Clark <michael@metaparadigm.com> * Copyright (c) 2009 Hewlett-Packard Development Company, L.P. * * This library is free software; you can redistribute it and/or modify * it under the te...
/* * $Id: json_object.h,v 1.12 2006/01/30 23:07:57 mclark Exp $ * * Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd. * Michael Clark <michael@metaparadigm.com> * Copyright (c) 2009 Hewlett-Packard Development Company, L.P. * * This library is free software; you can redistribute it and/or modify * it under the te...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_84
CrossVul
CWE-119
c
/* * $Id: json_tokener.h,v 1.10 2006/07/25 03:24:50 mclark Exp $ * * Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd. * Michael Clark <michael@metaparadigm.com> * * This library is free software; you can redistribute it and/or modify * it under the terms of the MIT license. See COPYING for details. * */ #ifnde...
/* * $Id: json_tokener.h,v 1.10 2006/07/25 03:24:50 mclark Exp $ * * Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd. * Michael Clark <michael@metaparadigm.com> * * This library is free software; you can redistribute it and/or modify * it under the terms of the MIT license. See COPYING for details. * */ #ifnde...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_85
CrossVul
CWE-119
c
/* * GPAC - Multimedia Framework C SDK * * Authors: Jean Le Feuvre * Copyright (c) Telecom ParisTech 2000-2012 * All rights reserved * * This file is part of GPAC / common tools sub-project * * GPAC is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser Gen...
/* * GPAC - Multimedia Framework C SDK * * Authors: Jean Le Feuvre * Copyright (c) Telecom ParisTech 2000-2012 * All rights reserved * * This file is part of GPAC / common tools sub-project * * GPAC is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser Gen...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_86
CrossVul
CWE-119
c
/** * FreeRDP: A Remote Desktop Protocol Implementation * ZGFX (RDP8) Bulk Data Compression * * Copyright 2014 Marc-Andre Moreau <marcandre.moreau@gmail.com> * * 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 ...
/** * FreeRDP: A Remote Desktop Protocol Implementation * ZGFX (RDP8) Bulk Data Compression * * Copyright 2014 Marc-Andre Moreau <marcandre.moreau@gmail.com> * * 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 ...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_87
CrossVul
CWE-119
c
/* Formatting library for C++ Copyright (c) 2012 - 2016, Victor Zverovich 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,...
/* Formatting library for C++ Copyright (c) 2012 - 2016, Victor Zverovich 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,...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_88
CrossVul
CWE-119
c
/* Copyright 1999-2019 ImageMagick Studio LLC, a non-profit organization dedicated to making software imaging solutions freely available. You may not use this file except in compliance with the License. You may obtain a copy of the License at https://imagemagick.org/script/license.php Unless required ...
/* Copyright 1999-2019 ImageMagick Studio LLC, a non-profit organization dedicated to making software imaging solutions freely available. You may not use this file except in compliance with the License. You may obtain a copy of the License at https://imagemagick.org/script/license.php Unless required ...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_89
CrossVul
CWE-119
c
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE locale [ <!ELEMENT locale (exception)> <!ELEMENT exception (ANY)+> <!ELEMENT warning (message)+> <!ELEMENT error (message)+> <!ELEMENT fatalerror (message)+> <!ELEMENT message (#PCDATA)> <!ATTLIST locale name CDATA #REQUIRED> <!ATTLIST message name CDATA #REQUIRED> ]> <l...
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE locale [ <!ELEMENT locale (exception)> <!ELEMENT exception (ANY)+> <!ELEMENT warning (message)+> <!ELEMENT error (message)+> <!ELEMENT fatalerror (message)+> <!ELEMENT message (#PCDATA)> <!ATTLIST locale name CDATA #REQUIRED> <!ATTLIST message name CDATA #REQUIRED> ]> <l...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_90
CrossVul
CWE-119
c
#!/bin/sh while : ; do if [ -f sys/rebuild.sh ]; then break fi cd .. if [ "`pwd`" = / ]; then echo "Cant find sys/rebuild.sh" exit 1 fi done Rebuild() { cd "$1" || exit 1 make clean make -j8 || exit 1 cd - } Build() { cd "$1" || exit 1 make -j8 || exit 1 cd - } RebuildIOSDebug() { Rebuild libr/de...
#!/bin/sh while : ; do if [ -f sys/rebuild.sh ]; then break fi cd .. if [ "`pwd`" = / ]; then echo "Cant find sys/rebuild.sh" exit 1 fi done Rebuild() { cd "$1" || exit 1 make clean make -j8 || exit 1 cd - } Build() { cd "$1" || exit 1 make -j8 || exit 1 cd - } RebuildIOSDebug() { Rebuild libr/de...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_91
CrossVul
CWE-119
c
/* * Copyright 2009-2010 WorldWide Conferencing, LLC * * 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 applica...
/* * Copyright 2009-2010 WorldWide Conferencing, LLC * * 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 applica...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_92
CrossVul
CWE-119
c
/* * Copyright 2009-2011 WorldWide Conferencing, LLC * * 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 applica...
/* * Copyright 2009-2011 WorldWide Conferencing, LLC * * 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 applica...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_93
CrossVul
CWE-119
cpp
/* * Copyright (c) 2018-present, 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. */ #include <fizz/record/PlaintextRecordLayer.h> #include <folly/String.h> namespace fizz { using Conte...
/* * Copyright (c) 2018-present, 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. */ #include <fizz/record/PlaintextRecordLayer.h> #include <folly/String.h> namespace fizz { using Conte...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_94
CrossVul
CWE-119
cpp
/* * Copyright (c) 2018-present, 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. */ #include <folly/portability/GMock.h> #include <folly/portability/GTest.h> #include <fizz/record/Plaint...
/* * Copyright (c) 2018-present, 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. */ #include <folly/portability/GMock.h> #include <folly/portability/GTest.h> #include <fizz/record/Plaint...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_95
CrossVul
CWE-119
cpp
/* * Copyright 2017-present Facebook, Inc. * * 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 a...
/* * Copyright 2017-present Facebook, Inc. * * 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 a...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_96
CrossVul
CWE-119
cpp
/* * Copyright 2017-present Facebook, Inc. * * 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 a...
/* * Copyright 2017-present Facebook, Inc. * * 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 a...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_97
CrossVul
CWE-119
cpp
// Copyright Benoit Blanchon 2014-2015 // MIT License // // Arduino JSON library // https://github.com/bblanchon/ArduinoJson #include "../../include/ArduinoJson/Internals/QuotedString.hpp" using namespace ArduinoJson::Internals; // How to escape special chars: // specialChars[2*i+1] => the special char // specialCha...
// Copyright Benoit Blanchon 2014-2015 // MIT License // // Arduino JSON library // https://github.com/bblanchon/ArduinoJson #include "../../include/ArduinoJson/Internals/QuotedString.hpp" using namespace ArduinoJson::Internals; // How to escape special chars: // specialChars[2*i+1] => the special char // specialCha...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_98
CrossVul
CWE-119
cpp
// Copyright Benoit Blanchon 2014-2015 // MIT License // // Arduino JSON library // https://github.com/bblanchon/ArduinoJson #include <gtest/gtest.h> #include <ArduinoJson/Internals/QuotedString.hpp> using namespace ArduinoJson::Internals; class QuotedString_ExtractFrom_Tests : public testing::Test { protected: v...
// Copyright Benoit Blanchon 2014-2015 // MIT License // // Arduino JSON library // https://github.com/bblanchon/ArduinoJson #include <gtest/gtest.h> #include <ArduinoJson/Internals/QuotedString.hpp> using namespace ArduinoJson::Internals; class QuotedString_ExtractFrom_Tests : public testing::Test { protected: v...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...
crossvul_99
CrossVul
CWE-119
cpp
/* Copyright (c) 2008-2012, Arvid Norberg 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 conditions and ...
/* Copyright (c) 2008-2014, Arvid Norberg 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 conditions and ...
crossvul
medium
{ "cwe_description": "Improper Restriction of Operations within the Bounds of a Memory Buffer - Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced.", "dataset_source": "CrossVul", "file_pair_id...