prompt stringclasses 1
value | completions listlengths 1 63.8k | labels listlengths 1 63.8k | source stringclasses 1
value | other_info stringlengths 2.06k 101k | index int64 0 6.83k |
|---|---|---|---|---|---|
Determine whether the {function_name} code is vulnerable or not. | [
"/***************************************************************************\n ofx_preproc.cpp\n -------------------\n copyright : (C) 2002 by Benoit Gr�oir\n email : benoitg@coeus.ca\n*************************************************************... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
0,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [444], "buggy_code_start_loc": [420], "filenames": ["lib/ofx_preproc.cpp"], "fixing_code_end_loc": [451], "fixing_code_start_loc": [419], "message": "An memory corruption vulnerability exists in the .SVG parsing functionality of Computerinsel Photoline 20.02. A specially crafted .SVG file can cau... | 1,349 |
Determine whether the {function_name} code is vulnerable or not. | [
"/***************************************************************************\n ofx_preproc.cpp\n -------------------\n copyright : (C) 2002 by Benoit Gr�oir\n email : benoitg@coeus.ca\n*************************************************************... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [444], "buggy_code_start_loc": [420], "filenames": ["lib/ofx_preproc.cpp"], "fixing_code_end_loc": [451], "fixing_code_start_loc": [419], "message": "An memory corruption vulnerability exists in the .SVG parsing functionality of Computerinsel Photoline 20.02. A specially crafted .SVG file can cau... | 1,349 |
Determine whether the {function_name} code is vulnerable or not. | [
"# Changelog",
"## [2.1.2]\n### Fixed",
"- Point at infinity handling in C extensions",
"- DER signature decoding that assumed length was always encoded in one byte",
"## [2.1.1]\n### Fixed\n- RFC6979 nonce generation for signatures on pre-hashed messages (issue #46)",
"## [2.1.0]\n### Added\n- Curves W25... | [
1,
1,
0,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [32], "buggy_code_start_loc": [5], "filenames": ["CHANGELOG.md"], "fixing_code_end_loc": [32], "fixing_code_start_loc": [5], "message": "An issue was discovered in fastecdsa before 2.1.2. When using the NIST P-256 curve in the ECDSA implementation, the point at infinity is mishandled. This means ... | 1,350 |
Determine whether the {function_name} code is vulnerable or not. | [
"# Changelog",
"## [2.1.2]\n### Fixed",
"- Point at infinity handling in C extensions (issue #52)",
"- DER signature decoding that assumed length was always encoded in one byte",
"## [2.1.1]\n### Fixed\n- RFC6979 nonce generation for signatures on pre-hashed messages (issue #46)",
"## [2.1.0]\n### Added\n... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [32], "buggy_code_start_loc": [5], "filenames": ["CHANGELOG.md"], "fixing_code_end_loc": [32], "fixing_code_start_loc": [5], "message": "An issue was discovered in fastecdsa before 2.1.2. When using the NIST P-256 curve in the ECDSA implementation, the point at infinity is mishandled. This means ... | 1,350 |
Determine whether the {function_name} code is vulnerable or not. | [
"import NIO",
"",
"\nextension Request {\n public var fileio: FileIO {\n return .init(\n io: self.application.fileio,\n allocator: self.application.allocator,\n request: self\n )\n }\n}",
"// MARK: FileIO",
"/// `FileIO` is a convenience wrapper around Sw... | [
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
0,
1,
1,
1,
0,
1,
0,
1,
0,
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [263, 248], "buggy_code_start_loc": [1, 248], "filenames": ["Sources/Vapor/Utilities/FileIO.swift", "Tests/VaporTests/FileTests.swift"], "fixing_code_end_loc": [291, 300], "fixing_code_start_loc": [2, 249], "message": "Vapor is an HTTP web framework for Swift. Users of Vapor prior to version 4.60... | 1,351 |
Determine whether the {function_name} code is vulnerable or not. | [
"import NIO",
"import Logging",
"\nextension Request {\n public var fileio: FileIO {\n return .init(\n io: self.application.fileio,\n allocator: self.application.allocator,\n request: self\n )\n }\n}",
"// MARK: FileIO",
"/// `FileIO` is a convenience wra... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [263, 248], "buggy_code_start_loc": [1, 248], "filenames": ["Sources/Vapor/Utilities/FileIO.swift", "Tests/VaporTests/FileTests.swift"], "fixing_code_end_loc": [291, 300], "fixing_code_start_loc": [2, 249], "message": "Vapor is an HTTP web framework for Swift. Users of Vapor prior to version 4.60... | 1,351 |
Determine whether the {function_name} code is vulnerable or not. | [
"import XCTVapor",
"final class FileTests: XCTestCase {\n func testStreamFile() throws {\n let app = Application(.testing)\n defer { app.shutdown() }",
" app.get(\"file-stream\") { req in\n return req.fileio.streamFile(at: #file) { result in\n do {\n ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [263, 248], "buggy_code_start_loc": [1, 248], "filenames": ["Sources/Vapor/Utilities/FileIO.swift", "Tests/VaporTests/FileTests.swift"], "fixing_code_end_loc": [291, 300], "fixing_code_start_loc": [2, 249], "message": "Vapor is an HTTP web framework for Swift. Users of Vapor prior to version 4.60... | 1,351 |
Determine whether the {function_name} code is vulnerable or not. | [
"import XCTVapor",
"final class FileTests: XCTestCase {\n func testStreamFile() throws {\n let app = Application(.testing)\n defer { app.shutdown() }",
" app.get(\"file-stream\") { req in\n return req.fileio.streamFile(at: #file) { result in\n do {\n ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [263, 248], "buggy_code_start_loc": [1, 248], "filenames": ["Sources/Vapor/Utilities/FileIO.swift", "Tests/VaporTests/FileTests.swift"], "fixing_code_end_loc": [291, 300], "fixing_code_start_loc": [2, 249], "message": "Vapor is an HTTP web framework for Swift. Users of Vapor prior to version 4.60... | 1,351 |
Determine whether the {function_name} code is vulnerable or not. | [
"#ifndef IGNOREALL\n/*\n dcraw.c -- Dave Coffin's raw photo decoder\n Copyright 1997-2015 by Dave Coffin, dcoffin a cybercom o net",
" This is a command-line ANSI C program to convert raw photos from\n any digital camera on any computer running any operating system.",
" No license is required to downl... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [19582, 18093, 235], "buggy_code_start_loc": [3175, 2878, 234], "filenames": ["dcraw/dcraw.c", "internal/dcraw_common.cpp", "libraw/libraw_const.h"], "fixing_code_end_loc": [19591, 18102, 236], "fixing_code_start_loc": [3175, 2878, 234], "message": "An error related to the \"LibRaw::panasonic_loa... | 1,352 |
Determine whether the {function_name} code is vulnerable or not. | [
"#ifndef IGNOREALL\n/*\n dcraw.c -- Dave Coffin's raw photo decoder\n Copyright 1997-2015 by Dave Coffin, dcoffin a cybercom o net",
" This is a command-line ANSI C program to convert raw photos from\n any digital camera on any computer running any operating system.",
" No license is required to downl... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [19582, 18093, 235], "buggy_code_start_loc": [3175, 2878, 234], "filenames": ["dcraw/dcraw.c", "internal/dcraw_common.cpp", "libraw/libraw_const.h"], "fixing_code_end_loc": [19591, 18102, 236], "fixing_code_start_loc": [3175, 2878, 234], "message": "An error related to the \"LibRaw::panasonic_loa... | 1,352 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* \n Copyright 2008-2017 LibRaw LLC (info@libraw.org)",
"LibRaw is free software; you can redistribute it and/or modify\nit under the terms of the one of two licenses as you choose:",
"1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1\n (See file LICENSE.LGPL provided in LibRaw distribution archive for deta... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [19582, 18093, 235], "buggy_code_start_loc": [3175, 2878, 234], "filenames": ["dcraw/dcraw.c", "internal/dcraw_common.cpp", "libraw/libraw_const.h"], "fixing_code_end_loc": [19591, 18102, 236], "fixing_code_start_loc": [3175, 2878, 234], "message": "An error related to the \"LibRaw::panasonic_loa... | 1,352 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* \n Copyright 2008-2017 LibRaw LLC (info@libraw.org)",
"LibRaw is free software; you can redistribute it and/or modify\nit under the terms of the one of two licenses as you choose:",
"1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1\n (See file LICENSE.LGPL provided in LibRaw distribution archive for deta... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [19582, 18093, 235], "buggy_code_start_loc": [3175, 2878, 234], "filenames": ["dcraw/dcraw.c", "internal/dcraw_common.cpp", "libraw/libraw_const.h"], "fixing_code_end_loc": [19591, 18102, 236], "fixing_code_start_loc": [3175, 2878, 234], "message": "An error related to the \"LibRaw::panasonic_loa... | 1,352 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* -*- C++ -*-\n * File: libraw_const.h\n * Copyright 2008-2017 LibRaw LLC (info@libraw.org)\n * Created: Sat Mar 8 , 2008\n * LibRaw error codes\nLibRaw is free software; you can redistribute it and/or modify\nit under the terms of the one of two licenses as you choose:",
"1. GNU LESSER GENERAL PUBLIC LICENSE ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [19582, 18093, 235], "buggy_code_start_loc": [3175, 2878, 234], "filenames": ["dcraw/dcraw.c", "internal/dcraw_common.cpp", "libraw/libraw_const.h"], "fixing_code_end_loc": [19591, 18102, 236], "fixing_code_start_loc": [3175, 2878, 234], "message": "An error related to the \"LibRaw::panasonic_loa... | 1,352 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* -*- C++ -*-\n * File: libraw_const.h\n * Copyright 2008-2017 LibRaw LLC (info@libraw.org)\n * Created: Sat Mar 8 , 2008\n * LibRaw error codes\nLibRaw is free software; you can redistribute it and/or modify\nit under the terms of the one of two licenses as you choose:",
"1. GNU LESSER GENERAL PUBLIC LICENSE ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [19582, 18093, 235], "buggy_code_start_loc": [3175, 2878, 234], "filenames": ["dcraw/dcraw.c", "internal/dcraw_common.cpp", "libraw/libraw_const.h"], "fixing_code_end_loc": [19591, 18102, 236], "fixing_code_start_loc": [3175, 2878, 234], "message": "An error related to the \"LibRaw::panasonic_loa... | 1,352 |
Determine whether the {function_name} code is vulnerable or not. | [
"#!/bin/bash",
"set -e\nset -u",
"export PATH=/sbin:/bin:/usr/sbin:/usr/bin",
"enable_log=\nrestrict_path_list=\nallow_list=\nallow_exact_list=\nallow_rate_limit=1\nallow_stream_buffer=1\nallow_compress=1\ncompress_list=\"gzip|pigz|bzip2|pbzip2|xz|lzop|lz4|zstd\"",
"# note that the backslash is NOT a metach... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [90], "buggy_code_start_loc": [89], "filenames": ["ssh_filter_btrbk.sh"], "fixing_code_end_loc": [90], "fixing_code_start_loc": [89], "message": "Btrbk before 0.31.2 allows command execution because of the mishandling of remote hosts filtering SSH commands using ssh_filter_btrbk.sh in authorized_... | 1,353 |
Determine whether the {function_name} code is vulnerable or not. | [
"#!/bin/bash",
"set -e\nset -u",
"export PATH=/sbin:/bin:/usr/sbin:/usr/bin",
"enable_log=\nrestrict_path_list=\nallow_list=\nallow_exact_list=\nallow_rate_limit=1\nallow_stream_buffer=1\nallow_compress=1\ncompress_list=\"gzip|pigz|bzip2|pbzip2|xz|lzop|lz4|zstd\"",
"# note that the backslash is NOT a metach... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [90], "buggy_code_start_loc": [89], "filenames": ["ssh_filter_btrbk.sh"], "fixing_code_end_loc": [90], "fixing_code_start_loc": [89], "message": "Btrbk before 0.31.2 allows command execution because of the mishandling of remote hosts filtering SSH commands using ssh_filter_btrbk.sh in authorized_... | 1,353 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* Copyright 2018 The TensorFlow Authors. All Rights Reserved.",
"Licensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at",
" http://www.apache.org/licenses/LICENSE-2.0",
"Unless required b... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [377, 1660], "buggy_code_start_loc": [377, 1660], "filenames": ["tensorflow/core/kernels/list_kernels.cc", "tensorflow/python/kernel_tests/data_structures/list_ops_test.py"], "fixing_code_end_loc": [380, 1670], "fixing_code_start_loc": [378, 1661], "message": "TensorFlow is an open source platfor... | 1,354 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* Copyright 2018 The TensorFlow Authors. All Rights Reserved.",
"Licensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at",
" http://www.apache.org/licenses/LICENSE-2.0",
"Unless required b... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [377, 1660], "buggy_code_start_loc": [377, 1660], "filenames": ["tensorflow/core/kernels/list_kernels.cc", "tensorflow/python/kernel_tests/data_structures/list_ops_test.py"], "fixing_code_end_loc": [380, 1670], "fixing_code_start_loc": [378, 1661], "message": "TensorFlow is an open source platfor... | 1,354 |
Determine whether the {function_name} code is vulnerable or not. | [
"# Copyright 2018 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [377, 1660], "buggy_code_start_loc": [377, 1660], "filenames": ["tensorflow/core/kernels/list_kernels.cc", "tensorflow/python/kernel_tests/data_structures/list_ops_test.py"], "fixing_code_end_loc": [380, 1670], "fixing_code_start_loc": [378, 1661], "message": "TensorFlow is an open source platfor... | 1,354 |
Determine whether the {function_name} code is vulnerable or not. | [
"# Copyright 2018 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [377, 1660], "buggy_code_start_loc": [377, 1660], "filenames": ["tensorflow/core/kernels/list_kernels.cc", "tensorflow/python/kernel_tests/data_structures/list_ops_test.py"], "fixing_code_end_loc": [380, 1670], "fixing_code_start_loc": [378, 1661], "message": "TensorFlow is an open source platfor... | 1,354 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"/**\n* ownCloud - bookmarks plugin\n*\n* @author Arthur Schiwon\n* @copyright 2011 Arthur Schiwon blizzz@arthur-schiwon.de\n* \n* This library is free software; you can redistribute it and/or\n* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE\n* License as published by the Free Softwa... | [
1,
1,
1,
1,
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"/**\n* ownCloud - bookmarks plugin\n*\n* @author Arthur Schiwon\n* @copyright 2011 Arthur Schiwon blizzz@arthur-schiwon.de\n* \n* This library is free software; you can redistribute it and/or\n* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE\n* License as published by the Free Softwa... | [
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"/**\n* ownCloud - bookmarks plugin\n*\n* @author Arthur Schiwon\n* @copyright 2011 Arthur Schiwon blizzz@arthur-schiwon.de\n* \n* This library is free software; you can redistribute it and/or\n* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE\n* License as published by the Free Softwa... | [
1,
1,
1,
1,
1,
0,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"/**\n* ownCloud - bookmarks plugin\n*\n* @author Arthur Schiwon\n* @copyright 2011 Arthur Schiwon blizzz@arthur-schiwon.de\n* \n* This library is free software; you can redistribute it and/or\n* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE\n* License as published by the Free Softwa... | [
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"/**\n* ownCloud - bookmarks plugin - edit bookmark script\n*\n* @author Golnaz Nilieh\n* @copyright 2011 Golnaz Nilieh <golnaz.nilieh@gmail.com>\n* \n* This library is free software; you can redistribute it and/or\n* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE\n* License as publis... | [
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"/**\n* ownCloud - bookmarks plugin - edit bookmark script\n*\n* @author Golnaz Nilieh\n* @copyright 2011 Golnaz Nilieh <golnaz.nilieh@gmail.com>\n* \n* This library is free software; you can redistribute it and/or\n* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE\n* License as publis... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * Copyright (c) 2011 Georg Ehrke <ownclouddev at georgswebsite dot de>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING-README file.\n */\n ",
"OCP\\JSON::checkLoggedIn();\nOCP\\JSON::checkAppEnabled('calendar');",
"",
"\n$cal = $_POST... | [
1,
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * Copyright (c) 2011 Georg Ehrke <ownclouddev at georgswebsite dot de>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING-README file.\n */\n ",
"OCP\\JSON::checkLoggedIn();\nOCP\\JSON::checkAppEnabled('calendar');",
"OCP\\JSON::callCheck(... | [
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * Copyright (c) 2011 Bart Visscher <bartv@thisnet.nl>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING-README file.\n */",
" \nOCP\\JSON::checkLoggedIn();\nOCP\\JSON::checkAppEnabled('calendar');",
"",
"\n$calendarcolor_options = OC_Ca... | [
1,
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * Copyright (c) 2011 Bart Visscher <bartv@thisnet.nl>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING-README file.\n */",
" \nOCP\\JSON::checkLoggedIn();\nOCP\\JSON::checkAppEnabled('calendar');",
"OCP\\JSON::callCheck();",
"\n$calend... | [
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * Copyright (c) 2011 Bart Visscher <bartv@thisnet.nl>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING-README file.\n */",
" ",
"// Check if we are a user\nOCP\\JSON::checkLoggedIn();\nOCP\\JSON::checkAppEnabled('calendar');",
"",
"\... | [
1,
1,
1,
0,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * Copyright (c) 2011 Bart Visscher <bartv@thisnet.nl>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING-README file.\n */",
" ",
"// Check if we are a user\nOCP\\JSON::checkLoggedIn();\nOCP\\JSON::checkAppEnabled('calendar');",
"OCP\\JS... | [
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * Copyright (c) 2011 Bart Visscher <bartv@thisnet.nl>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING-README file.\n */",
" ",
"// Check if we are a user\nOCP\\JSON::checkLoggedIn();\nOCP\\JSON::checkAppEnabled('calendar');",
"",
"\... | [
1,
1,
1,
0,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * Copyright (c) 2011 Bart Visscher <bartv@thisnet.nl>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING-README file.\n */",
" ",
"// Check if we are a user\nOCP\\JSON::checkLoggedIn();\nOCP\\JSON::checkAppEnabled('calendar');",
"OCP\\JS... | [
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * Copyright (c) 2011 Bart Visscher <bartv@thisnet.nl>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING-README file.\n */\n ",
"OCP\\JSON::checkLoggedIn();\nOCP\\JSON::checkAppEnabled('calendar');",
"",
"\n$id = $_POST['id'];\n$access =... | [
1,
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * Copyright (c) 2011 Bart Visscher <bartv@thisnet.nl>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING-README file.\n */\n ",
"OCP\\JSON::checkLoggedIn();\nOCP\\JSON::checkAppEnabled('calendar');",
"OCP\\JSON::callCheck();",
"\n$id = $... | [
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * Copyright (c) 2011 Bart Visscher <bartv@thisnet.nl>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING-README file.\n */",
" \nOCP\\JSON::checkLoggedIn();\nOCP\\JSON::checkAppEnabled('calendar');",
"",
"\n$id = $_POST['id'];",
"if(!a... | [
1,
1,
0,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * Copyright (c) 2011 Bart Visscher <bartv@thisnet.nl>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING-README file.\n */",
" \nOCP\\JSON::checkLoggedIn();\nOCP\\JSON::checkAppEnabled('calendar');",
"OCP\\JSON::callCheck();",
"\n$id = $... | [
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * Copyright (c) 2011 Bart Visscher <bartv@thisnet.nl>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING-README file.\n */\n \nOCP\\JSON::checkLoggedIn();",
"",
"\n$id = $_POST['id'];\n$access = OC_Calendar_App::getaccess($id, OC_Calendar_... | [
1,
0,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * Copyright (c) 2011 Bart Visscher <bartv@thisnet.nl>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING-README file.\n */\n \nOCP\\JSON::checkLoggedIn();",
"OCP\\JSON::callCheck();",
"\n$id = $_POST['id'];\n$access = OC_Calendar_App::geta... | [
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * Copyright (c) 2011 Georg Ehrke <ownclouddev at georgswebsite dot de>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING-README file.\n */",
" ",
"OCP\\JSON::checkLoggedIn();\nOCP\\JSON::checkAppEnabled('calendar');",
"",
"\n$errarr =... | [
1,
1,
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * Copyright (c) 2011 Georg Ehrke <ownclouddev at georgswebsite dot de>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING-README file.\n */",
" ",
"OCP\\JSON::checkLoggedIn();\nOCP\\JSON::checkAppEnabled('calendar');",
"OCP\\JSON::callCh... | [
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * Copyright (c) 2012 Georg Ehrke <ownclouddev at georgswebsite dot de>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING-README file.\n */\n//check for calendar rights or create new one\nob_start();\nOCP\\JSON::checkLoggedIn();",
"",
"OCP... | [
1,
0,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * Copyright (c) 2012 Georg Ehrke <ownclouddev at georgswebsite dot de>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING-README file.\n */\n//check for calendar rights or create new one\nob_start();\nOCP\\JSON::checkLoggedIn();",
"OCP\\JSON... | [
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * Copyright (c) 2012 Georg Ehrke <ownclouddev at georgswebsite dot de>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING-README file.\n */\n \nOCP\\JSON::checkLoggedIn();",
"",
"if(isset($_POST[\"firstday\"])){\n\tOCP\\Config::setUserValu... | [
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * Copyright (c) 2012 Georg Ehrke <ownclouddev at georgswebsite dot de>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING-README file.\n */\n \nOCP\\JSON::checkLoggedIn();",
"OCP\\JSON::callCheck();\n",
"if(isset($_POST[\"firstday\"])){\n\... | [
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * Copyright (c) 2011 Georg Ehrke <ownclouddev at georgswebsite dot de>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING-README file.\n */\n \nOCP\\JSON::checkLoggedIn();",
"",
"if(isset($_POST[\"timeformat\"])){\n\tOCP\\Config::setUserVa... | [
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * Copyright (c) 2011 Georg Ehrke <ownclouddev at georgswebsite dot de>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING-README file.\n */\n \nOCP\\JSON::checkLoggedIn();",
"OCP\\JSON::callCheck();\n",
"if(isset($_POST[\"timeformat\"])){\... | [
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * Copyright (c) 2012 Georg Ehrke <ownclouddev@georgswebsite.de>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING-README file.\n */",
" ",
"$id = strip_tags($_GET['id']);\n$idtype = strip_tags($_GET['idtype']);\n$permission = (int) strip_... | [
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * Copyright (c) 2012 Georg Ehrke <ownclouddev@georgswebsite.de>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING-README file.\n */",
" OCP\\JSON::callCheck();\n",
"$id = strip_tags($_GET['id']);\n$idtype = strip_tags($_GET['idtype']);\n$... | [
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * Copyright (c) 2012 Georg Ehrke <ownclouddev@georgswebsite.de>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING-README file.\n */",
" ",
"$id = strip_tags($_GET['id']);\n$idtype = strip_tags($_GET['idtype']);\nswitch($idtype){\n\tcase '... | [
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * Copyright (c) 2012 Georg Ehrke <ownclouddev@georgswebsite.de>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING-README file.\n */",
" OCP\\JSON::callCheck();\n",
"$id = strip_tags($_GET['id']);\n$idtype = strip_tags($_GET['idtype']);\ns... | [
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * Copyright (c) 2012 Georg Ehrke <ownclouddev@georgswebsite.de>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING-README file.\n */",
" ",
"$id = strip_tags($_GET['id']);\n$idtype = strip_tags($_GET['idtype']);\nswitch($idtype){\n\tcase '... | [
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * Copyright (c) 2012 Georg Ehrke <ownclouddev@georgswebsite.de>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING-README file.\n */",
" OCP\\JSON::callCheck();\n",
"$id = strip_tags($_GET['id']);\n$idtype = strip_tags($_GET['idtype']);\ns... | [
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"/**\n * Copyright (c) 2011, Frank Karlitschek <karlitschek@kde.org>\n * This file is licensed under the Affero General Public License version 3 or later.\n * See the COPYING-README file.\n */",
" \nOCP\\User::checkAdminUser();",
"",
"\n$sites = array();\nfor ($i = 0; $i < sizeof($_POST['site_name'... | [
1,
1,
1,
0,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"/**\n * Copyright (c) 2011, Frank Karlitschek <karlitschek@kde.org>\n * This file is licensed under the Affero General Public License version 3 or later.\n * See the COPYING-README file.\n */",
" \nOCP\\User::checkAdminUser();",
"OCP\\JSON::callCheck();",
"\n$sites = array();\nfor ($i = 0; $i < si... | [
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"// Init owncloud",
"\nOCP\\JSON::checkLoggedIn();",
"",
"\n// Get data\n$dir = stripslashes($_GET[\"dir\"]);\n$files = isset($_GET[\"file\"]) ? stripslashes($_GET[\"file\"]) : stripslashes($_GET[\"files\"]);",
"$files = explode(';', $files);\n$filesWithError = '';\n$success = true;\n//Now delete... | [
1,
1,
1,
0,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"// Init owncloud",
"\nOCP\\JSON::checkLoggedIn();",
"OCP\\JSON::callCheck();",
"\n// Get data\n$dir = stripslashes($_GET[\"dir\"]);\n$files = isset($_GET[\"file\"]) ? stripslashes($_GET[\"file\"]) : stripslashes($_GET[\"files\"]);",
"$files = explode(';', $files);\n$filesWithError = '';\n$succes... | [
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"// Init owncloud",
"\nOCP\\JSON::checkLoggedIn();",
"",
"\n// Get data\n$dir = stripslashes($_GET[\"dir\"]);\n$file = stripslashes($_GET[\"file\"]);\n$target = stripslashes($_GET[\"target\"]);",
"\nif(OC_Files::move($dir,$file,$target,$file)){\n\tOCP\\JSON::success(array(\"data\" => array( \"dir... | [
1,
1,
1,
0,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"// Init owncloud",
"\nOCP\\JSON::checkLoggedIn();",
"OCP\\JSON::callCheck();",
"\n// Get data\n$dir = stripslashes($_GET[\"dir\"]);\n$file = stripslashes($_GET[\"file\"]);\n$target = stripslashes($_GET[\"target\"]);",
"\nif(OC_Files::move($dir,$file,$target,$file)){\n\tOCP\\JSON::success(array(\... | [
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"// Init owncloud",
"\nOCP\\JSON::checkLoggedIn();",
"",
"\n// Get the params\n$dir = isset( $_POST['dir'] ) ? stripslashes($_POST['dir']) : '';\n$filename = isset( $_POST['filename'] ) ? stripslashes($_POST['filename']) : '';\n$content = isset( $_POST['content'] ) ? $_POST['content'] : '';\n$sourc... | [
1,
1,
1,
0,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"// Init owncloud",
"\nOCP\\JSON::checkLoggedIn();",
"OCP\\JSON::callCheck();",
"\n// Get the params\n$dir = isset( $_POST['dir'] ) ? stripslashes($_POST['dir']) : '';\n$filename = isset( $_POST['filename'] ) ? stripslashes($_POST['filename']) : '';\n$content = isset( $_POST['content'] ) ? $_POST['... | [
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"// Init owncloud",
"\nOCP\\JSON::checkLoggedIn();",
"",
"\n// Get the params\n$dir = isset( $_POST['dir'] ) ? stripslashes($_POST['dir']) : '';\n$foldername = isset( $_POST['foldername'] ) ? stripslashes($_POST['foldername']) : '';",
"if(trim($foldername) == '') {\n\tOCP\\JSON::error(array(\"dat... | [
1,
1,
1,
0,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"// Init owncloud",
"\nOCP\\JSON::checkLoggedIn();",
"OCP\\JSON::callCheck();",
"\n// Get the params\n$dir = isset( $_POST['dir'] ) ? stripslashes($_POST['dir']) : '';\n$foldername = isset( $_POST['foldername'] ) ? stripslashes($_POST['foldername']) : '';",
"if(trim($foldername) == '') {\n\tOCP\\... | [
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"// Init owncloud",
"\nOCP\\JSON::checkLoggedIn();",
"",
"\n// Get data\n$dir = stripslashes($_GET[\"dir\"]);\n$file = stripslashes($_GET[\"file\"]);\n$newname = stripslashes($_GET[\"newname\"]);",
"// Delete\nif( OC_Files::move( $dir, $file, $dir, $newname )) {\n\tOCP\\JSON::success(array(\"data... | [
1,
1,
1,
0,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"// Init owncloud",
"\nOCP\\JSON::checkLoggedIn();",
"OCP\\JSON::callCheck();",
"\n// Get data\n$dir = stripslashes($_GET[\"dir\"]);\n$file = stripslashes($_GET[\"file\"]);\n$newname = stripslashes($_GET[\"newname\"]);",
"// Delete\nif( OC_Files::move( $dir, $file, $dir, $newname )) {\n\tOCP\\JSO... | [
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\nOCP\\JSON::checkLoggedIn();",
"",
"OCP\\JSON::checkAppEnabled('files_sharing');\n$user = OCP\\USER::getUser();\n// TODO translations\n$type = (strpos($_POST['file'], '.') === false) ? 'folder' : 'file';\n$subject = $user.' shared a '.$type.' with you';\n$link = $_POST['link'];\n$text = $user.' shared th... | [
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\nOCP\\JSON::checkLoggedIn();",
"OCP\\JSON::callCheck();",
"OCP\\JSON::checkAppEnabled('files_sharing');\n$user = OCP\\USER::getUser();\n// TODO translations\n$type = (strpos($_POST['file'], '.') === false) ? 'folder' : 'file';\n$subject = $user.' shared a '.$type.' with you';\n$link = $_POST['link'];\n$t... | [
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\nrequire_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php');",
"OCP\\JSON::checkAppEnabled('files_sharing');\nOCP\\JSON::checkLoggedIn();",
"",
"\n$source = '/'.OCP\\USER::getUser().'/files'.$_POST['source'];\n$uid_shared_with = $_POST['uid_shared_with'];\n$permissions = $_POST['permissions'];\n... | [
1,
1,
0,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\nrequire_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php');",
"OCP\\JSON::checkAppEnabled('files_sharing');\nOCP\\JSON::checkLoggedIn();",
"OCP\\JSON::callCheck();",
"\n$source = '/'.OCP\\USER::getUser().'/files'.$_POST['source'];\n$uid_shared_with = $_POST['uid_shared_with'];\n$permissions = $... | [
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\nrequire_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php');",
"OCP\\JSON::checkAppEnabled('files_sharing');\nOCP\\JSON::checkLoggedIn();",
"",
"\n$userDirectory = '/'.OCP\\USER::getUser().'/files';\n$sources = explode(';', $_POST['sources']);\n$uid_shared_with = $_POST['uid_shared_with'];\n$per... | [
1,
1,
0,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\nrequire_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php');",
"OCP\\JSON::checkAppEnabled('files_sharing');\nOCP\\JSON::checkLoggedIn();",
"OCP\\JSON::callCheck();",
"\n$userDirectory = '/'.OCP\\USER::getUser().'/files';\n$sources = explode(';', $_POST['sources']);\n$uid_shared_with = $_POST['u... | [
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"",
"\nOCP\\JSON::checkAppEnabled('files_sharing');\nOCP\\JSON::checkAdminUser();\nif ($_POST['resharing'] == true) {\n\tOCP\\Config::setAppValue('files_sharing', 'resharing', 'yes');\n} else {\n\tOCP\\Config::setAppValue('files_sharing', 'resharing', 'no');\n}",
"?>"
] | [
1,
0,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"\nOCP\\JSON::callCheck();",
"\nOCP\\JSON::checkAppEnabled('files_sharing');\nOCP\\JSON::checkAdminUser();\nif ($_POST['resharing'] == true) {\n\tOCP\\Config::setAppValue('files_sharing', 'resharing', 'yes');\n} else {\n\tOCP\\Config::setAppValue('files_sharing', 'resharing', 'no');\n}",
"?>"
] | [
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"",
"\nOCP\\JSON::checkAppEnabled('files_sharing');\nOCP\\JSON::checkAdminUser();\nif ($_POST['allowSharingWithEveryone'] == true) {\n\tOCP\\Config::setAppValue('files_sharing', 'allowSharingWithEveryone', 'yes');\n} else {\n\tOCP\\Config::setAppValue('files_sharing', 'allowSharingWithEveryone', 'no');... | [
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"\nOCP\\JSON::callCheck();",
"\nOCP\\JSON::checkAppEnabled('files_sharing');\nOCP\\JSON::checkAdminUser();\nif ($_POST['allowSharingWithEveryone'] == true) {\n\tOCP\\Config::setAppValue('files_sharing', 'allowSharingWithEveryone', 'yes');\n} else {\n\tOCP\\Config::setAppValue('files_sharing', 'allowSha... | [
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\nrequire_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php');",
"OCP\\JSON::checkAppEnabled('files_sharing');\nOCP\\JSON::checkLoggedIn();",
"",
"\n$source = '/'.OCP\\USER::getUser().'/files'.$_POST['source'];\n$uid_shared_with = $_POST['uid_shared_with'];\nOC_Share::unshare($source, $uid_shared_... | [
1,
1,
0,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\nrequire_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php');",
"OCP\\JSON::checkAppEnabled('files_sharing');\nOCP\\JSON::checkLoggedIn();",
"OCP\\JSON::callCheck();",
"\n$source = '/'.OCP\\USER::getUser().'/files'.$_POST['source'];\n$uid_shared_with = $_POST['uid_shared_with'];\nOC_Share::unshar... | [
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * ownCloud - files_texteditor\n *\n * @author Tom Needham\n * @copyright 2011 Tom Needham contact@tomneedham.com\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE\n * License as published by the Free Software Fo... | [
1,
1,
1,
0,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * ownCloud - files_texteditor\n *\n * @author Tom Needham\n * @copyright 2011 Tom Needham contact@tomneedham.com\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE\n * License as published by the Free Software Fo... | [
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"OCP\\JSON::checkAppEnabled('files_versions');",
"",
"\nrequire_once('apps/files_versions/versions.php');",
"$userDirectory = \"/\".OCP\\USER::getUser().\"/files\";",
"$file = $_GET['file'];\n$revision=(int)$_GET['revision'];",
"if( OCA_Versions\\Storage::isversioned( $file ) ) {\n\tif(OCA_Vers... | [
1,
1,
0,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"OCP\\JSON::checkAppEnabled('files_versions');",
"OCP\\JSON::callCheck();",
"\nrequire_once('apps/files_versions/versions.php');",
"$userDirectory = \"/\".OCP\\USER::getUser().\"/files\";",
"$file = $_GET['file'];\n$revision=(int)$_GET['revision'];",
"if( OCA_Versions\\Storage::isversioned( $fi... | [
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"/**\n* ownCloud - gallery application\n*\n* @author Bartek Przybylski\n* @copyright 2012 Bartek Przybylski bart.p.pl@gmail.com\n* \n* This library is free software; you can redistribute it and/or\n* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE\n* License as published by the Free So... | [
1,
1,
1,
0,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"/**\n* ownCloud - gallery application\n*\n* @author Bartek Przybylski\n* @copyright 2012 Bartek Przybylski bart.p.pl@gmail.com\n* \n* This library is free software; you can redistribute it and/or\n* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE\n* License as published by the Free So... | [
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"/**\n* ownCloud - gallery application\n*\n* @author Bartek Przybylski\n* @copyright 2012 Bartek Przybylski bartek@alefzero.eu\n* \n* This library is free software; you can redistribute it and/or\n* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE\n* License as published by the Free Sof... | [
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"/**\n* ownCloud - gallery application\n*\n* @author Bartek Przybylski\n* @copyright 2012 Bartek Przybylski bartek@alefzero.eu\n* \n* This library is free software; you can redistribute it and/or\n* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE\n* License as published by the Free Sof... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"// Init owncloud\nOCP\\JSON::checkLoggedIn();\nOCP\\JSON::checkAppEnabled('tasks');",
"",
"\n$calendars = OC_Calendar_Calendar::allCalendars(OCP\\User::getUser(), true);\n$first_calendar = reset($calendars);\n$cid = $first_calendar['id'];",
"$input = $_POST['text'];\n$request = array();\n$request[... | [
1,
1,
0,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"// Init owncloud\nOCP\\JSON::checkLoggedIn();\nOCP\\JSON::checkAppEnabled('tasks');",
"OCP\\JSON::callCheck();",
"\n$calendars = OC_Calendar_Calendar::allCalendars(OCP\\User::getUser(), true);\n$first_calendar = reset($calendars);\n$cid = $first_calendar['id'];",
"$input = $_POST['text'];\n$reques... | [
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"// Init owncloud\nOCP\\JSON::checkLoggedIn();\nOCP\\JSON::checkAppEnabled('tasks');",
"",
"\n$calendars = OC_Calendar_Calendar::allCalendars(OCP\\User::getUser(), true);\n$category_options = OC_Calendar_App::getCategoryOptions();\n$percent_options = range(0, 100, 10);\n$priority_options = OC_Task_Ap... | [
1,
1,
0,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"// Init owncloud\nOCP\\JSON::checkLoggedIn();\nOCP\\JSON::checkAppEnabled('tasks');",
"OCP\\JSON::callCheck();",
"\n$calendars = OC_Calendar_Calendar::allCalendars(OCP\\User::getUser(), true);\n$category_options = OC_Calendar_App::getCategoryOptions();\n$percent_options = range(0, 100, 10);\n$priori... | [
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * ownCloud - Addressbook\n *\n * @author Jakob Sack\n * @copyright 2011 Jakob Sack mail@jakobsack.de\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE\n * License as published by the Free Software Foundation; ei... | [
1,
1,
0,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * ownCloud - Addressbook\n *\n * @author Jakob Sack\n * @copyright 2011 Jakob Sack mail@jakobsack.de\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE\n * License as published by the Free Software Foundation; ei... | [
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"// Init owncloud\nOCP\\JSON::checkLoggedIn();\nOCP\\JSON::checkAppEnabled('tasks');",
"",
"\n$l10n = new OC_L10N('tasks');",
"$id = $_POST['id'];\n$vcalendar = OC_Calendar_App::getVCalendar($id);",
"$errors = OC_Task_App::validateRequest($_POST);\nif (!empty($errors)) {\n\tOCP\\JSON::error(array... | [
1,
1,
0,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"// Init owncloud\nOCP\\JSON::checkLoggedIn();\nOCP\\JSON::checkAppEnabled('tasks');",
"OCP\\JSON::callCheck();",
"\n$l10n = new OC_L10N('tasks');",
"$id = $_POST['id'];\n$vcalendar = OC_Calendar_App::getVCalendar($id);",
"$errors = OC_Task_App::validateRequest($_POST);\nif (!empty($errors)) {\n\... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 9, 9, 9, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "buggy_code_start_loc": [31, 31, 31, 11, 11, 13, 13, 11, 11, 9, 12, 10, 9, 9, 8, 8, 8, 10, 6, 6, 6, 6, 6, 2, 5, 5, 1, 1, 5, 28, 3, 26, 24, 5, 5, 25, 5], "filenames": ["... | 1,355 |
Determine whether the {function_name} code is vulnerable or not. | [
"package nosurf",
"import (\n\t\"crypto/rand\"\n\t\"crypto/subtle\"\n\t\"encoding/base64\"\n\t\"fmt\"\n\t\"io\"\n)",
"const (\n\ttokenLength = 32\n)",
"/*\nThere are two types of tokens.",
"* The unmasked \"real\" token consists of 32 random bytes.\n It is stored in a cookie (base64-encoded) and it's the\n... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
0,
1,
0,
1,
1,
1,
0,
1,
0,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [89, 72], "buggy_code_start_loc": [61, 4], "filenames": ["token.go", "token_test.go"], "fixing_code_end_loc": [97, 131], "fixing_code_start_loc": [61, 5], "message": "Due to improper validation of caller input, validation is silently disabled if the provided expected token is malformed, causing a... | 1,356 |
Determine whether the {function_name} code is vulnerable or not. | [
"package nosurf",
"import (\n\t\"crypto/rand\"\n\t\"crypto/subtle\"\n\t\"encoding/base64\"\n\t\"fmt\"\n\t\"io\"\n)",
"const (\n\ttokenLength = 32\n)",
"/*\nThere are two types of tokens.",
"* The unmasked \"real\" token consists of 32 random bytes.\n It is stored in a cookie (base64-encoded) and it's the\n... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [89, 72], "buggy_code_start_loc": [61, 4], "filenames": ["token.go", "token_test.go"], "fixing_code_end_loc": [97, 131], "fixing_code_start_loc": [61, 5], "message": "Due to improper validation of caller input, validation is silently disabled if the provided expected token is malformed, causing a... | 1,356 |
Determine whether the {function_name} code is vulnerable or not. | [
"package nosurf",
"import (\n\t\"crypto/rand\"",
"",
"\t\"testing\"\n)",
"func TestChecksForPRNG(t *testing.T) {\n\t// Monkeypatch crypto/rand with an always-failing reader\n\toldReader := rand.Reader\n\trand.Reader = failReader{}\n\t// Restore it later for other tests\n\tdefer func() {\n\t\trand.Reader = o... | [
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0
] | PreciseBugs | {"buggy_code_end_loc": [89, 72], "buggy_code_start_loc": [61, 4], "filenames": ["token.go", "token_test.go"], "fixing_code_end_loc": [97, 131], "fixing_code_start_loc": [61, 5], "message": "Due to improper validation of caller input, validation is silently disabled if the provided expected token is malformed, causing a... | 1,356 |
Determine whether the {function_name} code is vulnerable or not. | [
"package nosurf",
"import (\n\t\"crypto/rand\"",
"\t\"encoding/base64\"",
"\t\"testing\"\n)",
"func TestChecksForPRNG(t *testing.T) {\n\t// Monkeypatch crypto/rand with an always-failing reader\n\toldReader := rand.Reader\n\trand.Reader = failReader{}\n\t// Restore it later for other tests\n\tdefer func() {... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [89, 72], "buggy_code_start_loc": [61, 4], "filenames": ["token.go", "token_test.go"], "fixing_code_end_loc": [97, 131], "fixing_code_start_loc": [61, 5], "message": "Due to improper validation of caller input, validation is silently disabled if the provided expected token is malformed, causing a... | 1,356 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * Copyright (c) 2017, Salvatore Sanfilippo <antirez at gmail dot com>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the a... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [405], "buggy_code_start_loc": [404], "filenames": ["src/t_stream.c"], "fixing_code_end_loc": [405], "fixing_code_start_loc": [404], "message": "Redis v7.0 was discovered to contain a memory leak via the component streamGetEdgeID.", "other": {"cve": {"cisaActionDue": null, "cisaExploitAdd": null,... | 1,357 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * Copyright (c) 2017, Salvatore Sanfilippo <antirez at gmail dot com>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the a... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [405], "buggy_code_start_loc": [404], "filenames": ["src/t_stream.c"], "fixing_code_end_loc": [405], "fixing_code_start_loc": [404], "message": "Redis v7.0 was discovered to contain a memory leak via the component streamGetEdgeID.", "other": {"cve": {"cisaActionDue": null, "cisaExploitAdd": null,... | 1,357 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.