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 * Distributed as part of c3p0 v.0.9.5.2\n *\n * Copyright (C) 2015 Machinery For Change, Inc.\n *\n * Author: Steve Waldman <swaldman@mchange.com>\n *\n * This library is free software; you can redistribute it and/or modify\n * it under the terms of EITHER:\n *\n * 1) The GNU Lesser General Public License... | [
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
] | PreciseBugs | {"buggy_code_end_loc": [146], "buggy_code_start_loc": [146], "filenames": ["src/java/com/mchange/v2/c3p0/cfg/C3P0ConfigXmlUtils.java"], "fixing_code_end_loc": [148], "fixing_code_start_loc": [147], "message": "c3p0 0.9.5.2 allows XXE in extractXmlConfigFromInputStream in com/mchange/v2/c3p0/cfg/C3P0ConfigXmlUtils.java ... | 1,285 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * Distributed as part of c3p0 v.0.9.5.2\n *\n * Copyright (C) 2015 Machinery For Change, Inc.\n *\n * Author: Steve Waldman <swaldman@mchange.com>\n *\n * This library is free software; you can redistribute it and/or modify\n * it under the terms of EITHER:\n *\n * 1) The 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,
1
] | PreciseBugs | {"buggy_code_end_loc": [146], "buggy_code_start_loc": [146], "filenames": ["src/java/com/mchange/v2/c3p0/cfg/C3P0ConfigXmlUtils.java"], "fixing_code_end_loc": [148], "fixing_code_start_loc": [147], "message": "c3p0 0.9.5.2 allows XXE in extractXmlConfigFromInputStream in com/mchange/v2/c3p0/cfg/C3P0ConfigXmlUtils.java ... | 1,285 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* Copyright 2016 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": [940, 180], "buggy_code_start_loc": [875, 177], "filenames": ["tensorflow/core/kernels/resource_variable_ops.cc", "tensorflow/python/distribute/sharded_variable_test.py"], "fixing_code_end_loc": [976, 181], "fixing_code_start_loc": [876, 178], "message": "TensorFlow is an end-to-end open source p... | 1,286 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* Copyright 2016 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": [940, 180], "buggy_code_start_loc": [875, 177], "filenames": ["tensorflow/core/kernels/resource_variable_ops.cc", "tensorflow/python/distribute/sharded_variable_test.py"], "fixing_code_end_loc": [976, 181], "fixing_code_start_loc": [876, 178], "message": "TensorFlow is an end-to-end open source p... | 1,286 |
Determine whether the {function_name} code is vulnerable or not. | [
"# Copyright 2019 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,
0,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [940, 180], "buggy_code_start_loc": [875, 177], "filenames": ["tensorflow/core/kernels/resource_variable_ops.cc", "tensorflow/python/distribute/sharded_variable_test.py"], "fixing_code_end_loc": [976, 181], "fixing_code_start_loc": [876, 178], "message": "TensorFlow is an end-to-end open source p... | 1,286 |
Determine whether the {function_name} code is vulnerable or not. | [
"# Copyright 2019 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": [940, 180], "buggy_code_start_loc": [875, 177], "filenames": ["tensorflow/core/kernels/resource_variable_ops.cc", "tensorflow/python/distribute/sharded_variable_test.py"], "fixing_code_end_loc": [976, 181], "fixing_code_start_loc": [876, 178], "message": "TensorFlow is an end-to-end open source p... | 1,286 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* radare - LGPL - Copyright 2009-2017 - pancake, nibble, dso */",
"// TODO: dlopen library and show address",
"#include <r_bin.h>\n#include <r_types.h>\n#include <r_util.h>\n#include <r_lib.h>\n#include <r_io.h>\n#include <config.h>",
"R_LIB_VERSION (r_bin);",
"#define bprintf if(binfile->rbin->verbose)ep... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
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": [365], "buggy_code_start_loc": [355], "filenames": ["libr/bin/bin.c"], "fixing_code_end_loc": [365], "fixing_code_start_loc": [355], "message": "In radare 2.0.1, an out-of-bounds read vulnerability exists in string_scan_range() in libr/bin/bin.c when doing a string search.", "other": {"cve": {"ci... | 1,287 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* radare - LGPL - Copyright 2009-2017 - pancake, nibble, dso */",
"// TODO: dlopen library and show address",
"#include <r_bin.h>\n#include <r_types.h>\n#include <r_util.h>\n#include <r_lib.h>\n#include <r_io.h>\n#include <config.h>",
"R_LIB_VERSION (r_bin);",
"#define bprintf if(binfile->rbin->verbose)ep... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [365], "buggy_code_start_loc": [355], "filenames": ["libr/bin/bin.c"], "fixing_code_end_loc": [365], "fixing_code_start_loc": [355], "message": "In radare 2.0.1, an out-of-bounds read vulnerability exists in string_scan_range() in libr/bin/bin.c when doing a string search.", "other": {"cve": {"ci... | 1,287 |
Determine whether the {function_name} code is vulnerable or not. | [
"[[package]]\nname = \"absl-py\"\nversion = \"0.13.0\"\ndescription = \"Abseil Python Common Libraries, see https://github.com/abseil/abseil-py.\"\ncategory = \"main\"\noptional = false\npython-versions = \"*\"",
"[package.dependencies]\nsix = \"*\"",
"[[package]]\nname = \"aio-pika\"\nversion = \"6.8.0\"\ndesc... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [5455, 124, 232, 107, 91], "buggy_code_start_loc": [245, 124, 224, 5, 5], "filenames": ["poetry.lock", "pyproject.toml", "rasa/model.py", "rasa/nlu/persistor.py", "rasa/utils/io.py"], "fixing_code_end_loc": [5546, 126, 233, 107, 92], "fixing_code_start_loc": [245, 125, 225, 5, 6], "message": "Ras... | 1,288 |
Determine whether the {function_name} code is vulnerable or not. | [
"[[package]]\nname = \"absl-py\"\nversion = \"0.13.0\"\ndescription = \"Abseil Python Common Libraries, see https://github.com/abseil/abseil-py.\"\ncategory = \"main\"\noptional = false\npython-versions = \"*\"",
"[package.dependencies]\nsix = \"*\"",
"[[package]]\nname = \"aio-pika\"\nversion = \"6.8.0\"\ndesc... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [5455, 124, 232, 107, 91], "buggy_code_start_loc": [245, 124, 224, 5, 5], "filenames": ["poetry.lock", "pyproject.toml", "rasa/model.py", "rasa/nlu/persistor.py", "rasa/utils/io.py"], "fixing_code_end_loc": [5546, 126, 233, 107, 92], "fixing_code_start_loc": [245, 125, 225, 5, 6], "message": "Ras... | 1,288 |
Determine whether the {function_name} code is vulnerable or not. | [
"[build-system]\nrequires = [ \"poetry-core>=1.0.0\",]\nbuild-backend = \"poetry.core.masonry.api\"",
"[tool.black]\nline-length = 88\ntarget-version = [ \"py36\", \"py37\", \"py38\",]\nexclude = \"((.eggs | .git | .pytest_cache | build | dist))\"",
"[tool.poetry]\nname = \"rasa\"\nversion = \"2.8.9\"\ndescript... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [5455, 124, 232, 107, 91], "buggy_code_start_loc": [245, 124, 224, 5, 5], "filenames": ["poetry.lock", "pyproject.toml", "rasa/model.py", "rasa/nlu/persistor.py", "rasa/utils/io.py"], "fixing_code_end_loc": [5546, 126, 233, 107, 92], "fixing_code_start_loc": [245, 125, 225, 5, 6], "message": "Ras... | 1,288 |
Determine whether the {function_name} code is vulnerable or not. | [
"[build-system]\nrequires = [ \"poetry-core>=1.0.0\",]\nbuild-backend = \"poetry.core.masonry.api\"",
"[tool.black]\nline-length = 88\ntarget-version = [ \"py36\", \"py37\", \"py38\",]\nexclude = \"((.eggs | .git | .pytest_cache | build | dist))\"",
"[tool.poetry]\nname = \"rasa\"\nversion = \"2.8.9\"\ndescript... | [
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": [5455, 124, 232, 107, 91], "buggy_code_start_loc": [245, 124, 224, 5, 5], "filenames": ["poetry.lock", "pyproject.toml", "rasa/model.py", "rasa/nlu/persistor.py", "rasa/utils/io.py"], "fixing_code_end_loc": [5546, 126, 233, 107, 92], "fixing_code_start_loc": [245, 125, 225, 5, 6], "message": "Ras... | 1,288 |
Determine whether the {function_name} code is vulnerable or not. | [
"import copy\nimport glob\nimport hashlib\nimport logging\nimport os\nimport shutil\nfrom subprocess import CalledProcessError, DEVNULL, check_output # skipcq:BAN-B404\nimport tempfile\nimport typing\nfrom pathlib import Path\nfrom typing import Any, Text, Tuple, Union, Optional, List, Dict, NamedTuple",
"from p... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [5455, 124, 232, 107, 91], "buggy_code_start_loc": [245, 124, 224, 5, 5], "filenames": ["poetry.lock", "pyproject.toml", "rasa/model.py", "rasa/nlu/persistor.py", "rasa/utils/io.py"], "fixing_code_end_loc": [5546, 126, 233, 107, 92], "fixing_code_start_loc": [245, 125, 225, 5, 6], "message": "Ras... | 1,288 |
Determine whether the {function_name} code is vulnerable or not. | [
"import copy\nimport glob\nimport hashlib\nimport logging\nimport os\nimport shutil\nfrom subprocess import CalledProcessError, DEVNULL, check_output # skipcq:BAN-B404\nimport tempfile\nimport typing\nfrom pathlib import Path\nfrom typing import Any, Text, Tuple, Union, Optional, List, Dict, NamedTuple",
"from p... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [5455, 124, 232, 107, 91], "buggy_code_start_loc": [245, 124, 224, 5, 5], "filenames": ["poetry.lock", "pyproject.toml", "rasa/model.py", "rasa/nlu/persistor.py", "rasa/utils/io.py"], "fixing_code_end_loc": [5546, 126, 233, 107, 92], "fixing_code_start_loc": [245, 125, 225, 5, 6], "message": "Ras... | 1,288 |
Determine whether the {function_name} code is vulnerable or not. | [
"import abc\nimport logging\nimport os\nimport shutil",
"import tarfile",
"from typing import Optional, Text, Tuple, TYPE_CHECKING",
"import rasa.shared.utils.common\nimport rasa.utils.common",
"if TYPE_CHECKING:\n from azure.storage.blob import ContainerClient",
"logger = logging.getLogger(__name__)",... | [
1,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [5455, 124, 232, 107, 91], "buggy_code_start_loc": [245, 124, 224, 5, 5], "filenames": ["poetry.lock", "pyproject.toml", "rasa/model.py", "rasa/nlu/persistor.py", "rasa/utils/io.py"], "fixing_code_end_loc": [5546, 126, 233, 107, 92], "fixing_code_start_loc": [245, 125, 225, 5, 6], "message": "Ras... | 1,288 |
Determine whether the {function_name} code is vulnerable or not. | [
"import abc\nimport logging\nimport os\nimport shutil",
"from tarsafe import TarSafe",
"from typing import Optional, Text, Tuple, TYPE_CHECKING",
"import rasa.shared.utils.common\nimport rasa.utils.common",
"if TYPE_CHECKING:\n from azure.storage.blob import ContainerClient",
"logger = logging.getLogge... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [5455, 124, 232, 107, 91], "buggy_code_start_loc": [245, 124, 224, 5, 5], "filenames": ["poetry.lock", "pyproject.toml", "rasa/model.py", "rasa/nlu/persistor.py", "rasa/utils/io.py"], "fixing_code_end_loc": [5546, 126, 233, 107, 92], "fixing_code_start_loc": [245, 125, 225, 5, 6], "message": "Ras... | 1,288 |
Determine whether the {function_name} code is vulnerable or not. | [
"import asyncio\nimport logging\nimport os\nimport pickle\nimport tarfile",
"",
"import tempfile\nimport warnings\nimport zipfile\nimport re\nfrom asyncio import AbstractEventLoop\nfrom io import BytesIO as IOReader\nfrom pathlib import Path\nfrom typing import Text, Any, Union, List, Type, Callable, TYPE_CHECK... | [
1,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [5455, 124, 232, 107, 91], "buggy_code_start_loc": [245, 124, 224, 5, 5], "filenames": ["poetry.lock", "pyproject.toml", "rasa/model.py", "rasa/nlu/persistor.py", "rasa/utils/io.py"], "fixing_code_end_loc": [5546, 126, 233, 107, 92], "fixing_code_start_loc": [245, 125, 225, 5, 6], "message": "Ras... | 1,288 |
Determine whether the {function_name} code is vulnerable or not. | [
"import asyncio\nimport logging\nimport os\nimport pickle\nimport tarfile",
"from tarsafe import TarSafe",
"import tempfile\nimport warnings\nimport zipfile\nimport re\nfrom asyncio import AbstractEventLoop\nfrom io import BytesIO as IOReader\nfrom pathlib import Path\nfrom typing import Text, Any, Union, List,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [5455, 124, 232, 107, 91], "buggy_code_start_loc": [245, 124, 224, 5, 5], "filenames": ["poetry.lock", "pyproject.toml", "rasa/model.py", "rasa/nlu/persistor.py", "rasa/utils/io.py"], "fixing_code_end_loc": [5546, 126, 233, 107, 92], "fixing_code_start_loc": [245, 125, 225, 5, 6], "message": "Ras... | 1,288 |
Determine whether the {function_name} code is vulnerable or not. | [
"# frozen_string_literal: true",
"# Methods added to this helper will be available to all templates in the application.\nrequire \"digest/sha1\"",
"module BaseHelper\n include BlogHelper",
" # Need to rewrite this one, quick hack to test my changes.\n attr_reader :page_title",
" def render_sidebars\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,
0,
1,
0,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [247, 46, 19, 9, 4, 3, 10, 5, 6, 181, 400, 264, 162, 257, 91, 3, 9], "buggy_code_start_loc": [242, 5, 13, 8, 2, 2, 9, 4, 5, 162, 400, 260, 147, 257, 91, 2, 8], "filenames": ["publify_core/app/helpers/base_helper.rb", "publify_core/app/models/content_base.rb", "publify_core/app/models/feedback.rb"... | 1,289 |
Determine whether the {function_name} code is vulnerable or not. | [
"# frozen_string_literal: true",
"# Methods added to this helper will be available to all templates in the application.\nrequire \"digest/sha1\"",
"module BaseHelper\n include BlogHelper",
" # Need to rewrite this one, quick hack to test my changes.\n attr_reader :page_title",
" def render_sidebars\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
] | PreciseBugs | {"buggy_code_end_loc": [247, 46, 19, 9, 4, 3, 10, 5, 6, 181, 400, 264, 162, 257, 91, 3, 9], "buggy_code_start_loc": [242, 5, 13, 8, 2, 2, 9, 4, 5, 162, 400, 260, 147, 257, 91, 2, 8], "filenames": ["publify_core/app/helpers/base_helper.rb", "publify_core/app/models/content_base.rb", "publify_core/app/models/feedback.rb"... | 1,289 |
Determine whether the {function_name} code is vulnerable or not. | [
"# frozen_string_literal: true",
"module ContentBase\n def self.included(base)\n base.extend ClassMethods",
"",
" end",
" attr_accessor :just_changed_published_status\n alias just_changed_published_status? just_changed_published_status",
" def really_send_notifications\n interested_users.each d... | [
1,
1,
0,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [247, 46, 19, 9, 4, 3, 10, 5, 6, 181, 400, 264, 162, 257, 91, 3, 9], "buggy_code_start_loc": [242, 5, 13, 8, 2, 2, 9, 4, 5, 162, 400, 260, 147, 257, 91, 2, 8], "filenames": ["publify_core/app/helpers/base_helper.rb", "publify_core/app/models/content_base.rb", "publify_core/app/models/feedback.rb"... | 1,289 |
Determine whether the {function_name} code is vulnerable or not. | [
"# frozen_string_literal: true",
"module ContentBase\n def self.included(base)\n base.extend ClassMethods",
" end",
" class ContentTextHelpers\n include ActionView::Helpers::UrlHelper\n include ActionView::Helpers::TextHelper\n include ActionView::Helpers::SanitizeHelper",
" end",
" attr_... | [
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": [247, 46, 19, 9, 4, 3, 10, 5, 6, 181, 400, 264, 162, 257, 91, 3, 9], "buggy_code_start_loc": [242, 5, 13, 8, 2, 2, 9, 4, 5, 162, 400, 260, 147, 257, 91, 2, 8], "filenames": ["publify_core/app/helpers/base_helper.rb", "publify_core/app/models/content_base.rb", "publify_core/app/models/feedback.rb"... | 1,289 |
Determine whether the {function_name} code is vulnerable or not. | [
"# frozen_string_literal: true",
"require \"aasm\"\nrequire \"akismet\"",
"class Feedback < ApplicationRecord\n self.table_name = \"feedback\"",
" belongs_to :article, touch: true",
" include PublifyGuid\n include ContentBase",
"\n class ContentTextHelpers\n include ActionView::Helpers::UrlHelper\... | [
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,
1,
1,
1,
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": [247, 46, 19, 9, 4, 3, 10, 5, 6, 181, 400, 264, 162, 257, 91, 3, 9], "buggy_code_start_loc": [242, 5, 13, 8, 2, 2, 9, 4, 5, 162, 400, 260, 147, 257, 91, 2, 8], "filenames": ["publify_core/app/helpers/base_helper.rb", "publify_core/app/models/content_base.rb", "publify_core/app/models/feedback.rb"... | 1,289 |
Determine whether the {function_name} code is vulnerable or not. | [
"# frozen_string_literal: true",
"require \"aasm\"\nrequire \"akismet\"",
"class Feedback < ApplicationRecord\n self.table_name = \"feedback\"",
" belongs_to :article, touch: true",
" include PublifyGuid\n include ContentBase",
"",
"\n validate :feedback_not_closed, on: :create\n validates :articl... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [247, 46, 19, 9, 4, 3, 10, 5, 6, 181, 400, 264, 162, 257, 91, 3, 9], "buggy_code_start_loc": [242, 5, 13, 8, 2, 2, 9, 4, 5, 162, 400, 260, 147, 257, 91, 2, 8], "filenames": ["publify_core/app/helpers/base_helper.rb", "publify_core/app/models/content_base.rb", "publify_core/app/models/feedback.rb"... | 1,289 |
Determine whether the {function_name} code is vulnerable or not. | [
"<% cache article do %>\n <% if article.excerpt? %>\n <%= article.excerpt %>\n <div class=\"extended\">\n <p><%= link_to_permalink article, t('.continue_reading') %></p>\n </div>\n <% else %>",
" <%= raw article.html(:body) %>",
" <% if article.extended? %>\n <div class=\"extended\">\... | [
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [247, 46, 19, 9, 4, 3, 10, 5, 6, 181, 400, 264, 162, 257, 91, 3, 9], "buggy_code_start_loc": [242, 5, 13, 8, 2, 2, 9, 4, 5, 162, 400, 260, 147, 257, 91, 2, 8], "filenames": ["publify_core/app/helpers/base_helper.rb", "publify_core/app/models/content_base.rb", "publify_core/app/models/feedback.rb"... | 1,289 |
Determine whether the {function_name} code is vulnerable or not. | [
"<% cache article do %>\n <% if article.excerpt? %>\n <%= article.excerpt %>\n <div class=\"extended\">\n <p><%= link_to_permalink article, t('.continue_reading') %></p>\n </div>\n <% else %>",
" <%= article.html(:body) %>",
" <% if article.extended? %>\n <div class=\"extended\">\n ... | [
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [247, 46, 19, 9, 4, 3, 10, 5, 6, 181, 400, 264, 162, 257, 91, 3, 9], "buggy_code_start_loc": [242, 5, 13, 8, 2, 2, 9, 4, 5, 162, 400, 260, 147, 257, 91, 2, 8], "filenames": ["publify_core/app/helpers/base_helper.rb", "publify_core/app/models/content_base.rb", "publify_core/app/models/feedback.rb"... | 1,289 |
Determine whether the {function_name} code is vulnerable or not. | [
"<% cache article do %>",
" <%= raw article.html(:body) %>\n <%= raw article.html(:extended) %>",
"<% end %>"
] | [
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [247, 46, 19, 9, 4, 3, 10, 5, 6, 181, 400, 264, 162, 257, 91, 3, 9], "buggy_code_start_loc": [242, 5, 13, 8, 2, 2, 9, 4, 5, 162, 400, 260, 147, 257, 91, 2, 8], "filenames": ["publify_core/app/helpers/base_helper.rb", "publify_core/app/models/content_base.rb", "publify_core/app/models/feedback.rb"... | 1,289 |
Determine whether the {function_name} code is vulnerable or not. | [
"<% cache article do %>",
" <%= article.html(:body) %>\n <%= article.html(:extended) %>",
"<% end %>"
] | [
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [247, 46, 19, 9, 4, 3, 10, 5, 6, 181, 400, 264, 162, 257, 91, 3, 9], "buggy_code_start_loc": [242, 5, 13, 8, 2, 2, 9, 4, 5, 162, 400, 260, 147, 257, 91, 2, 8], "filenames": ["publify_core/app/helpers/base_helper.rb", "publify_core/app/models/content_base.rb", "publify_core/app/models/feedback.rb"... | 1,289 |
Determine whether the {function_name} code is vulnerable or not. | [
"<div id=\"viewpage\">",
" <%= raw html @page %>",
"</div>"
] | [
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [247, 46, 19, 9, 4, 3, 10, 5, 6, 181, 400, 264, 162, 257, 91, 3, 9], "buggy_code_start_loc": [242, 5, 13, 8, 2, 2, 9, 4, 5, 162, 400, 260, 147, 257, 91, 2, 8], "filenames": ["publify_core/app/helpers/base_helper.rb", "publify_core/app/models/content_base.rb", "publify_core/app/models/feedback.rb"... | 1,289 |
Determine whether the {function_name} code is vulnerable or not. | [
"<div id=\"viewpage\">",
" <%= html @page %>",
"</div>"
] | [
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [247, 46, 19, 9, 4, 3, 10, 5, 6, 181, 400, 264, 162, 257, 91, 3, 9], "buggy_code_start_loc": [242, 5, 13, 8, 2, 2, 9, 4, 5, 162, 400, 260, 147, 257, 91, 2, 8], "filenames": ["publify_core/app/helpers/base_helper.rb", "publify_core/app/models/content_base.rb", "publify_core/app/models/feedback.rb"... | 1,289 |
Determine whether the {function_name} code is vulnerable or not. | [
"<% cache comment do %>\n <li id=\"comment-<%= comment.id %>\" <%= 'class=\"author_comment\"' if comment.user %> <%= onhover_show_admin_tools(:comment, comment.id) %>>\n <p class=\"author\">\n <%= avatar_tag(email: comment.email, url: comment.url) %>\n <cite><strong><%= link_to_unless(comment.url.blank?, ... | [
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [247, 46, 19, 9, 4, 3, 10, 5, 6, 181, 400, 264, 162, 257, 91, 3, 9], "buggy_code_start_loc": [242, 5, 13, 8, 2, 2, 9, 4, 5, 162, 400, 260, 147, 257, 91, 2, 8], "filenames": ["publify_core/app/helpers/base_helper.rb", "publify_core/app/models/content_base.rb", "publify_core/app/models/feedback.rb"... | 1,289 |
Determine whether the {function_name} code is vulnerable or not. | [
"<% cache comment do %>\n <li id=\"comment-<%= comment.id %>\" <%= 'class=\"author_comment\"' if comment.user %> <%= onhover_show_admin_tools(:comment, comment.id) %>>\n <p class=\"author\">\n <%= avatar_tag(email: comment.email, url: comment.url) %>\n <cite><strong><%= link_to_unless(comment.url.blank?, ... | [
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [247, 46, 19, 9, 4, 3, 10, 5, 6, 181, 400, 264, 162, 257, 91, 3, 9], "buggy_code_start_loc": [242, 5, 13, 8, 2, 2, 9, 4, 5, 162, 400, 260, 147, 257, 91, 2, 8], "filenames": ["publify_core/app/helpers/base_helper.rb", "publify_core/app/models/content_base.rb", "publify_core/app/models/feedback.rb"... | 1,289 |
Determine whether the {function_name} code is vulnerable or not. | [
"<% cache [note, note.user] do %>\n <article class='status'>\n <%= author_picture note %>",
" <div class='p-name entry-title e-content entry-content article'><%= raw note.html(:body) %></div>",
" <footer>\n <small>\n <%= link_to_permalink(note, display_date_and_time(note.published_at)) %> ... | [
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [247, 46, 19, 9, 4, 3, 10, 5, 6, 181, 400, 264, 162, 257, 91, 3, 9], "buggy_code_start_loc": [242, 5, 13, 8, 2, 2, 9, 4, 5, 162, 400, 260, 147, 257, 91, 2, 8], "filenames": ["publify_core/app/helpers/base_helper.rb", "publify_core/app/models/content_base.rb", "publify_core/app/models/feedback.rb"... | 1,289 |
Determine whether the {function_name} code is vulnerable or not. | [
"<% cache [note, note.user] do %>\n <article class='status'>\n <%= author_picture note %>",
" <div class='p-name entry-title e-content entry-content article'><%= note.html(:body) %></div>",
" <footer>\n <small>\n <%= link_to_permalink(note, display_date_and_time(note.published_at)) %> |\n ... | [
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [247, 46, 19, 9, 4, 3, 10, 5, 6, 181, 400, 264, 162, 257, 91, 3, 9], "buggy_code_start_loc": [242, 5, 13, 8, 2, 2, 9, 4, 5, 162, 400, 260, 147, 257, 91, 2, 8], "filenames": ["publify_core/app/helpers/base_helper.rb", "publify_core/app/models/content_base.rb", "publify_core/app/models/feedback.rb"... | 1,289 |
Determine whether the {function_name} code is vulnerable or not. | [
"<div class=\"hfeed\">\n <% for note in @notes %>\n <div class='h-entry hentry h-as-note'>\n <article>",
" <p class='p-name entry-title e-content entry-content article'><%= raw note.html(:body) %></p>",
" <footer>\n <small><%= link_to_permalink(note, display_date_and_time(note.published_at... | [
1,
0,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [247, 46, 19, 9, 4, 3, 10, 5, 6, 181, 400, 264, 162, 257, 91, 3, 9], "buggy_code_start_loc": [242, 5, 13, 8, 2, 2, 9, 4, 5, 162, 400, 260, 147, 257, 91, 2, 8], "filenames": ["publify_core/app/helpers/base_helper.rb", "publify_core/app/models/content_base.rb", "publify_core/app/models/feedback.rb"... | 1,289 |
Determine whether the {function_name} code is vulnerable or not. | [
"<div class=\"hfeed\">\n <% for note in @notes %>\n <div class='h-entry hentry h-as-note'>\n <article>",
" <p class='p-name entry-title e-content entry-content article'><%= note.html(:body) %></p>",
" <footer>\n <small><%= link_to_permalink(note, display_date_and_time(note.published_at)) %... | [
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [247, 46, 19, 9, 4, 3, 10, 5, 6, 181, 400, 264, 162, 257, 91, 3, 9], "buggy_code_start_loc": [242, 5, 13, 8, 2, 2, 9, 4, 5, 162, 400, 260, 147, 257, 91, 2, 8], "filenames": ["publify_core/app/helpers/base_helper.rb", "publify_core/app/models/content_base.rb", "publify_core/app/models/feedback.rb"... | 1,289 |
Determine whether the {function_name} code is vulnerable or not. | [
"# frozen_string_literal: true",
"require \"rails_helper\"",
"class TestBrokenSidebar < Sidebar\n description \"Invalid test sidebar\"\n def parse_request(_contents, _request_params)\n raise \"I'm b0rked!\"\n end\nend",
"describe BaseHelper, type: :helper do\n describe \"#link_to_permalink\" do\n de... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [247, 46, 19, 9, 4, 3, 10, 5, 6, 181, 400, 264, 162, 257, 91, 3, 9], "buggy_code_start_loc": [242, 5, 13, 8, 2, 2, 9, 4, 5, 162, 400, 260, 147, 257, 91, 2, 8], "filenames": ["publify_core/app/helpers/base_helper.rb", "publify_core/app/models/content_base.rb", "publify_core/app/models/feedback.rb"... | 1,289 |
Determine whether the {function_name} code is vulnerable or not. | [
"# frozen_string_literal: true",
"require \"rails_helper\"",
"class TestBrokenSidebar < Sidebar\n description \"Invalid test sidebar\"\n def parse_request(_contents, _request_params)\n raise \"I'm b0rked!\"\n end\nend",
"describe BaseHelper, type: :helper do\n describe \"#link_to_permalink\" do\n de... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [247, 46, 19, 9, 4, 3, 10, 5, 6, 181, 400, 264, 162, 257, 91, 3, 9], "buggy_code_start_loc": [242, 5, 13, 8, 2, 2, 9, 4, 5, 162, 400, 260, 147, 257, 91, 2, 8], "filenames": ["publify_core/app/helpers/base_helper.rb", "publify_core/app/models/content_base.rb", "publify_core/app/models/feedback.rb"... | 1,289 |
Determine whether the {function_name} code is vulnerable or not. | [
"# frozen_string_literal: true",
"require \"rails_helper\"\nrequire \"timecop\"",
"describe Article, type: :model do\n let(:blog) { create(:blog) }",
" it \"test_content_fields\" do\n a = blog.articles.build\n assert_equal [:body, :extended], a.content_fields\n end",
" describe \"#permalink_url\" ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [247, 46, 19, 9, 4, 3, 10, 5, 6, 181, 400, 264, 162, 257, 91, 3, 9], "buggy_code_start_loc": [242, 5, 13, 8, 2, 2, 9, 4, 5, 162, 400, 260, 147, 257, 91, 2, 8], "filenames": ["publify_core/app/helpers/base_helper.rb", "publify_core/app/models/content_base.rb", "publify_core/app/models/feedback.rb"... | 1,289 |
Determine whether the {function_name} code is vulnerable or not. | [
"# frozen_string_literal: true",
"require \"rails_helper\"\nrequire \"timecop\"",
"describe Article, type: :model do\n let(:blog) { create(:blog) }",
" it \"test_content_fields\" do\n a = blog.articles.build\n assert_equal [:body, :extended], a.content_fields\n end",
" describe \"#permalink_url\" ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [247, 46, 19, 9, 4, 3, 10, 5, 6, 181, 400, 264, 162, 257, 91, 3, 9], "buggy_code_start_loc": [242, 5, 13, 8, 2, 2, 9, 4, 5, 162, 400, 260, 147, 257, 91, 2, 8], "filenames": ["publify_core/app/helpers/base_helper.rb", "publify_core/app/models/content_base.rb", "publify_core/app/models/feedback.rb"... | 1,289 |
Determine whether the {function_name} code is vulnerable or not. | [
"# frozen_string_literal: true",
"require \"rails_helper\"\nrequire \"publify_core/testing_support/dns_mock\"",
"describe Comment, type: :model do\n let(:blog) { build_stubbed :blog }",
" let(:published_article) { build_stubbed(:article, published_at: 1.hour.ago, blog: blog) }",
" def valid_comment(optio... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [247, 46, 19, 9, 4, 3, 10, 5, 6, 181, 400, 264, 162, 257, 91, 3, 9], "buggy_code_start_loc": [242, 5, 13, 8, 2, 2, 9, 4, 5, 162, 400, 260, 147, 257, 91, 2, 8], "filenames": ["publify_core/app/helpers/base_helper.rb", "publify_core/app/models/content_base.rb", "publify_core/app/models/feedback.rb"... | 1,289 |
Determine whether the {function_name} code is vulnerable or not. | [
"# frozen_string_literal: true",
"require \"rails_helper\"\nrequire \"publify_core/testing_support/dns_mock\"",
"describe Comment, type: :model do\n let(:blog) { build_stubbed :blog }",
" let(:published_article) { build_stubbed(:article, published_at: 1.hour.ago, blog: blog) }",
" def valid_comment(optio... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [247, 46, 19, 9, 4, 3, 10, 5, 6, 181, 400, 264, 162, 257, 91, 3, 9], "buggy_code_start_loc": [242, 5, 13, 8, 2, 2, 9, 4, 5, 162, 400, 260, 147, 257, 91, 2, 8], "filenames": ["publify_core/app/helpers/base_helper.rb", "publify_core/app/models/content_base.rb", "publify_core/app/models/feedback.rb"... | 1,289 |
Determine whether the {function_name} code is vulnerable or not. | [
"# frozen_string_literal: true",
"require \"rails_helper\"",
"describe Content, type: :model do\n context \"with a simple blog\" do\n describe \"#author=\" do\n let(:content) { described_class.new }",
" before { content.author = user }",
" context \"with a User as author\" do\n let... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [247, 46, 19, 9, 4, 3, 10, 5, 6, 181, 400, 264, 162, 257, 91, 3, 9], "buggy_code_start_loc": [242, 5, 13, 8, 2, 2, 9, 4, 5, 162, 400, 260, 147, 257, 91, 2, 8], "filenames": ["publify_core/app/helpers/base_helper.rb", "publify_core/app/models/content_base.rb", "publify_core/app/models/feedback.rb"... | 1,289 |
Determine whether the {function_name} code is vulnerable or not. | [
"# frozen_string_literal: true",
"require \"rails_helper\"",
"describe Content, type: :model do\n context \"with a simple blog\" do\n describe \"#author=\" do\n let(:content) { described_class.new }",
" before { content.author = user }",
" context \"with a User as author\" do\n let... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [247, 46, 19, 9, 4, 3, 10, 5, 6, 181, 400, 264, 162, 257, 91, 3, 9], "buggy_code_start_loc": [242, 5, 13, 8, 2, 2, 9, 4, 5, 162, 400, 260, 147, 257, 91, 2, 8], "filenames": ["publify_core/app/helpers/base_helper.rb", "publify_core/app/models/content_base.rb", "publify_core/app/models/feedback.rb"... | 1,289 |
Determine whether the {function_name} code is vulnerable or not. | [
"# frozen_string_literal: true",
"require \"rails_helper\"",
"describe Note, type: :model do\n context \"with a simple blog\" do\n let!(:blog) { create(:blog) }",
" describe \"validations\" do\n it { expect(build(:note)).to be_valid }\n it { expect(build(:note).redirect).to be_blank }\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,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [247, 46, 19, 9, 4, 3, 10, 5, 6, 181, 400, 264, 162, 257, 91, 3, 9], "buggy_code_start_loc": [242, 5, 13, 8, 2, 2, 9, 4, 5, 162, 400, 260, 147, 257, 91, 2, 8], "filenames": ["publify_core/app/helpers/base_helper.rb", "publify_core/app/models/content_base.rb", "publify_core/app/models/feedback.rb"... | 1,289 |
Determine whether the {function_name} code is vulnerable or not. | [
"# frozen_string_literal: true",
"require \"rails_helper\"",
"describe Note, type: :model do\n context \"with a simple blog\" do\n let!(:blog) { create(:blog) }",
" describe \"validations\" do\n it { expect(build(:note)).to be_valid }\n it { expect(build(:note).redirect).to be_blank }\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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [247, 46, 19, 9, 4, 3, 10, 5, 6, 181, 400, 264, 162, 257, 91, 3, 9], "buggy_code_start_loc": [242, 5, 13, 8, 2, 2, 9, 4, 5, 162, 400, 260, 147, 257, 91, 2, 8], "filenames": ["publify_core/app/helpers/base_helper.rb", "publify_core/app/models/content_base.rb", "publify_core/app/models/feedback.rb"... | 1,289 |
Determine whether the {function_name} code is vulnerable or not. | [
"# frozen_string_literal: true",
"require \"rails_helper\"",
"describe Page, type: :model do\n let!(:blog) { create(:blog) }",
" describe \"before save\" do\n context \"when saving a page without a name\" do\n let(:page) { create(:page, name: nil, title: \"A title\") }",
" it \"sets the name ... | [
1,
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": [247, 46, 19, 9, 4, 3, 10, 5, 6, 181, 400, 264, 162, 257, 91, 3, 9], "buggy_code_start_loc": [242, 5, 13, 8, 2, 2, 9, 4, 5, 162, 400, 260, 147, 257, 91, 2, 8], "filenames": ["publify_core/app/helpers/base_helper.rb", "publify_core/app/models/content_base.rb", "publify_core/app/models/feedback.rb"... | 1,289 |
Determine whether the {function_name} code is vulnerable or not. | [
"# frozen_string_literal: true",
"require \"rails_helper\"",
"describe Page, type: :model do\n let!(:blog) { create(:blog) }",
" describe \"before save\" do\n context \"when saving a page without a name\" do\n let(:page) { create(:page, name: nil, title: \"A title\") }",
" it \"sets the name ... | [
1,
1,
1,
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": [247, 46, 19, 9, 4, 3, 10, 5, 6, 181, 400, 264, 162, 257, 91, 3, 9], "buggy_code_start_loc": [242, 5, 13, 8, 2, 2, 9, 4, 5, 162, 400, 260, 147, 257, 91, 2, 8], "filenames": ["publify_core/app/helpers/base_helper.rb", "publify_core/app/models/content_base.rb", "publify_core/app/models/feedback.rb"... | 1,289 |
Determine whether the {function_name} code is vulnerable or not. | [
"<h1 class='page-header'><%= link_to_permalink(@page, @page.title) %></h1>",
"<%= raw @page.html %>"
] | [
1,
0
] | PreciseBugs | {"buggy_code_end_loc": [247, 46, 19, 9, 4, 3, 10, 5, 6, 181, 400, 264, 162, 257, 91, 3, 9], "buggy_code_start_loc": [242, 5, 13, 8, 2, 2, 9, 4, 5, 162, 400, 260, 147, 257, 91, 2, 8], "filenames": ["publify_core/app/helpers/base_helper.rb", "publify_core/app/models/content_base.rb", "publify_core/app/models/feedback.rb"... | 1,289 |
Determine whether the {function_name} code is vulnerable or not. | [
"<h1 class='page-header'><%= link_to_permalink(@page, @page.title) %></h1>",
"<%= @page.html %>"
] | [
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [247, 46, 19, 9, 4, 3, 10, 5, 6, 181, 400, 264, 162, 257, 91, 3, 9], "buggy_code_start_loc": [242, 5, 13, 8, 2, 2, 9, 4, 5, 162, 400, 260, 147, 257, 91, 2, 8], "filenames": ["publify_core/app/helpers/base_helper.rb", "publify_core/app/models/content_base.rb", "publify_core/app/models/feedback.rb"... | 1,289 |
Determine whether the {function_name} code is vulnerable or not. | [
"<li class='list-unstyled' id=\"comment-<%= comment.id %>\">\n <%= avatar_tag(email: comment.email, url: comment.url, class: 'img-circle pull-left gravatar') %>\n <div class='content'>\n <h4>\n <%= t('.by') %> <%= comment.url.blank? ? h(comment.author) : nofollowified_link_to(h(comment.author), comment.ur... | [
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [247, 46, 19, 9, 4, 3, 10, 5, 6, 181, 400, 264, 162, 257, 91, 3, 9], "buggy_code_start_loc": [242, 5, 13, 8, 2, 2, 9, 4, 5, 162, 400, 260, 147, 257, 91, 2, 8], "filenames": ["publify_core/app/helpers/base_helper.rb", "publify_core/app/models/content_base.rb", "publify_core/app/models/feedback.rb"... | 1,289 |
Determine whether the {function_name} code is vulnerable or not. | [
"<li class='list-unstyled' id=\"comment-<%= comment.id %>\">\n <%= avatar_tag(email: comment.email, url: comment.url, class: 'img-circle pull-left gravatar') %>\n <div class='content'>\n <h4>\n <%= t('.by') %> <%= comment.url.blank? ? h(comment.author) : nofollowified_link_to(h(comment.author), comment.ur... | [
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [247, 46, 19, 9, 4, 3, 10, 5, 6, 181, 400, 264, 162, 257, 91, 3, 9], "buggy_code_start_loc": [242, 5, 13, 8, 2, 2, 9, 4, 5, 162, 400, 260, 147, 257, 91, 2, 8], "filenames": ["publify_core/app/helpers/base_helper.rb", "publify_core/app/models/content_base.rb", "publify_core/app/models/feedback.rb"... | 1,289 |
Determine whether the {function_name} code is vulnerable or not. | [
"// SPDX-License-Identifier: GPL-2.0\n/*\n * Copyright (c) 2000-2002,2005 Silicon Graphics, Inc.\n * All Rights Reserved.\n */\n#include \"xfs.h\"\n#include \"xfs_fs.h\"\n#include \"xfs_format.h\"\n#include \"xfs_log_format.h\"\n#include \"xfs_shared.h\"\n#include \"xfs_trans_resv.h\"\n#include \"xfs_bit.h\"\n#incl... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [2882], "buggy_code_start_loc": [2860], "filenames": ["fs/xfs/libxfs/xfs_alloc.c"], "fixing_code_end_loc": [2899], "fixing_code_start_loc": [2861], "message": "An issue was discovered in xfs_agf_verify in fs/xfs/libxfs/xfs_alloc.c in the Linux kernel through 5.6.10. Attackers may trigger a sync o... | 1,290 |
Determine whether the {function_name} code is vulnerable or not. | [
"// SPDX-License-Identifier: GPL-2.0\n/*\n * Copyright (c) 2000-2002,2005 Silicon Graphics, Inc.\n * All Rights Reserved.\n */\n#include \"xfs.h\"\n#include \"xfs_fs.h\"\n#include \"xfs_format.h\"\n#include \"xfs_log_format.h\"\n#include \"xfs_shared.h\"\n#include \"xfs_trans_resv.h\"\n#include \"xfs_bit.h\"\n#incl... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [2882], "buggy_code_start_loc": [2860], "filenames": ["fs/xfs/libxfs/xfs_alloc.c"], "fixing_code_end_loc": [2899], "fixing_code_start_loc": [2861], "message": "An issue was discovered in xfs_agf_verify in fs/xfs/libxfs/xfs_alloc.c in the Linux kernel through 5.6.10. Attackers may trigger a sync o... | 1,290 |
Determine whether the {function_name} code is vulnerable or not. | [
"// SPDX-License-Identifier: GPL-2.0-or-later\n/*******************************************************************************\n * Filename: target_core_xcopy.c\n *\n * This file contains support for SPC-4 Extended-Copy offload with generic\n * TCM backends.\n *\n * Copyright (c) 2011-2013 Datera, Inc. All rights ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
0,
1,
0,
0,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
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": [406, 29], "buggy_code_start_loc": [49, 29], "filenames": ["drivers/target/target_core_xcopy.c", "drivers/target/target_core_xcopy.h"], "fixing_code_end_loc": [427, 31], "fixing_code_start_loc": [49, 30], "message": "In drivers/target/target_core_xcopy.c in the Linux kernel before 5.10.7, insuffi... | 1,291 |
Determine whether the {function_name} code is vulnerable or not. | [
"// SPDX-License-Identifier: GPL-2.0-or-later\n/*******************************************************************************\n * Filename: target_core_xcopy.c\n *\n * This file contains support for SPC-4 Extended-Copy offload with generic\n * TCM backends.\n *\n * Copyright (c) 2011-2013 Datera, Inc. All rights ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [406, 29], "buggy_code_start_loc": [49, 29], "filenames": ["drivers/target/target_core_xcopy.c", "drivers/target/target_core_xcopy.h"], "fixing_code_end_loc": [427, 31], "fixing_code_start_loc": [49, 30], "message": "In drivers/target/target_core_xcopy.c in the Linux kernel before 5.10.7, insuffi... | 1,291 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* SPDX-License-Identifier: GPL-2.0 */\n#include <target/target_core_base.h>",
"#define XCOPY_HDR_LEN\t\t\t16\n#define XCOPY_TARGET_DESC_LEN\t\t32\n#define XCOPY_SEGMENT_DESC_LEN\t\t28\n#define XCOPY_NAA_IEEE_REGEX_LEN\t16\n#define XCOPY_MAX_SECTORS\t\t4096",
"/*\n * SPC4r37 6.4.6.1\n * Table 150 — CSCD descri... | [
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [406, 29], "buggy_code_start_loc": [49, 29], "filenames": ["drivers/target/target_core_xcopy.c", "drivers/target/target_core_xcopy.h"], "fixing_code_end_loc": [427, 31], "fixing_code_start_loc": [49, 30], "message": "In drivers/target/target_core_xcopy.c in the Linux kernel before 5.10.7, insuffi... | 1,291 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* SPDX-License-Identifier: GPL-2.0 */\n#include <target/target_core_base.h>",
"#define XCOPY_HDR_LEN\t\t\t16\n#define XCOPY_TARGET_DESC_LEN\t\t32\n#define XCOPY_SEGMENT_DESC_LEN\t\t28\n#define XCOPY_NAA_IEEE_REGEX_LEN\t16\n#define XCOPY_MAX_SECTORS\t\t4096",
"/*\n * SPC4r37 6.4.6.1\n * Table 150 — CSCD descri... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [406, 29], "buggy_code_start_loc": [49, 29], "filenames": ["drivers/target/target_core_xcopy.c", "drivers/target/target_core_xcopy.h"], "fixing_code_end_loc": [427, 31], "fixing_code_start_loc": [49, 30], "message": "In drivers/target/target_core_xcopy.c in the Linux kernel before 5.10.7, insuffi... | 1,291 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*-------------------------------------------------------------------------*/\n/**\n @file iniparser.c\n @author N. Devillard\n @brief Parser for ini files.\n*/\n/*--------------------------------------------------------------------------*/\n/*---------------------------- Includes ---------------------... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [714, 300, 190], "buggy_code_start_loc": [629, 32, 189], "filenames": ["src/iniparser/iniparser.c", "src/iniparser/iniparser.h", "src/parse.c"], "fixing_code_end_loc": [722, 305, 190], "fixing_code_start_loc": [629, 33, 189], "message": "GNS3 ubridge through 0.9.18 on macOS, as used in GNS3 serve... | 1,292 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*-------------------------------------------------------------------------*/\n/**\n @file iniparser.c\n @author N. Devillard\n @brief Parser for ini files.\n*/\n/*--------------------------------------------------------------------------*/\n/*---------------------------- Includes ---------------------... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [714, 300, 190], "buggy_code_start_loc": [629, 32, 189], "filenames": ["src/iniparser/iniparser.c", "src/iniparser/iniparser.h", "src/parse.c"], "fixing_code_end_loc": [722, 305, 190], "fixing_code_start_loc": [629, 33, 189], "message": "GNS3 ubridge through 0.9.18 on macOS, as used in GNS3 serve... | 1,292 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*-------------------------------------------------------------------------*/\n/**\n @file iniparser.h\n @author N. Devillard\n @brief Parser for ini files.\n*/\n/*--------------------------------------------------------------------------*/",
"#ifndef _INIPARSER_H_\n#define _INIPARSER_H_",
"/*-----... | [
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,
1,
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,
0,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [714, 300, 190], "buggy_code_start_loc": [629, 32, 189], "filenames": ["src/iniparser/iniparser.c", "src/iniparser/iniparser.h", "src/parse.c"], "fixing_code_end_loc": [722, 305, 190], "fixing_code_start_loc": [629, 33, 189], "message": "GNS3 ubridge through 0.9.18 on macOS, as used in GNS3 serve... | 1,292 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*-------------------------------------------------------------------------*/\n/**\n @file iniparser.h\n @author N. Devillard\n @brief Parser for ini files.\n*/\n/*--------------------------------------------------------------------------*/",
"#ifndef _INIPARSER_H_\n#define _INIPARSER_H_",
"/*-----... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [714, 300, 190], "buggy_code_start_loc": [629, 32, 189], "filenames": ["src/iniparser/iniparser.c", "src/iniparser/iniparser.h", "src/parse.c"], "fixing_code_end_loc": [722, 305, 190], "fixing_code_start_loc": [629, 33, 189], "message": "GNS3 ubridge through 0.9.18 on macOS, as used in GNS3 serve... | 1,292 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * This file is part of ubridge, a program to bridge network interfaces\n * to UDP tunnels.\n *\n * Copyright (C) 2015 GNS3 Technologies Inc.\n *\n * ubridge is free software: you can redistribute it and/or modify it\n * under the terms of the GNU General Public License as published by\n * the Free... | [
1,
1,
1,
1,
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
] | PreciseBugs | {"buggy_code_end_loc": [714, 300, 190], "buggy_code_start_loc": [629, 32, 189], "filenames": ["src/iniparser/iniparser.c", "src/iniparser/iniparser.h", "src/parse.c"], "fixing_code_end_loc": [722, 305, 190], "fixing_code_start_loc": [629, 33, 189], "message": "GNS3 ubridge through 0.9.18 on macOS, as used in GNS3 serve... | 1,292 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * This file is part of ubridge, a program to bridge network interfaces\n * to UDP tunnels.\n *\n * Copyright (C) 2015 GNS3 Technologies Inc.\n *\n * ubridge is free software: you can redistribute it and/or modify it\n * under the terms of the GNU General Public License as published by\n * the Free... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [714, 300, 190], "buggy_code_start_loc": [629, 32, 189], "filenames": ["src/iniparser/iniparser.c", "src/iniparser/iniparser.h", "src/parse.c"], "fixing_code_end_loc": [722, 305, 190], "fixing_code_start_loc": [629, 33, 189], "message": "GNS3 ubridge through 0.9.18 on macOS, as used in GNS3 serve... | 1,292 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * This file is part of the KeepKey project.\n *\n * Copyright (C) 2015 KeepKey LLC\n *\n * This library is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\... | [
1,
1,
1,
1,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [534], "buggy_code_start_loc": [38], "filenames": ["lib/firmware/recovery_cipher.c"], "fixing_code_end_loc": [561], "fixing_code_start_loc": [39], "message": "Insufficient checks in the finite state machine of the ShapeShift KeepKey hardware wallet before firmware 6.2.2 allow a partial reset of c... | 1,293 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * This file is part of the KeepKey project.\n *\n * Copyright (C) 2015 KeepKey LLC\n *\n * This library is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [534], "buggy_code_start_loc": [38], "filenames": ["lib/firmware/recovery_cipher.c"], "fixing_code_end_loc": [561], "fixing_code_start_loc": [39], "message": "Insufficient checks in the finite state machine of the ShapeShift KeepKey hardware wallet before firmware 6.2.2 allow a partial reset of c... | 1,293 |
Determine whether the {function_name} code is vulnerable or not. | [
"# frozen_string_literal: true\nrequire 'rubygems'\nrequire 'rubygems/request'\nrequire 'rubygems/uri_formatter'\nrequire 'rubygems/user_interaction'\nrequire 'rubygems/request/connection_pools'\nrequire 'resolv'",
"##\n# RemoteFetcher handles the details of fetching gems and gem information from\n# a remote sour... | [
1,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [114, 243], "buggy_code_start_loc": [113, 243], "filenames": ["lib/rubygems/remote_fetcher.rb", "test/rubygems/test_gem_remote_fetcher.rb"], "fixing_code_end_loc": [114, 259], "fixing_code_start_loc": [113, 244], "message": "RubyGems version 2.6.12 and earlier is vulnerable to a DNS hijacking vul... | 1,294 |
Determine whether the {function_name} code is vulnerable or not. | [
"# frozen_string_literal: true\nrequire 'rubygems'\nrequire 'rubygems/request'\nrequire 'rubygems/uri_formatter'\nrequire 'rubygems/user_interaction'\nrequire 'rubygems/request/connection_pools'\nrequire 'resolv'",
"##\n# RemoteFetcher handles the details of fetching gems and gem information from\n# a remote sour... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [114, 243], "buggy_code_start_loc": [113, 243], "filenames": ["lib/rubygems/remote_fetcher.rb", "test/rubygems/test_gem_remote_fetcher.rb"], "fixing_code_end_loc": [114, 259], "fixing_code_start_loc": [113, 244], "message": "RubyGems version 2.6.12 and earlier is vulnerable to a DNS hijacking vul... | 1,294 |
Determine whether the {function_name} code is vulnerable or not. | [
"# frozen_string_literal: true\nrequire 'rubygems/test_case'",
"require 'webrick'\nbegin\n require 'webrick/https'\nrescue LoadError => e\n raise unless (e.respond_to?(:path) && e.path == 'openssl') ||\n e.message =~ / -- openssl$/\nend",
"require 'rubygems/remote_fetcher'\nrequire 'rubygems/pac... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | PreciseBugs | {"buggy_code_end_loc": [114, 243], "buggy_code_start_loc": [113, 243], "filenames": ["lib/rubygems/remote_fetcher.rb", "test/rubygems/test_gem_remote_fetcher.rb"], "fixing_code_end_loc": [114, 259], "fixing_code_start_loc": [113, 244], "message": "RubyGems version 2.6.12 and earlier is vulnerable to a DNS hijacking vul... | 1,294 |
Determine whether the {function_name} code is vulnerable or not. | [
"# frozen_string_literal: true\nrequire 'rubygems/test_case'",
"require 'webrick'\nbegin\n require 'webrick/https'\nrescue LoadError => e\n raise unless (e.respond_to?(:path) && e.path == 'openssl') ||\n e.message =~ / -- openssl$/\nend",
"require 'rubygems/remote_fetcher'\nrequire 'rubygems/pac... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [114, 243], "buggy_code_start_loc": [113, 243], "filenames": ["lib/rubygems/remote_fetcher.rb", "test/rubygems/test_gem_remote_fetcher.rb"], "fixing_code_end_loc": [114, 259], "fixing_code_start_loc": [113, 244], "message": "RubyGems version 2.6.12 and earlier is vulnerable to a DNS hijacking vul... | 1,294 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* SPDX-License-Identifier: GPL-2.0 */\n#ifndef _ASM_X86_UACCESS_H\n#define _ASM_X86_UACCESS_H\n/*\n * User space memory access functions\n */\n#include <linux/compiler.h>\n#include <linux/kasan-checks.h>\n#include <linux/string.h>\n#include <asm/asm.h>\n#include <asm/page.h>\n#include <asm/smap.h>\n#include <asm/... | [
1,
1,
1,
1,
1,
1,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [393, 53, 179], "buggy_code_start_loc": [381, 26, 68], "filenames": ["arch/x86/include/asm/uaccess.h", "arch/x86/include/asm/uaccess_32.h", "arch/x86/include/asm/uaccess_64.h"], "fixing_code_end_loc": [380, 25, 75], "fixing_code_start_loc": [380, 25, 68], "message": "Copy_from_user on 64-bit vers... | 1,295 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* SPDX-License-Identifier: GPL-2.0 */\n#ifndef _ASM_X86_UACCESS_H\n#define _ASM_X86_UACCESS_H\n/*\n * User space memory access functions\n */\n#include <linux/compiler.h>\n#include <linux/kasan-checks.h>\n#include <linux/string.h>\n#include <asm/asm.h>\n#include <asm/page.h>\n#include <asm/smap.h>\n#include <asm/... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [393, 53, 179], "buggy_code_start_loc": [381, 26, 68], "filenames": ["arch/x86/include/asm/uaccess.h", "arch/x86/include/asm/uaccess_32.h", "arch/x86/include/asm/uaccess_64.h"], "fixing_code_end_loc": [380, 25, 75], "fixing_code_start_loc": [380, 25, 68], "message": "Copy_from_user on 64-bit vers... | 1,295 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* SPDX-License-Identifier: GPL-2.0 */\n#ifndef _ASM_X86_UACCESS_32_H\n#define _ASM_X86_UACCESS_32_H",
"/*\n * User space memory access functions\n */\n#include <linux/string.h>\n#include <asm/asm.h>\n#include <asm/page.h>",
"unsigned long __must_check __copy_user_ll\n\t\t(void *to, const void *from, unsigned ... | [
1,
1,
1,
1,
1,
0,
0,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [393, 53, 179], "buggy_code_start_loc": [381, 26, 68], "filenames": ["arch/x86/include/asm/uaccess.h", "arch/x86/include/asm/uaccess_32.h", "arch/x86/include/asm/uaccess_64.h"], "fixing_code_end_loc": [380, 25, 75], "fixing_code_start_loc": [380, 25, 68], "message": "Copy_from_user on 64-bit vers... | 1,295 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* SPDX-License-Identifier: GPL-2.0 */\n#ifndef _ASM_X86_UACCESS_32_H\n#define _ASM_X86_UACCESS_32_H",
"/*\n * User space memory access functions\n */\n#include <linux/string.h>\n#include <asm/asm.h>\n#include <asm/page.h>",
"unsigned long __must_check __copy_user_ll\n\t\t(void *to, const void *from, unsigned ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [393, 53, 179], "buggy_code_start_loc": [381, 26, 68], "filenames": ["arch/x86/include/asm/uaccess.h", "arch/x86/include/asm/uaccess_32.h", "arch/x86/include/asm/uaccess_64.h"], "fixing_code_end_loc": [380, 25, 75], "fixing_code_start_loc": [380, 25, 68], "message": "Copy_from_user on 64-bit vers... | 1,295 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* SPDX-License-Identifier: GPL-2.0 */\n#ifndef _ASM_X86_UACCESS_64_H\n#define _ASM_X86_UACCESS_64_H",
"/*\n * User space memory access functions\n */\n#include <linux/compiler.h>\n#include <linux/lockdep.h>\n#include <linux/kasan-checks.h>\n#include <asm/alternative.h>\n#include <asm/cpufeatures.h>\n#include <a... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
1,
1,
0,
0,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [393, 53, 179], "buggy_code_start_loc": [381, 26, 68], "filenames": ["arch/x86/include/asm/uaccess.h", "arch/x86/include/asm/uaccess_32.h", "arch/x86/include/asm/uaccess_64.h"], "fixing_code_end_loc": [380, 25, 75], "fixing_code_start_loc": [380, 25, 68], "message": "Copy_from_user on 64-bit vers... | 1,295 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* SPDX-License-Identifier: GPL-2.0 */\n#ifndef _ASM_X86_UACCESS_64_H\n#define _ASM_X86_UACCESS_64_H",
"/*\n * User space memory access functions\n */\n#include <linux/compiler.h>\n#include <linux/lockdep.h>\n#include <linux/kasan-checks.h>\n#include <asm/alternative.h>\n#include <asm/cpufeatures.h>\n#include <a... | [
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": [393, 53, 179], "buggy_code_start_loc": [381, 26, 68], "filenames": ["arch/x86/include/asm/uaccess.h", "arch/x86/include/asm/uaccess_32.h", "arch/x86/include/asm/uaccess_64.h"], "fixing_code_end_loc": [380, 25, 75], "fixing_code_start_loc": [380, 25, 68], "message": "Copy_from_user on 64-bit vers... | 1,295 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* global WIKI */",
"const Model = require('objection').Model\nconst moment = require('moment')\nconst path = require('path')\nconst fs = require('fs-extra')\nconst _ = require('lodash')\nconst assetHelper = require('../helpers/asset')\nconst Promise = require('bluebird')",
"/**\n * Users model\n */\nmodule.ex... | [
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
] | PreciseBugs | {"buggy_code_end_loc": [104], "buggy_code_start_loc": [103], "filenames": ["server/models/assets.js"], "fixing_code_end_loc": [110], "fixing_code_start_loc": [103], "message": "Wiki.js is a wiki app built on node.js. Wiki.js 2.5.263 and earlier is vulnerable to stored cross-site scripting through a SVG file upload made... | 1,296 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* global WIKI */",
"const Model = require('objection').Model\nconst moment = require('moment')\nconst path = require('path')\nconst fs = require('fs-extra')\nconst _ = require('lodash')\nconst assetHelper = require('../helpers/asset')\nconst Promise = require('bluebird')",
"/**\n * Users model\n */\nmodule.ex... | [
1,
1,
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": [104], "buggy_code_start_loc": [103], "filenames": ["server/models/assets.js"], "fixing_code_end_loc": [110], "fixing_code_start_loc": [103], "message": "Wiki.js is a wiki app built on node.js. Wiki.js 2.5.263 and earlier is vulnerable to stored cross-site scripting through a SVG file upload made... | 1,296 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * Class Hotlinking_Controller\n *\n * @link https://github.com/googleforcreators/web-stories-wp\n *\n * @copyright 2021 Google LLC\n * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0\n */",
"/**\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, V... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [678, 575], "buggy_code_start_loc": [675, 575], "filenames": ["includes/REST_API/Hotlinking_Controller.php", "tests/phpunit/integration/tests/REST_API/Hotlinking_Controller.php"], "fixing_code_end_loc": [690, 579], "fixing_code_start_loc": [675, 576], "message": "The Web Stories plugin for WordPr... | 1,297 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * Class Hotlinking_Controller\n *\n * @link https://github.com/googleforcreators/web-stories-wp\n *\n * @copyright 2021 Google LLC\n * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0\n */",
"/**\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, V... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [678, 575], "buggy_code_start_loc": [675, 575], "filenames": ["includes/REST_API/Hotlinking_Controller.php", "tests/phpunit/integration/tests/REST_API/Hotlinking_Controller.php"], "fixing_code_end_loc": [690, 579], "fixing_code_start_loc": [675, 576], "message": "The Web Stories plugin for WordPr... | 1,297 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * Copyright 2020 Google LLC\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 * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by appl... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [678, 575], "buggy_code_start_loc": [675, 575], "filenames": ["includes/REST_API/Hotlinking_Controller.php", "tests/phpunit/integration/tests/REST_API/Hotlinking_Controller.php"], "fixing_code_end_loc": [690, 579], "fixing_code_start_loc": [675, 576], "message": "The Web Stories plugin for WordPr... | 1,297 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * Copyright 2020 Google LLC\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 * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by appl... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [678, 575], "buggy_code_start_loc": [675, 575], "filenames": ["includes/REST_API/Hotlinking_Controller.php", "tests/phpunit/integration/tests/REST_API/Hotlinking_Controller.php"], "fixing_code_end_loc": [690, 579], "fixing_code_start_loc": [675, 576], "message": "The Web Stories plugin for WordPr... | 1,297 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * This file and its contents are supplied under the terms of the\n * Common Development and Distribution License (\"CDDL\"), version 1.0.\n * You may only use this file in accordance with the terms of version\n * 1.0 of the CDDL.\n *\n * A full copy of the text of the CDDL should have accompanied this\n * sou... | [
1,
1,
0,
1,
1,
1,
1,
0,
1,
1,
1,
0,
1,
0,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [62, 127, 839, 675], "buggy_code_start_loc": [13, 23, 23, 24], "filenames": ["usr/src/uts/common/fs/smbsrv/smb2_flush.c", "usr/src/uts/common/fs/smbsrv/smb_flush.c", "usr/src/uts/common/fs/smbsrv/smb_ofile.c", "usr/src/uts/common/smbsrv/smb_kproto.h"], "fixing_code_end_loc": [56, 109, 862, 678], ... | 1,298 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * This file and its contents are supplied under the terms of the\n * Common Development and Distribution License (\"CDDL\"), version 1.0.\n * You may only use this file in accordance with the terms of version\n * 1.0 of the CDDL.\n *\n * A full copy of the text of the CDDL should have accompanied this\n * sou... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [62, 127, 839, 675], "buggy_code_start_loc": [13, 23, 23, 24], "filenames": ["usr/src/uts/common/fs/smbsrv/smb2_flush.c", "usr/src/uts/common/fs/smbsrv/smb_flush.c", "usr/src/uts/common/fs/smbsrv/smb_ofile.c", "usr/src/uts/common/smbsrv/smb_kproto.h"], "fixing_code_end_loc": [56, 109, 862, 678], ... | 1,298 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * CDDL HEADER START\n *\n * The contents of this file are subject to the terms of the\n * Common Development and Distribution License (the \"License\").\n * You may not use this file except in compliance with the License.\n *\n * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE\n * or http:... | [
1,
0,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
1,
0,
0,
0
] | PreciseBugs | {"buggy_code_end_loc": [62, 127, 839, 675], "buggy_code_start_loc": [13, 23, 23, 24], "filenames": ["usr/src/uts/common/fs/smbsrv/smb2_flush.c", "usr/src/uts/common/fs/smbsrv/smb_flush.c", "usr/src/uts/common/fs/smbsrv/smb_ofile.c", "usr/src/uts/common/smbsrv/smb_kproto.h"], "fixing_code_end_loc": [56, 109, 862, 678], ... | 1,298 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * CDDL HEADER START\n *\n * The contents of this file are subject to the terms of the\n * Common Development and Distribution License (the \"License\").\n * You may not use this file except in compliance with the License.\n *\n * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE\n * or http:... | [
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": [62, 127, 839, 675], "buggy_code_start_loc": [13, 23, 23, 24], "filenames": ["usr/src/uts/common/fs/smbsrv/smb2_flush.c", "usr/src/uts/common/fs/smbsrv/smb_flush.c", "usr/src/uts/common/fs/smbsrv/smb_ofile.c", "usr/src/uts/common/smbsrv/smb_kproto.h"], "fixing_code_end_loc": [56, 109, 862, 678], ... | 1,298 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * CDDL HEADER START\n *\n * The contents of this file are subject to the terms of the\n * Common Development and Distribution License (the \"License\").\n * You may not use this file except in compliance with the License.\n *\n * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE\n * or http:... | [
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [62, 127, 839, 675], "buggy_code_start_loc": [13, 23, 23, 24], "filenames": ["usr/src/uts/common/fs/smbsrv/smb2_flush.c", "usr/src/uts/common/fs/smbsrv/smb_flush.c", "usr/src/uts/common/fs/smbsrv/smb_ofile.c", "usr/src/uts/common/smbsrv/smb_kproto.h"], "fixing_code_end_loc": [56, 109, 862, 678], ... | 1,298 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * CDDL HEADER START\n *\n * The contents of this file are subject to the terms of the\n * Common Development and Distribution License (the \"License\").\n * You may not use this file except in compliance with the License.\n *\n * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE\n * or http:... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [62, 127, 839, 675], "buggy_code_start_loc": [13, 23, 23, 24], "filenames": ["usr/src/uts/common/fs/smbsrv/smb2_flush.c", "usr/src/uts/common/fs/smbsrv/smb_flush.c", "usr/src/uts/common/fs/smbsrv/smb_ofile.c", "usr/src/uts/common/smbsrv/smb_kproto.h"], "fixing_code_end_loc": [56, 109, 862, 678], ... | 1,298 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * CDDL HEADER START\n *\n * The contents of this file are subject to the terms of the\n * Common Development and Distribution License (the \"License\").\n * You may not use this file except in compliance with the License.\n *\n * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE\n * or http:... | [
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [62, 127, 839, 675], "buggy_code_start_loc": [13, 23, 23, 24], "filenames": ["usr/src/uts/common/fs/smbsrv/smb2_flush.c", "usr/src/uts/common/fs/smbsrv/smb_flush.c", "usr/src/uts/common/fs/smbsrv/smb_ofile.c", "usr/src/uts/common/smbsrv/smb_kproto.h"], "fixing_code_end_loc": [56, 109, 862, 678], ... | 1,298 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * CDDL HEADER START\n *\n * The contents of this file are subject to the terms of the\n * Common Development and Distribution License (the \"License\").\n * You may not use this file except in compliance with the License.\n *\n * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE\n * or http:... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [62, 127, 839, 675], "buggy_code_start_loc": [13, 23, 23, 24], "filenames": ["usr/src/uts/common/fs/smbsrv/smb2_flush.c", "usr/src/uts/common/fs/smbsrv/smb_flush.c", "usr/src/uts/common/fs/smbsrv/smb_ofile.c", "usr/src/uts/common/smbsrv/smb_kproto.h"], "fixing_code_end_loc": [56, 109, 862, 678], ... | 1,298 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */",
"#include \"hermes/VM/detail/IdentifierHashTable.h\"",
"#include \"hermes/VM/StringPrimitive.h\"",
"using namesp... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [140], "buggy_code_start_loc": [140], "filenames": ["lib/VM/detail/IdentifierHashTable.cpp"], "fixing_code_end_loc": [145], "fixing_code_start_loc": [141], "message": "A write-what-where condition in hermes caused by an integer overflow, prior to commit 5b6255ae049fa4641791e47fad994e8e8c4da374 al... | 1,299 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */",
"#include \"hermes/VM/detail/IdentifierHashTable.h\"",
"#include \"hermes/VM/StringPrimitive.h\"",
"using namesp... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [140], "buggy_code_start_loc": [140], "filenames": ["lib/VM/detail/IdentifierHashTable.cpp"], "fixing_code_end_loc": [145], "fixing_code_start_loc": [141], "message": "A write-what-where condition in hermes caused by an integer overflow, prior to commit 5b6255ae049fa4641791e47fad994e8e8c4da374 al... | 1,299 |
Determine whether the {function_name} code is vulnerable or not. | [
"'use strict';",
"var execSync = require('child_process').execSync;",
"var sizeOf = require('image-size');\nvar mkdirp = require('mkdirp-promise');\nvar rimraf = require('rimraf-then');\nvar fs = require('fs');\nvar path = require('path');",
"function tileLevel(inPath, outPath, zoom, tileSize, pattern, qualit... | [
1,
0,
1,
1,
0,
1,
0,
1,
1,
1,
0,
1,
0,
1,
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [77, 21], "buggy_code_start_loc": [2, 3], "filenames": ["index.js", "spec/image-tiler.spec.js"], "fixing_code_end_loc": [77, 21], "fixing_code_start_loc": [2, 3], "message": "This affects the package image-tiler before 2.0.2.", "other": {"cve": {"cisaActionDue": null, "cisaExploitAdd": null, "cis... | 1,300 |
Determine whether the {function_name} code is vulnerable or not. | [
"'use strict';",
"var execFileSync = require('child_process').execFileSync;",
"var sizeOf = require('image-size');\nvar mkdirp = require('mkdirp-promise');\nvar rimraf = require('rimraf-then');\nvar fs = require('fs');\nvar path = require('path');",
"function tileLevel(inPath, outPath, zoom, tileSize, pattern... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [77, 21], "buggy_code_start_loc": [2, 3], "filenames": ["index.js", "spec/image-tiler.spec.js"], "fixing_code_end_loc": [77, 21], "fixing_code_start_loc": [2, 3], "message": "This affects the package image-tiler before 2.0.2.", "other": {"cve": {"cisaActionDue": null, "cisaExploitAdd": null, "cis... | 1,300 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*global jasmine*/\nvar fs = require('fs');",
"var execSync = require('child_process').execSync;",
"var rimraf = require('rimraf');\nvar expectImagesToBeTheSame = require('./expectImagesToBeTheSame.helper.js').expectImagesToBeTheSame;",
"jasmine.DEFAULT_TIMEOUT_INTERVAL = 600000;\nvar tmpDir = process.env.TM... | [
1,
0,
1,
1,
1,
0,
1,
0,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [77, 21], "buggy_code_start_loc": [2, 3], "filenames": ["index.js", "spec/image-tiler.spec.js"], "fixing_code_end_loc": [77, 21], "fixing_code_start_loc": [2, 3], "message": "This affects the package image-tiler before 2.0.2.", "other": {"cve": {"cisaActionDue": null, "cisaExploitAdd": null, "cis... | 1,300 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*global jasmine*/\nvar fs = require('fs');",
"var execFileSync = require('child_process').execFileSync;",
"var rimraf = require('rimraf');\nvar expectImagesToBeTheSame = require('./expectImagesToBeTheSame.helper.js').expectImagesToBeTheSame;",
"jasmine.DEFAULT_TIMEOUT_INTERVAL = 600000;\nvar tmpDir = proces... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [77, 21], "buggy_code_start_loc": [2, 3], "filenames": ["index.js", "spec/image-tiler.spec.js"], "fixing_code_end_loc": [77, 21], "fixing_code_start_loc": [2, 3], "message": "This affects the package image-tiler before 2.0.2.", "other": {"cve": {"cisaActionDue": null, "cisaExploitAdd": null, "cis... | 1,300 |
Determine whether the {function_name} code is vulnerable or not. | [
"// SPDX-License-Identifier: BSD-2-Clause\n/*\n * Copyright (c) 2016, Linaro Limited\n * Copyright (c) 2014, STMicroelectronics International N.V.\n */",
"#include <arm.h>\n#include <assert.h>\n#include <kernel/panic.h>\n#include <kernel/spinlock.h>\n#include <kernel/tee_common.h>\n#include <kernel/tee_misc.h>\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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [779], "buggy_code_start_loc": [759], "filenames": ["core/arch/arm/mm/tee_mmu.c"], "fixing_code_end_loc": [780], "fixing_code_start_loc": [760], "message": "Linaro/OP-TEE OP-TEE 3.3.0 and earlier is affected by: Boundary crossing. The impact is: Memory corruption of the TEE itself. The component ... | 1,301 |
Determine whether the {function_name} code is vulnerable or not. | [
"// SPDX-License-Identifier: BSD-2-Clause\n/*\n * Copyright (c) 2016, Linaro Limited\n * Copyright (c) 2014, STMicroelectronics International N.V.\n */",
"#include <arm.h>\n#include <assert.h>\n#include <kernel/panic.h>\n#include <kernel/spinlock.h>\n#include <kernel/tee_common.h>\n#include <kernel/tee_misc.h>\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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [779], "buggy_code_start_loc": [759], "filenames": ["core/arch/arm/mm/tee_mmu.c"], "fixing_code_end_loc": [780], "fixing_code_start_loc": [760], "message": "Linaro/OP-TEE OP-TEE 3.3.0 and earlier is affected by: Boundary crossing. The impact is: Memory corruption of the TEE itself. The component ... | 1,301 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n *\tIPV6 GSO/GRO offload support\n *\tLinux INET6 implementation\n *\n *\tThis program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * as published by the Free Software Foundation; either version\n * 2 of the License, or (at yo... | [
1,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [119, 600, 117, 93], "buggy_code_start_loc": [119, 600, 82, 93], "filenames": ["net/ipv6/ip6_offload.c", "net/ipv6/ip6_output.c", "net/ipv6/output_core.c", "net/ipv6/udp_offload.c"], "fixing_code_end_loc": [122, 605, 119, 96], "fixing_code_start_loc": [120, 601, 81, 94], "message": "The IPv6 frag... | 1,302 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n *\tIPV6 GSO/GRO offload support\n *\tLinux INET6 implementation\n *\n *\tThis program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * as published by the Free Software Foundation; either version\n * 2 of the License, or (at yo... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [119, 600, 117, 93], "buggy_code_start_loc": [119, 600, 82, 93], "filenames": ["net/ipv6/ip6_offload.c", "net/ipv6/ip6_output.c", "net/ipv6/output_core.c", "net/ipv6/udp_offload.c"], "fixing_code_end_loc": [122, 605, 119, 96], "fixing_code_start_loc": [120, 601, 81, 94], "message": "The IPv6 frag... | 1,302 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.