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.
[ "<?php\r\n\r\ntry {\r\n\t$item = erLhAbstractModelFormCollected::fetch((int)$Params['user_parameters']['collected_id']);\r\n\t\t\t\r\n\t$form = $item->form;\r\n\t\r\n\tinclude 'lib/core/lhform/PHPExcel.php';\r\n\r\n\r\n\t$cacheMethod = PHPExcel_CachedObjectStorageFactory::cache_to_phpTemp;\r\n\t$cacheSettings = arr...
[ 1, 0, 1 ]
PreciseBugs
{"buggy_code_end_loc": [1273, 106, 100, 4, 59, 7, 1049, 22, 40, 6, 6, 146, 81, 35, 49, 2, 5, 182, 32, 5, 9, 2, 2, 3, 2, 13, 59, 297, 130, 2, 2, 3, 6, 7, 53, 188, 92, 10, 7, 58, 11, 59, 7, 48, 191, 119, 111, 291, 408, 13, 110, 24, 113, 810, 846, 60, 502, 847, 473, 14, 639, 389, 717, 324, 71, 331, 93, 54, 124, 33, 8, 8, ...
1,608
Determine whether the {function_name} code is vulnerable or not.
[ "<?php\r\n\r\ntry {\r\n\t$item = erLhAbstractModelFormCollected::fetch((int)$Params['user_parameters']['collected_id']);\r\n\t\t\t\r\n\t$form = $item->form;\r\n\t\r\n\tinclude 'lib/core/lhform/PHPExcel.php';\r\n\r\n\r\n\t$cacheMethod = PHPExcel_CachedObjectStorageFactory::cache_to_phpTemp;\r\n\t$cacheSettings = arr...
[ 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [1273, 106, 100, 4, 59, 7, 1049, 22, 40, 6, 6, 146, 81, 35, 49, 2, 5, 182, 32, 5, 9, 2, 2, 3, 2, 13, 59, 297, 130, 2, 2, 3, 6, 7, 53, 188, 92, 10, 7, 58, 11, 59, 7, 48, 191, 119, 111, 291, 408, 13, 110, 24, 113, 810, 846, 60, 502, 847, 473, 14, 639, 389, 717, 324, 71, 331, 93, 54, 124, 33, 8, 8, ...
1,608
Determine whether the {function_name} code is vulnerable or not.
[ "<?php", "try {", " $cfgSite = erConfigClassLhConfig::getInstance();", " if ($cfgSite->getSetting( 'site', 'installed' ) == true)\n {\n $Params['module']['functions'] = array('install');\n include_once('modules/lhkernel/nopermission.php');", " $Result['pagelayout'] = 'install';...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [1273, 106, 100, 4, 59, 7, 1049, 22, 40, 6, 6, 146, 81, 35, 49, 2, 5, 182, 32, 5, 9, 2, 2, 3, 2, 13, 59, 297, 130, 2, 2, 3, 6, 7, 53, 188, 92, 10, 7, 58, 11, 59, 7, 48, 191, 119, 111, 291, 408, 13, 110, 24, 113, 810, 846, 60, 502, 847, 473, 14, 639, 389, 717, 324, 71, 331, 93, 54, 124, 33, 8, 8, ...
1,608
Determine whether the {function_name} code is vulnerable or not.
[ "<?php", "try {", " $cfgSite = erConfigClassLhConfig::getInstance();", " if ($cfgSite->getSetting( 'site', 'installed' ) == true)\n {\n $Params['module']['functions'] = array('install');\n include_once('modules/lhkernel/nopermission.php');", " $Result['pagelayout'] = 'install';...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [1273, 106, 100, 4, 59, 7, 1049, 22, 40, 6, 6, 146, 81, 35, 49, 2, 5, 182, 32, 5, 9, 2, 2, 3, 2, 13, 59, 297, 130, 2, 2, 3, 6, 7, 53, 188, 92, 10, 7, 58, 11, 59, 7, 48, 191, 119, 111, 291, 408, 13, 110, 24, 113, 810, 846, 60, 502, 847, 473, 14, 639, 389, 717, 324, 71, 331, 93, 54, 124, 33, 8, 8, ...
1,608
Determine whether the {function_name} code is vulnerable or not.
[ "<?php", "$tpl = erLhcoreClassTemplate::getInstance('lhpermission/explorer.tpl.php');", "if ($Params['user_parameters_unordered']['action'] == 1) {\n $filename = \"permissions-\" . date('Y-m-d') . \".csv\";\n $fp = fopen('php://output', 'w');", " header('Content-type: application/csv');\n header('...
[ 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [1273, 106, 100, 4, 59, 7, 1049, 22, 40, 6, 6, 146, 81, 35, 49, 2, 5, 182, 32, 5, 9, 2, 2, 3, 2, 13, 59, 297, 130, 2, 2, 3, 6, 7, 53, 188, 92, 10, 7, 58, 11, 59, 7, 48, 191, 119, 111, 291, 408, 13, 110, 24, 113, 810, 846, 60, 502, 847, 473, 14, 639, 389, 717, 324, 71, 331, 93, 54, 124, 33, 8, 8, ...
1,608
Determine whether the {function_name} code is vulnerable or not.
[ "<?php", "$tpl = erLhcoreClassTemplate::getInstance('lhpermission/explorer.tpl.php');", "if ($Params['user_parameters_unordered']['action'] == 1) {\n $filename = \"permissions-\" . date('Y-m-d') . \".csv\";\n $fp = fopen('php://output', 'w');", " header('Content-type: application/csv');\n header('...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [1273, 106, 100, 4, 59, 7, 1049, 22, 40, 6, 6, 146, 81, 35, 49, 2, 5, 182, 32, 5, 9, 2, 2, 3, 2, 13, 59, 297, 130, 2, 2, 3, 6, 7, 53, 188, 92, 10, 7, 58, 11, 59, 7, 48, 191, 119, 111, 291, 408, 13, 110, 24, 113, 810, 846, 60, 502, 847, 473, 14, 639, 389, 717, 324, 71, 331, 93, 54, 124, 33, 8, 8, ...
1,608
Determine whether the {function_name} code is vulnerable or not.
[ "<?php", "try {\n erLhcoreClassRestAPIHandler::validateRequest();\n \n if (!erLhcoreClassRestAPIHandler::hasAccessTo('lhchat', 'use')) {\n throw new Exception('You do not have permission. `lhchat`, `use` is required.');\n }", " $chat = erLhcoreClassModelChat::fetch((int)$_GET['chat_id']);"...
[ 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": [1273, 106, 100, 4, 59, 7, 1049, 22, 40, 6, 6, 146, 81, 35, 49, 2, 5, 182, 32, 5, 9, 2, 2, 3, 2, 13, 59, 297, 130, 2, 2, 3, 6, 7, 53, 188, 92, 10, 7, 58, 11, 59, 7, 48, 191, 119, 111, 291, 408, 13, 110, 24, 113, 810, 846, 60, 502, 847, 473, 14, 639, 389, 717, 324, 71, 331, 93, 54, 124, 33, 8, 8, ...
1,608
Determine whether the {function_name} code is vulnerable or not.
[ "<?php", "try {\n erLhcoreClassRestAPIHandler::validateRequest();\n \n if (!erLhcoreClassRestAPIHandler::hasAccessTo('lhchat', 'use')) {\n throw new Exception('You do not have permission. `lhchat`, `use` is required.');\n }", " $chat = erLhcoreClassModelChat::fetch((int)$_GET['chat_id']);"...
[ 1, 1, 1, 1, 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": [1273, 106, 100, 4, 59, 7, 1049, 22, 40, 6, 6, 146, 81, 35, 49, 2, 5, 182, 32, 5, 9, 2, 2, 3, 2, 13, 59, 297, 130, 2, 2, 3, 6, 7, 53, 188, 92, 10, 7, 58, 11, 59, 7, 48, 191, 119, 111, 291, 408, 13, 110, 24, 113, 810, 846, 60, 502, 847, 473, 14, 639, 389, 717, 324, 71, 331, 93, 54, 124, 33, 8, 8, ...
1,608
Determine whether the {function_name} code is vulnerable or not.
[ "<?php", "try\n{\n erLhcoreClassRestAPIHandler::validateRequest();", " $requestBody = json_decode(file_get_contents('php://input'),true);", " $data = erLhcoreClassModelChatConfig::fetch('autologin_data')->data;", " if ($data['enabled'] != 1) {\n throw new Exception('Auto login module is d...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [1273, 106, 100, 4, 59, 7, 1049, 22, 40, 6, 6, 146, 81, 35, 49, 2, 5, 182, 32, 5, 9, 2, 2, 3, 2, 13, 59, 297, 130, 2, 2, 3, 6, 7, 53, 188, 92, 10, 7, 58, 11, 59, 7, 48, 191, 119, 111, 291, 408, 13, 110, 24, 113, 810, 846, 60, 502, 847, 473, 14, 639, 389, 717, 324, 71, 331, 93, 54, 124, 33, 8, 8, ...
1,608
Determine whether the {function_name} code is vulnerable or not.
[ "<?php", "try\n{\n erLhcoreClassRestAPIHandler::validateRequest();", " $requestBody = json_decode(file_get_contents('php://input'),true);", " $data = erLhcoreClassModelChatConfig::fetch('autologin_data')->data;", " if ($data['enabled'] != 1) {\n throw new Exception('Auto login module is d...
[ 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": [1273, 106, 100, 4, 59, 7, 1049, 22, 40, 6, 6, 146, 81, 35, 49, 2, 5, 182, 32, 5, 9, 2, 2, 3, 2, 13, 59, 297, 130, 2, 2, 3, 6, 7, 53, 188, 92, 10, 7, 58, 11, 59, 7, 48, 191, 119, 111, 291, 408, 13, 110, 24, 113, 810, 846, 60, 502, 847, 473, 14, 639, 389, 717, 324, 71, 331, 93, 54, 124, 33, 8, 8, ...
1,608
Determine whether the {function_name} code is vulnerable or not.
[ "<?php", "erLhcoreClassRestAPIHandler::setHeaders();", "$modeAPI = isset($_GET['api']) && $_GET['api'] == 'true';", "try {\n \n if (!isset($_GET['token'])) {\n throw new Exception('Token not found!');\n }", " $token = $_GET['token'];", " $uSession = erLhcoreClassModelUserSession::fin...
[ 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [1273, 106, 100, 4, 59, 7, 1049, 22, 40, 6, 6, 146, 81, 35, 49, 2, 5, 182, 32, 5, 9, 2, 2, 3, 2, 13, 59, 297, 130, 2, 2, 3, 6, 7, 53, 188, 92, 10, 7, 58, 11, 59, 7, 48, 191, 119, 111, 291, 408, 13, 110, 24, 113, 810, 846, 60, 502, 847, 473, 14, 639, 389, 717, 324, 71, 331, 93, 54, 124, 33, 8, 8, ...
1,608
Determine whether the {function_name} code is vulnerable or not.
[ "<?php", "erLhcoreClassRestAPIHandler::setHeaders();", "$modeAPI = isset($_GET['api']) && $_GET['api'] == 'true';", "try {\n \n if (!isset($_GET['token'])) {\n throw new Exception('Token not found!');\n }", " $token = $_GET['token'];", " $uSession = erLhcoreClassModelUserSession::fin...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [1273, 106, 100, 4, 59, 7, 1049, 22, 40, 6, 6, 146, 81, 35, 49, 2, 5, 182, 32, 5, 9, 2, 2, 3, 2, 13, 59, 297, 130, 2, 2, 3, 6, 7, 53, 188, 92, 10, 7, 58, 11, 59, 7, 48, 191, 119, 111, 291, 408, 13, 110, 24, 113, 810, 846, 60, 502, 847, 473, 14, 639, 389, 717, 324, 71, 331, 93, 54, 124, 33, 8, 8, ...
1,608
Determine whether the {function_name} code is vulnerable or not.
[ "<?php \nheader('Access-Control-Allow-Origin: *');\nheader('Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept');", "if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {", " if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD']))\n // may also be using PUT, PATCH, HEAD etc\n ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [1273, 106, 100, 4, 59, 7, 1049, 22, 40, 6, 6, 146, 81, 35, 49, 2, 5, 182, 32, 5, 9, 2, 2, 3, 2, 13, 59, 297, 130, 2, 2, 3, 6, 7, 53, 188, 92, 10, 7, 58, 11, 59, 7, 48, 191, 119, 111, 291, 408, 13, 110, 24, 113, 810, 846, 60, 502, 847, 473, 14, 639, 389, 717, 324, 71, 331, 93, 54, 124, 33, 8, 8, ...
1,608
Determine whether the {function_name} code is vulnerable or not.
[ "<?php \nheader('Access-Control-Allow-Origin: *');\nheader('Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept');", "if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {", " if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD']))\n // may also be using PUT, PATCH, HEAD etc\n ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [1273, 106, 100, 4, 59, 7, 1049, 22, 40, 6, 6, 146, 81, 35, 49, 2, 5, 182, 32, 5, 9, 2, 2, 3, 2, 13, 59, 297, 130, 2, 2, 3, 6, 7, 53, 188, 92, 10, 7, 58, 11, 59, 7, 48, 191, 119, 111, 291, 408, 13, 110, 24, 113, 810, 846, 60, 502, 847, 473, 14, 639, 389, 717, 324, 71, 331, 93, 54, 124, 33, 8, 8, ...
1,608
Determine whether the {function_name} code is vulnerable or not.
[ "<?php", "header('X-Frame-Options: DENY');", "$tpl = erLhcoreClassTemplate::getInstance( 'lhuser/forgotpassword.tpl.php');", "$currentUser = erLhcoreClassUser::instance();", "if (isset($_POST['Forgotpassword'])) {", "\t$definition = array(\n 'Email' => new ezcInputFormDefinitionElement(\n ...
[ 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 ]
PreciseBugs
{"buggy_code_end_loc": [1273, 106, 100, 4, 59, 7, 1049, 22, 40, 6, 6, 146, 81, 35, 49, 2, 5, 182, 32, 5, 9, 2, 2, 3, 2, 13, 59, 297, 130, 2, 2, 3, 6, 7, 53, 188, 92, 10, 7, 58, 11, 59, 7, 48, 191, 119, 111, 291, 408, 13, 110, 24, 113, 810, 846, 60, 502, 847, 473, 14, 639, 389, 717, 324, 71, 331, 93, 54, 124, 33, 8, 8, ...
1,608
Determine whether the {function_name} code is vulnerable or not.
[ "<?php", "header('X-Frame-Options: DENY');", "$tpl = erLhcoreClassTemplate::getInstance( 'lhuser/forgotpassword.tpl.php');", "$currentUser = erLhcoreClassUser::instance();", "if (isset($_POST['Forgotpassword'])) {", "\t$definition = array(\n 'Email' => new ezcInputFormDefinitionElement(\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 ]
PreciseBugs
{"buggy_code_end_loc": [1273, 106, 100, 4, 59, 7, 1049, 22, 40, 6, 6, 146, 81, 35, 49, 2, 5, 182, 32, 5, 9, 2, 2, 3, 2, 13, 59, 297, 130, 2, 2, 3, 6, 7, 53, 188, 92, 10, 7, 58, 11, 59, 7, 48, 191, 119, 111, 291, 408, 13, 110, 24, 113, 810, 846, 60, 502, 847, 473, 14, 639, 389, 717, 324, 71, 331, 93, 54, 124, 33, 8, 8, ...
1,608
Determine whether the {function_name} code is vulnerable or not.
[ "<?php", "erLhcoreClassRestAPIHandler::setHeaders();", "header(\"Cache-Control: no-store, no-cache, must-revalidate, max-age=0\");\nheader(\"Cache-Control: post-check=0, pre-check=0\", false);\nheader(\"Pragma: no-cache\");", "$ignorable_ip = erLhcoreClassModelChatConfig::fetch('ignorable_ip')->current_value;...
[ 1, 1, 1, 1, 1, 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 ]
PreciseBugs
{"buggy_code_end_loc": [1273, 106, 100, 4, 59, 7, 1049, 22, 40, 6, 6, 146, 81, 35, 49, 2, 5, 182, 32, 5, 9, 2, 2, 3, 2, 13, 59, 297, 130, 2, 2, 3, 6, 7, 53, 188, 92, 10, 7, 58, 11, 59, 7, 48, 191, 119, 111, 291, 408, 13, 110, 24, 113, 810, 846, 60, 502, 847, 473, 14, 639, 389, 717, 324, 71, 331, 93, 54, 124, 33, 8, 8, ...
1,608
Determine whether the {function_name} code is vulnerable or not.
[ "<?php", "erLhcoreClassRestAPIHandler::setHeaders();", "header(\"Cache-Control: no-store, no-cache, must-revalidate, max-age=0\");\nheader(\"Cache-Control: post-check=0, pre-check=0\", false);\nheader(\"Pragma: no-cache\");", "$ignorable_ip = erLhcoreClassModelChatConfig::fetch('ignorable_ip')->current_value;...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [1273, 106, 100, 4, 59, 7, 1049, 22, 40, 6, 6, 146, 81, 35, 49, 2, 5, 182, 32, 5, 9, 2, 2, 3, 2, 13, 59, 297, 130, 2, 2, 3, 6, 7, 53, 188, 92, 10, 7, 58, 11, 59, 7, 48, 191, 119, 111, 291, 408, 13, 110, 24, 113, 810, 846, 60, 502, 847, 473, 14, 639, 389, 717, 324, 71, 331, 93, 54, 124, 33, 8, 8, ...
1,608
Determine whether the {function_name} code is vulnerable or not.
[ "<?php\nerLhcoreClassRestAPIHandler::setHeaders();", "$settings = array(\n 'nodejssettings' => array(\n 'nodejssocket' => erLhcoreClassModelChatConfig::fetch('sharing_nodejs_sllocation')->current_value,", " 'nodejshost' => (erLhcoreClassModelChatConfig::fetch('sharing_nodejs_socket_host')->curr...
[ 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [1273, 106, 100, 4, 59, 7, 1049, 22, 40, 6, 6, 146, 81, 35, 49, 2, 5, 182, 32, 5, 9, 2, 2, 3, 2, 13, 59, 297, 130, 2, 2, 3, 6, 7, 53, 188, 92, 10, 7, 58, 11, 59, 7, 48, 191, 119, 111, 291, 408, 13, 110, 24, 113, 810, 846, 60, 502, 847, 473, 14, 639, 389, 717, 324, 71, 331, 93, 54, 124, 33, 8, 8, ...
1,608
Determine whether the {function_name} code is vulnerable or not.
[ "<?php\nerLhcoreClassRestAPIHandler::setHeaders();", "$settings = array(\n 'nodejssettings' => array(\n 'nodejssocket' => erLhcoreClassModelChatConfig::fetch('sharing_nodejs_sllocation')->current_value,", " 'nodejshost' => (erLhcoreClassModelChatConfig::fetch('sharing_nodejs_socket_host')->curr...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [1273, 106, 100, 4, 59, 7, 1049, 22, 40, 6, 6, 146, 81, 35, 49, 2, 5, 182, 32, 5, 9, 2, 2, 3, 2, 13, 59, 297, 130, 2, 2, 3, 6, 7, 53, 188, 92, 10, 7, 58, 11, 59, 7, 48, 191, 119, 111, 291, 408, 13, 110, 24, 113, 810, 846, 60, 502, 847, 473, 14, 639, 389, 717, 324, 71, 331, 93, 54, 124, 33, 8, 8, ...
1,608
Determine whether the {function_name} code is vulnerable or not.
[ "<?php", "erLhcoreClassRestAPIHandler::setHeaders();", "header(\"Cache-Control: no-store, no-cache, must-revalidate, max-age=0\");\nheader(\"Cache-Control: post-check=0, pre-check=0\", false);\nheader(\"Pragma: no-cache\");", "if (isset($_SERVER['HTTP_ORIGIN']) && !empty($_SERVER['HTTP_ORIGIN'])) {\n $vali...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [1273, 106, 100, 4, 59, 7, 1049, 22, 40, 6, 6, 146, 81, 35, 49, 2, 5, 182, 32, 5, 9, 2, 2, 3, 2, 13, 59, 297, 130, 2, 2, 3, 6, 7, 53, 188, 92, 10, 7, 58, 11, 59, 7, 48, 191, 119, 111, 291, 408, 13, 110, 24, 113, 810, 846, 60, 502, 847, 473, 14, 639, 389, 717, 324, 71, 331, 93, 54, 124, 33, 8, 8, ...
1,608
Determine whether the {function_name} code is vulnerable or not.
[ "<?php", "erLhcoreClassRestAPIHandler::setHeaders();", "header(\"Cache-Control: no-store, no-cache, must-revalidate, max-age=0\");\nheader(\"Cache-Control: post-check=0, pre-check=0\", false);\nheader(\"Pragma: no-cache\");", "if (isset($_SERVER['HTTP_ORIGIN']) && !empty($_SERVER['HTTP_ORIGIN'])) {\n $vali...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [1273, 106, 100, 4, 59, 7, 1049, 22, 40, 6, 6, 146, 81, 35, 49, 2, 5, 182, 32, 5, 9, 2, 2, 3, 2, 13, 59, 297, 130, 2, 2, 3, 6, 7, 53, 188, 92, 10, 7, 58, 11, 59, 7, 48, 191, 119, 111, 291, 408, 13, 110, 24, 113, 810, 846, 60, 502, 847, 473, 14, 639, 389, 717, 324, 71, 331, 93, 54, 124, 33, 8, 8, ...
1,608
Determine whether the {function_name} code is vulnerable or not.
[ "<html>\n<head>", " <script src=\"//<?php echo $_SERVER['HTTP_HOST']?><?php echo erLhcoreClassDesign::design('js/widgetv2/index.js')?>?t=<?php echo time()?>\"></script>", " <meta http-equiv=\"cache-control\" content=\"no-cache, must-revalidate, post-check=0, pre-check=0\" />\n <meta http-equiv=\"cache-...
[ 1, 0, 1 ]
PreciseBugs
{"buggy_code_end_loc": [1273, 106, 100, 4, 59, 7, 1049, 22, 40, 6, 6, 146, 81, 35, 49, 2, 5, 182, 32, 5, 9, 2, 2, 3, 2, 13, 59, 297, 130, 2, 2, 3, 6, 7, 53, 188, 92, 10, 7, 58, 11, 59, 7, 48, 191, 119, 111, 291, 408, 13, 110, 24, 113, 810, 846, 60, 502, 847, 473, 14, 639, 389, 717, 324, 71, 331, 93, 54, 124, 33, 8, 8, ...
1,608
Determine whether the {function_name} code is vulnerable or not.
[ "<html>\n<head>", " <script src=\"<?php echo erLhcoreClassSystem::getHost()?><?php echo erLhcoreClassDesign::design('js/widgetv2/index.js')?>?t=<?php echo time()?>\"></script>", " <meta http-equiv=\"cache-control\" content=\"no-cache, must-revalidate, post-check=0, pre-check=0\" />\n <meta http-equiv=\...
[ 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [1273, 106, 100, 4, 59, 7, 1049, 22, 40, 6, 6, 146, 81, 35, 49, 2, 5, 182, 32, 5, 9, 2, 2, 3, 2, 13, 59, 297, 130, 2, 2, 3, 6, 7, 53, 188, 92, 10, 7, 58, 11, 59, 7, 48, 191, 119, 111, 291, 408, 13, 110, 24, 113, 810, 846, 60, 502, 847, 473, 14, 639, 389, 717, 324, 71, 331, 93, 54, 124, 33, 8, 8, ...
1,608
Determine whether the {function_name} code is vulnerable or not.
[ "<?php\r\n\r\nerLhcoreClassChatEventDispatcher::getInstance()->dispatch('xmp.configuration', array());\r\n\r\n$tpl = erLhcoreClassTemplate::getInstance( 'lhxmp/xmp.tpl.php');\r\n\r\n$xmpData = erLhcoreClassModelChatConfig::fetch('xmp_data');\r\n$data = (array)$xmpData->data;\r\n\r\nif (isset($_POST['StoreXMPGTalkSe...
[ 1, 0, 1, 0, 1, 0, 1 ]
PreciseBugs
{"buggy_code_end_loc": [1273, 106, 100, 4, 59, 7, 1049, 22, 40, 6, 6, 146, 81, 35, 49, 2, 5, 182, 32, 5, 9, 2, 2, 3, 2, 13, 59, 297, 130, 2, 2, 3, 6, 7, 53, 188, 92, 10, 7, 58, 11, 59, 7, 48, 191, 119, 111, 291, 408, 13, 110, 24, 113, 810, 846, 60, 502, 847, 473, 14, 639, 389, 717, 324, 71, 331, 93, 54, 124, 33, 8, 8, ...
1,608
Determine whether the {function_name} code is vulnerable or not.
[ "<?php\r\n\r\nerLhcoreClassChatEventDispatcher::getInstance()->dispatch('xmp.configuration', array());\r\n\r\n$tpl = erLhcoreClassTemplate::getInstance( 'lhxmp/xmp.tpl.php');\r\n\r\n$xmpData = erLhcoreClassModelChatConfig::fetch('xmp_data');\r\n$data = (array)$xmpData->data;\r\n\r\nif (isset($_POST['StoreXMPGTalkSe...
[ 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [1273, 106, 100, 4, 59, 7, 1049, 22, 40, 6, 6, 146, 81, 35, 49, 2, 5, 182, 32, 5, 9, 2, 2, 3, 2, 13, 59, 297, 130, 2, 2, 3, 6, 7, 53, 188, 92, 10, 7, 58, 11, 59, 7, 48, 191, 119, 111, 291, 408, 13, 110, 24, 113, 810, 846, 60, 502, 847, 473, 14, 639, 389, 717, 324, 71, 331, 93, 54, 124, 33, 8, 8, ...
1,608
Determine whether the {function_name} code is vulnerable or not.
[ "<?php\nreturn array (\n 'settings' =>\n array (\n 'site' =>\n array (\n 'title' => 'Live helper Chat',\n 'site_admin_email' => '',\n 'locale' => 'en_EN',\n 'theme' => 'defaulttheme',\n ...
[ 1, 0, 1 ]
PreciseBugs
{"buggy_code_end_loc": [1273, 106, 100, 4, 59, 7, 1049, 22, 40, 6, 6, 146, 81, 35, 49, 2, 5, 182, 32, 5, 9, 2, 2, 3, 2, 13, 59, 297, 130, 2, 2, 3, 6, 7, 53, 188, 92, 10, 7, 58, 11, 59, 7, 48, 191, 119, 111, 291, 408, 13, 110, 24, 113, 810, 846, 60, 502, 847, 473, 14, 639, 389, 717, 324, 71, 331, 93, 54, 124, 33, 8, 8, ...
1,608
Determine whether the {function_name} code is vulnerable or not.
[ "<?php\nreturn array (\n 'settings' =>\n array (\n 'site' =>\n array (\n 'title' => 'Live helper Chat',\n 'site_admin_email' => '',\n 'locale' => 'en_EN',\n 'theme' => 'defaulttheme',\n ...
[ 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [1273, 106, 100, 4, 59, 7, 1049, 22, 40, 6, 6, 146, 81, 35, 49, 2, 5, 182, 32, 5, 9, 2, 2, 3, 2, 13, 59, 297, 130, 2, 2, 3, 6, 7, 53, 188, 92, 10, 7, 58, 11, 59, 7, 48, 191, 119, 111, 291, 408, 13, 110, 24, 113, 810, 846, 60, 502, 847, 473, 14, 639, 389, 717, 324, 71, 331, 93, 54, 124, 33, 8, 8, ...
1,608
Determine whether the {function_name} code is vulnerable or not.
[ "#include <inttypes.h>", "#include \"c.h\"\n#include \"nls.h\"\n#include \"xalloc.h\"\n#include \"path.h\"\n#include \"pathnames.h\"\n#include \"ipcutils.h\"\n#include \"strutils.h\"", "#ifndef SEMVMX\n# define SEMVMX 32767\t/* <= 32767 semaphore maximum value */\n#endif\n#ifndef SHMMIN\n# define SHMMIN 1\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, 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": [222], "buggy_code_start_loc": [221], "filenames": ["sys-utils/ipcutils.c"], "fixing_code_end_loc": [222], "fixing_code_start_loc": [221], "message": "** DISPUTED ** An integer overflow in util-linux through 2.37.1 can potentially cause a buffer overflow if an attacker were able to use system res...
1,609
Determine whether the {function_name} code is vulnerable or not.
[ "#include <inttypes.h>", "#include \"c.h\"\n#include \"nls.h\"\n#include \"xalloc.h\"\n#include \"path.h\"\n#include \"pathnames.h\"\n#include \"ipcutils.h\"\n#include \"strutils.h\"", "#ifndef SEMVMX\n# define SEMVMX 32767\t/* <= 32767 semaphore maximum value */\n#endif\n#ifndef SHMMIN\n# define SHMMIN 1\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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [222], "buggy_code_start_loc": [221], "filenames": ["sys-utils/ipcutils.c"], "fixing_code_end_loc": [222], "fixing_code_start_loc": [221], "message": "** DISPUTED ** An integer overflow in util-linux through 2.37.1 can potentially cause a buffer overflow if an attacker were able to use system res...
1,609
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, 0, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [61, 45, 28, 73], "buggy_code_start_loc": [60, 44, 27, 72], "filenames": ["api/memo.go", "api/resource.go", "api/shortcut.go", "api/user.go"], "fixing_code_end_loc": [61, 45, 28, 73], "fixing_code_start_loc": [60, 44, 27, 72], "message": "Improper Authorization in GitHub repository usememos/memos...
1,610
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 ]
PreciseBugs
{"buggy_code_end_loc": [61, 45, 28, 73], "buggy_code_start_loc": [60, 44, 27, 72], "filenames": ["api/memo.go", "api/resource.go", "api/shortcut.go", "api/user.go"], "fixing_code_end_loc": [61, 45, 28, 73], "fixing_code_start_loc": [60, 44, 27, 72], "message": "Improper Authorization in GitHub repository usememos/memos...
1,610
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, 0, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [61, 45, 28, 73], "buggy_code_start_loc": [60, 44, 27, 72], "filenames": ["api/memo.go", "api/resource.go", "api/shortcut.go", "api/user.go"], "fixing_code_end_loc": [61, 45, 28, 73], "fixing_code_start_loc": [60, 44, 27, 72], "message": "Improper Authorization in GitHub repository usememos/memos...
1,610
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": [61, 45, 28, 73], "buggy_code_start_loc": [60, 44, 27, 72], "filenames": ["api/memo.go", "api/resource.go", "api/shortcut.go", "api/user.go"], "fixing_code_end_loc": [61, 45, 28, 73], "fixing_code_start_loc": [60, 44, 27, 72], "message": "Improper Authorization in GitHub repository usememos/memos...
1,610
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, 0, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [61, 45, 28, 73], "buggy_code_start_loc": [60, 44, 27, 72], "filenames": ["api/memo.go", "api/resource.go", "api/shortcut.go", "api/user.go"], "fixing_code_end_loc": [61, 45, 28, 73], "fixing_code_start_loc": [60, 44, 27, 72], "message": "Improper Authorization in GitHub repository usememos/memos...
1,610
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": [61, 45, 28, 73], "buggy_code_start_loc": [60, 44, 27, 72], "filenames": ["api/memo.go", "api/resource.go", "api/shortcut.go", "api/user.go"], "fixing_code_end_loc": [61, 45, 28, 73], "fixing_code_start_loc": [60, 44, 27, 72], "message": "Improper Authorization in GitHub repository usememos/memos...
1,610
Determine whether the {function_name} code is vulnerable or not.
[ "package api", "import (\n\t\"fmt\"\n)", "// Role is the type of a role.\ntype Role string", "const (\n\t// Host is the HOST role.\n\tHost Role = \"HOST\"\n\t// Admin is the ADMIN role.\n\tAdmin Role = \"ADMIN\"\n\t// NormalUser is the USER role.\n\tNormalUser Role = \"USER\"\n)", "func (e Role) String() st...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [61, 45, 28, 73], "buggy_code_start_loc": [60, 44, 27, 72], "filenames": ["api/memo.go", "api/resource.go", "api/shortcut.go", "api/user.go"], "fixing_code_end_loc": [61, 45, 28, 73], "fixing_code_start_loc": [60, 44, 27, 72], "message": "Improper Authorization in GitHub repository usememos/memos...
1,610
Determine whether the {function_name} code is vulnerable or not.
[ "package api", "import (\n\t\"fmt\"\n)", "// Role is the type of a role.\ntype Role string", "const (\n\t// Host is the HOST role.\n\tHost Role = \"HOST\"\n\t// Admin is the ADMIN role.\n\tAdmin Role = \"ADMIN\"\n\t// NormalUser is the USER role.\n\tNormalUser Role = \"USER\"\n)", "func (e Role) String() st...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [61, 45, 28, 73], "buggy_code_start_loc": [60, 44, 27, 72], "filenames": ["api/memo.go", "api/resource.go", "api/shortcut.go", "api/user.go"], "fixing_code_end_loc": [61, 45, 28, 73], "fixing_code_start_loc": [60, 44, 27, 72], "message": "Improper Authorization in GitHub repository usememos/memos...
1,610
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * Marvell Wireless LAN device driver: WMM\n *\n * Copyright (C) 2011-2014, Marvell International Ltd.\n *\n * This software file (the \"File\") is distributed by Marvell International\n * Ltd. under the terms of the GNU General Public License Version 2, June 1991\n * (the \"License\"). You may use, redistrib...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [971], "buggy_code_start_loc": [971], "filenames": ["drivers/net/wireless/marvell/mwifiex/wmm.c"], "fixing_code_end_loc": [976], "fixing_code_start_loc": [972], "message": "An issue was found in Linux kernel before 5.5.4. mwifiex_ret_wmm_get_status() in drivers/net/wireless/marvell/mwifiex/wmm.c ...
1,611
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * Marvell Wireless LAN device driver: WMM\n *\n * Copyright (C) 2011-2014, Marvell International Ltd.\n *\n * This software file (the \"File\") is distributed by Marvell International\n * Ltd. under the terms of the GNU General Public License Version 2, June 1991\n * (the \"License\"). You may use, redistrib...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [971], "buggy_code_start_loc": [971], "filenames": ["drivers/net/wireless/marvell/mwifiex/wmm.c"], "fixing_code_end_loc": [976], "fixing_code_start_loc": [972], "message": "An issue was found in Linux kernel before 5.5.4. mwifiex_ret_wmm_get_status() in drivers/net/wireless/marvell/mwifiex/wmm.c ...
1,611
Determine whether the {function_name} code is vulnerable or not.
[ "Project: jackson-databind", "------------------------------------------------------------------------\n=== Releases ===\n------------------------------------------------------------------------", "2.7.9.5 (not yet released)", "#1899: Another two gadgets to exploit default typing issue in jackson-databind\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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PreciseBugs
{"buggy_code_end_loc": [12, 75], "buggy_code_start_loc": [12, 75], "filenames": ["release-notes/VERSION", "src/main/java/com/fasterxml/jackson/databind/jsontype/impl/SubTypeValidator.java"], "fixing_code_end_loc": [16, 81], "fixing_code_start_loc": [13, 76], "message": "FasterXML jackson-databind 2.x before 2.9.8 might...
1,612
Determine whether the {function_name} code is vulnerable or not.
[ "Project: jackson-databind", "------------------------------------------------------------------------\n=== Releases ===\n------------------------------------------------------------------------", "2.7.9.5 (not yet released)", "#1899: Another two gadgets to exploit default typing issue in jackson-databind\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": [12, 75], "buggy_code_start_loc": [12, 75], "filenames": ["release-notes/VERSION", "src/main/java/com/fasterxml/jackson/databind/jsontype/impl/SubTypeValidator.java"], "fixing_code_end_loc": [16, 81], "fixing_code_start_loc": [13, 76], "message": "FasterXML jackson-databind 2.x before 2.9.8 might...
1,612
Determine whether the {function_name} code is vulnerable or not.
[ "package com.fasterxml.jackson.databind.jsontype.impl;", "import java.util.Collections;\nimport java.util.HashSet;\nimport java.util.Set;", "import com.fasterxml.jackson.databind.DeserializationContext;\nimport com.fasterxml.jackson.databind.JavaType;\nimport com.fasterxml.jackson.databind.JsonMappingException;...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [12, 75], "buggy_code_start_loc": [12, 75], "filenames": ["release-notes/VERSION", "src/main/java/com/fasterxml/jackson/databind/jsontype/impl/SubTypeValidator.java"], "fixing_code_end_loc": [16, 81], "fixing_code_start_loc": [13, 76], "message": "FasterXML jackson-databind 2.x before 2.9.8 might...
1,612
Determine whether the {function_name} code is vulnerable or not.
[ "package com.fasterxml.jackson.databind.jsontype.impl;", "import java.util.Collections;\nimport java.util.HashSet;\nimport java.util.Set;", "import com.fasterxml.jackson.databind.DeserializationContext;\nimport com.fasterxml.jackson.databind.JavaType;\nimport com.fasterxml.jackson.databind.JsonMappingException;...
[ 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": [12, 75], "buggy_code_start_loc": [12, 75], "filenames": ["release-notes/VERSION", "src/main/java/com/fasterxml/jackson/databind/jsontype/impl/SubTypeValidator.java"], "fixing_code_end_loc": [16, 81], "fixing_code_start_loc": [13, 76], "message": "FasterXML jackson-databind 2.x before 2.9.8 might...
1,612
Determine whether the {function_name} code is vulnerable or not.
[ "class BsRequestActionSubmit < BsRequestAction\n #### Includes and extends\n include BsRequestAction::Differ", " #### Constants", " #### Self config\n def self.sti_name\n :submit\n end", " #### Attributes\n #### Associations macros (Belongs to, Has one, Has many)\n #### Callbacks macros: before_sa...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [120], "buggy_code_start_loc": [118], "filenames": ["src/api/app/models/bs_request_action_submit.rb"], "fixing_code_end_loc": [123], "fixing_code_start_loc": [118], "message": "openSUSE openbuildservice before 9.2.4 allowed authenticated users to delete packages on specific projects with project ...
1,613
Determine whether the {function_name} code is vulnerable or not.
[ "class BsRequestActionSubmit < BsRequestAction\n #### Includes and extends\n include BsRequestAction::Differ", " #### Constants", " #### Self config\n def self.sti_name\n :submit\n end", " #### Attributes\n #### Associations macros (Belongs to, Has one, Has many)\n #### Callbacks macros: before_sa...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [120], "buggy_code_start_loc": [118], "filenames": ["src/api/app/models/bs_request_action_submit.rb"], "fixing_code_end_loc": [123], "fixing_code_start_loc": [118], "message": "openSUSE openbuildservice before 9.2.4 allowed authenticated users to delete packages on specific projects with project ...
1,613
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\"", "", "\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...
[ 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [44], "buggy_code_start_loc": [9], "filenames": ["server/resource.go"], "fixing_code_end_loc": [50], "fixing_code_start_loc": [10], "message": "Cross-site Scripting (XSS) - Stored in GitHub repository usememos/memos prior to 0.9.0.", "other": {"cve": {"cisaActionDue": null, "cisaExploitAdd": null...
1,614
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\"", "\t\"strings\"", "\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/labstac...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [44], "buggy_code_start_loc": [9], "filenames": ["server/resource.go"], "fixing_code_end_loc": [50], "fixing_code_start_loc": [10], "message": "Cross-site Scripting (XSS) - Stored in GitHub repository usememos/memos prior to 0.9.0.", "other": {"cve": {"cisaActionDue": null, "cisaExploitAdd": null...
1,614
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * linux/fs/isofs/inode.c\n *\n * (C) 1991 Linus Torvalds - minix filesystem\n * 1992, 1993, 1994 Eric Youngdale Modified for ISO 9660 filesystem.\n * 1994 Eberhard Mönkeberg - multi session handling.\n * 1995 Mark Dobie - allow mounting of some weird VideoCDs and PhotoCDs.\n *\t1997 Gord...
[ 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, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PreciseBugs
{"buggy_code_end_loc": [1511, 124, 651], "buggy_code_start_loc": [64, 110, 290], "filenames": ["fs/isofs/inode.c", "fs/isofs/isofs.h", "fs/isofs/rock.c"], "fixing_code_end_loc": [1512, 139, 668], "fixing_code_start_loc": [64, 110, 291], "message": "Stack consumption vulnerability in the parse_rock_ridge_inode_internal ...
1,615
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * linux/fs/isofs/inode.c\n *\n * (C) 1991 Linus Torvalds - minix filesystem\n * 1992, 1993, 1994 Eric Youngdale Modified for ISO 9660 filesystem.\n * 1994 Eberhard Mönkeberg - multi session handling.\n * 1995 Mark Dobie - allow mounting of some weird VideoCDs and PhotoCDs.\n *\t1997 Gord...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [1511, 124, 651], "buggy_code_start_loc": [64, 110, 290], "filenames": ["fs/isofs/inode.c", "fs/isofs/isofs.h", "fs/isofs/rock.c"], "fixing_code_end_loc": [1512, 139, 668], "fixing_code_start_loc": [64, 110, 291], "message": "Stack consumption vulnerability in the parse_rock_ridge_inode_internal ...
1,615
Determine whether the {function_name} code is vulnerable or not.
[ "#include <linux/fs.h>\n#include <linux/buffer_head.h>\n#include <linux/exportfs.h>\n#include <linux/iso_fs.h>\n#include <asm/unaligned.h>", "enum isofs_file_format {\n\tisofs_file_normal = 0,\n\tisofs_file_sparse = 1,\n\tisofs_file_compressed = 2,\n};\n\t\n/*\n * iso fs inode data in memory\n */\nstruct iso_inod...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [1511, 124, 651], "buggy_code_start_loc": [64, 110, 290], "filenames": ["fs/isofs/inode.c", "fs/isofs/isofs.h", "fs/isofs/rock.c"], "fixing_code_end_loc": [1512, 139, 668], "fixing_code_start_loc": [64, 110, 291], "message": "Stack consumption vulnerability in the parse_rock_ridge_inode_internal ...
1,615
Determine whether the {function_name} code is vulnerable or not.
[ "#include <linux/fs.h>\n#include <linux/buffer_head.h>\n#include <linux/exportfs.h>\n#include <linux/iso_fs.h>\n#include <asm/unaligned.h>", "enum isofs_file_format {\n\tisofs_file_normal = 0,\n\tisofs_file_sparse = 1,\n\tisofs_file_compressed = 2,\n};\n\t\n/*\n * iso fs inode data in memory\n */\nstruct iso_inod...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [1511, 124, 651], "buggy_code_start_loc": [64, 110, 290], "filenames": ["fs/isofs/inode.c", "fs/isofs/isofs.h", "fs/isofs/rock.c"], "fixing_code_end_loc": [1512, 139, 668], "fixing_code_start_loc": [64, 110, 291], "message": "Stack consumption vulnerability in the parse_rock_ridge_inode_internal ...
1,615
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * linux/fs/isofs/rock.c\n *\n * (C) 1992, 1993 Eric Youngdale\n *\n * Rock Ridge Extensions to iso9660\n */", "#include <linux/slab.h>\n#include <linux/pagemap.h>", "#include \"isofs.h\"\n#include \"rock.h\"", "/*\n * These functions are designed to read the system areas of a directory record\n * an...
[ 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, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [1511, 124, 651], "buggy_code_start_loc": [64, 110, 290], "filenames": ["fs/isofs/inode.c", "fs/isofs/isofs.h", "fs/isofs/rock.c"], "fixing_code_end_loc": [1512, 139, 668], "fixing_code_start_loc": [64, 110, 291], "message": "Stack consumption vulnerability in the parse_rock_ridge_inode_internal ...
1,615
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * linux/fs/isofs/rock.c\n *\n * (C) 1992, 1993 Eric Youngdale\n *\n * Rock Ridge Extensions to iso9660\n */", "#include <linux/slab.h>\n#include <linux/pagemap.h>", "#include \"isofs.h\"\n#include \"rock.h\"", "/*\n * These functions are designed to read the system areas of a directory record\n * an...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [1511, 124, 651], "buggy_code_start_loc": [64, 110, 290], "filenames": ["fs/isofs/inode.c", "fs/isofs/isofs.h", "fs/isofs/rock.c"], "fixing_code_end_loc": [1512, 139, 668], "fixing_code_start_loc": [64, 110, 291], "message": "Stack consumption vulnerability in the parse_rock_ridge_inode_internal ...
1,615
Determine whether the {function_name} code is vulnerable or not.
[ "=== TinyChat Room Spy ===\r\n\r\nContributors: ruddernation\r\nDonate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FFAC7FBEBH6JE\r\nTags: tinychat-roomspy, tinychat, chat, room spy, wordpress chat, buddypress chat, wordpress video chat, buddypress video chat\r\nRequires at least: 3.6....
[ 1, 0, 1 ]
PreciseBugs
{"buggy_code_end_loc": [9, 64], "buggy_code_start_loc": [8, 10], "filenames": ["readme.txt", "room-spy.php"], "fixing_code_end_loc": [9, 67], "fixing_code_start_loc": [8, 10], "message": "A vulnerability classified as problematic was found in ruddernation TinyChat Room Spy Plugin up to 1.2.8 on WordPress. This vulnerab...
1,616
Determine whether the {function_name} code is vulnerable or not.
[ "=== TinyChat Room Spy ===\r\n\r\nContributors: ruddernation\r\nDonate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FFAC7FBEBH6JE\r\nTags: tinychat-roomspy, tinychat, chat, room spy, wordpress chat, buddypress chat, wordpress video chat, buddypress video chat\r\nRequires at least: 3.6....
[ 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [9, 64], "buggy_code_start_loc": [8, 10], "filenames": ["readme.txt", "room-spy.php"], "fixing_code_end_loc": [9, 67], "fixing_code_start_loc": [8, 10], "message": "A vulnerability classified as problematic was found in ruddernation TinyChat Room Spy Plugin up to 1.2.8 on WordPress. This vulnerab...
1,616
Determine whether the {function_name} code is vulnerable or not.
[ "<?php\r\n/*\r\n* Plugin Name: TinyChat Room Spy\r\n* Plugin URI: https://wordpress.org/plugins/tinychat-roomspy/\r\n* Author: Ruddernation Designs\r\n* Author URI: http://profiles.wordpress.org/ruddernation\r\n* Description: Allows you to check who is in a TinyChat room and who is on Video/Audio.\r\n* Requires at ...
[ 1, 0, 1, 0, 1, 0, 1, 0, 1 ]
PreciseBugs
{"buggy_code_end_loc": [9, 64], "buggy_code_start_loc": [8, 10], "filenames": ["readme.txt", "room-spy.php"], "fixing_code_end_loc": [9, 67], "fixing_code_start_loc": [8, 10], "message": "A vulnerability classified as problematic was found in ruddernation TinyChat Room Spy Plugin up to 1.2.8 on WordPress. This vulnerab...
1,616
Determine whether the {function_name} code is vulnerable or not.
[ "<?php\r\n/*\r\n* Plugin Name: TinyChat Room Spy\r\n* Plugin URI: https://wordpress.org/plugins/tinychat-roomspy/\r\n* Author: Ruddernation Designs\r\n* Author URI: http://profiles.wordpress.org/ruddernation\r\n* Description: Allows you to check who is in a TinyChat room and who is on Video/Audio.\r\n* Requires at ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [9, 64], "buggy_code_start_loc": [8, 10], "filenames": ["readme.txt", "room-spy.php"], "fixing_code_end_loc": [9, 67], "fixing_code_start_loc": [8, 10], "message": "A vulnerability classified as problematic was found in ruddernation TinyChat Room Spy Plugin up to 1.2.8 on WordPress. This vulnerab...
1,616
Determine whether the {function_name} code is vulnerable or not.
[ "/*\nCopyright (c) 2013, David C Horton", "Permission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publi...
[ 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, 0, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PreciseBugs
{"buggy_code_end_loc": [408, 533], "buggy_code_start_loc": [55, 532], "filenames": ["src/drachtio.cpp", "src/sip-dialog-controller.cpp"], "fixing_code_end_loc": [410, 535], "fixing_code_start_loc": [56, 532], "message": "drachtio-server before 0.8.19 has a heap-based buffer over-read via a long Request-URI in an INVITE...
1,617
Determine whether the {function_name} code is vulnerable or not.
[ "/*\nCopyright (c) 2013, David C Horton", "Permission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publi...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [408, 533], "buggy_code_start_loc": [55, 532], "filenames": ["src/drachtio.cpp", "src/sip-dialog-controller.cpp"], "fixing_code_end_loc": [410, 535], "fixing_code_start_loc": [56, 532], "message": "drachtio-server before 0.8.19 has a heap-based buffer over-read via a long Request-URI in an INVITE...
1,617
Determine whether the {function_name} code is vulnerable or not.
[ "/*\nCopyright (c) 2013, David C Horton", "Permission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publi...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [408, 533], "buggy_code_start_loc": [55, 532], "filenames": ["src/drachtio.cpp", "src/sip-dialog-controller.cpp"], "fixing_code_end_loc": [410, 535], "fixing_code_start_loc": [56, 532], "message": "drachtio-server before 0.8.19 has a heap-based buffer over-read via a long Request-URI in an INVITE...
1,617
Determine whether the {function_name} code is vulnerable or not.
[ "/*\nCopyright (c) 2013, David C Horton", "Permission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publi...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [408, 533], "buggy_code_start_loc": [55, 532], "filenames": ["src/drachtio.cpp", "src/sip-dialog-controller.cpp"], "fixing_code_end_loc": [410, 535], "fixing_code_start_loc": [56, 532], "message": "drachtio-server before 0.8.19 has a heap-based buffer over-read via a long Request-URI in an INVITE...
1,617
Determine whether the {function_name} code is vulnerable or not.
[ "<?php\n/**\n * A collection of common generic functions used throughout the application.\n *\n * @author The phpLDAPadmin development team\n * @package phpLDAPadmin\n */", "/**\n * @package phpLDAPadmin\n * @subpackage Functions\n */", "/**\n */\ndefine('HTDOCDIR',sprintf('%s/',realpath(LIBDIR.'../htdocs/')));...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [693], "buggy_code_start_loc": [654], "filenames": ["lib/functions.php"], "fixing_code_end_loc": [703], "fixing_code_start_loc": [654], "message": "An XSS issue has been discovered in phpLDAPadmin before 1.2.6.2 that allows users to store malicious values that may be executed by other users at a ...
1,618
Determine whether the {function_name} code is vulnerable or not.
[ "<?php\n/**\n * A collection of common generic functions used throughout the application.\n *\n * @author The phpLDAPadmin development team\n * @package phpLDAPadmin\n */", "/**\n * @package phpLDAPadmin\n * @subpackage Functions\n */", "/**\n */\ndefine('HTDOCDIR',sprintf('%s/',realpath(LIBDIR.'../htdocs/')));...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [693], "buggy_code_start_loc": [654], "filenames": ["lib/functions.php"], "fixing_code_end_loc": [703], "fixing_code_start_loc": [654], "message": "An XSS issue has been discovered in phpLDAPadmin before 1.2.6.2 that allows users to store malicious values that may be executed by other users at a ...
1,618
Determine whether the {function_name} code is vulnerable or not.
[ "#include <math.h>\n#include <stdlib.h>\n#include <stdint.h>\n#include <string.h>\n#include <assert.h>", "#include \"lua.h\"\n#include \"lauxlib.h\"", "#define LUACMSGPACK_NAME \"cmsgpack\"\n#define LUACMSGPACK_SAFE_NAME \"cmsgpack_safe\"\n#define LUACMSGPACK_VERSION \"lua-cmsgpack 0.4.0\"\n#define...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [517], "buggy_code_start_loc": [517], "filenames": ["deps/lua/src/lua_cmsgpack.c"], "fixing_code_end_loc": [521], "fixing_code_start_loc": [518], "message": "Memory Corruption was discovered in the cmsgpack library in the Lua subsystem in Redis before 3.2.12, 4.x before 4.0.10, and 5.x before 5.0...
1,619
Determine whether the {function_name} code is vulnerable or not.
[ "#include <math.h>\n#include <stdlib.h>\n#include <stdint.h>\n#include <string.h>\n#include <assert.h>", "#include \"lua.h\"\n#include \"lauxlib.h\"", "#define LUACMSGPACK_NAME \"cmsgpack\"\n#define LUACMSGPACK_SAFE_NAME \"cmsgpack_safe\"\n#define LUACMSGPACK_VERSION \"lua-cmsgpack 0.4.0\"\n#define...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [517], "buggy_code_start_loc": [517], "filenames": ["deps/lua/src/lua_cmsgpack.c"], "fixing_code_end_loc": [521], "fixing_code_start_loc": [518], "message": "Memory Corruption was discovered in the cmsgpack library in the Lua subsystem in Redis before 3.2.12, 4.x before 4.0.10, and 5.x before 5.0...
1,619
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n *\tRoutines having to do with the 'struct sk_buff' memory handlers.\n *\n *\tAuthors:\tAlan Cox <alan@lxorguk.ukuu.org.uk>\n *\t\t\tFlorian La Roche <rzsfl@rz.uni-sb.de>\n *\n *\tFixes:\n *\t\tAlan Cox\t:\tFixed the worst of the load\n *\t\t\t\t\tbalancer bugs.\n *\t\tDave Platt\t:\tInterrupt stacking fix.\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": [3000], "buggy_code_start_loc": [2856], "filenames": ["net/core/skbuff.c"], "fixing_code_end_loc": [3007], "fixing_code_start_loc": [2857], "message": "Use-after-free vulnerability in the skb_segment function in net/core/skbuff.c in the Linux kernel through 3.13.6 allows attackers to obtain sensi...
1,620
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n *\tRoutines having to do with the 'struct sk_buff' memory handlers.\n *\n *\tAuthors:\tAlan Cox <alan@lxorguk.ukuu.org.uk>\n *\t\t\tFlorian La Roche <rzsfl@rz.uni-sb.de>\n *\n *\tFixes:\n *\t\tAlan Cox\t:\tFixed the worst of the load\n *\t\t\t\t\tbalancer bugs.\n *\t\tDave Platt\t:\tInterrupt stacking fix.\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": [3000], "buggy_code_start_loc": [2856], "filenames": ["net/core/skbuff.c"], "fixing_code_end_loc": [3007], "fixing_code_start_loc": [2857], "message": "Use-after-free vulnerability in the skb_segment function in net/core/skbuff.c in the Linux kernel through 3.13.6 allows attackers to obtain sensi...
1,620
Determine whether the {function_name} code is vulnerable or not.
[ "/* radare - LGPL - Copyright 2014-2017 - inisider */", "#include <string.h>\n#include <r_util.h>\n#include <r_core.h>\n#include \"pdb_downloader.h\"", "static bool checkExtract() {\n#if __WINDOWS__\n\tif (r_sys_cmd (\"expand -? >nul\") != 0) {\n\t\treturn false;\n\t}\n#else\n\tif (r_sys_cmd (\"cabextract -v > ...
[ 1, 1, 1, 0, 1, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [201, 54, 8, 154, 150, 818, 210, 1351, 833, 116, 68, 4, 479], "buggy_code_start_loc": [21, 54, 3, 154, 150, 262, 6, 1351, 662, 115, 67, 3, 335], "filenames": ["libr/bin/pdb/pdb_downloader.c", "libr/config.mk.tail", "libr/include/r_socket.h", "libr/include/r_types.h", "libr/include/r_util/r_str.h"...
1,621
Determine whether the {function_name} code is vulnerable or not.
[ "/* radare - LGPL - Copyright 2014-2017 - inisider */", "#include <string.h>\n#include <r_util.h>\n#include <r_core.h>\n#include \"pdb_downloader.h\"", "static bool checkExtract() {\n#if __WINDOWS__\n\tif (r_sys_cmd (\"expand -? >nul\") != 0) {\n\t\treturn false;\n\t}\n#else\n\tif (r_sys_cmd (\"cabextract -v > ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [201, 54, 8, 154, 150, 818, 210, 1351, 833, 116, 68, 4, 479], "buggy_code_start_loc": [21, 54, 3, 154, 150, 262, 6, 1351, 662, 115, 67, 3, 335], "filenames": ["libr/bin/pdb/pdb_downloader.c", "libr/config.mk.tail", "libr/include/r_socket.h", "libr/include/r_types.h", "libr/include/r_util/r_str.h"...
1,621
Determine whether the {function_name} code is vulnerable or not.
[ "# config.mk.tail", "LIBR:=$(abspath $(dir $(lastword $(MAKEFILE_LIST))))\n# neat???!? trick to support path with spaces\nnull:=\nSPACE:=$(null) $(null)", "ifeq ($(LIBR),)\nifeq ($(R2DIR),)\n$(error ERROR: Cannot find R2DIR. Please define this variable)\nelse\nLIBR=$(R2DIR)/libr\nMSVC=$(R2DIR)/msvc\nendif\nendi...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [201, 54, 8, 154, 150, 818, 210, 1351, 833, 116, 68, 4, 479], "buggy_code_start_loc": [21, 54, 3, 154, 150, 262, 6, 1351, 662, 115, 67, 3, 335], "filenames": ["libr/bin/pdb/pdb_downloader.c", "libr/config.mk.tail", "libr/include/r_socket.h", "libr/include/r_types.h", "libr/include/r_util/r_str.h"...
1,621
Determine whether the {function_name} code is vulnerable or not.
[ "# config.mk.tail", "LIBR:=$(abspath $(dir $(lastword $(MAKEFILE_LIST))))\n# neat???!? trick to support path with spaces\nnull:=\nSPACE:=$(null) $(null)", "ifeq ($(LIBR),)\nifeq ($(R2DIR),)\n$(error ERROR: Cannot find R2DIR. Please define this variable)\nelse\nLIBR=$(R2DIR)/libr\nMSVC=$(R2DIR)/msvc\nendif\nendi...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [201, 54, 8, 154, 150, 818, 210, 1351, 833, 116, 68, 4, 479], "buggy_code_start_loc": [21, 54, 3, 154, 150, 262, 6, 1351, 662, 115, 67, 3, 335], "filenames": ["libr/bin/pdb/pdb_downloader.c", "libr/config.mk.tail", "libr/include/r_socket.h", "libr/include/r_types.h", "libr/include/r_util/r_str.h"...
1,621
Determine whether the {function_name} code is vulnerable or not.
[ "#ifndef R2_SOCKET_H\n#define R2_SOCKET_H", "\n/* Must be included before windows.h (r_types) */\n#if defined(__WINDOWS__)\n#include <ws2tcpip.h>\n#endif", "\n#include \"r_types.h\"\n#include \"r_bind.h\"\n#include \"r_list.h\"", "#ifdef __cplusplus\nextern \"C\" {\n#endif", "R_LIB_VERSION_HEADER (r_socket)...
[ 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 ]
PreciseBugs
{"buggy_code_end_loc": [201, 54, 8, 154, 150, 818, 210, 1351, 833, 116, 68, 4, 479], "buggy_code_start_loc": [21, 54, 3, 154, 150, 262, 6, 1351, 662, 115, 67, 3, 335], "filenames": ["libr/bin/pdb/pdb_downloader.c", "libr/config.mk.tail", "libr/include/r_socket.h", "libr/include/r_types.h", "libr/include/r_util/r_str.h"...
1,621
Determine whether the {function_name} code is vulnerable or not.
[ "#ifndef R2_SOCKET_H\n#define R2_SOCKET_H", "", "\n#include \"r_types.h\"\n#include \"r_bind.h\"\n#include \"r_list.h\"", "#ifdef __cplusplus\nextern \"C\" {\n#endif", "R_LIB_VERSION_HEADER (r_socket);", "#if __UNIX__\n#include <netinet/in.h>\n#include <sys/un.h>\n#include <poll.h>\n#include <arpa/inet.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 ]
PreciseBugs
{"buggy_code_end_loc": [201, 54, 8, 154, 150, 818, 210, 1351, 833, 116, 68, 4, 479], "buggy_code_start_loc": [21, 54, 3, 154, 150, 262, 6, 1351, 662, 115, 67, 3, 335], "filenames": ["libr/bin/pdb/pdb_downloader.c", "libr/config.mk.tail", "libr/include/r_socket.h", "libr/include/r_types.h", "libr/include/r_util/r_str.h"...
1,621
Determine whether the {function_name} code is vulnerable or not.
[ "#ifndef R2_TYPES_H\n#define R2_TYPES_H", "#undef _FILE_OFFSET_BITS\n#define _FILE_OFFSET_BITS 64", "// defines like IS_DIGIT, etc'\n#include \"r_util/r_str_util.h\"\n#include <r_userconf.h>\n#include <stddef.h>\n#include <assert.h>", "// TODO: fix this to make it crosscompile-friendly: R_SYS_OSTYPE ?\n/* ope...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PreciseBugs
{"buggy_code_end_loc": [201, 54, 8, 154, 150, 818, 210, 1351, 833, 116, 68, 4, 479], "buggy_code_start_loc": [21, 54, 3, 154, 150, 262, 6, 1351, 662, 115, 67, 3, 335], "filenames": ["libr/bin/pdb/pdb_downloader.c", "libr/config.mk.tail", "libr/include/r_socket.h", "libr/include/r_types.h", "libr/include/r_util/r_str.h"...
1,621
Determine whether the {function_name} code is vulnerable or not.
[ "#ifndef R2_TYPES_H\n#define R2_TYPES_H", "#undef _FILE_OFFSET_BITS\n#define _FILE_OFFSET_BITS 64", "// defines like IS_DIGIT, etc'\n#include \"r_util/r_str_util.h\"\n#include <r_userconf.h>\n#include <stddef.h>\n#include <assert.h>", "// TODO: fix this to make it crosscompile-friendly: R_SYS_OSTYPE ?\n/* ope...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [201, 54, 8, 154, 150, 818, 210, 1351, 833, 116, 68, 4, 479], "buggy_code_start_loc": [21, 54, 3, 154, 150, 262, 6, 1351, 662, 115, 67, 3, 335], "filenames": ["libr/bin/pdb/pdb_downloader.c", "libr/config.mk.tail", "libr/include/r_socket.h", "libr/include/r_types.h", "libr/include/r_util/r_str.h"...
1,621
Determine whether the {function_name} code is vulnerable or not.
[ "#ifndef R_STR_H\n#define R_STR_H", "#include <wchar.h>\n#include \"r_str_util.h\"\n#include \"r_list.h\"", "#ifdef __cplusplus\nextern \"C\" {\n#endif", "typedef enum {\n\tR_STRING_ENC_LATIN1 = 'a',\n\tR_STRING_ENC_UTF8 = '8',\n\tR_STRING_ENC_UTF16LE = 'u',\n\tR_STRING_ENC_UTF32LE = 'U',\n\tR_STRING_ENC_UTF1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [201, 54, 8, 154, 150, 818, 210, 1351, 833, 116, 68, 4, 479], "buggy_code_start_loc": [21, 54, 3, 154, 150, 262, 6, 1351, 662, 115, 67, 3, 335], "filenames": ["libr/bin/pdb/pdb_downloader.c", "libr/config.mk.tail", "libr/include/r_socket.h", "libr/include/r_types.h", "libr/include/r_util/r_str.h"...
1,621
Determine whether the {function_name} code is vulnerable or not.
[ "#ifndef R_STR_H\n#define R_STR_H", "#include <wchar.h>\n#include \"r_str_util.h\"\n#include \"r_list.h\"", "#ifdef __cplusplus\nextern \"C\" {\n#endif", "typedef enum {\n\tR_STRING_ENC_LATIN1 = 'a',\n\tR_STRING_ENC_UTF8 = '8',\n\tR_STRING_ENC_UTF16LE = 'u',\n\tR_STRING_ENC_UTF32LE = 'U',\n\tR_STRING_ENC_UTF1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [201, 54, 8, 154, 150, 818, 210, 1351, 833, 116, 68, 4, 479], "buggy_code_start_loc": [21, 54, 3, 154, 150, 262, 6, 1351, 662, 115, 67, 3, 335], "filenames": ["libr/bin/pdb/pdb_downloader.c", "libr/config.mk.tail", "libr/include/r_socket.h", "libr/include/r_types.h", "libr/include/r_util/r_str.h"...
1,621
Determine whether the {function_name} code is vulnerable or not.
[ "/* radare - LGPL - Copyright 2006-2019 - pancake */", "/* must be included first because of winsock2.h and windows.h */\n#include <r_socket.h>\n#include <r_types.h>\n#include <r_util.h>\n#include <errno.h>", "#if EMSCRIPTEN\n#define NETWORK_DISABLED 1\n#else\n#define NETWORK_DISABLED 0\n#endif", "#define D i...
[ 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, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PreciseBugs
{"buggy_code_end_loc": [201, 54, 8, 154, 150, 818, 210, 1351, 833, 116, 68, 4, 479], "buggy_code_start_loc": [21, 54, 3, 154, 150, 262, 6, 1351, 662, 115, 67, 3, 335], "filenames": ["libr/bin/pdb/pdb_downloader.c", "libr/config.mk.tail", "libr/include/r_socket.h", "libr/include/r_types.h", "libr/include/r_util/r_str.h"...
1,621
Determine whether the {function_name} code is vulnerable or not.
[ "/* radare - LGPL - Copyright 2006-2019 - pancake */", "/* must be included first because of winsock2.h and windows.h */\n#include <r_socket.h>\n#include <r_types.h>\n#include <r_util.h>\n#include <errno.h>", "#if EMSCRIPTEN\n#define NETWORK_DISABLED 1\n#else\n#define NETWORK_DISABLED 0\n#endif", "#define D 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": [201, 54, 8, 154, 150, 818, 210, 1351, 833, 116, 68, 4, 479], "buggy_code_start_loc": [21, 54, 3, 154, 150, 262, 6, 1351, 662, 115, 67, 3, 335], "filenames": ["libr/bin/pdb/pdb_downloader.c", "libr/config.mk.tail", "libr/include/r_socket.h", "libr/include/r_types.h", "libr/include/r_util/r_str.h"...
1,621
Determine whether the {function_name} code is vulnerable or not.
[ "/* radare - LGPL - Copyright 2011-2020 - pancake */", "#include <r_socket.h>\n#include <r_util.h>\n", "static int __socket_slurp (RSocket *s, ut8 *buf, int bufsz) {\n\tint i;\n\tint chsz = 1;\n\t// r_socket_block_time (s, 1, 1, 0);\n\tif (r_socket_read_block (s, (ut8 *) buf, 1) != 1) {", "\t\treturn 0;\n\t}"...
[ 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [201, 54, 8, 154, 150, 818, 210, 1351, 833, 116, 68, 4, 479], "buggy_code_start_loc": [21, 54, 3, 154, 150, 262, 6, 1351, 662, 115, 67, 3, 335], "filenames": ["libr/bin/pdb/pdb_downloader.c", "libr/config.mk.tail", "libr/include/r_socket.h", "libr/include/r_types.h", "libr/include/r_util/r_str.h"...
1,621
Determine whether the {function_name} code is vulnerable or not.
[ "/* radare - LGPL - Copyright 2011-2020 - pancake */", "#include <r_socket.h>\n#include <r_util.h>\n", "#if __WINDOWS__\n#include <WinInet.h>\n#endif", "#define SOCKET_HTTP_MAX_HEADER_LENGTH 0x2000\n#define SOCKET_HTTP_MAX_REDIRECTS 5", "static size_t socket_slurp(RSocket *s, RBuffer *buf) {\n\tsize_t i;\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 ]
PreciseBugs
{"buggy_code_end_loc": [201, 54, 8, 154, 150, 818, 210, 1351, 833, 116, 68, 4, 479], "buggy_code_start_loc": [21, 54, 3, 154, 150, 262, 6, 1351, 662, 115, 67, 3, 335], "filenames": ["libr/bin/pdb/pdb_downloader.c", "libr/config.mk.tail", "libr/include/r_socket.h", "libr/include/r_types.h", "libr/include/r_util/r_str.h"...
1,621
Determine whether the {function_name} code is vulnerable or not.
[ "/* radare - LGPL - Copyright 2007-2019 - pancake */", "#include \"r_types.h\"\n#include \"r_util.h\"\n#include \"r_cons.h\"\n#include \"r_bin.h\"\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <ctype.h>\n#include <stdarg.h>", "/* stable code */\nstatic const char *nullstr = \"\";\nstat...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [201, 54, 8, 154, 150, 818, 210, 1351, 833, 116, 68, 4, 479], "buggy_code_start_loc": [21, 54, 3, 154, 150, 262, 6, 1351, 662, 115, 67, 3, 335], "filenames": ["libr/bin/pdb/pdb_downloader.c", "libr/config.mk.tail", "libr/include/r_socket.h", "libr/include/r_types.h", "libr/include/r_util/r_str.h"...
1,621
Determine whether the {function_name} code is vulnerable or not.
[ "/* radare - LGPL - Copyright 2007-2019 - pancake */", "#include \"r_types.h\"\n#include \"r_util.h\"\n#include \"r_cons.h\"\n#include \"r_bin.h\"\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <ctype.h>\n#include <stdarg.h>", "/* stable code */\nstatic const char *nullstr = \"\";\nstat...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [201, 54, 8, 154, 150, 818, 210, 1351, 833, 116, 68, 4, 479], "buggy_code_start_loc": [21, 54, 3, 154, 150, 262, 6, 1351, 662, 115, 67, 3, 335], "filenames": ["libr/bin/pdb/pdb_downloader.c", "libr/config.mk.tail", "libr/include/r_socket.h", "libr/include/r_types.h", "libr/include/r_util/r_str.h"...
1,621
Determine whether the {function_name} code is vulnerable or not.
[ "/* radare - LGPL - Copyright 2009-2020 - pancake */", "#if __linux__\n#include <time.h>\n#endif", "#include <r_userconf.h>\n#include <stdlib.h>\n#include <string.h>\n#if defined(__NetBSD__)\n# include <sys/param.h>\n# if __NetBSD_Prereq__(7,0,0)\n# define NETBSD_WITH_BACKTRACE\n# endif\n#endif\n#if defined(__...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 1, 0, 1, 1, 1...
PreciseBugs
{"buggy_code_end_loc": [201, 54, 8, 154, 150, 818, 210, 1351, 833, 116, 68, 4, 479], "buggy_code_start_loc": [21, 54, 3, 154, 150, 262, 6, 1351, 662, 115, 67, 3, 335], "filenames": ["libr/bin/pdb/pdb_downloader.c", "libr/config.mk.tail", "libr/include/r_socket.h", "libr/include/r_types.h", "libr/include/r_util/r_str.h"...
1,621
Determine whether the {function_name} code is vulnerable or not.
[ "/* radare - LGPL - Copyright 2009-2020 - pancake */", "#if __linux__\n#include <time.h>\n#endif", "#include <r_userconf.h>\n#include <stdlib.h>\n#include <string.h>\n#if defined(__NetBSD__)\n# include <sys/param.h>\n# if __NetBSD_Prereq__(7,0,0)\n# define NETBSD_WITH_BACKTRACE\n# endif\n#endif\n#if defined(__...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [201, 54, 8, 154, 150, 818, 210, 1351, 833, 116, 68, 4, 479], "buggy_code_start_loc": [21, 54, 3, 154, 150, 262, 6, 1351, 662, 115, 67, 3, 335], "filenames": ["libr/bin/pdb/pdb_downloader.c", "libr/config.mk.tail", "libr/include/r_socket.h", "libr/include/r_types.h", "libr/include/r_util/r_str.h"...
1,621
Determine whether the {function_name} code is vulnerable or not.
[ "project('radare2', 'c', license: 'LGPL3', meson_version: '>=0.50.1')", "py3_exe = import('python').find_installation('python3')\ngit_exe = find_program('git', required: false)\npkgconfig_mod = import('pkgconfig')", "# Get r2 version\nr2_version = 'unknown-error'\nr2_version_major = 0\nr2_version_minor = 0\nr2_...
[ 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 ]
PreciseBugs
{"buggy_code_end_loc": [201, 54, 8, 154, 150, 818, 210, 1351, 833, 116, 68, 4, 479], "buggy_code_start_loc": [21, 54, 3, 154, 150, 262, 6, 1351, 662, 115, 67, 3, 335], "filenames": ["libr/bin/pdb/pdb_downloader.c", "libr/config.mk.tail", "libr/include/r_socket.h", "libr/include/r_types.h", "libr/include/r_util/r_str.h"...
1,621
Determine whether the {function_name} code is vulnerable or not.
[ "project('radare2', 'c', license: 'LGPL3', meson_version: '>=0.50.1')", "py3_exe = import('python').find_installation('python3')\ngit_exe = find_program('git', required: false)\npkgconfig_mod = import('pkgconfig')", "# Get r2 version\nr2_version = 'unknown-error'\nr2_version_major = 0\nr2_version_minor = 0\nr2_...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [201, 54, 8, 154, 150, 818, 210, 1351, 833, 116, 68, 4, 479], "buggy_code_start_loc": [21, 54, 3, 154, 150, 262, 6, 1351, 662, 115, 67, 3, 335], "filenames": ["libr/bin/pdb/pdb_downloader.c", "libr/config.mk.tail", "libr/include/r_socket.h", "libr/include/r_types.h", "libr/include/r_util/r_str.h"...
1,621
Determine whether the {function_name} code is vulnerable or not.
[ "/* sdb - MIT - Copyright 2013-2018 - pancake */", "#include <stdio.h>\n#include <fcntl.h>\n#include <errno.h>\n#include <string.h>\n#include <stdlib.h>\n#include <sys/stat.h>\n#include \"sdb.h\"", "#if __SDB_WINDOWS__", "#if UNICODE", "static wchar_t *r_utf8_to_utf16_l (const char *cstring, int len) {\n\ti...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [201, 54, 8, 154, 150, 818, 210, 1351, 833, 116, 68, 4, 479], "buggy_code_start_loc": [21, 54, 3, 154, 150, 262, 6, 1351, 662, 115, 67, 3, 335], "filenames": ["libr/bin/pdb/pdb_downloader.c", "libr/config.mk.tail", "libr/include/r_socket.h", "libr/include/r_types.h", "libr/include/r_util/r_str.h"...
1,621
Determine whether the {function_name} code is vulnerable or not.
[ "/* sdb - MIT - Copyright 2013-2018 - pancake */", "#include <stdio.h>\n#include <fcntl.h>\n#include <errno.h>\n#include <string.h>\n#include <stdlib.h>\n#include <sys/stat.h>\n#include \"sdb.h\"", "#if __SDB_WINDOWS__", "#if UNICODE", "static wchar_t *r_utf8_to_utf16_l (const char *cstring, int len) {\n\ti...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [201, 54, 8, 154, 150, 818, 210, 1351, 833, 116, 68, 4, 479], "buggy_code_start_loc": [21, 54, 3, 154, 150, 262, 6, 1351, 662, 115, 67, 3, 335], "filenames": ["libr/bin/pdb/pdb_downloader.c", "libr/config.mk.tail", "libr/include/r_socket.h", "libr/include/r_types.h", "libr/include/r_util/r_str.h"...
1,621
Determine whether the {function_name} code is vulnerable or not.
[ "NAME=PDB downloader check\nFILE=bins/pdb/user32.dll", "CMDS=!!rabin2 -PP ${R2_FILE} ~PDB", "EXPECT=<<EOF\nPDB \"user32.pdb\" download success\nEOF\nRUN", "NAME=find structure R2_TEST_STRUCT\nFILE=bins/pdb/Project1.pdb\nCMDS=!rabin2 -P ${R2_FILE} | grep -ao R2_TEST_STRUCT\nEXPECT=<<EOF\nR2_TEST_STRUCT\nEOF\nR...
[ 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [201, 54, 8, 154, 150, 818, 210, 1351, 833, 116, 68, 4, 479], "buggy_code_start_loc": [21, 54, 3, 154, 150, 262, 6, 1351, 662, 115, 67, 3, 335], "filenames": ["libr/bin/pdb/pdb_downloader.c", "libr/config.mk.tail", "libr/include/r_socket.h", "libr/include/r_types.h", "libr/include/r_util/r_str.h"...
1,621
Determine whether the {function_name} code is vulnerable or not.
[ "NAME=PDB downloader check\nFILE=bins/pdb/user32.dll", "CMDS=<<EOF\n%R2_CURL=1\n!!rabin2 -PP ${R2_FILE} ~PDB\nEOF", "EXPECT=<<EOF\nPDB \"user32.pdb\" download success\nEOF\nRUN", "NAME=find structure R2_TEST_STRUCT\nFILE=bins/pdb/Project1.pdb\nCMDS=!rabin2 -P ${R2_FILE} | grep -ao R2_TEST_STRUCT\nEXPECT=<<EOF...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [201, 54, 8, 154, 150, 818, 210, 1351, 833, 116, 68, 4, 479], "buggy_code_start_loc": [21, 54, 3, 154, 150, 262, 6, 1351, 662, 115, 67, 3, 335], "filenames": ["libr/bin/pdb/pdb_downloader.c", "libr/config.mk.tail", "libr/include/r_socket.h", "libr/include/r_types.h", "libr/include/r_util/r_str.h"...
1,621
Determine whether the {function_name} code is vulnerable or not.
[ "#include <r_util.h>\n#include \"minunit.h\"", "//TODO test r_str_chop_path", "bool test_r_str_replace_char_once(void) {\n\tchar* str = strdup (\"hello world\");\n\t(void) r_str_replace_char_once (str, 'l', 'x');\n\tmu_assert_streq (str, \"hexlo world\", \"error, replace char once failed\");\n\tfree (str);\n\tm...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [201, 54, 8, 154, 150, 818, 210, 1351, 833, 116, 68, 4, 479], "buggy_code_start_loc": [21, 54, 3, 154, 150, 262, 6, 1351, 662, 115, 67, 3, 335], "filenames": ["libr/bin/pdb/pdb_downloader.c", "libr/config.mk.tail", "libr/include/r_socket.h", "libr/include/r_types.h", "libr/include/r_util/r_str.h"...
1,621
Determine whether the {function_name} code is vulnerable or not.
[ "#include <r_util.h>\n#include \"minunit.h\"", "//TODO test r_str_chop_path", "bool test_r_str_replace_char_once(void) {\n\tchar* str = strdup (\"hello world\");\n\t(void) r_str_replace_char_once (str, 'l', 'x');\n\tmu_assert_streq (str, \"hexlo world\", \"error, replace char once failed\");\n\tfree (str);\n\tm...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [201, 54, 8, 154, 150, 818, 210, 1351, 833, 116, 68, 4, 479], "buggy_code_start_loc": [21, 54, 3, 154, 150, 262, 6, 1351, 662, 115, 67, 3, 335], "filenames": ["libr/bin/pdb/pdb_downloader.c", "libr/config.mk.tail", "libr/include/r_socket.h", "libr/include/r_types.h", "libr/include/r_util/r_str.h"...
1,621
Determine whether the {function_name} code is vulnerable or not.
[ "import asyncio\nimport discord\nimport logging\nimport re\nimport functools", "from copy import deepcopy\nfrom collections import namedtuple\nfrom typing import Union, Optional, Iterable, Callable, Awaitable\nfrom datetime import datetime, timedelta\nfrom multiprocessing import TimeoutError\nfrom multiprocessing...
[ 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": [628, 228], "buggy_code_start_loc": [29, 227], "filenames": ["warnsystem/api.py", "warnsystem/warnsystem.py"], "fixing_code_end_loc": [661, 228], "fixing_code_start_loc": [30, 227], "message": "WarnSystem is a cog (plugin) for the Red discord bot. A vulnerability has been found in the code that a...
1,622
Determine whether the {function_name} code is vulnerable or not.
[ "import asyncio\nimport discord\nimport logging\nimport re\nimport functools", "from copy import deepcopy\nfrom collections import namedtuple\nfrom typing import Union, Optional, Iterable, Callable, Awaitable\nfrom datetime import datetime, timedelta\nfrom multiprocessing import TimeoutError\nfrom multiprocessing...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [628, 228], "buggy_code_start_loc": [29, 227], "filenames": ["warnsystem/api.py", "warnsystem/warnsystem.py"], "fixing_code_end_loc": [661, 228], "fixing_code_start_loc": [30, 227], "message": "WarnSystem is a cog (plugin) for the Red discord bot. A vulnerability has been found in the code that a...
1,622
Determine whether the {function_name} code is vulnerable or not.
[ "# WarnSystem by retke, aka El Laggron\nimport discord\nimport logging\nimport asyncio\nimport re", "from typing import Optional\nfrom asyncio import TimeoutError as AsyncTimeoutError\nfrom abc import ABC\nfrom datetime import datetime, timedelta\nfrom laggron_utils.logging import close_logger, DisabledConsoleOut...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PreciseBugs
{"buggy_code_end_loc": [628, 228], "buggy_code_start_loc": [29, 227], "filenames": ["warnsystem/api.py", "warnsystem/warnsystem.py"], "fixing_code_end_loc": [661, 228], "fixing_code_start_loc": [30, 227], "message": "WarnSystem is a cog (plugin) for the Red discord bot. A vulnerability has been found in the code that a...
1,622
Determine whether the {function_name} code is vulnerable or not.
[ "# WarnSystem by retke, aka El Laggron\nimport discord\nimport logging\nimport asyncio\nimport re", "from typing import Optional\nfrom asyncio import TimeoutError as AsyncTimeoutError\nfrom abc import ABC\nfrom datetime import datetime, timedelta\nfrom laggron_utils.logging import close_logger, DisabledConsoleOut...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [628, 228], "buggy_code_start_loc": [29, 227], "filenames": ["warnsystem/api.py", "warnsystem/warnsystem.py"], "fixing_code_end_loc": [661, 228], "fixing_code_start_loc": [30, 227], "message": "WarnSystem is a cog (plugin) for the Red discord bot. A vulnerability has been found in the code that a...
1,622
Determine whether the {function_name} code is vulnerable or not.
[ "{\n \"env\": {\n \"commonjs\": true,\n \"es2021\": true,\n \"node\": true\n },\n \"extends\": [\n \"prettier\",\n \"airbnb-base\"\n ],\n \"plugins\": [\n \"prettier\"\n ],\n \"parserOptions\": {\n \"ecmaVersion\": 12\n },\n \"rules\": {\n ...
[ 1, 0, 1 ]
PreciseBugs
{"buggy_code_end_loc": [25, 13, 1224], "buggy_code_start_loc": [24, 7, 1224], "filenames": [".eslintrc.json", "lib/sanitize.js", "test/test.js"], "fixing_code_end_loc": [26, 20, 1255], "fixing_code_start_loc": [24, 7, 1225], "message": "The package express-xss-sanitizer before 1.1.3 are vulnerable to Prototype Pollutio...
1,623
Determine whether the {function_name} code is vulnerable or not.
[ "{\n \"env\": {\n \"commonjs\": true,\n \"es2021\": true,\n \"node\": true\n },\n \"extends\": [\n \"prettier\",\n \"airbnb-base\"\n ],\n \"plugins\": [\n \"prettier\"\n ],\n \"parserOptions\": {\n \"ecmaVersion\": 12\n },\n \"rules\": {\n ...
[ 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [25, 13, 1224], "buggy_code_start_loc": [24, 7, 1224], "filenames": [".eslintrc.json", "lib/sanitize.js", "test/test.js"], "fixing_code_end_loc": [26, 20, 1255], "fixing_code_start_loc": [24, 7, 1225], "message": "The package express-xss-sanitizer before 1.1.3 are vulnerable to Prototype Pollutio...
1,623