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. | [
"/* vi:set ts=8 sts=4 sw=4 noet:\n *\n * VIM - Vi IMproved\t\tby Bram Moolenaar\n *\n * Do \":help uganda\" in Vim to read copying and usage conditions.\n * Do \":help credits\" in Vim to see a list of people who contributed.\n * See README.txt for an overview of the Vim source code.\n */",
"#include \"vim.h\"",... | [
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,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [1751, 9, 367, 737], "buggy_code_start_loc": [1749, 8, 367, 737], "filenames": ["src/edit.c", "src/proto/edit.pro", "src/testdir/test_cmdwin.vim", "src/version.c"], "fixing_code_end_loc": [1752, 9, 376, 740], "fixing_code_start_loc": [1749, 8, 368, 738], "message": "Buffer Over-read in GitHub rep... | 1,559 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* vi:set ts=8 sts=4 sw=4 noet:\n *\n * VIM - Vi IMproved\t\tby Bram Moolenaar\n *\n * Do \":help uganda\" in Vim to read copying and usage conditions.\n * Do \":help credits\" in Vim to see a list of people who contributed.\n * See README.txt for an overview of the Vim source code.\n */",
"#include \"vim.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
] | PreciseBugs | {"buggy_code_end_loc": [1751, 9, 367, 737], "buggy_code_start_loc": [1749, 8, 367, 737], "filenames": ["src/edit.c", "src/proto/edit.pro", "src/testdir/test_cmdwin.vim", "src/version.c"], "fixing_code_end_loc": [1752, 9, 376, 740], "fixing_code_start_loc": [1749, 8, 368, 738], "message": "Buffer Over-read in GitHub rep... | 1,559 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* vi:set ts=8 sts=4 sw=4 noet:\n *\n * VIM - Vi IMproved\tby Bram Moolenaar\n *\n * Do \":help uganda\" in Vim to read copying and usage conditions.\n * Do \":help credits\" in Vim to see a list of people who contributed.\n * See README.txt for an overview of the Vim source code.\n */",
"/*\n * edit.c: functio... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [4456, 92, 752], "buggy_code_start_loc": [4455, 92, 752], "filenames": ["src/edit.c", "src/testdir/test_paste.vim", "src/version.c"], "fixing_code_end_loc": [4457, 96, 755], "fixing_code_start_loc": [4455, 93, 753], "message": "Heap-based Buffer Overflow in GitHub repository vim prior to 8.2.", "... | 1,560 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* vi:set ts=8 sts=4 sw=4 noet:\n *\n * VIM - Vi IMproved\tby Bram Moolenaar\n *\n * Do \":help uganda\" in Vim to read copying and usage conditions.\n * Do \":help credits\" in Vim to see a list of people who contributed.\n * See README.txt for an overview of the Vim source code.\n */",
"/*\n * edit.c: functio... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [4456, 92, 752], "buggy_code_start_loc": [4455, 92, 752], "filenames": ["src/edit.c", "src/testdir/test_paste.vim", "src/version.c"], "fixing_code_end_loc": [4457, 96, 755], "fixing_code_start_loc": [4455, 93, 753], "message": "Heap-based Buffer Overflow in GitHub repository vim prior to 8.2.", "... | 1,560 |
Determine whether the {function_name} code is vulnerable or not. | [
"\" Tests for bracketed paste and other forms of pasting.",
"\" Bracketed paste only works with \"xterm\". Not in GUI or Windows console.\nsource check.vim\nCheckNotMSWindows\nCheckNotGui",
"set term=xterm",
"source shared.vim",
"func Test_paste_normal_mode()\n new\n \" In first column text is inserted\n... | [
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
] | PreciseBugs | {"buggy_code_end_loc": [4456, 92, 752], "buggy_code_start_loc": [4455, 92, 752], "filenames": ["src/edit.c", "src/testdir/test_paste.vim", "src/version.c"], "fixing_code_end_loc": [4457, 96, 755], "fixing_code_start_loc": [4455, 93, 753], "message": "Heap-based Buffer Overflow in GitHub repository vim prior to 8.2.", "... | 1,560 |
Determine whether the {function_name} code is vulnerable or not. | [
"\" Tests for bracketed paste and other forms of pasting.",
"\" Bracketed paste only works with \"xterm\". Not in GUI or Windows console.\nsource check.vim\nCheckNotMSWindows\nCheckNotGui",
"set term=xterm",
"source shared.vim",
"func Test_paste_normal_mode()\n new\n \" In first column text is inserted\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
] | PreciseBugs | {"buggy_code_end_loc": [4456, 92, 752], "buggy_code_start_loc": [4455, 92, 752], "filenames": ["src/edit.c", "src/testdir/test_paste.vim", "src/version.c"], "fixing_code_end_loc": [4457, 96, 755], "fixing_code_start_loc": [4455, 93, 753], "message": "Heap-based Buffer Overflow in GitHub repository vim prior to 8.2.", "... | 1,560 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* vi:set ts=8 sts=4 sw=4 noet:\n *\n * VIM - Vi IMproved\t\tby Bram Moolenaar\n *\n * Do \":help uganda\" in Vim to read copying and usage conditions.\n * Do \":help credits\" in Vim to see a list of people who contributed.\n * See README.txt for an overview of the Vim source code.\n */",
"#include \"vim.h\"",... | [
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,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [4456, 92, 752], "buggy_code_start_loc": [4455, 92, 752], "filenames": ["src/edit.c", "src/testdir/test_paste.vim", "src/version.c"], "fixing_code_end_loc": [4457, 96, 755], "fixing_code_start_loc": [4455, 93, 753], "message": "Heap-based Buffer Overflow in GitHub repository vim prior to 8.2.", "... | 1,560 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* vi:set ts=8 sts=4 sw=4 noet:\n *\n * VIM - Vi IMproved\t\tby Bram Moolenaar\n *\n * Do \":help uganda\" in Vim to read copying and usage conditions.\n * Do \":help credits\" in Vim to see a list of people who contributed.\n * See README.txt for an overview of the Vim source code.\n */",
"#include \"vim.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
] | PreciseBugs | {"buggy_code_end_loc": [4456, 92, 752], "buggy_code_start_loc": [4455, 92, 752], "filenames": ["src/edit.c", "src/testdir/test_paste.vim", "src/version.c"], "fixing_code_end_loc": [4457, 96, 755], "fixing_code_start_loc": [4455, 93, 753], "message": "Heap-based Buffer Overflow in GitHub repository vim prior to 8.2.", "... | 1,560 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* Copyright 2015 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,
0,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [519], "buggy_code_start_loc": [497], "filenames": ["tensorflow/core/kernels/conv_grad_filter_ops.cc"], "fixing_code_end_loc": [533], "fixing_code_start_loc": [498], "message": "TensorFlow is an end-to-end open source platform for machine learning. An attacker can cause a division by zero to occu... | 1,561 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* Copyright 2015 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": [519], "buggy_code_start_loc": [497], "filenames": ["tensorflow/core/kernels/conv_grad_filter_ops.cc"], "fixing_code_end_loc": [533], "fixing_code_start_loc": [498], "message": "TensorFlow is an end-to-end open source platform for machine learning. An attacker can cause a division by zero to occu... | 1,561 |
Determine whether the {function_name} code is vulnerable or not. | [
"package net",
"import (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"net\"\n\t\"path/filepath\"\n\t\"syscall\"",
"\t\"github.com/coreos/go-iptables/iptables\"\n\t\"github.com/pkg/errors\"\n\t\"github.com/sirupsen/logrus\"\n\t\"github.com/vishvananda/netlink\"\n\t\"k8s.io/apimachinery/pkg/types\"",
"\t\"github.com/weavew... | [
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,
0,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
1,
0,
1... | PreciseBugs | {"buggy_code_end_loc": [403, 63, 239, 138, 54, 99, 455], "buggy_code_start_loc": [66, 58, 16, 42, 46, 34, 455], "filenames": ["net/bridge.go", "net/netns.go", "net/veth.go", "plugin/net/driver.go", "plugin/net/watcher.go", "plugin/plugin.go", "prog/weaver/main.go"], "fixing_code_end_loc": [407, 63, 248, 140, 49, 100, 4... | 1,562 |
Determine whether the {function_name} code is vulnerable or not. | [
"package net",
"import (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"net\"\n\t\"path/filepath\"\n\t\"syscall\"",
"\t\"github.com/coreos/go-iptables/iptables\"\n\t\"github.com/pkg/errors\"\n\t\"github.com/sirupsen/logrus\"\n\t\"github.com/vishvananda/netlink\"\n\t\"k8s.io/apimachinery/pkg/types\"",
"\t\"github.com/weavew... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [403, 63, 239, 138, 54, 99, 455], "buggy_code_start_loc": [66, 58, 16, 42, 46, 34, 455], "filenames": ["net/bridge.go", "net/netns.go", "net/veth.go", "plugin/net/driver.go", "plugin/net/watcher.go", "plugin/plugin.go", "prog/weaver/main.go"], "fixing_code_end_loc": [407, 63, 248, 140, 49, 100, 4... | 1,562 |
Determine whether the {function_name} code is vulnerable or not. | [
"// +build go1.10",
"package net",
"import (\n\t\"errors\"\n\t\"fmt\"\n\t\"path/filepath\"\n\t\"runtime\"",
"\t\"github.com/vishvananda/netlink\"\n\t\"github.com/vishvananda/netns\"\n)",
"var ErrLinkNotFound = errors.New(\"Link not found\")",
"func WithNetNS(ns netns.NsHandle, work func() error) error {\n... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [403, 63, 239, 138, 54, 99, 455], "buggy_code_start_loc": [66, 58, 16, 42, 46, 34, 455], "filenames": ["net/bridge.go", "net/netns.go", "net/veth.go", "plugin/net/driver.go", "plugin/net/watcher.go", "plugin/plugin.go", "prog/weaver/main.go"], "fixing_code_end_loc": [407, 63, 248, 140, 49, 100, 4... | 1,562 |
Determine whether the {function_name} code is vulnerable or not. | [
"// +build go1.10",
"package net",
"import (\n\t\"errors\"\n\t\"fmt\"\n\t\"path/filepath\"\n\t\"runtime\"",
"\t\"github.com/vishvananda/netlink\"\n\t\"github.com/vishvananda/netns\"\n)",
"var ErrLinkNotFound = errors.New(\"Link not found\")",
"func WithNetNS(ns netns.NsHandle, work func() error) error {\n... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [403, 63, 239, 138, 54, 99, 455], "buggy_code_start_loc": [66, 58, 16, 42, 46, 34, 455], "filenames": ["net/bridge.go", "net/netns.go", "net/veth.go", "plugin/net/driver.go", "plugin/net/watcher.go", "plugin/plugin.go", "prog/weaver/main.go"], "fixing_code_end_loc": [407, 63, 248, 140, 49, 100, 4... | 1,562 |
Determine whether the {function_name} code is vulnerable or not. | [
"package net",
"import (\n\t\"fmt\"\n\t\"net\"\n\t\"strings\"\n\t\"time\"",
"\t\"github.com/coreos/go-iptables/iptables\"\n\t\"github.com/j-keck/arping\"\n\t\"github.com/vishvananda/netlink\"\n\t\"github.com/vishvananda/netns\"\n)",
"// create and attach a veth to the Weave bridge",
"func CreateAndAttachVet... | [
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
0,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
0,
1,
1,
0,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [403, 63, 239, 138, 54, 99, 455], "buggy_code_start_loc": [66, 58, 16, 42, 46, 34, 455], "filenames": ["net/bridge.go", "net/netns.go", "net/veth.go", "plugin/net/driver.go", "plugin/net/watcher.go", "plugin/plugin.go", "prog/weaver/main.go"], "fixing_code_end_loc": [407, 63, 248, 140, 49, 100, 4... | 1,562 |
Determine whether the {function_name} code is vulnerable or not. | [
"package net",
"import (\n\t\"fmt\"\n\t\"net\"\n\t\"strings\"\n\t\"time\"",
"\t\"github.com/coreos/go-iptables/iptables\"\n\t\"github.com/j-keck/arping\"\n\t\"github.com/vishvananda/netlink\"\n\t\"github.com/vishvananda/netns\"\n)",
"// create and attach a veth to the Weave bridge",
"func CreateAndAttachVet... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [403, 63, 239, 138, 54, 99, 455], "buggy_code_start_loc": [66, 58, 16, 42, 46, 34, 455], "filenames": ["net/bridge.go", "net/netns.go", "net/veth.go", "plugin/net/driver.go", "plugin/net/watcher.go", "plugin/plugin.go", "prog/weaver/main.go"], "fixing_code_end_loc": [407, 63, 248, 140, 49, 100, 4... | 1,562 |
Determine whether the {function_name} code is vulnerable or not. | [
"package plugin",
"import (\n\t\"fmt\"\n\t\"strconv\"\n\t\"sync\"",
"\t\"github.com/docker/libnetwork/drivers/remote/api\"\n\t\"github.com/docker/libnetwork/netlabel\"\n\t\"github.com/docker/libnetwork/types\"\n\t\"golang.org/x/sys/unix\"",
"\t\"github.com/vishvananda/netlink\"\n\tweaveapi \"github.com/weavew... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
1,
0,
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
] | PreciseBugs | {"buggy_code_end_loc": [403, 63, 239, 138, 54, 99, 455], "buggy_code_start_loc": [66, 58, 16, 42, 46, 34, 455], "filenames": ["net/bridge.go", "net/netns.go", "net/veth.go", "plugin/net/driver.go", "plugin/net/watcher.go", "plugin/plugin.go", "prog/weaver/main.go"], "fixing_code_end_loc": [407, 63, 248, 140, 49, 100, 4... | 1,562 |
Determine whether the {function_name} code is vulnerable or not. | [
"package plugin",
"import (\n\t\"fmt\"\n\t\"strconv\"\n\t\"sync\"",
"\t\"github.com/docker/libnetwork/drivers/remote/api\"\n\t\"github.com/docker/libnetwork/netlabel\"\n\t\"github.com/docker/libnetwork/types\"\n\t\"golang.org/x/sys/unix\"",
"\t\"github.com/vishvananda/netlink\"\n\tweaveapi \"github.com/weavew... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [403, 63, 239, 138, 54, 99, 455], "buggy_code_start_loc": [66, 58, 16, 42, 46, 34, 455], "filenames": ["net/bridge.go", "net/netns.go", "net/veth.go", "plugin/net/driver.go", "plugin/net/watcher.go", "plugin/plugin.go", "prog/weaver/main.go"], "fixing_code_end_loc": [407, 63, 248, 140, 49, 100, 4... | 1,562 |
Determine whether the {function_name} code is vulnerable or not. | [
"package plugin",
"import (\n\t\"fmt\"",
"\tweaveapi \"github.com/weaveworks/weave/api\"\n\t\"github.com/weaveworks/weave/common/docker\"\n\tweavenet \"github.com/weaveworks/weave/net\"\n)",
"type watcher struct {\n\tclient *docker.Client\n\tweave *weaveapi.Client\n\tdriver *driver\n}",
"type Watcher inter... | [
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [403, 63, 239, 138, 54, 99, 455], "buggy_code_start_loc": [66, 58, 16, 42, 46, 34, 455], "filenames": ["net/bridge.go", "net/netns.go", "net/veth.go", "plugin/net/driver.go", "plugin/net/watcher.go", "plugin/plugin.go", "prog/weaver/main.go"], "fixing_code_end_loc": [407, 63, 248, 140, 49, 100, 4... | 1,562 |
Determine whether the {function_name} code is vulnerable or not. | [
"package plugin",
"import (\n\t\"fmt\"",
"\tweaveapi \"github.com/weaveworks/weave/api\"\n\t\"github.com/weaveworks/weave/common/docker\"\n\tweavenet \"github.com/weaveworks/weave/net\"\n)",
"type watcher struct {\n\tclient *docker.Client\n\tweave *weaveapi.Client\n\tdriver *driver\n}",
"type Watcher inter... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [403, 63, 239, 138, 54, 99, 455], "buggy_code_start_loc": [66, 58, 16, 42, 46, 34, 455], "filenames": ["net/bridge.go", "net/netns.go", "net/veth.go", "plugin/net/driver.go", "plugin/net/watcher.go", "plugin/plugin.go", "prog/weaver/main.go"], "fixing_code_end_loc": [407, 63, 248, 140, 49, 100, 4... | 1,562 |
Determine whether the {function_name} code is vulnerable or not. | [
"package plugin",
"import (\n\t\"net\"\n\t\"os\"\n\t\"path\"\n\t\"strings\"",
"\t\"github.com/docker/libnetwork/ipamapi\"\n\tweaveapi \"github.com/weaveworks/weave/api\"\n\t\"github.com/weaveworks/weave/common\"\n\t\"github.com/weaveworks/weave/common/docker\"\n\tweavenet \"github.com/weaveworks/weave/net\"\n\t... | [
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
1,
0,
1,
0,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [403, 63, 239, 138, 54, 99, 455], "buggy_code_start_loc": [66, 58, 16, 42, 46, 34, 455], "filenames": ["net/bridge.go", "net/netns.go", "net/veth.go", "plugin/net/driver.go", "plugin/net/watcher.go", "plugin/plugin.go", "prog/weaver/main.go"], "fixing_code_end_loc": [407, 63, 248, 140, 49, 100, 4... | 1,562 |
Determine whether the {function_name} code is vulnerable or not. | [
"package plugin",
"import (\n\t\"net\"\n\t\"os\"\n\t\"path\"\n\t\"strings\"",
"\t\"github.com/docker/libnetwork/ipamapi\"\n\tweaveapi \"github.com/weaveworks/weave/api\"\n\t\"github.com/weaveworks/weave/common\"\n\t\"github.com/weaveworks/weave/common/docker\"\n\tweavenet \"github.com/weaveworks/weave/net\"\n\t... | [
1,
1,
1,
1,
1,
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": [403, 63, 239, 138, 54, 99, 455], "buggy_code_start_loc": [66, 58, 16, 42, 46, 34, 455], "filenames": ["net/bridge.go", "net/netns.go", "net/veth.go", "plugin/net/driver.go", "plugin/net/watcher.go", "plugin/plugin.go", "prog/weaver/main.go"], "fixing_code_end_loc": [407, 63, 248, 140, 49, 100, 4... | 1,562 |
Determine whether the {function_name} code is vulnerable or not. | [
"package main",
"import (\n\t\"fmt\"\n\t\"net\"\n\t\"net/http\"\n\t_ \"net/http/pprof\"\n\t\"os\"\n\t\"runtime\"\n\t\"strconv\"\n\t\"strings\"\n\t\"time\"",
"\t\"github.com/gorilla/mux\"\n\t\"github.com/pkg/profile\"\n\t\"github.com/weaveworks/common/mflag\"\n\t\"github.com/weaveworks/common/mflagext\"\n\t\"git... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | PreciseBugs | {"buggy_code_end_loc": [403, 63, 239, 138, 54, 99, 455], "buggy_code_start_loc": [66, 58, 16, 42, 46, 34, 455], "filenames": ["net/bridge.go", "net/netns.go", "net/veth.go", "plugin/net/driver.go", "plugin/net/watcher.go", "plugin/plugin.go", "prog/weaver/main.go"], "fixing_code_end_loc": [407, 63, 248, 140, 49, 100, 4... | 1,562 |
Determine whether the {function_name} code is vulnerable or not. | [
"package main",
"import (\n\t\"fmt\"\n\t\"net\"\n\t\"net/http\"\n\t_ \"net/http/pprof\"\n\t\"os\"\n\t\"runtime\"\n\t\"strconv\"\n\t\"strings\"\n\t\"time\"",
"\t\"github.com/gorilla/mux\"\n\t\"github.com/pkg/profile\"\n\t\"github.com/weaveworks/common/mflag\"\n\t\"github.com/weaveworks/common/mflagext\"\n\t\"git... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [403, 63, 239, 138, 54, 99, 455], "buggy_code_start_loc": [66, 58, 16, 42, 46, 34, 455], "filenames": ["net/bridge.go", "net/netns.go", "net/veth.go", "plugin/net/driver.go", "plugin/net/watcher.go", "plugin/plugin.go", "prog/weaver/main.go"], "fixing_code_end_loc": [407, 63, 248, 140, 49, 100, 4... | 1,562 |
Determine whether the {function_name} code is vulnerable or not. | [
"package HTTP::Daemon;",
"# ABSTRACT: A simple http server class",
"use strict;\nuse warnings;",
"our $VERSION = '6.15';",
"use Socket ();\nuse IO::Socket::IP;\nour @ISA = qw(IO::Socket::IP);",
"our $PROTO = \"HTTP/1.1\";",
"our $DEBUG;",
"sub new {\n my ($class, %args) = @_;\n $args{Listen} ||=... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | PreciseBugs | {"buggy_code_end_loc": [312], "buggy_code_start_loc": [302], "filenames": ["lib/HTTP/Daemon.pm"], "fixing_code_end_loc": [314], "fixing_code_start_loc": [302], "message": "HTTP::Daemon is a simple http server class written in perl. Versions prior to 6.15 are subject to a vulnerability which could potentially be exploit... | 1,563 |
Determine whether the {function_name} code is vulnerable or not. | [
"package HTTP::Daemon;",
"# ABSTRACT: A simple http server class",
"use strict;\nuse warnings;",
"our $VERSION = '6.15';",
"use Socket ();\nuse IO::Socket::IP;\nour @ISA = qw(IO::Socket::IP);",
"our $PROTO = \"HTTP/1.1\";",
"our $DEBUG;",
"sub new {\n my ($class, %args) = @_;\n $args{Listen} ||=... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [312], "buggy_code_start_loc": [302], "filenames": ["lib/HTTP/Daemon.pm"], "fixing_code_end_loc": [314], "fixing_code_start_loc": [302], "message": "HTTP::Daemon is a simple http server class written in perl. Versions prior to 6.15 are subject to a vulnerability which could potentially be exploit... | 1,563 |
Determine whether the {function_name} code is vulnerable or not. | [
"<%--\n~ Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.\n~\n~ WSO2 Inc. licenses this file to you under the Apache License,\n~ Version 2.0 (the \"License\"); you may not use this file except\n~ in compliance with the License.\n~ You may obtain a copy of the License at\n~\n~ http://www... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
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
] | PreciseBugs | {"buggy_code_end_loc": [322], "buggy_code_start_loc": [293], "filenames": ["components/registry/org.wso2.carbon.registry.search.ui/src/main/resources/web/search/advancedSearchForm-ajaxprocessor.jsp"], "fixing_code_end_loc": [338], "fixing_code_start_loc": [293], "message": "A vulnerability was found in WSO2 carbon-regi... | 1,564 |
Determine whether the {function_name} code is vulnerable or not. | [
"<%--\n~ Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.\n~\n~ WSO2 Inc. licenses this file to you under the Apache License,\n~ Version 2.0 (the \"License\"); you may not use this file except\n~ in compliance with the License.\n~ You may obtain a copy of the License at\n~\n~ http://www... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [322], "buggy_code_start_loc": [293], "filenames": ["components/registry/org.wso2.carbon.registry.search.ui/src/main/resources/web/search/advancedSearchForm-ajaxprocessor.jsp"], "fixing_code_end_loc": [338], "fixing_code_start_loc": [293], "message": "A vulnerability was found in WSO2 carbon-regi... | 1,564 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/* Copyright (C) 2001-2007\tRodolphe Quiedeville\t<rodolphe@quiedeville.org>\n * Copyright (C) 2004-2013\tLaurent Destailleur\t\t<eldy@users.sourceforge.net>\n * Copyright (C) 2005-2012\tRegis Houssin\t\t\t<regis.houssin@capnetworks.com>\n * Copyright (C) 2010-2014\tJuanjo Menent\t\t\t<jmenent@2byte.es>\n *... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
0,
1,
1,
1,
0,
1,
1,
0,
0,
0,
0,
1,
0,
1,
0,
1,
0,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
0,
1,
0,
0,
1,
0,
0,
1,
0,
1... | PreciseBugs | {"buggy_code_end_loc": [1094, 506, 3255, 189, 107, 112, 205], "buggy_code_start_loc": [52, 86, 3254, 113, 106, 80, 116], "filenames": ["htdocs/admin/company.php", "htdocs/admin/menus/edit.php", "htdocs/core/lib/functions.lib.php", "htdocs/document.php", "htdocs/langs/en_US/main.lang", "htdocs/main.inc.php", "htdocs/vie... | 1,565 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/* Copyright (C) 2001-2007\tRodolphe Quiedeville\t<rodolphe@quiedeville.org>\n * Copyright (C) 2004-2013\tLaurent Destailleur\t\t<eldy@users.sourceforge.net>\n * Copyright (C) 2005-2012\tRegis Houssin\t\t\t<regis.houssin@capnetworks.com>\n * Copyright (C) 2010-2014\tJuanjo Menent\t\t\t<jmenent@2byte.es>\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": [1094, 506, 3255, 189, 107, 112, 205], "buggy_code_start_loc": [52, 86, 3254, 113, 106, 80, 116], "filenames": ["htdocs/admin/company.php", "htdocs/admin/menus/edit.php", "htdocs/core/lib/functions.lib.php", "htdocs/document.php", "htdocs/langs/en_US/main.lang", "htdocs/main.inc.php", "htdocs/vie... | 1,565 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/* Copyright (C) 2007 Patrick Raguin <patrick.raguin@gmail.com>\n * Copyright (C) 2007-2012 Laurent Destailleur <eldy@users.sourceforge.net>\n * Copyright (C) 2009-2011 Regis Houssin <regis.houssin@capnetworks.com>\n * Copyright (C) 2016 Meziane Sof <virtualsof@yahoo.fr>\n *... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
1,
0,
1,
1,
1,
1,
0,
1,
1,
1,
0,
1,
1,
0,
1,
0,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
0,
1,
1,
0,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [1094, 506, 3255, 189, 107, 112, 205], "buggy_code_start_loc": [52, 86, 3254, 113, 106, 80, 116], "filenames": ["htdocs/admin/company.php", "htdocs/admin/menus/edit.php", "htdocs/core/lib/functions.lib.php", "htdocs/document.php", "htdocs/langs/en_US/main.lang", "htdocs/main.inc.php", "htdocs/vie... | 1,565 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/* Copyright (C) 2007 Patrick Raguin <patrick.raguin@gmail.com>\n * Copyright (C) 2007-2012 Laurent Destailleur <eldy@users.sourceforge.net>\n * Copyright (C) 2009-2011 Regis Houssin <regis.houssin@capnetworks.com>\n * Copyright (C) 2016 Meziane Sof <virtualsof@yahoo.fr>\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": [1094, 506, 3255, 189, 107, 112, 205], "buggy_code_start_loc": [52, 86, 3254, 113, 106, 80, 116], "filenames": ["htdocs/admin/company.php", "htdocs/admin/menus/edit.php", "htdocs/core/lib/functions.lib.php", "htdocs/document.php", "htdocs/langs/en_US/main.lang", "htdocs/main.inc.php", "htdocs/vie... | 1,565 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/* Copyright (C) 2000-2007\tRodolphe Quiedeville\t\t\t<rodolphe@quiedeville.org>\n * Copyright (C) 2003\t\tJean-Louis Bergamo\t\t\t<jlb@j1b.org>\n * Copyright (C) 2004-2013\tLaurent Destailleur\t\t\t<eldy@users.sourceforge.net>\n * Copyright (C) 2004\t\tSebastien Di Cintio\t\t\t<sdicintio@ressource-toi.org>... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [1094, 506, 3255, 189, 107, 112, 205], "buggy_code_start_loc": [52, 86, 3254, 113, 106, 80, 116], "filenames": ["htdocs/admin/company.php", "htdocs/admin/menus/edit.php", "htdocs/core/lib/functions.lib.php", "htdocs/document.php", "htdocs/langs/en_US/main.lang", "htdocs/main.inc.php", "htdocs/vie... | 1,565 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/* Copyright (C) 2000-2007\tRodolphe Quiedeville\t\t\t<rodolphe@quiedeville.org>\n * Copyright (C) 2003\t\tJean-Louis Bergamo\t\t\t<jlb@j1b.org>\n * Copyright (C) 2004-2013\tLaurent Destailleur\t\t\t<eldy@users.sourceforge.net>\n * Copyright (C) 2004\t\tSebastien Di Cintio\t\t\t<sdicintio@ressource-toi.org>... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [1094, 506, 3255, 189, 107, 112, 205], "buggy_code_start_loc": [52, 86, 3254, 113, 106, 80, 116], "filenames": ["htdocs/admin/company.php", "htdocs/admin/menus/edit.php", "htdocs/core/lib/functions.lib.php", "htdocs/document.php", "htdocs/langs/en_US/main.lang", "htdocs/main.inc.php", "htdocs/vie... | 1,565 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/* Copyright (C) 2004-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>\n * Copyright (C) 2004-2013 Laurent Destailleur <eldy@users.sourceforge.net>\n * Copyright (C) 2005 Simon Tosser <simon@kornog-computing.com>\n * Copyright (C) 2005-2012 Regis Houssin <regis.houssin@capnetworks.c... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
0,
1,
1,
0,
1,
0,
1,
1,
0,
1,
0,
1,
0,
1,
0,
1,
1,
0,
1,
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [1094, 506, 3255, 189, 107, 112, 205], "buggy_code_start_loc": [52, 86, 3254, 113, 106, 80, 116], "filenames": ["htdocs/admin/company.php", "htdocs/admin/menus/edit.php", "htdocs/core/lib/functions.lib.php", "htdocs/document.php", "htdocs/langs/en_US/main.lang", "htdocs/main.inc.php", "htdocs/vie... | 1,565 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/* Copyright (C) 2004-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>\n * Copyright (C) 2004-2013 Laurent Destailleur <eldy@users.sourceforge.net>\n * Copyright (C) 2005 Simon Tosser <simon@kornog-computing.com>\n * Copyright (C) 2005-2012 Regis Houssin <regis.houssin@capnetworks.c... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [1094, 506, 3255, 189, 107, 112, 205], "buggy_code_start_loc": [52, 86, 3254, 113, 106, 80, 116], "filenames": ["htdocs/admin/company.php", "htdocs/admin/menus/edit.php", "htdocs/core/lib/functions.lib.php", "htdocs/document.php", "htdocs/langs/en_US/main.lang", "htdocs/main.inc.php", "htdocs/vie... | 1,565 |
Determine whether the {function_name} code is vulnerable or not. | [
"# Dolibarr language file - Source file is en_US - main\nDIRECTION=ltr\n# Note for Chinese:\n# msungstdlight or cid0ct are for traditional Chinese (traditional does not render with Ubuntu pdf reader)\n# stsongstdlight or cid0cs are for simplified Chinese\n# To read Chinese pdf with Linux: sudo apt-get install poppl... | [
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [1094, 506, 3255, 189, 107, 112, 205], "buggy_code_start_loc": [52, 86, 3254, 113, 106, 80, 116], "filenames": ["htdocs/admin/company.php", "htdocs/admin/menus/edit.php", "htdocs/core/lib/functions.lib.php", "htdocs/document.php", "htdocs/langs/en_US/main.lang", "htdocs/main.inc.php", "htdocs/vie... | 1,565 |
Determine whether the {function_name} code is vulnerable or not. | [
"# Dolibarr language file - Source file is en_US - main\nDIRECTION=ltr\n# Note for Chinese:\n# msungstdlight or cid0ct are for traditional Chinese (traditional does not render with Ubuntu pdf reader)\n# stsongstdlight or cid0cs are for simplified Chinese\n# To read Chinese pdf with Linux: sudo apt-get install poppl... | [
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [1094, 506, 3255, 189, 107, 112, 205], "buggy_code_start_loc": [52, 86, 3254, 113, 106, 80, 116], "filenames": ["htdocs/admin/company.php", "htdocs/admin/menus/edit.php", "htdocs/core/lib/functions.lib.php", "htdocs/document.php", "htdocs/langs/en_US/main.lang", "htdocs/main.inc.php", "htdocs/vie... | 1,565 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/* Copyright (C) 2002-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>\n * Copyright (C) 2003 Xavier Dutoit <doli@sydesy.com>\n * Copyright (C) 2004-2015 Laurent Destailleur <eldy@users.sourceforge.net>\n * Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-to... | [
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [1094, 506, 3255, 189, 107, 112, 205], "buggy_code_start_loc": [52, 86, 3254, 113, 106, 80, 116], "filenames": ["htdocs/admin/company.php", "htdocs/admin/menus/edit.php", "htdocs/core/lib/functions.lib.php", "htdocs/document.php", "htdocs/langs/en_US/main.lang", "htdocs/main.inc.php", "htdocs/vie... | 1,565 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/* Copyright (C) 2002-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>\n * Copyright (C) 2003 Xavier Dutoit <doli@sydesy.com>\n * Copyright (C) 2004-2015 Laurent Destailleur <eldy@users.sourceforge.net>\n * Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-to... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [1094, 506, 3255, 189, 107, 112, 205], "buggy_code_start_loc": [52, 86, 3254, 113, 106, 80, 116], "filenames": ["htdocs/admin/company.php", "htdocs/admin/menus/edit.php", "htdocs/core/lib/functions.lib.php", "htdocs/document.php", "htdocs/langs/en_US/main.lang", "htdocs/main.inc.php", "htdocs/vie... | 1,565 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/* Copyright (C) 2004-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>\n * Copyright (C) 2005-2016 Laurent Destailleur <eldy@users.sourceforge.net>\n * Copyright (C) 2005-2016 Regis Houssin <regis.houssin@capnetworks.com>\n *\n * This program is free software; you can redistribute it and/or modi... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
0,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
0,
1,
1,
0,
1,
0,
0,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [1094, 506, 3255, 189, 107, 112, 205], "buggy_code_start_loc": [52, 86, 3254, 113, 106, 80, 116], "filenames": ["htdocs/admin/company.php", "htdocs/admin/menus/edit.php", "htdocs/core/lib/functions.lib.php", "htdocs/document.php", "htdocs/langs/en_US/main.lang", "htdocs/main.inc.php", "htdocs/vie... | 1,565 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/* Copyright (C) 2004-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>\n * Copyright (C) 2005-2016 Laurent Destailleur <eldy@users.sourceforge.net>\n * Copyright (C) 2005-2016 Regis Houssin <regis.houssin@capnetworks.com>\n *\n * This program is free software; you can redistribute it and/or modi... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [1094, 506, 3255, 189, 107, 112, 205], "buggy_code_start_loc": [52, 86, 3254, 113, 106, 80, 116], "filenames": ["htdocs/admin/company.php", "htdocs/admin/menus/edit.php", "htdocs/core/lib/functions.lib.php", "htdocs/document.php", "htdocs/langs/en_US/main.lang", "htdocs/main.inc.php", "htdocs/vie... | 1,565 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\ndefine('AUDIT_TABLE', TABLE_PREFIX . 'audit');",
"class AuditEntry extends VerySimpleModel {\n static $meta = array(\n 'table' => AUDIT_TABLE,\n 'pk' => array('id'),\n 'ordering' => array('-timestamp'),\n 'select_related' => array('staff', 'user'),\n 'joins' => array(... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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... | PreciseBugs | {"buggy_code_end_loc": [482, 32, 124], "buggy_code_start_loc": [466, 6, 123], "filenames": ["audit/class.audit.php", "audit/templates/auditlogs.tmpl.php", "storage-fs/storage.php"], "fixing_code_end_loc": [485, 32, 128], "fixing_code_start_loc": [466, 6, 123], "message": "A stored cross-site scripting (XSS) vulnerabili... | 1,566 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\ndefine('AUDIT_TABLE', TABLE_PREFIX . 'audit');",
"class AuditEntry extends VerySimpleModel {\n static $meta = array(\n 'table' => AUDIT_TABLE,\n 'pk' => array('id'),\n 'ordering' => array('-timestamp'),\n 'select_related' => array('staff', 'user'),\n 'joins' => array(... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [482, 32, 124], "buggy_code_start_loc": [466, 6, 123], "filenames": ["audit/class.audit.php", "audit/templates/auditlogs.tmpl.php", "storage-fs/storage.php"], "fixing_code_end_loc": [485, 32, 128], "fixing_code_start_loc": [466, 6, 123], "message": "A stored cross-site scripting (XSS) vulnerabili... | 1,566 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\nif(!defined('OSTADMININC') || !$thisstaff || !$thisstaff->isAdmin()) die('Access Denied');",
"$qs = array();\nif($_REQUEST['type'])",
" $qs += array('type' => $_REQUEST['type']);",
"$type='D';",
"if ($_REQUEST['type'])",
" $type=$_REQUEST['type'];",
"\nif($_REQUEST['state'])",
" $qs += ... | [
1,
1,
0,
1,
1,
0,
1,
0,
1,
1,
0,
1,
0,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [482, 32, 124], "buggy_code_start_loc": [466, 6, 123], "filenames": ["audit/class.audit.php", "audit/templates/auditlogs.tmpl.php", "storage-fs/storage.php"], "fixing_code_end_loc": [485, 32, 128], "fixing_code_start_loc": [466, 6, 123], "message": "A stored cross-site scripting (XSS) vulnerabili... | 1,566 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\nif(!defined('OSTADMININC') || !$thisstaff || !$thisstaff->isAdmin()) die('Access Denied');",
"$qs = array();\nif($_REQUEST['type'])",
" $qs += array('type' => Format::htmlchars($_REQUEST['type']));",
"$type='D';",
"if ($_REQUEST['type'])",
" $type=Format::htmlchars($_REQUEST['type']);",
"\ni... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [482, 32, 124], "buggy_code_start_loc": [466, 6, 123], "filenames": ["audit/class.audit.php", "audit/templates/auditlogs.tmpl.php", "storage-fs/storage.php"], "fixing_code_end_loc": [485, 32, 128], "fixing_code_start_loc": [466, 6, 123], "message": "A stored cross-site scripting (XSS) vulnerabili... | 1,566 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"/**\n * FilesystemStorage plugin\n *\n * Allows attachment data to be written to the disk rather than in the\n * database\n */\nclass FilesystemStorage extends FileStorageBackend {\n var $fp = null;\n static $base;",
" function read($bytes=32768, $offset=false) {\n $hash = $this->meta-... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [482, 32, 124], "buggy_code_start_loc": [466, 6, 123], "filenames": ["audit/class.audit.php", "audit/templates/auditlogs.tmpl.php", "storage-fs/storage.php"], "fixing_code_end_loc": [485, 32, 128], "fixing_code_start_loc": [466, 6, 123], "message": "A stored cross-site scripting (XSS) vulnerabili... | 1,566 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"/**\n * FilesystemStorage plugin\n *\n * Allows attachment data to be written to the disk rather than in the\n * database\n */\nclass FilesystemStorage extends FileStorageBackend {\n var $fp = null;\n static $base;",
" function read($bytes=32768, $offset=false) {\n $hash = $this->meta-... | [
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": [482, 32, 124], "buggy_code_start_loc": [466, 6, 123], "filenames": ["audit/class.audit.php", "audit/templates/auditlogs.tmpl.php", "storage-fs/storage.php"], "fixing_code_end_loc": [485, 32, 128], "fixing_code_start_loc": [466, 6, 123], "message": "A stored cross-site scripting (XSS) vulnerabili... | 1,566 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"/*\n+---------------------------------------------------------------------------+\n| Revive Adserver |\n| http://www.revive-adserver.com |\n| ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [179], "buggy_code_start_loc": [101], "filenames": ["lib/OA/Admin/PasswordRecovery.php"], "fixing_code_end_loc": [185], "fixing_code_start_loc": [102], "message": "Revive Adserver before 3.2.3 suffers from Cross-Site Request Forgery (CSRF). The password recovery form in Revive Adserver is vulnera... | 1,567 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"/*\n+---------------------------------------------------------------------------+\n| Revive Adserver |\n| http://www.revive-adserver.com |\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
] | PreciseBugs | {"buggy_code_end_loc": [179], "buggy_code_start_loc": [101], "filenames": ["lib/OA/Admin/PasswordRecovery.php"], "fixing_code_end_loc": [185], "fixing_code_start_loc": [102], "message": "Revive Adserver before 3.2.3 suffers from Cross-Site Request Forgery (CSRF). The password recovery form in Revive Adserver is vulnera... | 1,567 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * JBoss, Home of Professional Open Source.\n * Copyright 2014 Red Hat, Inc., and individual contributors\n * as indicated by the @author tags.\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 cop... | [
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": [154], "buggy_code_start_loc": [154], "filenames": ["websockets-jsr/src/main/java/io/undertow/websockets/jsr/FrameHandler.java"], "fixing_code_end_loc": [157], "fixing_code_start_loc": [155], "message": "A flaw was found in Undertow. A buffer leak on the incoming WebSocket PONG message may lead t... | 1,568 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * JBoss, Home of Professional Open Source.\n * Copyright 2014 Red Hat, Inc., and individual contributors\n * as indicated by the @author tags.\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 cop... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [154], "buggy_code_start_loc": [154], "filenames": ["websockets-jsr/src/main/java/io/undertow/websockets/jsr/FrameHandler.java"], "fixing_code_end_loc": [157], "fixing_code_start_loc": [155], "message": "A flaw was found in Undertow. A buffer leak on the incoming WebSocket PONG message may lead t... | 1,568 |
Determine whether the {function_name} code is vulnerable or not. | [
"package server",
"import (\n\t\"fmt\"\n\t\"net/http\"\n\t\"strconv\"",
"\t\"github.com/usememos/memos/api\"\n\t\"github.com/usememos/memos/common\"",
"\t\"github.com/gorilla/sessions\"\n\t\"github.com/labstack/echo-contrib/session\"\n\t\"github.com/labstack/echo/v4\"\n)",
"var (\n\tuserIDContextKey = \"use... | [
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [29, 36], "buggy_code_start_loc": [29, 36], "filenames": ["server/acl.go", "server/server.go"], "fixing_code_end_loc": [31, 41], "fixing_code_start_loc": [30, 37], "message": "Incorrectly Specified Destination in a Communication Channel in GitHub repository usememos/memos prior to 0.9.1.", "other... | 1,569 |
Determine whether the {function_name} code is vulnerable or not. | [
"package server",
"import (\n\t\"fmt\"\n\t\"net/http\"\n\t\"strconv\"",
"\t\"github.com/usememos/memos/api\"\n\t\"github.com/usememos/memos/common\"",
"\t\"github.com/gorilla/sessions\"\n\t\"github.com/labstack/echo-contrib/session\"\n\t\"github.com/labstack/echo/v4\"\n)",
"var (\n\tuserIDContextKey = \"use... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [29, 36], "buggy_code_start_loc": [29, 36], "filenames": ["server/acl.go", "server/server.go"], "fixing_code_end_loc": [31, 41], "fixing_code_start_loc": [30, 37], "message": "Incorrectly Specified Destination in a Communication Channel in GitHub repository usememos/memos prior to 0.9.1.", "other... | 1,569 |
Determine whether the {function_name} code is vulnerable or not. | [
"package server",
"import (\n\t\"fmt\"\n\t\"time\"",
"\t\"github.com/usememos/memos/server/profile\"\n\t\"github.com/usememos/memos/store\"",
"\t\"github.com/gorilla/securecookie\"\n\t\"github.com/gorilla/sessions\"\n\t\"github.com/labstack/echo-contrib/session\"\n\t\"github.com/labstack/echo/v4\"\n\t\"github... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [29, 36], "buggy_code_start_loc": [29, 36], "filenames": ["server/acl.go", "server/server.go"], "fixing_code_end_loc": [31, 41], "fixing_code_start_loc": [30, 37], "message": "Incorrectly Specified Destination in a Communication Channel in GitHub repository usememos/memos prior to 0.9.1.", "other... | 1,569 |
Determine whether the {function_name} code is vulnerable or not. | [
"package server",
"import (\n\t\"fmt\"\n\t\"time\"",
"\t\"github.com/usememos/memos/server/profile\"\n\t\"github.com/usememos/memos/store\"",
"\t\"github.com/gorilla/securecookie\"\n\t\"github.com/gorilla/sessions\"\n\t\"github.com/labstack/echo-contrib/session\"\n\t\"github.com/labstack/echo/v4\"\n\t\"github... | [
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": [29, 36], "buggy_code_start_loc": [29, 36], "filenames": ["server/acl.go", "server/server.go"], "fixing_code_end_loc": [31, 41], "fixing_code_start_loc": [30, 37], "message": "Incorrectly Specified Destination in a Communication Channel in GitHub repository usememos/memos prior to 0.9.1.", "other... | 1,569 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\nCopyright The Helm Authors.\nLicensed 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 by applicable law or agreed to in writin... | [
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
] | PreciseBugs | {"buggy_code_end_loc": [75, 285, 97], "buggy_code_start_loc": [74, 230, 97], "filenames": ["pkg/downloader/chart_downloader_test.go", "pkg/repo/index.go", "pkg/repo/index_test.go"], "fixing_code_end_loc": [75, 302, 127], "fixing_code_start_loc": [74, 231, 98], "message": "In Helm before versions 2.16.11 and 3.3.2, a He... | 1,570 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\nCopyright The Helm Authors.\nLicensed 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 by applicable law or agreed to in writin... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [75, 285, 97], "buggy_code_start_loc": [74, 230, 97], "filenames": ["pkg/downloader/chart_downloader_test.go", "pkg/repo/index.go", "pkg/repo/index_test.go"], "fixing_code_end_loc": [75, 302, 127], "fixing_code_start_loc": [74, 231, 98], "message": "In Helm before versions 2.16.11 and 3.3.2, a He... | 1,570 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\nCopyright The Helm Authors.",
"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 by applicable law or agreed to i... | [
1,
1,
1,
1,
1,
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,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [75, 285, 97], "buggy_code_start_loc": [74, 230, 97], "filenames": ["pkg/downloader/chart_downloader_test.go", "pkg/repo/index.go", "pkg/repo/index_test.go"], "fixing_code_end_loc": [75, 302, 127], "fixing_code_start_loc": [74, 231, 98], "message": "In Helm before versions 2.16.11 and 3.3.2, a He... | 1,570 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\nCopyright The Helm Authors.",
"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 by applicable law or agreed to i... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [75, 285, 97], "buggy_code_start_loc": [74, 230, 97], "filenames": ["pkg/downloader/chart_downloader_test.go", "pkg/repo/index.go", "pkg/repo/index_test.go"], "fixing_code_end_loc": [75, 302, 127], "fixing_code_start_loc": [74, 231, 98], "message": "In Helm before versions 2.16.11 and 3.3.2, a He... | 1,570 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\nCopyright The Helm Authors.",
"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 by applicable law or agreed to i... | [
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,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [75, 285, 97], "buggy_code_start_loc": [74, 230, 97], "filenames": ["pkg/downloader/chart_downloader_test.go", "pkg/repo/index.go", "pkg/repo/index_test.go"], "fixing_code_end_loc": [75, 302, 127], "fixing_code_start_loc": [74, 231, 98], "message": "In Helm before versions 2.16.11 and 3.3.2, a He... | 1,570 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\nCopyright The Helm Authors.",
"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 by applicable law or agreed to i... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [75, 285, 97], "buggy_code_start_loc": [74, 230, 97], "filenames": ["pkg/downloader/chart_downloader_test.go", "pkg/repo/index.go", "pkg/repo/index_test.go"], "fixing_code_end_loc": [75, 302, 127], "fixing_code_start_loc": [74, 231, 98], "message": "In Helm before versions 2.16.11 and 3.3.2, a He... | 1,570 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\r\n$servers = $console->getServers();\r\nif ($server) {\r\n $serverKey = array_search($server, $servers);\r\n $serverLabel = is_numeric($serverKey) || empty($serverKey) ? $server : $serverKey;\r\n}\r\n?><!DOCTYPE html>\r\n<html>\r\n\r\n <head>\r\n <meta charset=\"utf-8\">\r\n <meta htt... | [
1,
0,
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [81, 73], "buggy_code_start_loc": [68, 47], "filenames": ["lib/tpl/main.php", "lib/tpl/serversList.php"], "fixing_code_end_loc": [81, 73], "fixing_code_start_loc": [68, 47], "message": "Cross-site Scripting (XSS) - Stored in Packagist ptrofimov/beanstalk_console prior to 1.7.14.", "other": {"cve"... | 1,571 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\r\n$servers = $console->getServers();\r\nif ($server) {\r\n $serverKey = array_search($server, $servers);\r\n $serverLabel = is_numeric($serverKey) || empty($serverKey) ? $server : $serverKey;\r\n}\r\n?><!DOCTYPE html>\r\n<html>\r\n\r\n <head>\r\n <meta charset=\"utf-8\">\r\n <meta htt... | [
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [81, 73], "buggy_code_start_loc": [68, 47], "filenames": ["lib/tpl/main.php", "lib/tpl/serversList.php"], "fixing_code_end_loc": [81, 73], "fixing_code_start_loc": [68, 47], "message": "Cross-site Scripting (XSS) - Stored in Packagist ptrofimov/beanstalk_console prior to 1.7.14.", "other": {"cve"... | 1,571 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\r\n$servers = $console->getServers();\r\n$cookieServers = $console->getServersCookie();\r\n\r\nif (!empty($_COOKIE['filter'])) {\r\n $visible = explode(',', $_COOKIE['filter']);\r\n} else {\r\n $visible = array(\r\n 'current-jobs-urgent',\r\n 'current-jobs-ready',\r\n 'current-jobs... | [
1,
0,
1,
0,
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [81, 73], "buggy_code_start_loc": [68, 47], "filenames": ["lib/tpl/main.php", "lib/tpl/serversList.php"], "fixing_code_end_loc": [81, 73], "fixing_code_start_loc": [68, 47], "message": "Cross-site Scripting (XSS) - Stored in Packagist ptrofimov/beanstalk_console prior to 1.7.14.", "other": {"cve"... | 1,571 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\r\n$servers = $console->getServers();\r\n$cookieServers = $console->getServersCookie();\r\n\r\nif (!empty($_COOKIE['filter'])) {\r\n $visible = explode(',', $_COOKIE['filter']);\r\n} else {\r\n $visible = array(\r\n 'current-jobs-urgent',\r\n 'current-jobs-ready',\r\n 'current-jobs... | [
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [81, 73], "buggy_code_start_loc": [68, 47], "filenames": ["lib/tpl/main.php", "lib/tpl/serversList.php"], "fixing_code_end_loc": [81, 73], "fixing_code_start_loc": [68, 47], "message": "Cross-site Scripting (XSS) - Stored in Packagist ptrofimov/beanstalk_console prior to 1.7.14.", "other": {"cve"... | 1,571 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\nsession_start();\nif (empty($_POST) && !empty($_SESSION) && !isset($_REQUEST['stage'])) {\n $_POST = $_SESSION;",
"} else {",
" $_SESSION = array_replace($_SESSION, $_POST);\n}",
"$stage = isset($_POST['stage']) ? $_POST['stage'] : 0;",
"// Before we do anything, if we see config.php, redirect... | [
1,
0,
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
] | PreciseBugs | {"buggy_code_end_loc": [56, 60], "buggy_code_start_loc": [5, 60], "filenames": ["html/install.php", "includes/dbFacile.php"], "fixing_code_end_loc": [58, 62], "fixing_code_start_loc": [5, 61], "message": "The installation process in LibreNMS before 2017-08-18 allows remote attackers to read arbitrary files, related to ... | 1,572 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\nsession_start();\nif (empty($_POST) && !empty($_SESSION) && !isset($_REQUEST['stage'])) {\n $_POST = $_SESSION;",
"} elseif (!file_exists(\"../config.php\")) {",
" $_SESSION = array_replace($_SESSION, $_POST);\n}",
"$stage = isset($_POST['stage']) ? $_POST['stage'] : 0;",
"// Before we do anyt... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [56, 60], "buggy_code_start_loc": [5, 60], "filenames": ["html/install.php", "includes/dbFacile.php"], "fixing_code_end_loc": [58, 62], "fixing_code_start_loc": [5, 61], "message": "The installation process in LibreNMS before 2017-08-18 allows remote attackers to read arbitrary files, related to ... | 1,572 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"/*\n * dbFacile - A Database API that should have existed from the start\n * Version 0.4.3\n *\n * This code is covered by the MIT license http://en.wikipedia.org/wiki/MIT_License\n *\n * By Alan Szlosek from http://www.greaterscope.net/projects/dbFacile\n *\n * The non-OO version of dbFacile. It's a bi... | [
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [56, 60], "buggy_code_start_loc": [5, 60], "filenames": ["html/install.php", "includes/dbFacile.php"], "fixing_code_end_loc": [58, 62], "fixing_code_start_loc": [5, 61], "message": "The installation process in LibreNMS before 2017-08-18 allows remote attackers to read arbitrary files, related to ... | 1,572 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"/*\n * dbFacile - A Database API that should have existed from the start\n * Version 0.4.3\n *\n * This code is covered by the MIT license http://en.wikipedia.org/wiki/MIT_License\n *\n * By Alan Szlosek from http://www.greaterscope.net/projects/dbFacile\n *\n * The non-OO version of dbFacile. It's a bi... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [56, 60], "buggy_code_start_loc": [5, 60], "filenames": ["html/install.php", "includes/dbFacile.php"], "fixing_code_end_loc": [58, 62], "fixing_code_start_loc": [5, 61], "message": "The installation process in LibreNMS before 2017-08-18 allows remote attackers to read arbitrary files, related to ... | 1,572 |
Determine whether the {function_name} code is vulnerable or not. | [
"// ==========================================================================\n// Squidex Headless CMS\n// ==========================================================================\n// Copyright (c) Squidex UG (haftungsbeschraenkt)\n// All rights reserved. Licensed under the MIT license.\n// ==================... | [
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,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [21, 27, 23, 14, 62, 233, 162, 40, 86], "buggy_code_start_loc": [21, 27, 23, 14, 33, 40, 162, 39, 85], "filenames": ["backend/src/Squidex/Areas/IdentityServer/Controllers/Account/AccountController.cs", "backend/src/Squidex/Areas/IdentityServer/Controllers/Profile/ProfileController.cs", "backend/s... | 1,573 |
Determine whether the {function_name} code is vulnerable or not. | [
"// ==========================================================================\n// Squidex Headless CMS\n// ==========================================================================\n// Copyright (c) Squidex UG (haftungsbeschraenkt)\n// All rights reserved. Licensed under the MIT license.\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
] | PreciseBugs | {"buggy_code_end_loc": [21, 27, 23, 14, 62, 233, 162, 40, 86], "buggy_code_start_loc": [21, 27, 23, 14, 33, 40, 162, 39, 85], "filenames": ["backend/src/Squidex/Areas/IdentityServer/Controllers/Account/AccountController.cs", "backend/src/Squidex/Areas/IdentityServer/Controllers/Profile/ProfileController.cs", "backend/s... | 1,573 |
Determine whether the {function_name} code is vulnerable or not. | [
"// ==========================================================================\n// Squidex Headless CMS\n// ==========================================================================\n// Copyright (c) Squidex UG (haftungsbeschraenkt)\n// All rights reserved. Licensed under the MIT license.\n// ==================... | [
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
] | PreciseBugs | {"buggy_code_end_loc": [21, 27, 23, 14, 62, 233, 162, 40, 86], "buggy_code_start_loc": [21, 27, 23, 14, 33, 40, 162, 39, 85], "filenames": ["backend/src/Squidex/Areas/IdentityServer/Controllers/Account/AccountController.cs", "backend/src/Squidex/Areas/IdentityServer/Controllers/Profile/ProfileController.cs", "backend/s... | 1,573 |
Determine whether the {function_name} code is vulnerable or not. | [
"// ==========================================================================\n// Squidex Headless CMS\n// ==========================================================================\n// Copyright (c) Squidex UG (haftungsbeschraenkt)\n// All rights reserved. Licensed under the MIT license.\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
] | PreciseBugs | {"buggy_code_end_loc": [21, 27, 23, 14, 62, 233, 162, 40, 86], "buggy_code_start_loc": [21, 27, 23, 14, 33, 40, 162, 39, 85], "filenames": ["backend/src/Squidex/Areas/IdentityServer/Controllers/Account/AccountController.cs", "backend/src/Squidex/Areas/IdentityServer/Controllers/Profile/ProfileController.cs", "backend/s... | 1,573 |
Determine whether the {function_name} code is vulnerable or not. | [
"// ==========================================================================\n// Squidex Headless CMS\n// ==========================================================================\n// Copyright (c) Squidex UG (haftungsbeschraenkt)\n// All rights reserved. Licensed under the MIT license.\n// ==================... | [
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [21, 27, 23, 14, 62, 233, 162, 40, 86], "buggy_code_start_loc": [21, 27, 23, 14, 33, 40, 162, 39, 85], "filenames": ["backend/src/Squidex/Areas/IdentityServer/Controllers/Account/AccountController.cs", "backend/src/Squidex/Areas/IdentityServer/Controllers/Profile/ProfileController.cs", "backend/s... | 1,573 |
Determine whether the {function_name} code is vulnerable or not. | [
"// ==========================================================================\n// Squidex Headless CMS\n// ==========================================================================\n// Copyright (c) Squidex UG (haftungsbeschraenkt)\n// All rights reserved. Licensed under the MIT license.\n// ==================... | [
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": [21, 27, 23, 14, 62, 233, 162, 40, 86], "buggy_code_start_loc": [21, 27, 23, 14, 33, 40, 162, 39, 85], "filenames": ["backend/src/Squidex/Areas/IdentityServer/Controllers/Account/AccountController.cs", "backend/src/Squidex/Areas/IdentityServer/Controllers/Profile/ProfileController.cs", "backend/s... | 1,573 |
Determine whether the {function_name} code is vulnerable or not. | [
"@model Squidex.Areas.IdentityServer.Controllers.Account.ConsentVM",
"@{\n ViewBag.Title = T.Get(\"users.consent.title\");\n}",
"@functions {\n public string ErrorClass(string error)\n {\n return ViewData.ModelState[error]?.ValidationState == Microsoft.AspNetCore.Mvc.ModelBinding.ModelValidation... | [
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [21, 27, 23, 14, 62, 233, 162, 40, 86], "buggy_code_start_loc": [21, 27, 23, 14, 33, 40, 162, 39, 85], "filenames": ["backend/src/Squidex/Areas/IdentityServer/Controllers/Account/AccountController.cs", "backend/src/Squidex/Areas/IdentityServer/Controllers/Profile/ProfileController.cs", "backend/s... | 1,573 |
Determine whether the {function_name} code is vulnerable or not. | [
"@model Squidex.Areas.IdentityServer.Controllers.Account.ConsentVM",
"@{\n ViewBag.Title = T.Get(\"users.consent.title\");\n}",
"@functions {\n public string ErrorClass(string error)\n {\n return ViewData.ModelState[error]?.ValidationState == Microsoft.AspNetCore.Mvc.ModelBinding.ModelValidation... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [21, 27, 23, 14, 62, 233, 162, 40, 86], "buggy_code_start_loc": [21, 27, 23, 14, 33, 40, 162, 39, 85], "filenames": ["backend/src/Squidex/Areas/IdentityServer/Controllers/Account/AccountController.cs", "backend/src/Squidex/Areas/IdentityServer/Controllers/Profile/ProfileController.cs", "backend/s... | 1,573 |
Determine whether the {function_name} code is vulnerable or not. | [
"@model Squidex.Areas.IdentityServer.Controllers.Account.LoginVM",
"@{\n var action = Model!.IsLogin ? T.Get(\"common.login\") : T.Get(\"common.signup\");",
" ViewBag.Title = action;\n}",
"<div class=\"login-container\">\n <div class=\"container\">\n <div class=\"row text-center\">\n ... | [
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [21, 27, 23, 14, 62, 233, 162, 40, 86], "buggy_code_start_loc": [21, 27, 23, 14, 33, 40, 162, 39, 85], "filenames": ["backend/src/Squidex/Areas/IdentityServer/Controllers/Account/AccountController.cs", "backend/src/Squidex/Areas/IdentityServer/Controllers/Profile/ProfileController.cs", "backend/s... | 1,573 |
Determine whether the {function_name} code is vulnerable or not. | [
"@model Squidex.Areas.IdentityServer.Controllers.Account.LoginVM",
"@{\n var action = Model!.IsLogin ? T.Get(\"common.login\") : T.Get(\"common.signup\");",
" ViewBag.Title = action;\n}",
"<div class=\"login-container\">\n <div class=\"container\">\n <div class=\"row text-center\">\n ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [21, 27, 23, 14, 62, 233, 162, 40, 86], "buggy_code_start_loc": [21, 27, 23, 14, 33, 40, 162, 39, 85], "filenames": ["backend/src/Squidex/Areas/IdentityServer/Controllers/Account/AccountController.cs", "backend/src/Squidex/Areas/IdentityServer/Controllers/Profile/ProfileController.cs", "backend/s... | 1,573 |
Determine whether the {function_name} code is vulnerable or not. | [
"@model Squidex.Areas.IdentityServer.Controllers.Profile.ProfileVM",
"@{\n ViewBag.Title = T.Get(\"users.profile.title\");",
" void RenderValidation(string field)\n {\n @if (ViewContext.ViewData.ModelState[field]?.ValidationState == Microsoft.AspNetCore.Mvc.ModelBinding.ModelValidationState.Inva... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
0,
1,
1,
1,
1,
0,
1,
0,
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,
0,
1... | PreciseBugs | {"buggy_code_end_loc": [21, 27, 23, 14, 62, 233, 162, 40, 86], "buggy_code_start_loc": [21, 27, 23, 14, 33, 40, 162, 39, 85], "filenames": ["backend/src/Squidex/Areas/IdentityServer/Controllers/Account/AccountController.cs", "backend/src/Squidex/Areas/IdentityServer/Controllers/Profile/ProfileController.cs", "backend/s... | 1,573 |
Determine whether the {function_name} code is vulnerable or not. | [
"@model Squidex.Areas.IdentityServer.Controllers.Profile.ProfileVM",
"@{\n ViewBag.Title = T.Get(\"users.profile.title\");",
" void RenderValidation(string field)\n {\n @if (ViewContext.ViewData.ModelState[field]?.ValidationState == Microsoft.AspNetCore.Mvc.ModelBinding.ModelValidationState.Inva... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [21, 27, 23, 14, 62, 233, 162, 40, 86], "buggy_code_start_loc": [21, 27, 23, 14, 33, 40, 162, 39, 85], "filenames": ["backend/src/Squidex/Areas/IdentityServer/Controllers/Account/AccountController.cs", "backend/src/Squidex/Areas/IdentityServer/Controllers/Profile/ProfileController.cs", "backend/s... | 1,573 |
Determine whether the {function_name} code is vulnerable or not. | [
"@model Squidex.Areas.IdentityServer.Controllers.Setup.SetupVM",
"@{\n ViewBag.Title = T.Get(\"setup.title\");",
" void RenderValidation(string field)\n {\n @if (ViewContext.ViewData.ModelState[field]?.ValidationState == Microsoft.AspNetCore.Mvc.ModelBinding.ModelValidationState.Invalid)\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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [21, 27, 23, 14, 62, 233, 162, 40, 86], "buggy_code_start_loc": [21, 27, 23, 14, 33, 40, 162, 39, 85], "filenames": ["backend/src/Squidex/Areas/IdentityServer/Controllers/Account/AccountController.cs", "backend/src/Squidex/Areas/IdentityServer/Controllers/Profile/ProfileController.cs", "backend/s... | 1,573 |
Determine whether the {function_name} code is vulnerable or not. | [
"@model Squidex.Areas.IdentityServer.Controllers.Setup.SetupVM",
"@{\n ViewBag.Title = T.Get(\"setup.title\");",
" void RenderValidation(string field)\n {\n @if (ViewContext.ViewData.ModelState[field]?.ValidationState == Microsoft.AspNetCore.Mvc.ModelBinding.ModelValidationState.Invalid)\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
] | PreciseBugs | {"buggy_code_end_loc": [21, 27, 23, 14, 62, 233, 162, 40, 86], "buggy_code_start_loc": [21, 27, 23, 14, 33, 40, 162, 39, 85], "filenames": ["backend/src/Squidex/Areas/IdentityServer/Controllers/Account/AccountController.cs", "backend/src/Squidex/Areas/IdentityServer/Controllers/Profile/ProfileController.cs", "backend/s... | 1,573 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * Squidex Headless CMS\n *\n * @license\n * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.\n */",
"import { Directive, ElementRef, Input, OnChanges, OnDestroy, OnInit, Pipe, PipeTransform, Renderer2 } from '@angular/core';\nimport { ResourceOwner } from '@app/framework';\nimport { Conte... | [
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,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [21, 27, 23, 14, 62, 233, 162, 40, 86], "buggy_code_start_loc": [21, 27, 23, 14, 33, 40, 162, 39, 85], "filenames": ["backend/src/Squidex/Areas/IdentityServer/Controllers/Account/AccountController.cs", "backend/src/Squidex/Areas/IdentityServer/Controllers/Profile/ProfileController.cs", "backend/s... | 1,573 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * Squidex Headless CMS\n *\n * @license\n * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.\n */",
"import { Directive, ElementRef, Input, OnChanges, OnDestroy, OnInit, Pipe, PipeTransform, Renderer2 } from '@angular/core';\nimport { ResourceOwner } from '@app/framework';\nimport { Conte... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [21, 27, 23, 14, 62, 233, 162, 40, 86], "buggy_code_start_loc": [21, 27, 23, 14, 33, 40, 162, 39, 85], "filenames": ["backend/src/Squidex/Areas/IdentityServer/Controllers/Account/AccountController.cs", "backend/src/Squidex/Areas/IdentityServer/Controllers/Profile/ProfileController.cs", "backend/s... | 1,573 |
Determine whether the {function_name} code is vulnerable or not. | [
"<ng-container [ngSwitch]=\"field\">\n <ng-container *ngSwitchCase=\"metaFields.id\">\n <small class=\"truncate\">{{content.id}}</small>\n </ng-container>\n <ng-container *ngSwitchCase=\"metaFields.created\">\n <small class=\"truncate\">{{content.created | sqxFromNow}}</small>\n </ng-conta... | [
1,
1,
0,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [21, 27, 23, 14, 62, 233, 162, 40, 86], "buggy_code_start_loc": [21, 27, 23, 14, 33, 40, 162, 39, 85], "filenames": ["backend/src/Squidex/Areas/IdentityServer/Controllers/Account/AccountController.cs", "backend/src/Squidex/Areas/IdentityServer/Controllers/Profile/ProfileController.cs", "backend/s... | 1,573 |
Determine whether the {function_name} code is vulnerable or not. | [
"<ng-container [ngSwitch]=\"field\">\n <ng-container *ngSwitchCase=\"metaFields.id\">\n <small class=\"truncate\">{{content.id}}</small>\n </ng-container>\n <ng-container *ngSwitchCase=\"metaFields.created\">\n <small class=\"truncate\">{{content.created | sqxFromNow}}</small>\n </ng-conta... | [
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [21, 27, 23, 14, 62, 233, 162, 40, 86], "buggy_code_start_loc": [21, 27, 23, 14, 33, 40, 162, 39, 85], "filenames": ["backend/src/Squidex/Areas/IdentityServer/Controllers/Account/AccountController.cs", "backend/src/Squidex/Areas/IdentityServer/Controllers/Profile/ProfileController.cs", "backend/s... | 1,573 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/",
"/***\n This file is part of systemd.",
" Copyright 2014 Lennart Poettering",
" systemd is free software; you can redistribute it and/or modify it\n under the terms of the GNU Lesser General Public License as published by\n the Free Softwar... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [575], "buggy_code_start_loc": [416], "filenames": ["src/nss-mymachines/nss-mymachines.c"], "fixing_code_end_loc": [582], "fixing_code_start_loc": [417], "message": "Stack-based buffer overflow in the getpwnam and getgrnam functions of the NSS module nss-mymachines in systemd.", "other": {"cve": ... | 1,574 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/",
"/***\n This file is part of systemd.",
" Copyright 2014 Lennart Poettering",
" systemd is free software; you can redistribute it and/or modify it\n under the terms of the GNU Lesser General Public License as published by\n the Free Softwar... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [575], "buggy_code_start_loc": [416], "filenames": ["src/nss-mymachines/nss-mymachines.c"], "fixing_code_end_loc": [582], "fixing_code_start_loc": [417], "message": "Stack-based buffer overflow in the getpwnam and getgrnam functions of the NSS module nss-mymachines in systemd.", "other": {"cve": ... | 1,574 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * OpenMage\n *\n * NOTICE OF LICENSE\n *\n * This source file is subject to the Open Software License (OSL 3.0)\n * that is bundled with this package in the file LICENSE.txt.\n * It is also available through the world-wide-web at this URL:\n * https://opensource.org/licenses/osl-3.0.php\n * If you did... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [854, 33], "buggy_code_start_loc": [854, 31], "filenames": ["app/code/core/Mage/Core/Block/Abstract.php", "app/code/core/Mage/Core/Helper/Security.php"], "fixing_code_end_loc": [856, 30], "fixing_code_start_loc": [855, 30], "message": "OpenMage LTS is an e-commerce platform. Prior to versions 19.... | 1,575 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * OpenMage\n *\n * NOTICE OF LICENSE\n *\n * This source file is subject to the Open Software License (OSL 3.0)\n * that is bundled with this package in the file LICENSE.txt.\n * It is also available through the world-wide-web at this URL:\n * https://opensource.org/licenses/osl-3.0.php\n * If you did... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [854, 33], "buggy_code_start_loc": [854, 31], "filenames": ["app/code/core/Mage/Core/Block/Abstract.php", "app/code/core/Mage/Core/Helper/Security.php"], "fixing_code_end_loc": [856, 30], "fixing_code_start_loc": [855, 30], "message": "OpenMage LTS is an e-commerce platform. Prior to versions 19.... | 1,575 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * OpenMage\n *\n * NOTICE OF LICENSE\n *\n * This source file is subject to the Open Software License (OSL 3.0)\n * that is bundled with this package in the file LICENSE.txt.\n * It is also available through the world-wide-web at this URL:\n * https://opensource.org/licenses/osl-3.0.php\n * If you did... | [
1,
1,
0,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [854, 33], "buggy_code_start_loc": [854, 31], "filenames": ["app/code/core/Mage/Core/Block/Abstract.php", "app/code/core/Mage/Core/Helper/Security.php"], "fixing_code_end_loc": [856, 30], "fixing_code_start_loc": [855, 30], "message": "OpenMage LTS is an e-commerce platform. Prior to versions 19.... | 1,575 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * OpenMage\n *\n * NOTICE OF LICENSE\n *\n * This source file is subject to the Open Software License (OSL 3.0)\n * that is bundled with this package in the file LICENSE.txt.\n * It is also available through the world-wide-web at this URL:\n * https://opensource.org/licenses/osl-3.0.php\n * If you did... | [
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [854, 33], "buggy_code_start_loc": [854, 31], "filenames": ["app/code/core/Mage/Core/Block/Abstract.php", "app/code/core/Mage/Core/Helper/Security.php"], "fixing_code_end_loc": [856, 30], "fixing_code_start_loc": [855, 30], "message": "OpenMage LTS is an e-commerce platform. Prior to versions 19.... | 1,575 |
Determine whether the {function_name} code is vulnerable or not. | [
"",
"## v0.125.0, 5 November 2020",
"- Bundler: Explain why security update was not possible\n- Raise descriptive error when update is not possible\n- Go mod: Handle post-v0 module path updates",
"## v0.124.8, 4 November 2020",
"- Add missing python versions: 3.6.12 3.6.11 3.6.10, 3.5.10 and 3.5.8",
"## v... | [
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,
1... | PreciseBugs | {"buggy_code_end_loc": [0, 5], "buggy_code_start_loc": [0, 4], "filenames": ["CHANGELOG.md", "common/lib/dependabot/version.rb"], "fixing_code_end_loc": [5, 5], "fixing_code_start_loc": [1, 4], "message": "Dependabot is a set of packages for automated dependency management for Ruby, JavaScript, Python, PHP, Elixir, Rus... | 1,576 |
Determine whether the {function_name} code is vulnerable or not. | [
"## v0.125.1, 5 November 2020",
"- Escape `SharedHelpers.run_shell_command` with shellwords\n",
"## v0.125.0, 5 November 2020",
"- Bundler: Explain why security update was not possible\n- Raise descriptive error when update is not possible\n- Go mod: Handle post-v0 module path updates",
"## v0.124.8, 4 Nove... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [0, 5], "buggy_code_start_loc": [0, 4], "filenames": ["CHANGELOG.md", "common/lib/dependabot/version.rb"], "fixing_code_end_loc": [5, 5], "fixing_code_start_loc": [1, 4], "message": "Dependabot is a set of packages for automated dependency management for Ruby, JavaScript, Python, PHP, Elixir, Rus... | 1,576 |
Determine whether the {function_name} code is vulnerable or not. | [
"# frozen_string_literal: true",
"module Dependabot",
" VERSION = \"0.125.0\"",
"end"
] | [
1,
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [0, 5], "buggy_code_start_loc": [0, 4], "filenames": ["CHANGELOG.md", "common/lib/dependabot/version.rb"], "fixing_code_end_loc": [5, 5], "fixing_code_start_loc": [1, 4], "message": "Dependabot is a set of packages for automated dependency management for Ruby, JavaScript, Python, PHP, Elixir, Rus... | 1,576 |
Determine whether the {function_name} code is vulnerable or not. | [
"# frozen_string_literal: true",
"module Dependabot",
" VERSION = \"0.125.1\"",
"end"
] | [
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [0, 5], "buggy_code_start_loc": [0, 4], "filenames": ["CHANGELOG.md", "common/lib/dependabot/version.rb"], "fixing_code_end_loc": [5, 5], "fixing_code_start_loc": [1, 4], "message": "Dependabot is a set of packages for automated dependency management for Ruby, JavaScript, Python, PHP, Elixir, Rus... | 1,576 |
Determine whether the {function_name} code is vulnerable or not. | [
"<div id=\"users\">\n <h1><img src=\"<?= base_url('assets/imgs/admin-user.png') ?>\" class=\"header-img\" style=\"margin-top:-3px;\"> Admin Users</h1> \n <hr>\n <?php if (validation_errors()) { ?>\n <hr>\n <div class=\"alert alert-danger\"><?= validation_errors() ?></div>\n <hr>\n ... | [
1,
1,
0,
1,
0,
1,
0,
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [92, 87, 45, 110, 167, 134, 165, 15, 136, 15, 150, 14], "buggy_code_start_loc": [76, 86, 44, 45, 22, 17, 106, 14, 86, 14, 106, 13], "filenames": ["application/modules/admin/views/advanced_settings/adminUsers.php", "application/modules/admin/views/advanced_settings/languages.php", "application/mod... | 1,577 |
Determine whether the {function_name} code is vulnerable or not. | [
"<div id=\"users\">\n <h1><img src=\"<?= base_url('assets/imgs/admin-user.png') ?>\" class=\"header-img\" style=\"margin-top:-3px;\"> Admin Users</h1> \n <hr>\n <?php if (validation_errors()) { ?>\n <hr>\n <div class=\"alert alert-danger\"><?= validation_errors() ?></div>\n <hr>\n ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [92, 87, 45, 110, 167, 134, 165, 15, 136, 15, 150, 14], "buggy_code_start_loc": [76, 86, 44, 45, 22, 17, 106, 14, 86, 14, 106, 13], "filenames": ["application/modules/admin/views/advanced_settings/adminUsers.php", "application/modules/admin/views/advanced_settings/languages.php", "application/mod... | 1,577 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.