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. | [
"# encoding: UTF-8",
"# Original Rumble tests (c) 2011 Magnus Holm (https://github.com/judofyr).",
"require 'helper'",
"if defined?(Minitest::Test)\n klass = Minitest::Test\nelse\n klass = MiniTest::Unit::TestCase\nend",
"class TestRumble < klass\n include Keynote::Rumble",
" def assert_rumble(str, &b... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
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
] | PreciseBugs | {"buggy_code_end_loc": [330, 75], "buggy_code_start_loc": [326, 70], "filenames": ["lib/keynote/rumble.rb", "spec/rumble_spec.rb"], "fixing_code_end_loc": [338, 87], "fixing_code_start_loc": [326, 70], "message": "A vulnerability was found in rf Keynote up to 0.x. It has been rated as problematic. Affected by this issu... | 794 |
Determine whether the {function_name} code is vulnerable or not. | [
"# encoding: UTF-8",
"# Original Rumble tests (c) 2011 Magnus Holm (https://github.com/judofyr).",
"require 'helper'",
"if defined?(Minitest::Test)\n klass = Minitest::Test\nelse\n klass = MiniTest::Unit::TestCase\nend",
"class TestRumble < klass\n include Keynote::Rumble",
" def assert_rumble(str, &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
] | PreciseBugs | {"buggy_code_end_loc": [330, 75], "buggy_code_start_loc": [326, 70], "filenames": ["lib/keynote/rumble.rb", "spec/rumble_spec.rb"], "fixing_code_end_loc": [338, 87], "fixing_code_start_loc": [326, 70], "message": "A vulnerability was found in rf Keynote up to 0.x. It has been rated as problematic. Affected by this issu... | 794 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n** $Id: lgc.c $\n** Garbage Collector\n** See Copyright Notice in lua.h\n*/",
"#define lgc_c\n#define LUA_CORE",
"#include \"lprefix.h\"",
"#include <stdio.h>\n#include <string.h>",
"\n#include \"lua.h\"",
"#include \"ldebug.h\"\n#include \"ldo.h\"\n#include \"lfunc.h\"\n#include \"lgc.h\"\n#include ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [1144], "buggy_code_start_loc": [1134], "filenames": ["lgc.c"], "fixing_code_end_loc": [1142], "fixing_code_start_loc": [1134], "message": "Lua 5.4.0 has a getobjname heap-based buffer over-read because youngcollection in lgc.c uses markold for an insufficient number of list members.", "other": {... | 795 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n** $Id: lgc.c $\n** Garbage Collector\n** See Copyright Notice in lua.h\n*/",
"#define lgc_c\n#define LUA_CORE",
"#include \"lprefix.h\"",
"#include <stdio.h>\n#include <string.h>",
"\n#include \"lua.h\"",
"#include \"ldebug.h\"\n#include \"ldo.h\"\n#include \"lfunc.h\"\n#include \"lgc.h\"\n#include ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [1144], "buggy_code_start_loc": [1134], "filenames": ["lgc.c"], "fixing_code_end_loc": [1142], "fixing_code_start_loc": [1134], "message": "Lua 5.4.0 has a getobjname heap-based buffer over-read because youngcollection in lgc.c uses markold for an insufficient number of list members.", "other": {... | 795 |
Determine whether the {function_name} code is vulnerable or not. | [
"package scrypt",
"import (\n\t\"bytes\"\n\t\"crypto/rand\"\n\t\"crypto/sha256\"",
"",
"\t\"encoding/binary\"\n\t\"log\"",
"\t\"code.google.com/p/go.crypto/scrypt\"\n)",
"// EncryptPassphrase returns a keylen_bytes+60 bytes of encrypted text\n// from the input passphrase.\n// It runs the scrypt function f... | [
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [122], "buggy_code_start_loc": [6], "filenames": ["scrypt.go"], "fixing_code_end_loc": [127], "fixing_code_start_loc": [7], "message": "A vulnerability, which was classified as problematic, was found in agnivade easy-scrypt. Affected is the function VerifyPassphrase of the file scrypt.go. The man... | 796 |
Determine whether the {function_name} code is vulnerable or not. | [
"package scrypt",
"import (\n\t\"bytes\"\n\t\"crypto/rand\"\n\t\"crypto/sha256\"",
"\t\"crypto/subtle\"",
"\t\"encoding/binary\"\n\t\"log\"",
"\t\"code.google.com/p/go.crypto/scrypt\"\n)",
"// EncryptPassphrase returns a keylen_bytes+60 bytes of encrypted text\n// from the input passphrase.\n// It runs th... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [122], "buggy_code_start_loc": [6], "filenames": ["scrypt.go"], "fixing_code_end_loc": [127], "fixing_code_start_loc": [7], "message": "A vulnerability, which was classified as problematic, was found in agnivade easy-scrypt. Affected is the function VerifyPassphrase of the file scrypt.go. The man... | 796 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n$sub_menu = \"300100\";\ninclude_once('./_common.php');",
"if ($w == 'u')\n check_demo();",
"auth_check($auth[$sub_menu], 'w');",
"check_admin_token();",
"if (!$_POST['gr_id']) { alert('그룹 ID는 반드시 선택하세요.'); }\nif (!$bo_table) { alert('게시판 TABLE명은 반드시 입력하세요.'); }\nif (!preg_match(\"/^([A-Za-z0-9_]... | [
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": [73, 121, 1321, 27, 198, 28, 16, 11, 62], "buggy_code_start_loc": [73, 120, 1320, 27, 198, 26, 8, 6, 46], "filenames": ["adm/board_form_update.php", "adm/boardgroup_form.php", "adm/config_form.php", "adm/config_form_update.php", "adm/menu_list.php", "adm/menu_list_update.php", "bbs/board_head.php... | 797 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n$sub_menu = \"300100\";\ninclude_once('./_common.php');",
"if ($w == 'u')\n check_demo();",
"auth_check($auth[$sub_menu], 'w');",
"check_admin_token();",
"if (!$_POST['gr_id']) { alert('그룹 ID는 반드시 선택하세요.'); }\nif (!$bo_table) { alert('게시판 TABLE명은 반드시 입력하세요.'); }\nif (!preg_match(\"/^([A-Za-z0-9_]... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [73, 121, 1321, 27, 198, 28, 16, 11, 62], "buggy_code_start_loc": [73, 120, 1320, 27, 198, 26, 8, 6, 46], "filenames": ["adm/board_form_update.php", "adm/boardgroup_form.php", "adm/config_form.php", "adm/config_form_update.php", "adm/menu_list.php", "adm/menu_list_update.php", "bbs/board_head.php... | 797 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n$sub_menu = \"300200\";\ninclude_once('./_common.php');",
"auth_check($auth[$sub_menu], 'w');",
"if ($is_admin != 'super' && $w == '') alert('최고관리자만 접근 가능합니다.');",
"$html_title = '게시판그룹';\n$gr_id_attr = '';\n$sound_only = '';\nif ($w == '') {\n $gr_id_attr = 'required';\n $sound_only = '<strong ... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [73, 121, 1321, 27, 198, 28, 16, 11, 62], "buggy_code_start_loc": [73, 120, 1320, 27, 198, 26, 8, 6, 46], "filenames": ["adm/board_form_update.php", "adm/boardgroup_form.php", "adm/config_form.php", "adm/config_form_update.php", "adm/menu_list.php", "adm/menu_list_update.php", "bbs/board_head.php... | 797 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n$sub_menu = \"300200\";\ninclude_once('./_common.php');",
"auth_check($auth[$sub_menu], 'w');",
"if ($is_admin != 'super' && $w == '') alert('최고관리자만 접근 가능합니다.');",
"$html_title = '게시판그룹';\n$gr_id_attr = '';\n$sound_only = '';\nif ($w == '') {\n $gr_id_attr = 'required';\n $sound_only = '<strong ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [73, 121, 1321, 27, 198, 28, 16, 11, 62], "buggy_code_start_loc": [73, 120, 1320, 27, 198, 26, 8, 6, 46], "filenames": ["adm/board_form_update.php", "adm/boardgroup_form.php", "adm/config_form.php", "adm/config_form_update.php", "adm/menu_list.php", "adm/menu_list_update.php", "bbs/board_head.php... | 797 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n$sub_menu = \"100100\";\ninclude_once('./_common.php');",
"auth_check($auth[$sub_menu], 'r');",
"if ($is_admin != 'super')\n alert('최고관리자만 접근 가능합니다.');",
"if (!isset($config['cf_add_script'])) {\n sql_query(\" ALTER TABLE `{$g5['config_table']}`\n ADD `cf_add_script` TEXT NOT ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [73, 121, 1321, 27, 198, 28, 16, 11, 62], "buggy_code_start_loc": [73, 120, 1320, 27, 198, 26, 8, 6, 46], "filenames": ["adm/board_form_update.php", "adm/boardgroup_form.php", "adm/config_form.php", "adm/config_form_update.php", "adm/menu_list.php", "adm/menu_list_update.php", "bbs/board_head.php... | 797 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n$sub_menu = \"100100\";\ninclude_once('./_common.php');",
"auth_check($auth[$sub_menu], 'r');",
"if ($is_admin != 'super')\n alert('최고관리자만 접근 가능합니다.');",
"if (!isset($config['cf_add_script'])) {\n sql_query(\" ALTER TABLE `{$g5['config_table']}`\n ADD `cf_add_script` TEXT NOT ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [73, 121, 1321, 27, 198, 28, 16, 11, 62], "buggy_code_start_loc": [73, 120, 1320, 27, 198, 26, 8, 6, 46], "filenames": ["adm/board_form_update.php", "adm/boardgroup_form.php", "adm/config_form.php", "adm/config_form_update.php", "adm/menu_list.php", "adm/menu_list_update.php", "bbs/board_head.php... | 797 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n$sub_menu = \"100100\";\ninclude_once('./_common.php');",
"check_demo();",
"auth_check($auth[$sub_menu], 'w');",
"if ($is_admin != 'super')\n alert('최고관리자만 접근 가능합니다.');",
"$mb = get_member($cf_admin);\nif (!$mb['mb_id'])\n alert('최고관리자 회원아이디가 존재하지 않습니다.');",
"check_admin_token();",
"// 본인확... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [73, 121, 1321, 27, 198, 28, 16, 11, 62], "buggy_code_start_loc": [73, 120, 1320, 27, 198, 26, 8, 6, 46], "filenames": ["adm/board_form_update.php", "adm/boardgroup_form.php", "adm/config_form.php", "adm/config_form_update.php", "adm/menu_list.php", "adm/menu_list_update.php", "bbs/board_head.php... | 797 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n$sub_menu = \"100100\";\ninclude_once('./_common.php');",
"check_demo();",
"auth_check($auth[$sub_menu], 'w');",
"if ($is_admin != 'super')\n alert('최고관리자만 접근 가능합니다.');",
"$mb = get_member($cf_admin);\nif (!$mb['mb_id'])\n alert('최고관리자 회원아이디가 존재하지 않습니다.');",
"check_admin_token();",
"// 본인확... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [73, 121, 1321, 27, 198, 28, 16, 11, 62], "buggy_code_start_loc": [73, 120, 1320, 27, 198, 26, 8, 6, 46], "filenames": ["adm/board_form_update.php", "adm/boardgroup_form.php", "adm/config_form.php", "adm/config_form_update.php", "adm/menu_list.php", "adm/menu_list_update.php", "bbs/board_head.php... | 797 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n$sub_menu = \"100290\";\ninclude_once('./_common.php');",
"if ($is_admin != 'super')\n alert('최고관리자만 접근 가능합니다.');",
"// 메뉴테이블 생성\nif( !isset($g5['menu_table']) ){\n die('<meta charset=\"utf-8\">dbconfig.php 파일에 <strong>$g5[\\'menu_table\\'] = G5_TABLE_PREFIX.\\'menu\\';</strong> 를 추가해 주세요.');\n}",... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [73, 121, 1321, 27, 198, 28, 16, 11, 62], "buggy_code_start_loc": [73, 120, 1320, 27, 198, 26, 8, 6, 46], "filenames": ["adm/board_form_update.php", "adm/boardgroup_form.php", "adm/config_form.php", "adm/config_form_update.php", "adm/menu_list.php", "adm/menu_list_update.php", "bbs/board_head.php... | 797 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n$sub_menu = \"100290\";\ninclude_once('./_common.php');",
"if ($is_admin != 'super')\n alert('최고관리자만 접근 가능합니다.');",
"// 메뉴테이블 생성\nif( !isset($g5['menu_table']) ){\n die('<meta charset=\"utf-8\">dbconfig.php 파일에 <strong>$g5[\\'menu_table\\'] = G5_TABLE_PREFIX.\\'menu\\';</strong> 를 추가해 주세요.');\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
] | PreciseBugs | {"buggy_code_end_loc": [73, 121, 1321, 27, 198, 28, 16, 11, 62], "buggy_code_start_loc": [73, 120, 1320, 27, 198, 26, 8, 6, 46], "filenames": ["adm/board_form_update.php", "adm/boardgroup_form.php", "adm/config_form.php", "adm/config_form_update.php", "adm/menu_list.php", "adm/menu_list_update.php", "bbs/board_head.php... | 797 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n$sub_menu = \"100290\";\ninclude_once('./_common.php');",
"check_demo();",
"if ($is_admin != 'super')\n alert('최고관리자만 접근 가능합니다.');",
"check_admin_token();",
"// 이전 메뉴정보 삭제\n$sql = \" delete from {$g5['menu_table']} \";\nsql_query($sql);",
"$group_code = null;\n$primary_code = null;\n$count = co... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [73, 121, 1321, 27, 198, 28, 16, 11, 62], "buggy_code_start_loc": [73, 120, 1320, 27, 198, 26, 8, 6, 46], "filenames": ["adm/board_form_update.php", "adm/boardgroup_form.php", "adm/config_form.php", "adm/config_form_update.php", "adm/menu_list.php", "adm/menu_list_update.php", "bbs/board_head.php... | 797 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n$sub_menu = \"100290\";\ninclude_once('./_common.php');",
"check_demo();",
"if ($is_admin != 'super')\n alert('최고관리자만 접근 가능합니다.');",
"check_admin_token();",
"// 이전 메뉴정보 삭제\n$sql = \" delete from {$g5['menu_table']} \";\nsql_query($sql);",
"$group_code = null;\n$primary_code = null;\n$count = co... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [73, 121, 1321, 27, 198, 28, 16, 11, 62], "buggy_code_start_loc": [73, 120, 1320, 27, 198, 26, 8, 6, 46], "filenames": ["adm/board_form_update.php", "adm/boardgroup_form.php", "adm/config_form.php", "adm/config_form_update.php", "adm/menu_list.php", "adm/menu_list_update.php", "bbs/board_head.php... | 797 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\nif (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가",
"// 게시판 관리의 상단 내용\nif (G5_IS_MOBILE) {\n // 모바일의 경우 설정을 따르지 않는다.\n include_once(G5_BBS_PATH.'/_head.php');",
" echo stripslashes($board['bo_mobile_content_head']);",
"} else {\n if(is_include_path_check($board['bo_include_head'])) { //파일... | [
1,
1,
0,
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [73, 121, 1321, 27, 198, 28, 16, 11, 62], "buggy_code_start_loc": [73, 120, 1320, 27, 198, 26, 8, 6, 46], "filenames": ["adm/board_form_update.php", "adm/boardgroup_form.php", "adm/config_form.php", "adm/config_form_update.php", "adm/menu_list.php", "adm/menu_list_update.php", "bbs/board_head.php... | 797 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\nif (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가",
"// 게시판 관리의 상단 내용\nif (G5_IS_MOBILE) {\n // 모바일의 경우 설정을 따르지 않는다.\n include_once(G5_BBS_PATH.'/_head.php');",
" echo html_purifier(stripslashes($board['bo_mobile_content_head']));",
"} else {\n if(is_include_path_check($board['bo_include_h... | [
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [73, 121, 1321, 27, 198, 28, 16, 11, 62], "buggy_code_start_loc": [73, 120, 1320, 27, 198, 26, 8, 6, 46], "filenames": ["adm/board_form_update.php", "adm/boardgroup_form.php", "adm/config_form.php", "adm/config_form_update.php", "adm/menu_list.php", "adm/menu_list_update.php", "bbs/board_head.php... | 797 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\nif (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가",
"// 게시판 관리의 하단 파일 경로\nif (G5_IS_MOBILE) {",
" echo stripslashes($board['bo_mobile_content_tail']);",
" // 모바일의 경우 설정을 따르지 않는다.\n include_once(G5_BBS_PATH.'/_tail.php');\n} else {",
" echo stripslashes($board['bo_content_tail']);",
" ... | [
1,
1,
0,
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [73, 121, 1321, 27, 198, 28, 16, 11, 62], "buggy_code_start_loc": [73, 120, 1320, 27, 198, 26, 8, 6, 46], "filenames": ["adm/board_form_update.php", "adm/boardgroup_form.php", "adm/config_form.php", "adm/config_form_update.php", "adm/menu_list.php", "adm/menu_list_update.php", "bbs/board_head.php... | 797 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\nif (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가",
"// 게시판 관리의 하단 파일 경로\nif (G5_IS_MOBILE) {",
" echo html_purifier(stripslashes($board['bo_mobile_content_tail']));",
" // 모바일의 경우 설정을 따르지 않는다.\n include_once(G5_BBS_PATH.'/_tail.php');\n} else {",
" echo html_purifier(stripslashes($board... | [
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [73, 121, 1321, 27, 198, 28, 16, 11, 62], "buggy_code_start_loc": [73, 120, 1320, 27, 198, 26, 8, 6, 46], "filenames": ["adm/board_form_update.php", "adm/boardgroup_form.php", "adm/config_form.php", "adm/config_form_update.php", "adm/menu_list.php", "adm/menu_list_update.php", "bbs/board_head.php... | 797 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\ninclude_once('./_common.php');",
"$g5['title'] = '비밀번호 입력';",
"switch ($w) {\n case 'u' :\n $action = G5_HTTP_BBS_URL.'/write.php';\n $return_url = G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id;\n break;\n case 'd' :\n set_session('ss_delete_toke... | [
1,
1,
1,
1,
0,
1,
1,
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [73, 121, 1321, 27, 198, 28, 16, 11, 62], "buggy_code_start_loc": [73, 120, 1320, 27, 198, 26, 8, 6, 46], "filenames": ["adm/board_form_update.php", "adm/boardgroup_form.php", "adm/config_form.php", "adm/config_form_update.php", "adm/menu_list.php", "adm/menu_list_update.php", "bbs/board_head.php... | 797 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\ninclude_once('./_common.php');",
"$g5['title'] = '비밀번호 입력';",
"switch ($w) {\n case 'u' :\n $action = G5_HTTP_BBS_URL.'/write.php';\n $return_url = G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id;\n break;\n case 'd' :\n set_session('ss_delete_toke... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [73, 121, 1321, 27, 198, 28, 16, 11, 62], "buggy_code_start_loc": [73, 120, 1320, 27, 198, 26, 8, 6, 46], "filenames": ["adm/board_form_update.php", "adm/boardgroup_form.php", "adm/config_form.php", "adm/config_form_update.php", "adm/menu_list.php", "adm/menu_list_update.php", "bbs/board_head.php... | 797 |
Determine whether the {function_name} code is vulnerable or not. | [
"// SPDX-License-Identifier: GPL-2.0-only\n/*\n * xfrm_policy.c\n *\n * Changes:\n *\tMitsuru KANDA @USAGI\n * \tKazunori MIYAZAWA @USAGI\n * \tKunihiro Ishiguro <kunihiro@ipinfusion.com>\n * \t\tIPv6 support\n * \tKazunori MIYAZAWA @USAGI\n * \tYOSHIFUJI Hideaki\n * \t\tSplit up af-specific portion\n *\tDerek Atki... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [2696], "buggy_code_start_loc": [2681], "filenames": ["net/xfrm/xfrm_policy.c"], "fixing_code_end_loc": [2700], "fixing_code_start_loc": [2681], "message": "An issue was discovered in the Linux kernel through 5.18.14. xfrm_expand_policies in net/xfrm/xfrm_policy.c can cause a refcount to be dropp... | 798 |
Determine whether the {function_name} code is vulnerable or not. | [
"// SPDX-License-Identifier: GPL-2.0-only\n/*\n * xfrm_policy.c\n *\n * Changes:\n *\tMitsuru KANDA @USAGI\n * \tKazunori MIYAZAWA @USAGI\n * \tKunihiro Ishiguro <kunihiro@ipinfusion.com>\n * \t\tIPv6 support\n * \tKazunori MIYAZAWA @USAGI\n * \tYOSHIFUJI Hideaki\n * \t\tSplit up af-specific portion\n *\tDerek Atki... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [2696], "buggy_code_start_loc": [2681], "filenames": ["net/xfrm/xfrm_policy.c"], "fixing_code_end_loc": [2700], "fixing_code_start_loc": [2681], "message": "An issue was discovered in the Linux kernel through 5.18.14. xfrm_expand_policies in net/xfrm/xfrm_policy.c can cause a refcount to be dropp... | 798 |
Determine whether the {function_name} code is vulnerable or not. | [
"import { css, cx } from '@emotion/css';\nimport React, { useEffect, useRef, useState } from 'react';",
"import { GrafanaTheme2 } from '@grafana/data';\nimport { selectors } from '@grafana/e2e-selectors';",
"import { HorizontalGroup, Input } from '..';\nimport { useStyles2 } from '../../themes';\nimport { IconN... | [
1,
1,
1,
1,
0,
1,
0,
1,
1,
0,
1,
0,
1,
1,
1,
0,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [89, 165, 397, 93], "buggy_code_start_loc": [23, 86, 0, 89], "filenames": ["packages/grafana-ui/src/components/ConfirmModal/ConfirmModal.tsx", "pkg/api/dashboard_snapshot.go", "public/app/features/dashboard/components/DashNav/DashNav.tsx", "public/app/features/dashboard/components/ShareModal/Shar... | 799 |
Determine whether the {function_name} code is vulnerable or not. | [
"import { css, cx } from '@emotion/css';\nimport React, { useEffect, useRef, useState } from 'react';",
"import { GrafanaTheme2 } from '@grafana/data';\nimport { selectors } from '@grafana/e2e-selectors';",
"import { HorizontalGroup, Input } from '..';\nimport { useStyles2 } from '../../themes';\nimport { IconN... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [89, 165, 397, 93], "buggy_code_start_loc": [23, 86, 0, 89], "filenames": ["packages/grafana-ui/src/components/ConfirmModal/ConfirmModal.tsx", "pkg/api/dashboard_snapshot.go", "public/app/features/dashboard/components/DashNav/DashNav.tsx", "public/app/features/dashboard/components/ShareModal/Shar... | 799 |
Determine whether the {function_name} code is vulnerable or not. | [
"package api",
"import (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"errors\"\n\t\"fmt\"\n\t\"net/http\"\n\t\"time\"",
"\t\"github.com/grafana/grafana/pkg/api/dtos\"\n\t\"github.com/grafana/grafana/pkg/api/response\"\n\t\"github.com/grafana/grafana/pkg/components/simplejson\"\n\t\"github.com/grafana/grafana/pkg/infr... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
0,
1,
1,
0,
1,
1,
0,
1,
1,
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... | PreciseBugs | {"buggy_code_end_loc": [89, 165, 397, 93], "buggy_code_start_loc": [23, 86, 0, 89], "filenames": ["packages/grafana-ui/src/components/ConfirmModal/ConfirmModal.tsx", "pkg/api/dashboard_snapshot.go", "public/app/features/dashboard/components/DashNav/DashNav.tsx", "public/app/features/dashboard/components/ShareModal/Shar... | 799 |
Determine whether the {function_name} code is vulnerable or not. | [
"package api",
"import (\n\t\"bytes\"\n\t\"encoding/json\"\n\t\"errors\"\n\t\"fmt\"\n\t\"net/http\"\n\t\"time\"",
"\t\"github.com/grafana/grafana/pkg/api/dtos\"\n\t\"github.com/grafana/grafana/pkg/api/response\"\n\t\"github.com/grafana/grafana/pkg/components/simplejson\"\n\t\"github.com/grafana/grafana/pkg/infr... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [89, 165, 397, 93], "buggy_code_start_loc": [23, 86, 0, 89], "filenames": ["packages/grafana-ui/src/components/ConfirmModal/ConfirmModal.tsx", "pkg/api/dashboard_snapshot.go", "public/app/features/dashboard/components/DashNav/DashNav.tsx", "public/app/features/dashboard/components/ShareModal/Shar... | 799 |
Determine whether the {function_name} code is vulnerable or not. | [
"",
"import React, { FC, ReactNode, useContext, useEffect } from 'react';\nimport { connect, ConnectedProps } from 'react-redux';\nimport { useLocation } from 'react-router-dom';",
"import { locationUtil, textUtil } from '@grafana/data';\nimport { selectors as e2eSelectors } from '@grafana/e2e-selectors/src';\n... | [
0,
1,
1,
0,
1,
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,
1,
1,
0,
1,
1,
1,
1,
1,
0,
0,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [89, 165, 397, 93], "buggy_code_start_loc": [23, 86, 0, 89], "filenames": ["packages/grafana-ui/src/components/ConfirmModal/ConfirmModal.tsx", "pkg/api/dashboard_snapshot.go", "public/app/features/dashboard/components/DashNav/DashNav.tsx", "public/app/features/dashboard/components/ShareModal/Shar... | 799 |
Determine whether the {function_name} code is vulnerable or not. | [
"import { css } from '@emotion/css';",
"import React, { FC, ReactNode, useContext, useEffect } from 'react';\nimport { connect, ConnectedProps } from 'react-redux';\nimport { useLocation } from 'react-router-dom';",
"import { locationUtil, textUtil } from '@grafana/data';\nimport { selectors as e2eSelectors } f... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [89, 165, 397, 93], "buggy_code_start_loc": [23, 86, 0, 89], "filenames": ["packages/grafana-ui/src/components/ConfirmModal/ConfirmModal.tsx", "pkg/api/dashboard_snapshot.go", "public/app/features/dashboard/components/DashNav/DashNav.tsx", "public/app/features/dashboard/components/ShareModal/Shar... | 799 |
Determine whether the {function_name} code is vulnerable or not. | [
"import React, { PureComponent } from 'react';",
"import { SelectableValue } from '@grafana/data';\nimport { getBackendSrv, reportInteraction } from '@grafana/runtime';\nimport { Button, ClipboardButton, Field, Input, LinkButton, Modal, Select, Spinner } from '@grafana/ui';\nimport { t, Trans } from 'app/core/int... | [
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": [89, 165, 397, 93], "buggy_code_start_loc": [23, 86, 0, 89], "filenames": ["packages/grafana-ui/src/components/ConfirmModal/ConfirmModal.tsx", "pkg/api/dashboard_snapshot.go", "public/app/features/dashboard/components/DashNav/DashNav.tsx", "public/app/features/dashboard/components/ShareModal/Shar... | 799 |
Determine whether the {function_name} code is vulnerable or not. | [
"import React, { PureComponent } from 'react';",
"import { SelectableValue } from '@grafana/data';\nimport { getBackendSrv, reportInteraction } from '@grafana/runtime';\nimport { Button, ClipboardButton, Field, Input, LinkButton, Modal, Select, Spinner } from '@grafana/ui';\nimport { t, Trans } from 'app/core/int... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [89, 165, 397, 93], "buggy_code_start_loc": [23, 86, 0, 89], "filenames": ["packages/grafana-ui/src/components/ConfirmModal/ConfirmModal.tsx", "pkg/api/dashboard_snapshot.go", "public/app/features/dashboard/components/DashNav/DashNav.tsx", "public/app/features/dashboard/components/ShareModal/Shar... | 799 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"/**\n * Filesystem configuration options.\n *\n * Changes to these config files are not supported by BookStack and may break upon updates.\n * Configuration should be altered via the `.env` file or environment variables.\n * Do not edit this file unless you're happy to maintain any changes yourself.\n *... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [43, 221, 390], "buggy_code_start_loc": [40, 11, 16], "filenames": ["app/Config/filesystems.php", "app/Uploads/AttachmentService.php", "app/Uploads/ImageService.php"], "fixing_code_end_loc": [48, 226, 419], "fixing_code_start_loc": [40, 12, 17], "message": "bookstack is vulnerable to Improper Lim... | 800 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"/**\n * Filesystem configuration options.\n *\n * Changes to these config files are not supported by BookStack and may break upon updates.\n * Configuration should be altered via the `.env` file or environment variables.\n * Do not edit this file unless you're happy to maintain any changes yourself.\n *... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [43, 221, 390], "buggy_code_start_loc": [40, 11, 16], "filenames": ["app/Config/filesystems.php", "app/Uploads/AttachmentService.php", "app/Uploads/ImageService.php"], "fixing_code_end_loc": [48, 226, 419], "fixing_code_start_loc": [40, 12, 17], "message": "bookstack is vulnerable to Improper Lim... | 800 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"namespace BookStack\\Uploads;",
"use BookStack\\Exceptions\\FileUploadException;\nuse Exception;\nuse Illuminate\\Contracts\\Filesystem\\Factory as FileSystem;\nuse Illuminate\\Contracts\\Filesystem\\FileNotFoundException;\nuse Illuminate\\Contracts\\Filesystem\\Filesystem as FileSystemInstance;\nuse ... | [
1,
1,
1,
0,
1,
1,
1,
1,
0,
1,
0,
0,
1,
1,
0,
1,
1,
0,
1,
0,
1,
0,
0,
1,
1,
1,
0,
1,
0,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
0,
1,
0,
0,
1,
1,
0,
1,
0,
1,
1,
1,
0,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [43, 221, 390], "buggy_code_start_loc": [40, 11, 16], "filenames": ["app/Config/filesystems.php", "app/Uploads/AttachmentService.php", "app/Uploads/ImageService.php"], "fixing_code_end_loc": [48, 226, 419], "fixing_code_start_loc": [40, 12, 17], "message": "bookstack is vulnerable to Improper Lim... | 800 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"namespace BookStack\\Uploads;",
"use BookStack\\Exceptions\\FileUploadException;\nuse Exception;\nuse Illuminate\\Contracts\\Filesystem\\Factory as FileSystem;\nuse Illuminate\\Contracts\\Filesystem\\FileNotFoundException;\nuse Illuminate\\Contracts\\Filesystem\\Filesystem as FileSystemInstance;\nuse ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [43, 221, 390], "buggy_code_start_loc": [40, 11, 16], "filenames": ["app/Config/filesystems.php", "app/Uploads/AttachmentService.php", "app/Uploads/ImageService.php"], "fixing_code_end_loc": [48, 226, 419], "fixing_code_start_loc": [40, 12, 17], "message": "bookstack is vulnerable to Improper Lim... | 800 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"namespace BookStack\\Uploads;",
"use BookStack\\Exceptions\\ImageUploadException;\nuse ErrorException;\nuse Exception;\nuse Illuminate\\Contracts\\Cache\\Repository as Cache;\nuse Illuminate\\Contracts\\Filesystem\\Factory as FileSystem;\nuse Illuminate\\Contracts\\Filesystem\\FileNotFoundException;\n... | [
1,
1,
1,
0,
1,
1,
1,
1,
0,
1,
1,
0,
1,
0,
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,
1,
1,
1,
1,
0,
1,
0,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
1,
0,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [43, 221, 390], "buggy_code_start_loc": [40, 11, 16], "filenames": ["app/Config/filesystems.php", "app/Uploads/AttachmentService.php", "app/Uploads/ImageService.php"], "fixing_code_end_loc": [48, 226, 419], "fixing_code_start_loc": [40, 12, 17], "message": "bookstack is vulnerable to Improper Lim... | 800 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"namespace BookStack\\Uploads;",
"use BookStack\\Exceptions\\ImageUploadException;\nuse ErrorException;\nuse Exception;\nuse Illuminate\\Contracts\\Cache\\Repository as Cache;\nuse Illuminate\\Contracts\\Filesystem\\Factory as FileSystem;\nuse Illuminate\\Contracts\\Filesystem\\FileNotFoundException;\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": [43, 221, 390], "buggy_code_start_loc": [40, 11, 16], "filenames": ["app/Config/filesystems.php", "app/Uploads/AttachmentService.php", "app/Uploads/ImageService.php"], "fixing_code_end_loc": [48, 226, 419], "fixing_code_start_loc": [40, 12, 17], "message": "bookstack is vulnerable to Improper Lim... | 800 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* Copyright 2017 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,
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... | PreciseBugs | {"buggy_code_end_loc": [656, 238], "buggy_code_start_loc": [25, 238], "filenames": ["tensorflow/core/kernels/batch_kernels.cc", "tensorflow/python/ops/batch_ops_test.py"], "fixing_code_end_loc": [664, 259], "fixing_code_start_loc": [26, 239], "message": "TensorFlow is an open source platform for machine learning. When ... | 801 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* Copyright 2017 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": [656, 238], "buggy_code_start_loc": [25, 238], "filenames": ["tensorflow/core/kernels/batch_kernels.cc", "tensorflow/python/ops/batch_ops_test.py"], "fixing_code_end_loc": [664, 259], "fixing_code_start_loc": [26, 239], "message": "TensorFlow is an open source platform for machine learning. When ... | 801 |
Determine whether the {function_name} code is vulnerable or not. | [
"# Copyright 2017 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,
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": [656, 238], "buggy_code_start_loc": [25, 238], "filenames": ["tensorflow/core/kernels/batch_kernels.cc", "tensorflow/python/ops/batch_ops_test.py"], "fixing_code_end_loc": [664, 259], "fixing_code_start_loc": [26, 239], "message": "TensorFlow is an open source platform for machine learning. When ... | 801 |
Determine whether the {function_name} code is vulnerable or not. | [
"# Copyright 2017 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": [656, 238], "buggy_code_start_loc": [25, 238], "filenames": ["tensorflow/core/kernels/batch_kernels.cc", "tensorflow/python/ops/batch_ops_test.py"], "fixing_code_end_loc": [664, 259], "fixing_code_start_loc": [26, 239], "message": "TensorFlow is an open source platform for machine learning. When ... | 801 |
Determine whether the {function_name} code is vulnerable or not. | [
"// The Inflector transforms words from singular to plural, class names to table names, modularized class names to ones without,\n// and class names to foreign keys. The default inflections for pluralization, singularization, and uncountable words are kept\n// in inflections.coffee\n//\n// If you discover an incorr... | [
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0
] | PreciseBugs | {"buggy_code_end_loc": [235], "buggy_code_start_loc": [64], "filenames": ["lib/methods.js"], "fixing_code_end_loc": [235], "fixing_code_start_loc": [64], "message": "inflect is vulnerable to Inefficient Regular Expression Complexity", "other": {"cve": {"cisaActionDue": null, "cisaExploitAdd": null, "cisaRequiredAction"... | 802 |
Determine whether the {function_name} code is vulnerable or not. | [
"// The Inflector transforms words from singular to plural, class names to table names, modularized class names to ones without,\n// and class names to foreign keys. The default inflections for pluralization, singularization, and uncountable words are kept\n// in inflections.coffee\n//\n// If you discover an incorr... | [
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": [235], "buggy_code_start_loc": [64], "filenames": ["lib/methods.js"], "fixing_code_end_loc": [235], "fixing_code_start_loc": [64], "message": "inflect is vulnerable to Inefficient Regular Expression Complexity", "other": {"cve": {"cisaActionDue": null, "cisaExploitAdd": null, "cisaRequiredAction"... | 802 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * pam.go - Utility functions for interfacing with the PAM libraries.\n *\n * Copyright 2017 Google Inc.\n * Author: Joe Richey (joerichey@google.com)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n * use this file except in compliance with the License. You may obtain a ... | [
1,
1,
1,
1,
1,
0,
1,
1,
0,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
0,
1,
0,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [151, 147], "buggy_code_start_loc": [38, 45], "filenames": ["pam/pam.go", "security/privileges.go"], "fixing_code_end_loc": [150, 152], "fixing_code_start_loc": [37, 46], "message": "The pam_fscrypt module in fscrypt before 0.2.4 may incorrectly restore primary and supplementary group IDs to the ... | 803 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * pam.go - Utility functions for interfacing with the PAM libraries.\n *\n * Copyright 2017 Google Inc.\n * Author: Joe Richey (joerichey@google.com)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n * use this file except in compliance with the License. You may obtain a ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [151, 147], "buggy_code_start_loc": [38, 45], "filenames": ["pam/pam.go", "security/privileges.go"], "fixing_code_end_loc": [150, 152], "fixing_code_start_loc": [37, 46], "message": "The pam_fscrypt module in fscrypt before 0.2.4 may incorrectly restore primary and supplementary group IDs to the ... | 803 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * privileges.go - Functions for managing users and privileges.\n *\n * Copyright 2017 Google Inc.\n * Author: Joe Richey (joerichey@google.com)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n * use this file except in compliance with the License. You may obtain a copy o... | [
1,
1,
1,
1,
0,
1,
0,
0,
0,
0,
1,
1,
0,
1,
1,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
1,
0,
1,
0,
0
] | PreciseBugs | {"buggy_code_end_loc": [151, 147], "buggy_code_start_loc": [38, 45], "filenames": ["pam/pam.go", "security/privileges.go"], "fixing_code_end_loc": [150, 152], "fixing_code_start_loc": [37, 46], "message": "The pam_fscrypt module in fscrypt before 0.2.4 may incorrectly restore primary and supplementary group IDs to the ... | 803 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * privileges.go - Functions for managing users and privileges.\n *\n * Copyright 2017 Google Inc.\n * Author: Joe Richey (joerichey@google.com)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n * use this file except in compliance with the License. You may obtain a copy o... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [151, 147], "buggy_code_start_loc": [38, 45], "filenames": ["pam/pam.go", "security/privileges.go"], "fixing_code_end_loc": [150, 152], "fixing_code_start_loc": [37, 46], "message": "The pam_fscrypt module in fscrypt before 0.2.4 may incorrectly restore primary and supplementary group IDs to the ... | 803 |
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,
0,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [85], "buggy_code_start_loc": [81], "filenames": ["tensorflow/core/kernels/sparse_dense_binary_op_shared.cc"], "fixing_code_end_loc": [99], "fixing_code_start_loc": [82], "message": "Tensorflow is an Open Source Machine Learning Framework. The implementations of `Sparse*Cwise*` ops are vulnerable... | 804 |
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
] | PreciseBugs | {"buggy_code_end_loc": [85], "buggy_code_start_loc": [81], "filenames": ["tensorflow/core/kernels/sparse_dense_binary_op_shared.cc"], "fixing_code_end_loc": [99], "fixing_code_start_loc": [82], "message": "Tensorflow is an Open Source Machine Learning Framework. The implementations of `Sparse*Cwise*` ops are vulnerable... | 804 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * 2007-2018 PrestaShop.\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\n * I... | [
1,
1,
1,
0,
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [47], "buggy_code_start_loc": [31], "filenames": ["src/Form/Type/CustomUrlType.php"], "fixing_code_end_loc": [50], "fixing_code_start_loc": [32], "message": "In PrestaShop module ps_linklist versions before 3.1.0, there is a stored XSS when using custom URLs. The problem is fixed in version 3.1.0... | 805 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * 2007-2018 PrestaShop.\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\n * I... | [
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [47], "buggy_code_start_loc": [31], "filenames": ["src/Form/Type/CustomUrlType.php"], "fixing_code_end_loc": [50], "fixing_code_start_loc": [32], "message": "In PrestaShop module ps_linklist versions before 3.1.0, there is a stored XSS when using custom URLs. The problem is fixed in version 3.1.0... | 805 |
Determine whether the {function_name} code is vulnerable or not. | [
"package web",
"import (",
"",
"\t\"net/http\"",
"\t\"github.com/gorilla/websocket\"\n\t\"github.com/julienschmidt/httprouter\"\n)",
"// Socket register a new websocket server at the given path\nfunc (s *Server) Socket(path string, handle SocketHandle, options HandleOptions) {\n\ts.registerSocketEndpoint(... | [
1,
1,
0,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [35], "buggy_code_start_loc": [3], "filenames": ["websocket.go"], "fixing_code_end_loc": [55], "fixing_code_start_loc": [4], "message": "Web Sockets do not execute any AuthenticateMethod methods which may be set, leading to a nil pointer dereference if the returned UserData pointer is assumed to ... | 806 |
Determine whether the {function_name} code is vulnerable or not. | [
"package web",
"import (",
"\t\"encoding/json\"",
"\t\"net/http\"",
"\t\"github.com/gorilla/websocket\"\n\t\"github.com/julienschmidt/httprouter\"\n)",
"// Socket register a new websocket server at the given path\nfunc (s *Server) Socket(path string, handle SocketHandle, options HandleOptions) {\n\ts.regi... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [35], "buggy_code_start_loc": [3], "filenames": ["websocket.go"], "fixing_code_end_loc": [55], "fixing_code_start_loc": [4], "message": "Web Sockets do not execute any AuthenticateMethod methods which may be set, leading to a nil pointer dereference if the returned UserData pointer is assumed to ... | 806 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"$time_start = microtime(true);\n$config = '../../videos/configuration.php';\nsession_write_close();\nif (!file_exists($config)) {\n [$scriptPath] = get_included_files();\n $path = pathinfo($scriptPath);\n $config = $path['dirname'] . \"/\" . $config;\n}\nheader('Content-Type: application/json')... | [
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
] | PreciseBugs | {"buggy_code_end_loc": [96], "buggy_code_start_loc": [96], "filenames": ["plugin/CloneSite/cloneClient.json.php"], "fixing_code_end_loc": [98], "fixing_code_start_loc": [97], "message": "WWBN AVideo is an open source video platform. In versions 12.4 and prior, a command injection vulnerability exists at `plugin/CloneSi... | 807 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"$time_start = microtime(true);\n$config = '../../videos/configuration.php';\nsession_write_close();\nif (!file_exists($config)) {\n [$scriptPath] = get_included_files();\n $path = pathinfo($scriptPath);\n $config = $path['dirname'] . \"/\" . $config;\n}\nheader('Content-Type: application/json')... | [
1,
1,
1,
1,
1,
1,
1,
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": [96], "buggy_code_start_loc": [96], "filenames": ["plugin/CloneSite/cloneClient.json.php"], "fixing_code_end_loc": [98], "fixing_code_start_loc": [97], "message": "WWBN AVideo is an open source video platform. In versions 12.4 and prior, a command injection vulnerability exists at `plugin/CloneSi... | 807 |
Determine whether the {function_name} code is vulnerable or not. | [
"require 'puppet/ssl/host'\nrequire 'puppet/ssl/certificate_request'\nrequire 'puppet/util/cacher'",
"# The class that knows how to sign certificates. It creates\n# a 'special' SSL::Host whose name is 'ca', thus indicating\n# that, well, it's the CA. There's some magic in the\n# indirector/ssl_file terminus bas... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | PreciseBugs | {"buggy_code_end_loc": [302, 509], "buggy_code_start_loc": [302, 249], "filenames": ["lib/puppet/ssl/certificate_authority.rb", "spec/unit/ssl/certificate_authority_spec.rb"], "fixing_code_end_loc": [314, 574], "fixing_code_start_loc": [303, 249], "message": "lib/puppet/ssl/certificate_authority.rb in Puppet before 2.6... | 808 |
Determine whether the {function_name} code is vulnerable or not. | [
"require 'puppet/ssl/host'\nrequire 'puppet/ssl/certificate_request'\nrequire 'puppet/util/cacher'",
"# The class that knows how to sign certificates. It creates\n# a 'special' SSL::Host whose name is 'ca', thus indicating\n# that, well, it's the CA. There's some magic in the\n# indirector/ssl_file terminus bas... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [302, 509], "buggy_code_start_loc": [302, 249], "filenames": ["lib/puppet/ssl/certificate_authority.rb", "spec/unit/ssl/certificate_authority_spec.rb"], "fixing_code_end_loc": [314, 574], "fixing_code_start_loc": [303, 249], "message": "lib/puppet/ssl/certificate_authority.rb in Puppet before 2.6... | 808 |
Determine whether the {function_name} code is vulnerable or not. | [
"#!/usr/bin/env ruby",
"require File.dirname(__FILE__) + '/../../spec_helper'",
"require 'puppet/ssl/certificate_authority'",
"describe Puppet::SSL::CertificateAuthority do\n after do\n Puppet::Util::Cacher.expire\n Puppet.settings.clearused\n end",
" def stub_ca_host\n @key = mock 'key'\n @k... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [302, 509], "buggy_code_start_loc": [302, 249], "filenames": ["lib/puppet/ssl/certificate_authority.rb", "spec/unit/ssl/certificate_authority_spec.rb"], "fixing_code_end_loc": [314, 574], "fixing_code_start_loc": [303, 249], "message": "lib/puppet/ssl/certificate_authority.rb in Puppet before 2.6... | 808 |
Determine whether the {function_name} code is vulnerable or not. | [
"#!/usr/bin/env ruby",
"require File.dirname(__FILE__) + '/../../spec_helper'",
"require 'puppet/ssl/certificate_authority'",
"describe Puppet::SSL::CertificateAuthority do\n after do\n Puppet::Util::Cacher.expire\n Puppet.settings.clearused\n end",
" def stub_ca_host\n @key = mock 'key'\n @k... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [302, 509], "buggy_code_start_loc": [302, 249], "filenames": ["lib/puppet/ssl/certificate_authority.rb", "spec/unit/ssl/certificate_authority_spec.rb"], "fixing_code_end_loc": [314, 574], "fixing_code_start_loc": [303, 249], "message": "lib/puppet/ssl/certificate_authority.rb in Puppet before 2.6... | 808 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* Copyright 2013-2022 Simo Sorce <simo@samba.org>, see COPYING for license */",
"#define _GNU_SOURCE",
"#include <ctype.h>\n#include <errno.h>\n#include <limits.h>\n#include <pwd.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <sys/types.h>\n#include <unistd.h>",
"#include <gssapi... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
0,
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... | PreciseBugs | {"buggy_code_end_loc": [193], "buggy_code_start_loc": [139], "filenames": ["src/gss_names.c"], "fixing_code_end_loc": [189], "fixing_code_start_loc": [138], "message": "GSS-NTLMSSP is a mechglue plugin for the GSSAPI library that implements NTLM authentication. Prior to version 1.2.0, a memory leak can be triggered whe... | 809 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* Copyright 2013-2022 Simo Sorce <simo@samba.org>, see COPYING for license */",
"#define _GNU_SOURCE",
"#include <ctype.h>\n#include <errno.h>\n#include <limits.h>\n#include <pwd.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <sys/types.h>\n#include <unistd.h>",
"#include <gssapi... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [193], "buggy_code_start_loc": [139], "filenames": ["src/gss_names.c"], "fixing_code_end_loc": [189], "fixing_code_start_loc": [138], "message": "GSS-NTLMSSP is a mechglue plugin for the GSSAPI library that implements NTLM authentication. Prior to version 1.2.0, a memory leak can be triggered whe... | 809 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n require_once '../inc/config.inc.php';",
" $title = \"Statistiques de recherche\";\n $description = \"Mapicoin, statistiques de recherche - Découvrez les recherches effectuées sur Mapicoin !\";\n $searches = stats_get_searches();\n?>\n<!DOCTYPE html>\n<html lang=\"fr\">\n <head>\n ... | [
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": [62], "buggy_code_start_loc": [61], "filenames": ["webroot/stats.php"], "fixing_code_end_loc": [62], "fixing_code_start_loc": [61], "message": "A vulnerability has been found in Ydalb mapicoin up to 1.9.0 and classified as problematic. This vulnerability affects unknown code of the file webroot/s... | 810 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n require_once '../inc/config.inc.php';",
" $title = \"Statistiques de recherche\";\n $description = \"Mapicoin, statistiques de recherche - Découvrez les recherches effectuées sur Mapicoin !\";\n $searches = stats_get_searches();\n?>\n<!DOCTYPE html>\n<html lang=\"fr\">\n <head>\n ... | [
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], "buggy_code_start_loc": [61], "filenames": ["webroot/stats.php"], "fixing_code_end_loc": [62], "fixing_code_start_loc": [61], "message": "A vulnerability has been found in Ydalb mapicoin up to 1.9.0 and classified as problematic. This vulnerability affects unknown code of the file webroot/s... | 810 |
Determine whether the {function_name} code is vulnerable or not. | [
"package api",
"// Visibility is the type of a visibility.\ntype Visibility string",
"const (\n\t// Public is the PUBLIC visibility.\n\tPublic Visibility = \"PUBLIC\"\n\t// Protected is the PROTECTED visibility.\n\tProtected Visibility = \"PROTECTED\"\n\t// Private is the PRIVATE visibility.\n\tPrivate Visibili... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [81, 21, 12, 24, 20, 11, 54, 118, 545, 229, 127, 131, 108, 203], "buggy_code_start_loc": [49, 11, 11, 23, 19, 10, 53, 87, 27, 58, 24, 79, 26, 32], "filenames": ["api/memo.go", "api/memo_organizer.go", "api/memo_resource.go", "api/resource.go", "api/shortcut.go", "api/tag.go", "api/user_setting.go... | 811 |
Determine whether the {function_name} code is vulnerable or not. | [
"package api",
"// Visibility is the type of a visibility.\ntype Visibility string",
"const (\n\t// Public is the PUBLIC visibility.\n\tPublic Visibility = \"PUBLIC\"\n\t// Protected is the PROTECTED visibility.\n\tProtected Visibility = \"PROTECTED\"\n\t// Private is the PRIVATE visibility.\n\tPrivate Visibili... | [
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": [81, 21, 12, 24, 20, 11, 54, 118, 545, 229, 127, 131, 108, 203], "buggy_code_start_loc": [49, 11, 11, 23, 19, 10, 53, 87, 27, 58, 24, 79, 26, 32], "filenames": ["api/memo.go", "api/memo_organizer.go", "api/memo_resource.go", "api/resource.go", "api/shortcut.go", "api/tag.go", "api/user_setting.go... | 811 |
Determine whether the {function_name} code is vulnerable or not. | [
"package api",
"type MemoOrganizer struct {\n\tID int",
"\t// Domain specific fields\n\tMemoID int\n\tUserID int\n\tPinned bool\n}\n",
"",
"type MemoOrganizerFind struct {\n\tMemoID int\n\tUserID int",
"}",
"type MemoOrganizerUpsert struct {\n\tMemoID int\n\tUserID int\n\tPinned bool `json:\"pinned\"`",... | [
1,
1,
1,
0,
1,
0,
0,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [81, 21, 12, 24, 20, 11, 54, 118, 545, 229, 127, 131, 108, 203], "buggy_code_start_loc": [49, 11, 11, 23, 19, 10, 53, 87, 27, 58, 24, 79, 26, 32], "filenames": ["api/memo.go", "api/memo_organizer.go", "api/memo_resource.go", "api/resource.go", "api/shortcut.go", "api/tag.go", "api/user_setting.go... | 811 |
Determine whether the {function_name} code is vulnerable or not. | [
"package api",
"type MemoOrganizer struct {\n\tID int",
"\t// Domain specific fields\n\tMemoID int\n\tUserID int\n\tPinned bool\n}\n",
"type MemoOrganizerUpsert struct {\n\tMemoID int `json:\"-\"`\n\tUserID int `json:\"-\"`\n\tPinned bool `json:\"pinned\"`\n}\n",
"type MemoOrganizerFind struct {\n\tMemoID... | [
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [81, 21, 12, 24, 20, 11, 54, 118, 545, 229, 127, 131, 108, 203], "buggy_code_start_loc": [49, 11, 11, 23, 19, 10, 53, 87, 27, 58, 24, 79, 26, 32], "filenames": ["api/memo.go", "api/memo_organizer.go", "api/memo_resource.go", "api/resource.go", "api/shortcut.go", "api/tag.go", "api/user_setting.go... | 811 |
Determine whether the {function_name} code is vulnerable or not. | [
"package api",
"type MemoResource struct {\n\tMemoID int\n\tResourceID int\n\tCreatedTs int64\n\tUpdatedTs int64\n}",
"type MemoResourceUpsert struct {",
"\tMemoID int",
"\tResourceID int\n\tUpdatedTs *int64\n}",
"type MemoResourceFind struct {\n\tMemoID *int\n\tResourceID *int\n}",
"type... | [
1,
1,
1,
0,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [81, 21, 12, 24, 20, 11, 54, 118, 545, 229, 127, 131, 108, 203], "buggy_code_start_loc": [49, 11, 11, 23, 19, 10, 53, 87, 27, 58, 24, 79, 26, 32], "filenames": ["api/memo.go", "api/memo_organizer.go", "api/memo_resource.go", "api/resource.go", "api/shortcut.go", "api/tag.go", "api/user_setting.go... | 811 |
Determine whether the {function_name} code is vulnerable or not. | [
"package api",
"type MemoResource struct {\n\tMemoID int\n\tResourceID int\n\tCreatedTs int64\n\tUpdatedTs int64\n}",
"type MemoResourceUpsert struct {",
"\tMemoID int `json:\"-\"`",
"\tResourceID int\n\tUpdatedTs *int64\n}",
"type MemoResourceFind struct {\n\tMemoID *int\n\tResourceID *int... | [
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [81, 21, 12, 24, 20, 11, 54, 118, 545, 229, 127, 131, 108, 203], "buggy_code_start_loc": [49, 11, 11, 23, 19, 10, 53, 87, 27, 58, 24, 79, 26, 32], "filenames": ["api/memo.go", "api/memo_organizer.go", "api/memo_resource.go", "api/resource.go", "api/shortcut.go", "api/tag.go", "api/user_setting.go... | 811 |
Determine whether the {function_name} code is vulnerable or not. | [
"package api",
"type Resource struct {\n\tID int `json:\"id\"`",
"\t// Standard fields\n\tCreatorID int `json:\"creatorId\"`\n\tCreatedTs int64 `json:\"createdTs\"`\n\tUpdatedTs int64 `json:\"updatedTs\"`",
"\t// Domain specific fields\n\tFilename string `json:\"filename\"`\n\tBlob []byte `json:\"-\"`\n... | [
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [81, 21, 12, 24, 20, 11, 54, 118, 545, 229, 127, 131, 108, 203], "buggy_code_start_loc": [49, 11, 11, 23, 19, 10, 53, 87, 27, 58, 24, 79, 26, 32], "filenames": ["api/memo.go", "api/memo_organizer.go", "api/memo_resource.go", "api/resource.go", "api/shortcut.go", "api/tag.go", "api/user_setting.go... | 811 |
Determine whether the {function_name} code is vulnerable or not. | [
"package api",
"type Resource struct {\n\tID int `json:\"id\"`",
"\t// Standard fields\n\tCreatorID int `json:\"creatorId\"`\n\tCreatedTs int64 `json:\"createdTs\"`\n\tUpdatedTs int64 `json:\"updatedTs\"`",
"\t// Domain specific fields\n\tFilename string `json:\"filename\"`\n\tBlob []byte `json:\"-\"`\n... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [81, 21, 12, 24, 20, 11, 54, 118, 545, 229, 127, 131, 108, 203], "buggy_code_start_loc": [49, 11, 11, 23, 19, 10, 53, 87, 27, 58, 24, 79, 26, 32], "filenames": ["api/memo.go", "api/memo_organizer.go", "api/memo_resource.go", "api/resource.go", "api/shortcut.go", "api/tag.go", "api/user_setting.go... | 811 |
Determine whether the {function_name} code is vulnerable or not. | [
"package api",
"type Shortcut struct {\n\tID int `json:\"id\"`",
"\t// Standard fields\n\tRowStatus RowStatus `json:\"rowStatus\"`\n\tCreatorID int `json:\"creatorId\"`\n\tCreatedTs int64 `json:\"createdTs\"`\n\tUpdatedTs int64 `json:\"updatedTs\"`",
"\t// Domain specific fields\n\tTitle strin... | [
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [81, 21, 12, 24, 20, 11, 54, 118, 545, 229, 127, 131, 108, 203], "buggy_code_start_loc": [49, 11, 11, 23, 19, 10, 53, 87, 27, 58, 24, 79, 26, 32], "filenames": ["api/memo.go", "api/memo_organizer.go", "api/memo_resource.go", "api/resource.go", "api/shortcut.go", "api/tag.go", "api/user_setting.go... | 811 |
Determine whether the {function_name} code is vulnerable or not. | [
"package api",
"type Shortcut struct {\n\tID int `json:\"id\"`",
"\t// Standard fields\n\tRowStatus RowStatus `json:\"rowStatus\"`\n\tCreatorID int `json:\"creatorId\"`\n\tCreatedTs int64 `json:\"createdTs\"`\n\tUpdatedTs int64 `json:\"updatedTs\"`",
"\t// Domain specific fields\n\tTitle strin... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [81, 21, 12, 24, 20, 11, 54, 118, 545, 229, 127, 131, 108, 203], "buggy_code_start_loc": [49, 11, 11, 23, 19, 10, 53, 87, 27, 58, 24, 79, 26, 32], "filenames": ["api/memo.go", "api/memo_organizer.go", "api/memo_resource.go", "api/resource.go", "api/shortcut.go", "api/tag.go", "api/user_setting.go... | 811 |
Determine whether the {function_name} code is vulnerable or not. | [
"package api",
"type Tag struct {\n\tName string\n\tCreatorID int\n}",
"type TagUpsert struct {\n\tName string",
"\tCreatorID int",
"}",
"type TagFind struct {\n\tCreatorID int\n}",
"type TagDelete struct {\n\tName string\n\tCreatorID int\n}"
] | [
1,
1,
1,
0,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [81, 21, 12, 24, 20, 11, 54, 118, 545, 229, 127, 131, 108, 203], "buggy_code_start_loc": [49, 11, 11, 23, 19, 10, 53, 87, 27, 58, 24, 79, 26, 32], "filenames": ["api/memo.go", "api/memo_organizer.go", "api/memo_resource.go", "api/resource.go", "api/shortcut.go", "api/tag.go", "api/user_setting.go... | 811 |
Determine whether the {function_name} code is vulnerable or not. | [
"package api",
"type Tag struct {\n\tName string\n\tCreatorID int\n}",
"type TagUpsert struct {\n\tName string",
"\tCreatorID int `json:\"-\"`",
"}",
"type TagFind struct {\n\tCreatorID int\n}",
"type TagDelete struct {\n\tName string\n\tCreatorID int\n}"
] | [
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [81, 21, 12, 24, 20, 11, 54, 118, 545, 229, 127, 131, 108, 203], "buggy_code_start_loc": [49, 11, 11, 23, 19, 10, 53, 87, 27, 58, 24, 79, 26, 32], "filenames": ["api/memo.go", "api/memo_organizer.go", "api/memo_resource.go", "api/resource.go", "api/shortcut.go", "api/tag.go", "api/user_setting.go... | 811 |
Determine whether the {function_name} code is vulnerable or not. | [
"package api",
"import (\n\t\"encoding/json\"\n\t\"fmt\"",
"\t\"golang.org/x/exp/slices\"\n)",
"type UserSettingKey string",
"const (\n\t// UserSettingLocaleKey is the key type for user locale.\n\tUserSettingLocaleKey UserSettingKey = \"locale\"\n\t// UserSettingAppearanceKey is the key type for user appear... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [81, 21, 12, 24, 20, 11, 54, 118, 545, 229, 127, 131, 108, 203], "buggy_code_start_loc": [49, 11, 11, 23, 19, 10, 53, 87, 27, 58, 24, 79, 26, 32], "filenames": ["api/memo.go", "api/memo_organizer.go", "api/memo_resource.go", "api/resource.go", "api/shortcut.go", "api/tag.go", "api/user_setting.go... | 811 |
Determine whether the {function_name} code is vulnerable or not. | [
"package api",
"import (\n\t\"encoding/json\"\n\t\"fmt\"",
"\t\"golang.org/x/exp/slices\"\n)",
"type UserSettingKey string",
"const (\n\t// UserSettingLocaleKey is the key type for user locale.\n\tUserSettingLocaleKey UserSettingKey = \"locale\"\n\t// UserSettingAppearanceKey is the key type for user appear... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [81, 21, 12, 24, 20, 11, 54, 118, 545, 229, 127, 131, 108, 203], "buggy_code_start_loc": [49, 11, 11, 23, 19, 10, 53, 87, 27, 58, 24, 79, 26, 32], "filenames": ["api/memo.go", "api/memo_organizer.go", "api/memo_resource.go", "api/resource.go", "api/shortcut.go", "api/tag.go", "api/user_setting.go... | 811 |
Determine whether the {function_name} code is vulnerable or not. | [
"package server",
"import (\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"net/http\"",
"\t\"github.com/usememos/memos/api\"\n\t\"github.com/usememos/memos/common\"\n\tmetric \"github.com/usememos/memos/plugin/metrics\"",
"\t\"github.com/labstack/echo/v4\"\n\t\"golang.org/x/crypto/bcrypt\"\n)",
"func (s *Server) regi... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
0,
1,
1,
0,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [81, 21, 12, 24, 20, 11, 54, 118, 545, 229, 127, 131, 108, 203], "buggy_code_start_loc": [49, 11, 11, 23, 19, 10, 53, 87, 27, 58, 24, 79, 26, 32], "filenames": ["api/memo.go", "api/memo_organizer.go", "api/memo_resource.go", "api/resource.go", "api/shortcut.go", "api/tag.go", "api/user_setting.go... | 811 |
Determine whether the {function_name} code is vulnerable or not. | [
"package server",
"import (\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"net/http\"",
"\t\"github.com/usememos/memos/api\"\n\t\"github.com/usememos/memos/common\"\n\tmetric \"github.com/usememos/memos/plugin/metrics\"",
"\t\"github.com/labstack/echo/v4\"\n\t\"golang.org/x/crypto/bcrypt\"\n)",
"func (s *Server) regi... | [
1,
1,
1,
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": [81, 21, 12, 24, 20, 11, 54, 118, 545, 229, 127, 131, 108, 203], "buggy_code_start_loc": [49, 11, 11, 23, 19, 10, 53, 87, 27, 58, 24, 79, 26, 32], "filenames": ["api/memo.go", "api/memo_organizer.go", "api/memo_resource.go", "api/resource.go", "api/shortcut.go", "api/tag.go", "api/user_setting.go... | 811 |
Determine whether the {function_name} code is vulnerable or not. | [
"package server",
"import (\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"net/http\"\n\t\"sort\"\n\t\"strconv\"\n\t\"strings\"\n\t\"time\"",
"\t\"github.com/usememos/memos/api\"\n\t\"github.com/usememos/memos/common\"\n\tmetric \"github.com/usememos/memos/plugin/metrics\"",
"\t\"github.com/labstack/echo/v4\"\n)",
"f... | [
1,
1,
1,
1,
1,
0,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
0,
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,
0,
1,
0,
0,
0,
0,
0,
0... | PreciseBugs | {"buggy_code_end_loc": [81, 21, 12, 24, 20, 11, 54, 118, 545, 229, 127, 131, 108, 203], "buggy_code_start_loc": [49, 11, 11, 23, 19, 10, 53, 87, 27, 58, 24, 79, 26, 32], "filenames": ["api/memo.go", "api/memo_organizer.go", "api/memo_resource.go", "api/resource.go", "api/shortcut.go", "api/tag.go", "api/user_setting.go... | 811 |
Determine whether the {function_name} code is vulnerable or not. | [
"package server",
"import (\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"net/http\"\n\t\"sort\"\n\t\"strconv\"\n\t\"strings\"\n\t\"time\"",
"\t\"github.com/usememos/memos/api\"\n\t\"github.com/usememos/memos/common\"\n\tmetric \"github.com/usememos/memos/plugin/metrics\"",
"\t\"github.com/labstack/echo/v4\"\n)",
"f... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [81, 21, 12, 24, 20, 11, 54, 118, 545, 229, 127, 131, 108, 203], "buggy_code_start_loc": [49, 11, 11, 23, 19, 10, 53, 87, 27, 58, 24, 79, 26, 32], "filenames": ["api/memo.go", "api/memo_organizer.go", "api/memo_resource.go", "api/resource.go", "api/shortcut.go", "api/tag.go", "api/user_setting.go... | 811 |
Determine whether the {function_name} code is vulnerable or not. | [
"package server",
"import (\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"io\"\n\t\"net/http\"\n\t\"net/url\"\n\t\"strconv\"\n\t\"time\"",
"\t\"github.com/usememos/memos/api\"\n\t\"github.com/usememos/memos/common\"\n\tmetric \"github.com/usememos/memos/plugin/metrics\"",
"\t\"github.com/labstack/echo/v4\"\n)",
"con... | [
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,
0,
1,
1,
1,
1,
0,
1,
0,
1,
1,
0,
1,
0,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [81, 21, 12, 24, 20, 11, 54, 118, 545, 229, 127, 131, 108, 203], "buggy_code_start_loc": [49, 11, 11, 23, 19, 10, 53, 87, 27, 58, 24, 79, 26, 32], "filenames": ["api/memo.go", "api/memo_organizer.go", "api/memo_resource.go", "api/resource.go", "api/shortcut.go", "api/tag.go", "api/user_setting.go... | 811 |
Determine whether the {function_name} code is vulnerable or not. | [
"package server",
"import (\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"io\"\n\t\"net/http\"\n\t\"net/url\"\n\t\"strconv\"\n\t\"time\"",
"\t\"github.com/usememos/memos/api\"\n\t\"github.com/usememos/memos/common\"\n\tmetric \"github.com/usememos/memos/plugin/metrics\"",
"\t\"github.com/labstack/echo/v4\"\n)",
"con... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [81, 21, 12, 24, 20, 11, 54, 118, 545, 229, 127, 131, 108, 203], "buggy_code_start_loc": [49, 11, 11, 23, 19, 10, 53, 87, 27, 58, 24, 79, 26, 32], "filenames": ["api/memo.go", "api/memo_organizer.go", "api/memo_resource.go", "api/resource.go", "api/shortcut.go", "api/tag.go", "api/user_setting.go... | 811 |
Determine whether the {function_name} code is vulnerable or not. | [
"package server",
"import (\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"net/http\"\n\t\"strconv\"\n\t\"time\"",
"\t\"github.com/usememos/memos/api\"\n\t\"github.com/usememos/memos/common\"\n\tmetric \"github.com/usememos/memos/plugin/metrics\"",
"\t\"github.com/labstack/echo/v4\"\n)",
"func (s *Server) registerSho... | [
1,
1,
1,
1,
1,
0,
1,
0,
1,
1,
1,
0,
1,
0,
1,
0,
1,
0,
1,
1,
1,
0,
0,
0,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [81, 21, 12, 24, 20, 11, 54, 118, 545, 229, 127, 131, 108, 203], "buggy_code_start_loc": [49, 11, 11, 23, 19, 10, 53, 87, 27, 58, 24, 79, 26, 32], "filenames": ["api/memo.go", "api/memo_organizer.go", "api/memo_resource.go", "api/resource.go", "api/shortcut.go", "api/tag.go", "api/user_setting.go... | 811 |
Determine whether the {function_name} code is vulnerable or not. | [
"package server",
"import (\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"net/http\"\n\t\"strconv\"\n\t\"time\"",
"\t\"github.com/usememos/memos/api\"\n\t\"github.com/usememos/memos/common\"\n\tmetric \"github.com/usememos/memos/plugin/metrics\"",
"\t\"github.com/labstack/echo/v4\"\n)",
"func (s *Server) registerSho... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [81, 21, 12, 24, 20, 11, 54, 118, 545, 229, 127, 131, 108, 203], "buggy_code_start_loc": [49, 11, 11, 23, 19, 10, 53, 87, 27, 58, 24, 79, 26, 32], "filenames": ["api/memo.go", "api/memo_organizer.go", "api/memo_resource.go", "api/resource.go", "api/shortcut.go", "api/tag.go", "api/user_setting.go... | 811 |
Determine whether the {function_name} code is vulnerable or not. | [
"package server",
"import (\n\t\"encoding/json\"\n\t\"net/http\"\n\t\"os\"",
"\t\"github.com/usememos/memos/api\"\n\t\"github.com/usememos/memos/common\"\n\tmetric \"github.com/usememos/memos/plugin/metrics\"",
"\t\"github.com/labstack/echo/v4\"\n)",
"func (s *Server) registerSystemRoutes(g *echo.Group) {\n... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [81, 21, 12, 24, 20, 11, 54, 118, 545, 229, 127, 131, 108, 203], "buggy_code_start_loc": [49, 11, 11, 23, 19, 10, 53, 87, 27, 58, 24, 79, 26, 32], "filenames": ["api/memo.go", "api/memo_organizer.go", "api/memo_resource.go", "api/resource.go", "api/shortcut.go", "api/tag.go", "api/user_setting.go... | 811 |
Determine whether the {function_name} code is vulnerable or not. | [
"package server",
"import (\n\t\"encoding/json\"\n\t\"net/http\"\n\t\"os\"",
"\t\"github.com/usememos/memos/api\"\n\t\"github.com/usememos/memos/common\"\n\tmetric \"github.com/usememos/memos/plugin/metrics\"",
"\t\"github.com/labstack/echo/v4\"\n)",
"func (s *Server) registerSystemRoutes(g *echo.Group) {\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
] | PreciseBugs | {"buggy_code_end_loc": [81, 21, 12, 24, 20, 11, 54, 118, 545, 229, 127, 131, 108, 203], "buggy_code_start_loc": [49, 11, 11, 23, 19, 10, 53, 87, 27, 58, 24, 79, 26, 32], "filenames": ["api/memo.go", "api/memo_organizer.go", "api/memo_resource.go", "api/resource.go", "api/shortcut.go", "api/tag.go", "api/user_setting.go... | 811 |
Determine whether the {function_name} code is vulnerable or not. | [
"package server",
"import (\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"net/http\"\n\t\"regexp\"\n\t\"sort\"\n\t\"strconv\"",
"\t\"github.com/usememos/memos/api\"\n\t\"github.com/usememos/memos/common\"\n\tmetric \"github.com/usememos/memos/plugin/metrics\"",
"\t\"github.com/labstack/echo/v4\"\n)",
"func (s *Serve... | [
1,
1,
1,
1,
1,
0,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
0,
0,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [81, 21, 12, 24, 20, 11, 54, 118, 545, 229, 127, 131, 108, 203], "buggy_code_start_loc": [49, 11, 11, 23, 19, 10, 53, 87, 27, 58, 24, 79, 26, 32], "filenames": ["api/memo.go", "api/memo_organizer.go", "api/memo_resource.go", "api/resource.go", "api/shortcut.go", "api/tag.go", "api/user_setting.go... | 811 |
Determine whether the {function_name} code is vulnerable or not. | [
"package server",
"import (\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"net/http\"\n\t\"regexp\"\n\t\"sort\"\n\t\"strconv\"",
"\t\"github.com/usememos/memos/api\"\n\t\"github.com/usememos/memos/common\"\n\tmetric \"github.com/usememos/memos/plugin/metrics\"",
"\t\"github.com/labstack/echo/v4\"\n)",
"func (s *Serve... | [
1,
1,
1,
1,
1,
1,
1,
1,
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": [81, 21, 12, 24, 20, 11, 54, 118, 545, 229, 127, 131, 108, 203], "buggy_code_start_loc": [49, 11, 11, 23, 19, 10, 53, 87, 27, 58, 24, 79, 26, 32], "filenames": ["api/memo.go", "api/memo_organizer.go", "api/memo_resource.go", "api/resource.go", "api/shortcut.go", "api/tag.go", "api/user_setting.go... | 811 |
Determine whether the {function_name} code is vulnerable or not. | [
"package server",
"import (\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"net/http\"\n\t\"strconv\"\n\t\"time\"",
"\t\"github.com/usememos/memos/api\"\n\t\"github.com/usememos/memos/common\"\n\tmetric \"github.com/usememos/memos/plugin/metrics\"",
"\t\"github.com/labstack/echo/v4\"\n\t\"golang.org/x/crypto/bcrypt\"\n)... | [
1,
1,
1,
1,
1,
0,
0,
1,
0,
1,
0,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
0,
1,
0,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [81, 21, 12, 24, 20, 11, 54, 118, 545, 229, 127, 131, 108, 203], "buggy_code_start_loc": [49, 11, 11, 23, 19, 10, 53, 87, 27, 58, 24, 79, 26, 32], "filenames": ["api/memo.go", "api/memo_organizer.go", "api/memo_resource.go", "api/resource.go", "api/shortcut.go", "api/tag.go", "api/user_setting.go... | 811 |
Determine whether the {function_name} code is vulnerable or not. | [
"package server",
"import (\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"net/http\"\n\t\"strconv\"\n\t\"time\"",
"\t\"github.com/usememos/memos/api\"\n\t\"github.com/usememos/memos/common\"\n\tmetric \"github.com/usememos/memos/plugin/metrics\"",
"\t\"github.com/labstack/echo/v4\"\n\t\"golang.org/x/crypto/bcrypt\"\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
] | PreciseBugs | {"buggy_code_end_loc": [81, 21, 12, 24, 20, 11, 54, 118, 545, 229, 127, 131, 108, 203], "buggy_code_start_loc": [49, 11, 11, 23, 19, 10, 53, 87, 27, 58, 24, 79, 26, 32], "filenames": ["api/memo.go", "api/memo_organizer.go", "api/memo_resource.go", "api/resource.go", "api/shortcut.go", "api/tag.go", "api/user_setting.go... | 811 |
Determine whether the {function_name} code is vulnerable or not. | [
"/**\n * @author ZhangHuihua@msn.com\n */\nvar DWZ = {\n version: \"1.5.0\" ,\n regPlugins: [ ], // [function($parent){} ...]\n // sbar: show sidebar\n keyCode: {\n ENTER: 13, ESC: 27, END: 35, HOME: 36, SHIFT: 16, TAB: 9, LEFT: 37, RIGHT: 39, UP: 38, DOWN: 40, DELETE: 46, BACKSPACE: 8, CHAR_S: 8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
1,
1,
0,
1,
0,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [3022], "buggy_code_start_loc": [1945], "filenames": ["publiccms-parent/publiccms/src/main/webapp/resource/js/dwz.min.js"], "fixing_code_end_loc": [3018], "fixing_code_start_loc": [1945], "message": "A vulnerability, which was classified as problematic, was found in sanluan PublicCMS. Affected is... | 812 |
Determine whether the {function_name} code is vulnerable or not. | [
"/**\n * @author ZhangHuihua@msn.com\n */\nvar DWZ = {\n version: \"1.5.0\" ,\n regPlugins: [ ], // [function($parent){} ...]\n // sbar: show sidebar\n keyCode: {\n ENTER: 13, ESC: 27, END: 35, HOME: 36, SHIFT: 16, TAB: 9, LEFT: 37, RIGHT: 39, UP: 38, DOWN: 40, DELETE: 46, BACKSPACE: 8, CHAR_S: 8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [3022], "buggy_code_start_loc": [1945], "filenames": ["publiccms-parent/publiccms/src/main/webapp/resource/js/dwz.min.js"], "fixing_code_end_loc": [3018], "fixing_code_start_loc": [1945], "message": "A vulnerability, which was classified as problematic, was found in sanluan PublicCMS. Affected is... | 812 |
Determine whether the {function_name} code is vulnerable or not. | [
"import { siteDir } from \"discourse/lib/text-direction\";",
"const D_POPOVER_ID = \"d-popover\";",
"const D_POPOVER_TEMPLATE = `\n <div id=\"${D_POPOVER_ID}\" class=\"is-under\">\n <div class=\"d-popover-arrow d-popover-top-arrow\"></div>\n <div class=\"d-popover-content\">\n <div class=\"spinner s... | [
1,
1,
1,
1,
1,
0,
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": [63, 138, 79], "buggy_code_start_loc": [19, 138, 78], "filenames": ["app/assets/javascripts/discourse/app/lib/d-popover.js", "app/assets/javascripts/discourse/tests/unit/lib/sanitizer-test.js", "app/assets/javascripts/pretty-text/addon/sanitizer.js"], "fixing_code_end_loc": [56, 144, 81], "fixing... | 813 |
Determine whether the {function_name} code is vulnerable or not. | [
"import { siteDir } from \"discourse/lib/text-direction\";",
"const D_POPOVER_ID = \"d-popover\";",
"const D_POPOVER_TEMPLATE = `\n <div id=\"${D_POPOVER_ID}\" class=\"is-under\">\n <div class=\"d-popover-arrow d-popover-top-arrow\"></div>\n <div class=\"d-popover-content\">\n <div class=\"spinner s... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [63, 138, 79], "buggy_code_start_loc": [19, 138, 78], "filenames": ["app/assets/javascripts/discourse/app/lib/d-popover.js", "app/assets/javascripts/discourse/tests/unit/lib/sanitizer-test.js", "app/assets/javascripts/pretty-text/addon/sanitizer.js"], "fixing_code_end_loc": [56, 144, 81], "fixing... | 813 |
Determine whether the {function_name} code is vulnerable or not. | [
"import PrettyText, { buildOptions } from \"pretty-text/pretty-text\";\nimport { module, test } from \"qunit\";\nimport { hrefAllowed } from \"pretty-text/sanitizer\";",
"module(\"Unit | Utility | sanitizer\", function () {\n test(\"sanitize\", function (assert) {\n const pt = new PrettyText(\n buildOpti... | [
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
] | PreciseBugs | {"buggy_code_end_loc": [63, 138, 79], "buggy_code_start_loc": [19, 138, 78], "filenames": ["app/assets/javascripts/discourse/app/lib/d-popover.js", "app/assets/javascripts/discourse/tests/unit/lib/sanitizer-test.js", "app/assets/javascripts/pretty-text/addon/sanitizer.js"], "fixing_code_end_loc": [56, 144, 81], "fixing... | 813 |
Determine whether the {function_name} code is vulnerable or not. | [
"import PrettyText, { buildOptions } from \"pretty-text/pretty-text\";\nimport { module, test } from \"qunit\";\nimport { hrefAllowed } from \"pretty-text/sanitizer\";",
"module(\"Unit | Utility | sanitizer\", function () {\n test(\"sanitize\", function (assert) {\n const pt = new PrettyText(\n buildOpti... | [
1,
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": [63, 138, 79], "buggy_code_start_loc": [19, 138, 78], "filenames": ["app/assets/javascripts/discourse/app/lib/d-popover.js", "app/assets/javascripts/discourse/tests/unit/lib/sanitizer-test.js", "app/assets/javascripts/pretty-text/addon/sanitizer.js"], "fixing_code_end_loc": [56, 144, 81], "fixing... | 813 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.