prompt stringclasses 1
value | completions listlengths 1 63.8k | labels listlengths 1 63.8k | source stringclasses 1
value | other_info stringlengths 2.06k 101k | index int64 0 6.83k |
|---|---|---|---|---|---|
Determine whether the {function_name} code is vulnerable or not. | [
"/**\n * @file\n * Conversion to/from base64 encoding\n *\n * @authors\n * Copyright (C) 1993,1995 Carl Harris\n * Copyright (C) 1997 Eric S. Raymond\n * Copyright (C) 1999 Brendan Cully <brendan@kublai.com>\n *\n * @copyright\n * This program is free software: you can redistribute it and/or modify it under\n * the... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
1,
1,
0,
1,
0,
1,
0,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [138, 242, 158, 32, 404, 80], "buggy_code_start_loc": [137, 206, 120, 31, 402, 30], "filenames": ["imap/auth_cram.c", "imap/auth_gss.c", "mutt/base64.c", "mutt/base64.h", "mutt/rfc2047.c", "test/base64.c"], "fixing_code_end_loc": [138, 242, 166, 32, 405, 80], "fixing_code_start_loc": [137, 206, 1... | 1,428 |
Determine whether the {function_name} code is vulnerable or not. | [
"/**\n * @file\n * Conversion to/from base64 encoding\n *\n * @authors\n * Copyright (C) 1993,1995 Carl Harris\n * Copyright (C) 1997 Eric S. Raymond\n * Copyright (C) 1999 Brendan Cully <brendan@kublai.com>\n *\n * @copyright\n * This program is free software: you can redistribute it and/or modify it under\n * the... | [
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": [138, 242, 158, 32, 404, 80], "buggy_code_start_loc": [137, 206, 120, 31, 402, 30], "filenames": ["imap/auth_cram.c", "imap/auth_gss.c", "mutt/base64.c", "mutt/base64.h", "mutt/rfc2047.c", "test/base64.c"], "fixing_code_end_loc": [138, 242, 166, 32, 405, 80], "fixing_code_start_loc": [137, 206, 1... | 1,428 |
Determine whether the {function_name} code is vulnerable or not. | [
"/**\n * @file\n * Conversion to/from base64 encoding\n *\n * @authors\n * @copyright\n * This program is free software: you can redistribute it and/or modify it under\n * the terms of the GNU General Public License as published by the Free Software\n * Foundation, either version 2 of the License, or (at your optio... | [
1,
1,
1,
1,
1,
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [138, 242, 158, 32, 404, 80], "buggy_code_start_loc": [137, 206, 120, 31, 402, 30], "filenames": ["imap/auth_cram.c", "imap/auth_gss.c", "mutt/base64.c", "mutt/base64.h", "mutt/rfc2047.c", "test/base64.c"], "fixing_code_end_loc": [138, 242, 166, 32, 405, 80], "fixing_code_start_loc": [137, 206, 1... | 1,428 |
Determine whether the {function_name} code is vulnerable or not. | [
"/**\n * @file\n * Conversion to/from base64 encoding\n *\n * @authors\n * @copyright\n * This program is free software: you can redistribute it and/or modify it under\n * the terms of the GNU General Public License as published by the Free Software\n * Foundation, either version 2 of the License, or (at your optio... | [
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [138, 242, 158, 32, 404, 80], "buggy_code_start_loc": [137, 206, 120, 31, 402, 30], "filenames": ["imap/auth_cram.c", "imap/auth_gss.c", "mutt/base64.c", "mutt/base64.h", "mutt/rfc2047.c", "test/base64.c"], "fixing_code_end_loc": [138, 242, 166, 32, 405, 80], "fixing_code_start_loc": [137, 206, 1... | 1,428 |
Determine whether the {function_name} code is vulnerable or not. | [
"/**\n * @file\n * RFC2047 MIME extensions encoding / decoding routines\n *\n * @authors\n * Copyright (C) 1996-2000,2010 Michael R. Elkins <me@mutt.org>\n * Copyright (C) 2000-2002 Edmund Grimley Evans <edmundo@rano.org>\n * Copyright (C) 2018 Pietro Cerutti <gahr@gahr.ch>\n *\n * @copyright\n * This program is fr... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | PreciseBugs | {"buggy_code_end_loc": [138, 242, 158, 32, 404, 80], "buggy_code_start_loc": [137, 206, 120, 31, 402, 30], "filenames": ["imap/auth_cram.c", "imap/auth_gss.c", "mutt/base64.c", "mutt/base64.h", "mutt/rfc2047.c", "test/base64.c"], "fixing_code_end_loc": [138, 242, 166, 32, 405, 80], "fixing_code_start_loc": [137, 206, 1... | 1,428 |
Determine whether the {function_name} code is vulnerable or not. | [
"/**\n * @file\n * RFC2047 MIME extensions encoding / decoding routines\n *\n * @authors\n * Copyright (C) 1996-2000,2010 Michael R. Elkins <me@mutt.org>\n * Copyright (C) 2000-2002 Edmund Grimley Evans <edmundo@rano.org>\n * Copyright (C) 2018 Pietro Cerutti <gahr@gahr.ch>\n *\n * @copyright\n * This program is fr... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [138, 242, 158, 32, 404, 80], "buggy_code_start_loc": [137, 206, 120, 31, 402, 30], "filenames": ["imap/auth_cram.c", "imap/auth_gss.c", "mutt/base64.c", "mutt/base64.h", "mutt/rfc2047.c", "test/base64.c"], "fixing_code_end_loc": [138, 242, 166, 32, 405, 80], "fixing_code_start_loc": [137, 206, 1... | 1,428 |
Determine whether the {function_name} code is vulnerable or not. | [
"#define TEST_NO_MAIN\n#include \"acutest.h\"",
"#include \"mutt/base64.h\"",
"#include <string.h>",
"static const char clear[] = \"Hello\";\nstatic const char encoded[] = \"SGVsbG8=\";",
"void test_base64_encode(void)\n{\n char buffer[16];\n size_t len = mutt_b64_encode(buffer, clear, sizeof(clear) - 1, ... | [
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
0,
1,
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [138, 242, 158, 32, 404, 80], "buggy_code_start_loc": [137, 206, 120, 31, 402, 30], "filenames": ["imap/auth_cram.c", "imap/auth_gss.c", "mutt/base64.c", "mutt/base64.h", "mutt/rfc2047.c", "test/base64.c"], "fixing_code_end_loc": [138, 242, 166, 32, 405, 80], "fixing_code_start_loc": [137, 206, 1... | 1,428 |
Determine whether the {function_name} code is vulnerable or not. | [
"#define TEST_NO_MAIN\n#include \"acutest.h\"",
"#include \"mutt/base64.h\"",
"#include <string.h>",
"static const char clear[] = \"Hello\";\nstatic const char encoded[] = \"SGVsbG8=\";",
"void test_base64_encode(void)\n{\n char buffer[16];\n size_t len = mutt_b64_encode(buffer, clear, sizeof(clear) - 1, ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [138, 242, 158, 32, 404, 80], "buggy_code_start_loc": [137, 206, 120, 31, 402, 30], "filenames": ["imap/auth_cram.c", "imap/auth_gss.c", "mutt/base64.c", "mutt/base64.h", "mutt/rfc2047.c", "test/base64.c"], "fixing_code_end_loc": [138, 242, 166, 32, 405, 80], "fixing_code_start_loc": [137, 206, 1... | 1,428 |
Determine whether the {function_name} code is vulnerable or not. | [
"// vim: set ts=4 sw=4 tw=99 noet:\n//\n// AMX Mod X, based on AMX Mod by Aleksander Naszko (\"OLO\").\n// Copyright (C) The AMX Mod X Development Team.\n//\n// This software is licensed under the GNU General Public License, version 3 or higher.\n// Additional exceptions apply. For full license details, see LICENSE... | [
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
] | PreciseBugs | {"buggy_code_end_loc": [242], "buggy_code_start_loc": [241], "filenames": ["plugins/adminvote.sma"], "fixing_code_end_loc": [245], "fixing_code_start_loc": [241], "message": "A vulnerability has been found in AlliedModders AMX Mod X and classified as critical. This vulnerability affects the function cmdVoteMap of the f... | 1,429 |
Determine whether the {function_name} code is vulnerable or not. | [
"// vim: set ts=4 sw=4 tw=99 noet:\n//\n// AMX Mod X, based on AMX Mod by Aleksander Naszko (\"OLO\").\n// Copyright (C) The AMX Mod X Development Team.\n//\n// This software is licensed under the GNU General Public License, version 3 or higher.\n// Additional exceptions apply. For full license details, see LICENSE... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [242], "buggy_code_start_loc": [241], "filenames": ["plugins/adminvote.sma"], "fixing_code_end_loc": [245], "fixing_code_start_loc": [241], "message": "A vulnerability has been found in AlliedModders AMX Mod X and classified as critical. This vulnerability affects the function cmdVoteMap of the f... | 1,429 |
Determine whether the {function_name} code is vulnerable or not. | [
"/******************************************************************************\n *\n * This file is provided under a dual BSD/GPLv2 license. When using or\n * redistributing this file, you may do so under either license.\n *\n * GPL LICENSE SUMMARY\n *\n * Copyright(c) 2008 - 2014 Intel Corporation. All rights r... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [648], "buggy_code_start_loc": [648], "filenames": ["drivers/net/wireless/intel/iwlwifi/fw/dbg.c"], "fixing_code_end_loc": [650], "fixing_code_start_loc": [649], "message": "A memory leak in the alloc_sgtable() function in drivers/net/wireless/intel/iwlwifi/fw/dbg.c in the Linux kernel through 5.... | 1,430 |
Determine whether the {function_name} code is vulnerable or not. | [
"/******************************************************************************\n *\n * This file is provided under a dual BSD/GPLv2 license. When using or\n * redistributing this file, you may do so under either license.\n *\n * GPL LICENSE SUMMARY\n *\n * Copyright(c) 2008 - 2014 Intel Corporation. All rights r... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [648], "buggy_code_start_loc": [648], "filenames": ["drivers/net/wireless/intel/iwlwifi/fw/dbg.c"], "fixing_code_end_loc": [650], "fixing_code_start_loc": [649], "message": "A memory leak in the alloc_sgtable() function in drivers/net/wireless/intel/iwlwifi/fw/dbg.c in the Linux kernel through 5.... | 1,430 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*****************************************************************************\n* Open MCT, Copyright (c) 2014-2021, United States Government\n* as represented by the Administrator of the National Aeronautics and Space\n* Administration. All rights reserved.\n*\n* Open MCT is licensed under the Apache License, Ver... | [
1,
1,
1,
1,
0,
1,
0,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [53, 57, 122, 45, 25], "buggy_code_start_loc": [44, 51, 119, 42, 19], "filenames": ["src/plugins/conditionWidget/components/ConditionWidget.vue", "src/plugins/hyperlink/HyperlinkLayout.vue", "src/plugins/summaryWidget/src/SummaryWidget.js", "src/plugins/summaryWidget/src/views/SummaryWidgetView.j... | 1,431 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*****************************************************************************\n* Open MCT, Copyright (c) 2014-2021, United States Government\n* as represented by the Administrator of the National Aeronautics and Space\n* Administration. All rights reserved.\n*\n* Open MCT is licensed under the Apache License, Ver... | [
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [53, 57, 122, 45, 25], "buggy_code_start_loc": [44, 51, 119, 42, 19], "filenames": ["src/plugins/conditionWidget/components/ConditionWidget.vue", "src/plugins/hyperlink/HyperlinkLayout.vue", "src/plugins/summaryWidget/src/SummaryWidget.js", "src/plugins/summaryWidget/src/views/SummaryWidgetView.j... | 1,431 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*****************************************************************************\n* Open MCT, Copyright (c) 2014-2021, United States Government\n* as represented by the Administrator of the National Aeronautics and Space\n* Administration. All rights reserved.\n*\n* Open MCT is licensed under the Apache License, Ver... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [53, 57, 122, 45, 25], "buggy_code_start_loc": [44, 51, 119, 42, 19], "filenames": ["src/plugins/conditionWidget/components/ConditionWidget.vue", "src/plugins/hyperlink/HyperlinkLayout.vue", "src/plugins/summaryWidget/src/SummaryWidget.js", "src/plugins/summaryWidget/src/views/SummaryWidgetView.j... | 1,431 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*****************************************************************************\n* Open MCT, Copyright (c) 2014-2021, United States Government\n* as represented by the Administrator of the National Aeronautics and Space\n* Administration. All rights reserved.\n*\n* Open MCT is licensed under the Apache License, Ver... | [
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [53, 57, 122, 45, 25], "buggy_code_start_loc": [44, 51, 119, 42, 19], "filenames": ["src/plugins/conditionWidget/components/ConditionWidget.vue", "src/plugins/hyperlink/HyperlinkLayout.vue", "src/plugins/summaryWidget/src/SummaryWidget.js", "src/plugins/summaryWidget/src/views/SummaryWidgetView.j... | 1,431 |
Determine whether the {function_name} code is vulnerable or not. | [
"define([\r\n '../res/widgetTemplate.html',\r\n './Rule',\r\n './ConditionManager',\r\n './TestDataManager',\r\n './WidgetDnD',\r\n './eventHelpers',\r\n 'objectUtils',\r\n 'lodash',\r\n 'zepto',\r\n '@braintree/sanitize-url'\r\n], function (\r\n widgetTemplate,\r\n Rule,\r\n ... | [
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [53, 57, 122, 45, 25], "buggy_code_start_loc": [44, 51, 119, 42, 19], "filenames": ["src/plugins/conditionWidget/components/ConditionWidget.vue", "src/plugins/hyperlink/HyperlinkLayout.vue", "src/plugins/summaryWidget/src/SummaryWidget.js", "src/plugins/summaryWidget/src/views/SummaryWidgetView.j... | 1,431 |
Determine whether the {function_name} code is vulnerable or not. | [
"define([\r\n '../res/widgetTemplate.html',\r\n './Rule',\r\n './ConditionManager',\r\n './TestDataManager',\r\n './WidgetDnD',\r\n './eventHelpers',\r\n 'objectUtils',\r\n 'lodash',\r\n 'zepto',\r\n '@braintree/sanitize-url'\r\n], function (\r\n widgetTemplate,\r\n Rule,\r\n ... | [
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [53, 57, 122, 45, 25], "buggy_code_start_loc": [44, 51, 119, 42, 19], "filenames": ["src/plugins/conditionWidget/components/ConditionWidget.vue", "src/plugins/hyperlink/HyperlinkLayout.vue", "src/plugins/summaryWidget/src/SummaryWidget.js", "src/plugins/summaryWidget/src/views/SummaryWidgetView.j... | 1,431 |
Determine whether the {function_name} code is vulnerable or not. | [
"define([\n './summary-widget.html',\n '@braintree/sanitize-url'\n], function (\n summaryWidgetTemplate,\n urlSanitizeLib\n) {\n const WIDGET_ICON_CLASS = 'c-sw__icon js-sw__icon';",
" function SummaryWidgetView(domainObject, openmct) {\n this.openmct = openmct;\n this.domainObject... | [
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [53, 57, 122, 45, 25], "buggy_code_start_loc": [44, 51, 119, 42, 19], "filenames": ["src/plugins/conditionWidget/components/ConditionWidget.vue", "src/plugins/hyperlink/HyperlinkLayout.vue", "src/plugins/summaryWidget/src/SummaryWidget.js", "src/plugins/summaryWidget/src/views/SummaryWidgetView.j... | 1,431 |
Determine whether the {function_name} code is vulnerable or not. | [
"define([\n './summary-widget.html',\n '@braintree/sanitize-url'\n], function (\n summaryWidgetTemplate,\n urlSanitizeLib\n) {\n const WIDGET_ICON_CLASS = 'c-sw__icon js-sw__icon';",
" function SummaryWidgetView(domainObject, openmct) {\n this.openmct = openmct;\n this.domainObject... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [53, 57, 122, 45, 25], "buggy_code_start_loc": [44, 51, 119, 42, 19], "filenames": ["src/plugins/conditionWidget/components/ConditionWidget.vue", "src/plugins/hyperlink/HyperlinkLayout.vue", "src/plugins/summaryWidget/src/SummaryWidget.js", "src/plugins/summaryWidget/src/views/SummaryWidgetView.j... | 1,431 |
Determine whether the {function_name} code is vulnerable or not. | [
"<template>\n<div class=\"l-iframe abs\">\n <iframe :src=\"url\"></iframe>\n</div>\n</template>",
"<script>\nconst sanitizeUrl = require(\"@braintree/sanitize-url\").sanitizeUrl;",
"export default {\n inject: ['openmct', 'domainObject'],\n data: function () {\n return {\n currentDomai... | [
1,
1,
1,
0,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [53, 57, 122, 45, 25], "buggy_code_start_loc": [44, 51, 119, 42, 19], "filenames": ["src/plugins/conditionWidget/components/ConditionWidget.vue", "src/plugins/hyperlink/HyperlinkLayout.vue", "src/plugins/summaryWidget/src/SummaryWidget.js", "src/plugins/summaryWidget/src/views/SummaryWidgetView.j... | 1,431 |
Determine whether the {function_name} code is vulnerable or not. | [
"<template>\n<div class=\"l-iframe abs\">\n <iframe :src=\"url\"></iframe>\n</div>\n</template>",
"<script>\nconst sanitizeUrl = require(\"@braintree/sanitize-url\").sanitizeUrl;",
"export default {\n inject: ['openmct', 'domainObject'],\n data: function () {\n return {\n currentDomai... | [
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [53, 57, 122, 45, 25], "buggy_code_start_loc": [44, 51, 119, 42, 19], "filenames": ["src/plugins/conditionWidget/components/ConditionWidget.vue", "src/plugins/hyperlink/HyperlinkLayout.vue", "src/plugins/summaryWidget/src/SummaryWidget.js", "src/plugins/summaryWidget/src/views/SummaryWidgetView.j... | 1,431 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"namespace App\\Shop\\Products\\Requests;",
"use App\\Shop\\Base\\BaseFormRequest;\nuse Illuminate\\Validation\\Rule;",
"class UpdateProductRequest extends BaseFormRequest\n{\n /**\n * Get the validation rules that apply to the request.\n *\n * @return array\n */\n public functi... | [
1,
1,
1,
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [24], "buggy_code_start_loc": [23], "filenames": ["project/app/Shop/Products/Requests/UpdateProductRequest.php"], "fixing_code_end_loc": [26], "fixing_code_start_loc": [23], "message": "Unrestricted Upload of File with Dangerous Type in Packagist jsdecena/laracom prior to v2.0.9.", "other": {"cve... | 1,432 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"namespace App\\Shop\\Products\\Requests;",
"use App\\Shop\\Base\\BaseFormRequest;\nuse Illuminate\\Validation\\Rule;",
"class UpdateProductRequest extends BaseFormRequest\n{\n /**\n * Get the validation rules that apply to the request.\n *\n * @return array\n */\n public functi... | [
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [24], "buggy_code_start_loc": [23], "filenames": ["project/app/Shop/Products/Requests/UpdateProductRequest.php"], "fixing_code_end_loc": [26], "fixing_code_start_loc": [23], "message": "Unrestricted Upload of File with Dangerous Type in Packagist jsdecena/laracom prior to v2.0.9.", "other": {"cve... | 1,432 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */",
"#include \"JSLibInternal.h\"",
"#include \"hermes/Support/Base64vlq.h\"\n#include \"hermes/VM/Callable.h\"\n#includ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [655, 34], "buggy_code_start_loc": [655, 34], "filenames": ["lib/VM/JSLib/HermesBuiltin.cpp", "test/hermes/stack-overflow-apply.js"], "fixing_code_end_loc": [659, 46], "fixing_code_start_loc": [656, 35], "message": "A stack overflow vulnerability in Facebook Hermes 'builtin apply' prior to commit... | 1,433 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */",
"#include \"JSLibInternal.h\"",
"#include \"hermes/Support/Base64vlq.h\"\n#include \"hermes/VM/Callable.h\"\n#includ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [655, 34], "buggy_code_start_loc": [655, 34], "filenames": ["lib/VM/JSLib/HermesBuiltin.cpp", "test/hermes/stack-overflow-apply.js"], "fixing_code_end_loc": [659, 46], "fixing_code_start_loc": [656, 35], "message": "A stack overflow vulnerability in Facebook Hermes 'builtin apply' prior to commit... | 1,433 |
Determine whether the {function_name} code is vulnerable or not. | [
"/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */",
"//RUN: %hermes -O -target=HBC %s | %FileCheck --match-full-lines %s",
"function func() {\n print(arguments.leng... | [
1,
1,
1,
1,
1,
1,
0
] | PreciseBugs | {"buggy_code_end_loc": [655, 34], "buggy_code_start_loc": [655, 34], "filenames": ["lib/VM/JSLib/HermesBuiltin.cpp", "test/hermes/stack-overflow-apply.js"], "fixing_code_end_loc": [659, 46], "fixing_code_start_loc": [656, 35], "message": "A stack overflow vulnerability in Facebook Hermes 'builtin apply' prior to commit... | 1,433 |
Determine whether the {function_name} code is vulnerable or not. | [
"/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */",
"//RUN: %hermes -O -target=HBC %s | %FileCheck --match-full-lines %s",
"function func() {\n print(arguments.leng... | [
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [655, 34], "buggy_code_start_loc": [655, 34], "filenames": ["lib/VM/JSLib/HermesBuiltin.cpp", "test/hermes/stack-overflow-apply.js"], "fixing_code_end_loc": [659, 46], "fixing_code_start_loc": [656, 35], "message": "A stack overflow vulnerability in Facebook Hermes 'builtin apply' prior to commit... | 1,433 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"/**\n * The Ajax Service Layer.\n *\n * This Source Code Form is subject to the terms of the Mozilla Public License,\n * v. 2.0. If a copy of the MPL was not distributed with this file, You can\n * obtain one at http://mozilla.org/MPL/2.0/.\n *\n * @package phpMyFAQ\n * @author Thorsten Rinne <thorsten@... | [
1,
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": [204, 87], "buggy_code_start_loc": [203, 86], "filenames": ["phpmyfaq/ajaxservice.php", "phpmyfaq/src/phpMyFAQ/Comments.php"], "fixing_code_end_loc": [204, 87], "fixing_code_start_loc": [203, 86], "message": "Cross-site Scripting in GitHub repository thorsten/phpmyfaq prior to 3.1.12.", "other": ... | 1,434 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"/**\n * The Ajax Service Layer.\n *\n * This Source Code Form is subject to the terms of the Mozilla Public License,\n * v. 2.0. If a copy of the MPL was not distributed with this file, You can\n * obtain one at http://mozilla.org/MPL/2.0/.\n *\n * @package phpMyFAQ\n * @author Thorsten Rinne <thorsten@... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [204, 87], "buggy_code_start_loc": [203, 86], "filenames": ["phpmyfaq/ajaxservice.php", "phpmyfaq/src/phpMyFAQ/Comments.php"], "fixing_code_end_loc": [204, 87], "fixing_code_start_loc": [203, 86], "message": "Cross-site Scripting in GitHub repository thorsten/phpmyfaq prior to 3.1.12.", "other": ... | 1,434 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"/**\n * The main Comment class.\n *\n * This Source Code Form is subject to the terms of the Mozilla Public License,\n * v. 2.0. If a copy of the MPL was not distributed with this file, You can\n * obtain one at http://mozilla.org/MPL/2.0/.\n *\n * @package phpMyFAQ\n * @author Thorsten Rinne <thor... | [
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
] | PreciseBugs | {"buggy_code_end_loc": [204, 87], "buggy_code_start_loc": [203, 86], "filenames": ["phpmyfaq/ajaxservice.php", "phpmyfaq/src/phpMyFAQ/Comments.php"], "fixing_code_end_loc": [204, 87], "fixing_code_start_loc": [203, 86], "message": "Cross-site Scripting in GitHub repository thorsten/phpmyfaq prior to 3.1.12.", "other": ... | 1,434 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"/**\n * The main Comment class.\n *\n * This Source Code Form is subject to the terms of the Mozilla Public License,\n * v. 2.0. If a copy of the MPL was not distributed with this file, You can\n * obtain one at http://mozilla.org/MPL/2.0/.\n *\n * @package phpMyFAQ\n * @author Thorsten Rinne <thor... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [204, 87], "buggy_code_start_loc": [203, 86], "filenames": ["phpmyfaq/ajaxservice.php", "phpmyfaq/src/phpMyFAQ/Comments.php"], "fixing_code_end_loc": [204, 87], "fixing_code_start_loc": [203, 86], "message": "Cross-site Scripting in GitHub repository thorsten/phpmyfaq prior to 3.1.12.", "other": ... | 1,434 |
Determine whether the {function_name} code is vulnerable or not. | [
"%# -*-C-*- vi: set ft=c:\n%# This file is processed in several stages.\n%# Here are the stages, as best as I can describe:\n%#\n%# 1. flex.skl is processed through GNU m4 during the\n%# pre-compilation stage of flex. Only macros starting\n%# with `m4preproc_' are processed, and quoting is normal.\n%#\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": [1707], "buggy_code_start_loc": [1706], "filenames": ["src/flex.skl"], "fixing_code_end_loc": [1707], "fixing_code_start_loc": [1706], "message": "Heap-based buffer overflow in the yy_get_next_buffer function in Flex before 2.6.1 might allow context-dependent attackers to cause a denial of servic... | 1,435 |
Determine whether the {function_name} code is vulnerable or not. | [
"%# -*-C-*- vi: set ft=c:\n%# This file is processed in several stages.\n%# Here are the stages, as best as I can describe:\n%#\n%# 1. flex.skl is processed through GNU m4 during the\n%# pre-compilation stage of flex. Only macros starting\n%# with `m4preproc_' are processed, and quoting is normal.\n%#\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": [1707], "buggy_code_start_loc": [1706], "filenames": ["src/flex.skl"], "fixing_code_end_loc": [1707], "fixing_code_start_loc": [1706], "message": "Heap-based buffer overflow in the yy_get_next_buffer function in Flex before 2.6.1 might allow context-dependent attackers to cause a denial of servic... | 1,435 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * INET\t\tAn implementation of the TCP/IP protocol suite for the LINUX\n *\t\toperating system. INET is implemented using the BSD Socket\n *\t\tinterface as the means of communication with the user level.\n *\n *\t\tImplementation of the Transmission Control Protocol(TCP).\n *\n * Authors:\tRoss Biro\n *\t\... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [5813], "buggy_code_start_loc": [5813], "filenames": ["net/ipv4/tcp_input.c"], "fixing_code_end_loc": [5816], "fixing_code_start_loc": [5814], "message": "The tcp_rcv_state_process function in net/ipv4/tcp_input.c in the Linux kernel before 3.2.24 allows remote attackers to cause a denial of serv... | 1,436 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * INET\t\tAn implementation of the TCP/IP protocol suite for the LINUX\n *\t\toperating system. INET is implemented using the BSD Socket\n *\t\tinterface as the means of communication with the user level.\n *\n *\t\tImplementation of the Transmission Control Protocol(TCP).\n *\n * Authors:\tRoss Biro\n *\t\... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [5813], "buggy_code_start_loc": [5813], "filenames": ["net/ipv4/tcp_input.c"], "fixing_code_end_loc": [5816], "fixing_code_start_loc": [5814], "message": "The tcp_rcv_state_process function in net/ipv4/tcp_input.c in the Linux kernel before 3.2.24 allows remote attackers to cause a denial of serv... | 1,436 |
Determine whether the {function_name} code is vulnerable or not. | [
"// SPDX-License-Identifier: GPL-2.0-or-later\n/*\n * Budget Fair Queueing (BFQ) I/O scheduler.\n *\n * Based on ideas and code from CFQ:\n * Copyright (C) 2003 Jens Axboe <axboe@kernel.dk>\n *\n * Copyright (C) 2008 Fabio Checconi <fabio@gandalf.sssup.it>\n *\t\t Paolo Valente <paolo.valente@unimore.it>\n *\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": [6277], "buggy_code_start_loc": [6218], "filenames": ["block/bfq-iosched.c"], "fixing_code_end_loc": [6285], "fixing_code_start_loc": [6218], "message": "An issue was discovered in the Linux kernel before 5.6.5. There is a use-after-free in block/bfq-iosched.c related to bfq_idle_slice_timer_body... | 1,437 |
Determine whether the {function_name} code is vulnerable or not. | [
"// SPDX-License-Identifier: GPL-2.0-or-later\n/*\n * Budget Fair Queueing (BFQ) I/O scheduler.\n *\n * Based on ideas and code from CFQ:\n * Copyright (C) 2003 Jens Axboe <axboe@kernel.dk>\n *\n * Copyright (C) 2008 Fabio Checconi <fabio@gandalf.sssup.it>\n *\t\t Paolo Valente <paolo.valente@unimore.it>\n *\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": [6277], "buggy_code_start_loc": [6218], "filenames": ["block/bfq-iosched.c"], "fixing_code_end_loc": [6285], "fixing_code_start_loc": [6218], "message": "An issue was discovered in the Linux kernel before 5.6.5. There is a use-after-free in block/bfq-iosched.c related to bfq_idle_slice_timer_body... | 1,437 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * Main.vala\n *\n * Copyright 2012-2018 Tony George <teejeetech@gmail.com>\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or\n * (at your op... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [4246, 378, 46], "buggy_code_start_loc": [4246, 346, 39], "filenames": ["src/Core/Main.vala", "src/Utility/TeeJee.FileSystem.vala", "src/Utility/TeeJee.Process.vala"], "fixing_code_end_loc": [4249, 386, 50], "fixing_code_start_loc": [4247, 347, 39], "message": "init_tmp in TeeJee.FileSystem.vala ... | 1,438 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * Main.vala\n *\n * Copyright 2012-2018 Tony George <teejeetech@gmail.com>\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or\n * (at your op... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [4246, 378, 46], "buggy_code_start_loc": [4246, 346, 39], "filenames": ["src/Core/Main.vala", "src/Utility/TeeJee.FileSystem.vala", "src/Utility/TeeJee.Process.vala"], "fixing_code_end_loc": [4249, 386, 50], "fixing_code_start_loc": [4247, 347, 39], "message": "init_tmp in TeeJee.FileSystem.vala ... | 1,438 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * TeeJee.FileSystem.vala\n *\n * Copyright 2012-2018 Tony George <teejeetech@gmail.com>\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or\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,
0,
1,
0,
1,
0,
1,
0,
1,
1,
0,
1,
0,
1,
0,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [4246, 378, 46], "buggy_code_start_loc": [4246, 346, 39], "filenames": ["src/Core/Main.vala", "src/Utility/TeeJee.FileSystem.vala", "src/Utility/TeeJee.Process.vala"], "fixing_code_end_loc": [4249, 386, 50], "fixing_code_start_loc": [4247, 347, 39], "message": "init_tmp in TeeJee.FileSystem.vala ... | 1,438 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * TeeJee.FileSystem.vala\n *\n * Copyright 2012-2018 Tony George <teejeetech@gmail.com>\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or\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": [4246, 378, 46], "buggy_code_start_loc": [4246, 346, 39], "filenames": ["src/Core/Main.vala", "src/Utility/TeeJee.FileSystem.vala", "src/Utility/TeeJee.Process.vala"], "fixing_code_end_loc": [4249, 386, 50], "fixing_code_start_loc": [4247, 347, 39], "message": "init_tmp in TeeJee.FileSystem.vala ... | 1,438 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * TeeJee.ProcessHelper.vala\n *\n * Copyright 2012-2018 Tony George <teejeetech@gmail.com>\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or... | [
1,
1,
1,
0,
1,
0,
1,
0,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [4246, 378, 46], "buggy_code_start_loc": [4246, 346, 39], "filenames": ["src/Core/Main.vala", "src/Utility/TeeJee.FileSystem.vala", "src/Utility/TeeJee.Process.vala"], "fixing_code_end_loc": [4249, 386, 50], "fixing_code_start_loc": [4247, 347, 39], "message": "init_tmp in TeeJee.FileSystem.vala ... | 1,438 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * TeeJee.ProcessHelper.vala\n *\n * Copyright 2012-2018 Tony George <teejeetech@gmail.com>\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [4246, 378, 46], "buggy_code_start_loc": [4246, 346, 39], "filenames": ["src/Core/Main.vala", "src/Utility/TeeJee.FileSystem.vala", "src/Utility/TeeJee.Process.vala"], "fixing_code_end_loc": [4249, 386, 50], "fixing_code_start_loc": [4247, 347, 39], "message": "init_tmp in TeeJee.FileSystem.vala ... | 1,438 |
Determine whether the {function_name} code is vulnerable or not. | [
"<div id=\"users\">\n <h1><img src=\"<?= base_url('assets/imgs/admin-user.png') ?>\" class=\"header-img\" style=\"margin-top:-3px;\"> Admin Users</h1> \n <hr>\n <?php if (validation_errors()) { ?>\n <hr>\n <div class=\"alert alert-danger\"><?= validation_errors() ?></div>\n <hr>\n ... | [
1,
1,
0,
1,
0,
1,
0,
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [92, 87, 45, 110, 167, 134, 165, 15, 136, 15, 150, 14], "buggy_code_start_loc": [76, 86, 44, 45, 22, 17, 106, 14, 86, 14, 106, 13], "filenames": ["application/modules/admin/views/advanced_settings/adminUsers.php", "application/modules/admin/views/advanced_settings/languages.php", "application/mod... | 1,439 |
Determine whether the {function_name} code is vulnerable or not. | [
"<div id=\"users\">\n <h1><img src=\"<?= base_url('assets/imgs/admin-user.png') ?>\" class=\"header-img\" style=\"margin-top:-3px;\"> Admin Users</h1> \n <hr>\n <?php if (validation_errors()) { ?>\n <hr>\n <div class=\"alert alert-danger\"><?= validation_errors() ?></div>\n <hr>\n ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [92, 87, 45, 110, 167, 134, 165, 15, 136, 15, 150, 14], "buggy_code_start_loc": [76, 86, 44, 45, 22, 17, 106, 14, 86, 14, 106, 13], "filenames": ["application/modules/admin/views/advanced_settings/adminUsers.php", "application/modules/admin/views/advanced_settings/languages.php", "application/mod... | 1,439 |
Determine whether the {function_name} code is vulnerable or not. | [
"<div id=\"languages\">\n <h1><img src=\"<?= base_url('assets/imgs/small-globe.png') ?>\" class=\"header-img\" style=\"margin-top:-3px;\"> Languages</h1> \n <hr>\n <?php\n if (isset($writable)) {\n ?>\n <div class=\"alert alert-danger\"><?= $writable ?></div>\n <?php\n }\n if ... | [
1,
1,
0,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [92, 87, 45, 110, 167, 134, 165, 15, 136, 15, 150, 14], "buggy_code_start_loc": [76, 86, 44, 45, 22, 17, 106, 14, 86, 14, 106, 13], "filenames": ["application/modules/admin/views/advanced_settings/adminUsers.php", "application/modules/admin/views/advanced_settings/languages.php", "application/mod... | 1,439 |
Determine whether the {function_name} code is vulnerable or not. | [
"<div id=\"languages\">\n <h1><img src=\"<?= base_url('assets/imgs/small-globe.png') ?>\" class=\"header-img\" style=\"margin-top:-3px;\"> Languages</h1> \n <hr>\n <?php\n if (isset($writable)) {\n ?>\n <div class=\"alert alert-danger\"><?= $writable ?></div>\n <?php\n }\n if ... | [
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [92, 87, 45, 110, 167, 134, 165, 15, 136, 15, 150, 14], "buggy_code_start_loc": [76, 86, 44, 45, 22, 17, 106, 14, 86, 14, 106, 13], "filenames": ["application/modules/admin/views/advanced_settings/adminUsers.php", "application/modules/admin/views/advanced_settings/languages.php", "application/mod... | 1,439 |
Determine whether the {function_name} code is vulnerable or not. | [
"<script src=\"<?= base_url('assets/ckeditor/ckeditor.js') ?>\"></script>\n<h1><img src=\"<?= base_url('assets/imgs/blogger.png') ?>\" class=\"header-img\" style=\"margin-top:-2px;\"> Publish post</h1>\n<hr>\n<div class=\"row\">\n <div class=\"col-sm-8 col-md-7\">\n <?php if (validation_errors()) { ?>\n ... | [
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [92, 87, 45, 110, 167, 134, 165, 15, 136, 15, 150, 14], "buggy_code_start_loc": [76, 86, 44, 45, 22, 17, 106, 14, 86, 14, 106, 13], "filenames": ["application/modules/admin/views/advanced_settings/adminUsers.php", "application/modules/admin/views/advanced_settings/languages.php", "application/mod... | 1,439 |
Determine whether the {function_name} code is vulnerable or not. | [
"<script src=\"<?= base_url('assets/ckeditor/ckeditor.js') ?>\"></script>\n<h1><img src=\"<?= base_url('assets/imgs/blogger.png') ?>\" class=\"header-img\" style=\"margin-top:-2px;\"> Publish post</h1>\n<hr>\n<div class=\"row\">\n <div class=\"col-sm-8 col-md-7\">\n <?php if (validation_errors()) { ?>\n ... | [
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [92, 87, 45, 110, 167, 134, 165, 15, 136, 15, 150, 14], "buggy_code_start_loc": [76, 86, 44, 45, 22, 17, 106, 14, 86, 14, 106, 13], "filenames": ["application/modules/admin/views/advanced_settings/adminUsers.php", "application/modules/admin/views/advanced_settings/languages.php", "application/mod... | 1,439 |
Determine whether the {function_name} code is vulnerable or not. | [
"<link href=\"<?= base_url('assets/css/bootstrap-toggle.min.css') ?>\" rel=\"stylesheet\">\n<link href=\"<?= base_url('assets/css/bootstrap-datepicker.min.css') ?>\" rel=\"stylesheet\">\n<h1><img src=\"<?= base_url('assets/imgs/discount.png') ?>\" class=\"header-img\" style=\"margin-top:-3px;\"> Discount Codes</h1>... | [
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [92, 87, 45, 110, 167, 134, 165, 15, 136, 15, 150, 14], "buggy_code_start_loc": [76, 86, 44, 45, 22, 17, 106, 14, 86, 14, 106, 13], "filenames": ["application/modules/admin/views/advanced_settings/adminUsers.php", "application/modules/admin/views/advanced_settings/languages.php", "application/mod... | 1,439 |
Determine whether the {function_name} code is vulnerable or not. | [
"<link href=\"<?= base_url('assets/css/bootstrap-toggle.min.css') ?>\" rel=\"stylesheet\">\n<link href=\"<?= base_url('assets/css/bootstrap-datepicker.min.css') ?>\" rel=\"stylesheet\">\n<h1><img src=\"<?= base_url('assets/imgs/discount.png') ?>\" class=\"header-img\" style=\"margin-top:-3px;\"> Discount Codes</h1>... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [92, 87, 45, 110, 167, 134, 165, 15, 136, 15, 150, 14], "buggy_code_start_loc": [76, 86, 44, 45, 22, 17, 106, 14, 86, 14, 106, 13], "filenames": ["application/modules/admin/views/advanced_settings/adminUsers.php", "application/modules/admin/views/advanced_settings/languages.php", "application/mod... | 1,439 |
Determine whether the {function_name} code is vulnerable or not. | [
"<script src=\"<?= base_url('assets/ckeditor/ckeditor.js') ?>\"></script>\n<h1><img src=\"<?= base_url('assets/imgs/shop-cart-add-icon.png') ?>\" class=\"header-img\" style=\"margin-top:-3px;\"> Publish product</h1>\n<hr>\n<?php\n$timeNow = time();\nif (validation_errors()) {\n ?>\n <hr>\n <div class=\"ale... | [
1,
0,
1,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [92, 87, 45, 110, 167, 134, 165, 15, 136, 15, 150, 14], "buggy_code_start_loc": [76, 86, 44, 45, 22, 17, 106, 14, 86, 14, 106, 13], "filenames": ["application/modules/admin/views/advanced_settings/adminUsers.php", "application/modules/admin/views/advanced_settings/languages.php", "application/mod... | 1,439 |
Determine whether the {function_name} code is vulnerable or not. | [
"<script src=\"<?= base_url('assets/ckeditor/ckeditor.js') ?>\"></script>\n<h1><img src=\"<?= base_url('assets/imgs/shop-cart-add-icon.png') ?>\" class=\"header-img\" style=\"margin-top:-3px;\"> Publish product</h1>\n<hr>\n<?php\n$timeNow = time();\nif (validation_errors()) {\n ?>\n <hr>\n <div class=\"ale... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [92, 87, 45, 110, 167, 134, 165, 15, 136, 15, 150, 14], "buggy_code_start_loc": [76, 86, 44, 45, 22, 17, 106, 14, 86, 14, 106, 13], "filenames": ["application/modules/admin/views/advanced_settings/adminUsers.php", "application/modules/admin/views/advanced_settings/languages.php", "application/mod... | 1,439 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n$timeNow = time();\n?>\n<script src=\"<?= base_url('assets/ckeditor/ckeditor.js') ?>\"></script>\n<link rel=\"stylesheet\" href=\"<?= base_url('assets/bootstrap-select-1.12.1/bootstrap-select.min.css') ?>\">\n<div class=\"row\">\n <div class=\"col-md-6 col-md-offset-3\">\n <?php\n if ($this... | [
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [92, 87, 45, 110, 167, 134, 165, 15, 136, 15, 150, 14], "buggy_code_start_loc": [76, 86, 44, 45, 22, 17, 106, 14, 86, 14, 106, 13], "filenames": ["application/modules/admin/views/advanced_settings/adminUsers.php", "application/modules/admin/views/advanced_settings/languages.php", "application/mod... | 1,439 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n$timeNow = time();\n?>\n<script src=\"<?= base_url('assets/ckeditor/ckeditor.js') ?>\"></script>\n<link rel=\"stylesheet\" href=\"<?= base_url('assets/bootstrap-select-1.12.1/bootstrap-select.min.css') ?>\">\n<div class=\"row\">\n <div class=\"col-md-6 col-md-offset-3\">\n <?php\n if ($this... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [92, 87, 45, 110, 167, 134, 165, 15, 136, 15, 150, 14], "buggy_code_start_loc": [76, 86, 44, 45, 22, 17, 106, 14, 86, 14, 106, 13], "filenames": ["application/modules/admin/views/advanced_settings/adminUsers.php", "application/modules/admin/views/advanced_settings/languages.php", "application/mod... | 1,439 |
Determine whether the {function_name} code is vulnerable or not. | [
"<!DOCTYPE html>\n<html lang=\"<?= MY_LANGUAGE_ABBR ?>\">\n <head>\n <meta charset=\"utf-8\" />\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" /> \n <meta name=\"description\" content=\"<?= $descr... | [
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [92, 87, 45, 110, 167, 134, 165, 15, 136, 15, 150, 14], "buggy_code_start_loc": [76, 86, 44, 45, 22, 17, 106, 14, 86, 14, 106, 13], "filenames": ["application/modules/admin/views/advanced_settings/adminUsers.php", "application/modules/admin/views/advanced_settings/languages.php", "application/mod... | 1,439 |
Determine whether the {function_name} code is vulnerable or not. | [
"<!DOCTYPE html>\n<html lang=\"<?= MY_LANGUAGE_ABBR ?>\">\n <head>\n <meta charset=\"utf-8\" />\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" /> \n <meta name=\"description\" content=\"<?= $descr... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [92, 87, 45, 110, 167, 134, 165, 15, 136, 15, 150, 14], "buggy_code_start_loc": [76, 86, 44, 45, 22, 17, 106, 14, 86, 14, 106, 13], "filenames": ["application/modules/admin/views/advanced_settings/adminUsers.php", "application/modules/admin/views/advanced_settings/languages.php", "application/mod... | 1,439 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\ndefined('BASEPATH') OR exit('No direct script access allowed');\n?>\n<div class=\"container\" id=\"blog\">\n <div class=\"body\">\n <div class=\"row bottom-30 eqHeight\">\n <div class=\"col-sm-4 col-md-3\">\n <div class=\"blog-home-left-categ\">\n <?= $... | [
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [92, 87, 45, 110, 167, 134, 165, 15, 136, 15, 150, 14], "buggy_code_start_loc": [76, 86, 44, 45, 22, 17, 106, 14, 86, 14, 106, 13], "filenames": ["application/modules/admin/views/advanced_settings/adminUsers.php", "application/modules/admin/views/advanced_settings/languages.php", "application/mod... | 1,439 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\ndefined('BASEPATH') OR exit('No direct script access allowed');\n?>\n<div class=\"container\" id=\"blog\">\n <div class=\"body\">\n <div class=\"row bottom-30 eqHeight\">\n <div class=\"col-sm-4 col-md-3\">\n <div class=\"blog-home-left-categ\">\n <?= $... | [
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [92, 87, 45, 110, 167, 134, 165, 15, 136, 15, 150, 14], "buggy_code_start_loc": [76, 86, 44, 45, 22, 17, 106, 14, 86, 14, 106, 13], "filenames": ["application/modules/admin/views/advanced_settings/adminUsers.php", "application/modules/admin/views/advanced_settings/languages.php", "application/mod... | 1,439 |
Determine whether the {function_name} code is vulnerable or not. | [
"<!DOCTYPE html>\n<html lang=\"<?= MY_LANGUAGE_ABBR ?>\">\n <head>\n <meta charset=\"utf-8\" />\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" /> \n <meta name=\"description\" content=\"<?= $descr... | [
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [92, 87, 45, 110, 167, 134, 165, 15, 136, 15, 150, 14], "buggy_code_start_loc": [76, 86, 44, 45, 22, 17, 106, 14, 86, 14, 106, 13], "filenames": ["application/modules/admin/views/advanced_settings/adminUsers.php", "application/modules/admin/views/advanced_settings/languages.php", "application/mod... | 1,439 |
Determine whether the {function_name} code is vulnerable or not. | [
"<!DOCTYPE html>\n<html lang=\"<?= MY_LANGUAGE_ABBR ?>\">\n <head>\n <meta charset=\"utf-8\" />\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" /> \n <meta name=\"description\" content=\"<?= $descr... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [92, 87, 45, 110, 167, 134, 165, 15, 136, 15, 150, 14], "buggy_code_start_loc": [76, 86, 44, 45, 22, 17, 106, 14, 86, 14, 106, 13], "filenames": ["application/modules/admin/views/advanced_settings/adminUsers.php", "application/modules/admin/views/advanced_settings/languages.php", "application/mod... | 1,439 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\ndefined('BASEPATH') OR exit('No direct script access allowed');\n?>\n<div class=\"container\" id=\"blog\">\n <div class=\"body\">\n <div class=\"row bottom-30 eqHeight\">\n <div class=\"col-sm-4 col-md-3\">\n <div class=\"blog-home-left-categ\">\n <?= $... | [
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [92, 87, 45, 110, 167, 134, 165, 15, 136, 15, 150, 14], "buggy_code_start_loc": [76, 86, 44, 45, 22, 17, 106, 14, 86, 14, 106, 13], "filenames": ["application/modules/admin/views/advanced_settings/adminUsers.php", "application/modules/admin/views/advanced_settings/languages.php", "application/mod... | 1,439 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\ndefined('BASEPATH') OR exit('No direct script access allowed');\n?>\n<div class=\"container\" id=\"blog\">\n <div class=\"body\">\n <div class=\"row bottom-30 eqHeight\">\n <div class=\"col-sm-4 col-md-3\">\n <div class=\"blog-home-left-categ\">\n <?= $... | [
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [92, 87, 45, 110, 167, 134, 165, 15, 136, 15, 150, 14], "buggy_code_start_loc": [76, 86, 44, 45, 22, 17, 106, 14, 86, 14, 106, 13], "filenames": ["application/modules/admin/views/advanced_settings/adminUsers.php", "application/modules/admin/views/advanced_settings/languages.php", "application/mod... | 1,439 |
Determine whether the {function_name} code is vulnerable or not. | [
"<!DOCTYPE html>\n<html lang=\"<?= MY_LANGUAGE_ABBR ?>\">\n <head>\n <meta charset=\"utf-8\" />\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" /> \n <meta name=\"description\" content=\"<?= $descr... | [
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [92, 87, 45, 110, 167, 134, 165, 15, 136, 15, 150, 14], "buggy_code_start_loc": [76, 86, 44, 45, 22, 17, 106, 14, 86, 14, 106, 13], "filenames": ["application/modules/admin/views/advanced_settings/adminUsers.php", "application/modules/admin/views/advanced_settings/languages.php", "application/mod... | 1,439 |
Determine whether the {function_name} code is vulnerable or not. | [
"<!DOCTYPE html>\n<html lang=\"<?= MY_LANGUAGE_ABBR ?>\">\n <head>\n <meta charset=\"utf-8\" />\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" /> \n <meta name=\"description\" content=\"<?= $descr... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [92, 87, 45, 110, 167, 134, 165, 15, 136, 15, 150, 14], "buggy_code_start_loc": [76, 86, 44, 45, 22, 17, 106, 14, 86, 14, 106, 13], "filenames": ["application/modules/admin/views/advanced_settings/adminUsers.php", "application/modules/admin/views/advanced_settings/languages.php", "application/mod... | 1,439 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\ndefined('BASEPATH') OR exit('No direct script access allowed');\n?>\n<div class=\"container\" id=\"blog\">\n <div class=\"row eqHeight\">\n <div class=\"col-sm-4 col-md-3\">\n <div class=\"blog-home-left-categ\">\n <?= $archives ?>\n </div>\n <div id... | [
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [92, 87, 45, 110, 167, 134, 165, 15, 136, 15, 150, 14], "buggy_code_start_loc": [76, 86, 44, 45, 22, 17, 106, 14, 86, 14, 106, 13], "filenames": ["application/modules/admin/views/advanced_settings/adminUsers.php", "application/modules/admin/views/advanced_settings/languages.php", "application/mod... | 1,439 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\ndefined('BASEPATH') OR exit('No direct script access allowed');\n?>\n<div class=\"container\" id=\"blog\">\n <div class=\"row eqHeight\">\n <div class=\"col-sm-4 col-md-3\">\n <div class=\"blog-home-left-categ\">\n <?= $archives ?>\n </div>\n <div id... | [
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [92, 87, 45, 110, 167, 134, 165, 15, 136, 15, 150, 14], "buggy_code_start_loc": [76, 86, 44, 45, 22, 17, 106, 14, 86, 14, 106, 13], "filenames": ["application/modules/admin/views/advanced_settings/adminUsers.php", "application/modules/admin/views/advanced_settings/languages.php", "application/mod... | 1,439 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"/**\n * AJAX: Search for tags.\n *\n * PHP Version 5.5\n *\n * This Source Code Form is subject to the terms of the Mozilla Public License,\n * v. 2.0. If a copy of the MPL was not distributed with this file, You can\n * obtain one at http://mozilla.org/MPL/2.0/.\n *\n * @category phpMyFAQ\n * @author ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [72, 58, 67], "buggy_code_start_loc": [72, 32, 41], "filenames": ["phpmyfaq/admin/ajax.tags.php", "phpmyfaq/admin/assets/js/tags.js", "phpmyfaq/admin/tags.main.php"], "fixing_code_end_loc": [79, 59, 67], "fixing_code_start_loc": [73, 32, 41], "message": "In phpMyFaq before 2.9.9, there is XSS in ... | 1,440 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"/**\n * AJAX: Search for tags.\n *\n * PHP Version 5.5\n *\n * This Source Code Form is subject to the terms of the Mozilla Public License,\n * v. 2.0. If a copy of the MPL was not distributed with this file, You can\n * obtain one at http://mozilla.org/MPL/2.0/.\n *\n * @category phpMyFAQ\n * @author ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [72, 58, 67], "buggy_code_start_loc": [72, 32, 41], "filenames": ["phpmyfaq/admin/ajax.tags.php", "phpmyfaq/admin/assets/js/tags.js", "phpmyfaq/admin/tags.main.php"], "fixing_code_end_loc": [79, 59, 67], "fixing_code_start_loc": [73, 32, 41], "message": "In phpMyFaq before 2.9.9, there is XSS in ... | 1,440 |
Determine whether the {function_name} code is vulnerable or not. | [
"/**\n * JavaScript functions for all tag administration stuff\n *\n * This Source Code Form is subject to the terms of the Mozilla Public License,\n * v. 2.0. If a copy of the MPL was not distributed with this file, You can\n * obtain one at http://mozilla.org/MPL/2.0/.\n *\n * @category phpMyFAQ\n * @package A... | [
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
0,
1,
0,
1,
0,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [72, 58, 67], "buggy_code_start_loc": [72, 32, 41], "filenames": ["phpmyfaq/admin/ajax.tags.php", "phpmyfaq/admin/assets/js/tags.js", "phpmyfaq/admin/tags.main.php"], "fixing_code_end_loc": [79, 59, 67], "fixing_code_start_loc": [73, 32, 41], "message": "In phpMyFaq before 2.9.9, there is XSS in ... | 1,440 |
Determine whether the {function_name} code is vulnerable or not. | [
"/**\n * JavaScript functions for all tag administration stuff\n *\n * This Source Code Form is subject to the terms of the Mozilla Public License,\n * v. 2.0. If a copy of the MPL was not distributed with this file, You can\n * obtain one at http://mozilla.org/MPL/2.0/.\n *\n * @category phpMyFAQ\n * @package A... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [72, 58, 67], "buggy_code_start_loc": [72, 32, 41], "filenames": ["phpmyfaq/admin/ajax.tags.php", "phpmyfaq/admin/assets/js/tags.js", "phpmyfaq/admin/tags.main.php"], "fixing_code_end_loc": [79, 59, 67], "fixing_code_start_loc": [73, 32, 41], "message": "In phpMyFaq before 2.9.9, there is XSS in ... | 1,440 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * Frontend for Backup and Restore.\n *\n * PHP Version 5.5\n *\n * This Source Code Form is subject to the terms of the Mozilla Public License,\n * v. 2.0. If a copy of the MPL was not distributed with this file, You can\n * obtain one at http://mozilla.org/MPL/2.0/.\n *\n * @category phpMyFAQ\n *\n ... | [
1,
1,
1,
0,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [72, 58, 67], "buggy_code_start_loc": [72, 32, 41], "filenames": ["phpmyfaq/admin/ajax.tags.php", "phpmyfaq/admin/assets/js/tags.js", "phpmyfaq/admin/tags.main.php"], "fixing_code_end_loc": [79, 59, 67], "fixing_code_start_loc": [73, 32, 41], "message": "In phpMyFaq before 2.9.9, there is XSS in ... | 1,440 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * Frontend for Backup and Restore.\n *\n * PHP Version 5.5\n *\n * This Source Code Form is subject to the terms of the Mozilla Public License,\n * v. 2.0. If a copy of the MPL was not distributed with this file, You can\n * obtain one at http://mozilla.org/MPL/2.0/.\n *\n * @category phpMyFAQ\n *\n ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [72, 58, 67], "buggy_code_start_loc": [72, 32, 41], "filenames": ["phpmyfaq/admin/ajax.tags.php", "phpmyfaq/admin/assets/js/tags.js", "phpmyfaq/admin/tags.main.php"], "fixing_code_end_loc": [79, 59, 67], "fixing_code_start_loc": [73, 32, 41], "message": "In phpMyFaq before 2.9.9, there is XSS in ... | 1,440 |
Determine whether the {function_name} code is vulnerable or not. | [
"#include \"gif.h\"",
"",
"\nstatic bool updateGCB(GifInfo *info, uint_fast32_t *lastAllocatedGCBIndex) {\n\tif (*lastAllocatedGCBIndex < info->gifFilePtr->ImageCount) {\n\t\tGraphicsControlBlock *tmpInfos = reallocarray(info->controlBlock, info->gifFilePtr->ImageCount + 1, sizeof(GraphicsControlBlock));\n\t\ti... | [
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [186], "buggy_code_start_loc": [1], "filenames": ["android-gif-drawable/src/main/c/decoding.c"], "fixing_code_end_loc": [191], "fixing_code_start_loc": [2], "message": "decoding.c in android-gif-drawable before 1.2.24 does not limit the maximum length of a comment, leading to denial of service.",... | 1,441 |
Determine whether the {function_name} code is vulnerable or not. | [
"#include \"gif.h\"",
"#define COMMENT_LENGTH_MAX 2048",
"\nstatic bool updateGCB(GifInfo *info, uint_fast32_t *lastAllocatedGCBIndex) {\n\tif (*lastAllocatedGCBIndex < info->gifFilePtr->ImageCount) {\n\t\tGraphicsControlBlock *tmpInfos = reallocarray(info->controlBlock, info->gifFilePtr->ImageCount + 1, sizeof... | [
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": [186], "buggy_code_start_loc": [1], "filenames": ["android-gif-drawable/src/main/c/decoding.c"], "fixing_code_end_loc": [191], "fixing_code_start_loc": [2], "message": "decoding.c in android-gif-drawable before 1.2.24 does not limit the maximum length of a comment, leading to denial of service.",... | 1,441 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n +----------------------------------------------------------------------+\n | HipHop for PHP |\n +----------------------------------------------------------------------+\n | Copyright (c) 2010-2016 Facebook, Inc. (http://www.facebook.com) |\n ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [464, 301, 108, 40], "buggy_code_start_loc": [460, 300, 108, 40], "filenames": ["hphp/runtime/ext/mcrypt/ext_mcrypt.cpp", "hphp/runtime/ext/mcrypt/ext_mcrypt.php", "hphp/test/slow/ext_mcrypt/ext_mcrypt.php", "hphp/test/slow/ext_mcrypt/ext_mcrypt.php.expectf"], "fixing_code_end_loc": [464, 301, 11... | 1,442 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n +----------------------------------------------------------------------+\n | HipHop for PHP |\n +----------------------------------------------------------------------+\n | Copyright (c) 2010-2016 Facebook, Inc. (http://www.facebook.com) |\n ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [464, 301, 108, 40], "buggy_code_start_loc": [460, 300, 108, 40], "filenames": ["hphp/runtime/ext/mcrypt/ext_mcrypt.cpp", "hphp/runtime/ext/mcrypt/ext_mcrypt.php", "hphp/test/slow/ext_mcrypt/ext_mcrypt.php", "hphp/test/slow/ext_mcrypt/ext_mcrypt.php.expectf"], "fixing_code_end_loc": [464, 301, 11... | 1,442 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?hh",
"/**\n * Encrypts/decrypts data in CBC mode\n *\n * @param string $cipher -\n * @param string $key -\n * @param string $data -\n * @param int $mode -\n * @param string $iv -\n *\n * @return string -\n */\n<<__Native>>\nfunction mcrypt_cbc(string $cipher,\n string $key,\n ... | [
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
] | PreciseBugs | {"buggy_code_end_loc": [464, 301, 108, 40], "buggy_code_start_loc": [460, 300, 108, 40], "filenames": ["hphp/runtime/ext/mcrypt/ext_mcrypt.cpp", "hphp/runtime/ext/mcrypt/ext_mcrypt.php", "hphp/test/slow/ext_mcrypt/ext_mcrypt.php", "hphp/test/slow/ext_mcrypt/ext_mcrypt.php.expectf"], "fixing_code_end_loc": [464, 301, 11... | 1,442 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?hh",
"/**\n * Encrypts/decrypts data in CBC mode\n *\n * @param string $cipher -\n * @param string $key -\n * @param string $data -\n * @param int $mode -\n * @param string $iv -\n *\n * @return string -\n */\n<<__Native>>\nfunction mcrypt_cbc(string $cipher,\n string $key,\n ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [464, 301, 108, 40], "buggy_code_start_loc": [460, 300, 108, 40], "filenames": ["hphp/runtime/ext/mcrypt/ext_mcrypt.cpp", "hphp/runtime/ext/mcrypt/ext_mcrypt.php", "hphp/test/slow/ext_mcrypt/ext_mcrypt.php", "hphp/test/slow/ext_mcrypt/ext_mcrypt.php.expectf"], "fixing_code_end_loc": [464, 301, 11... | 1,442 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"function VS($x, $y) {\n var_dump($x === $y);\n if ($x !== $y) { echo \"Failed: $y\\n\"; echo \"Got: $x\\n\";\n var_dump(debug_backtrace()); }\n}\nfunction VERIFY($x) { VS($x != false, true); }",
"//////////////////////////////////////////////////////////////////////",
"$td = mcry... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [464, 301, 108, 40], "buggy_code_start_loc": [460, 300, 108, 40], "filenames": ["hphp/runtime/ext/mcrypt/ext_mcrypt.cpp", "hphp/runtime/ext/mcrypt/ext_mcrypt.php", "hphp/test/slow/ext_mcrypt/ext_mcrypt.php", "hphp/test/slow/ext_mcrypt/ext_mcrypt.php.expectf"], "fixing_code_end_loc": [464, 301, 11... | 1,442 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"function VS($x, $y) {\n var_dump($x === $y);\n if ($x !== $y) { echo \"Failed: $y\\n\"; echo \"Got: $x\\n\";\n var_dump(debug_backtrace()); }\n}\nfunction VERIFY($x) { VS($x != false, true); }",
"//////////////////////////////////////////////////////////////////////",
"$td = mcry... | [
1,
1,
1,
1,
1,
1,
1,
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": [464, 301, 108, 40], "buggy_code_start_loc": [460, 300, 108, 40], "filenames": ["hphp/runtime/ext/mcrypt/ext_mcrypt.cpp", "hphp/runtime/ext/mcrypt/ext_mcrypt.php", "hphp/test/slow/ext_mcrypt/ext_mcrypt.php", "hphp/test/slow/ext_mcrypt/ext_mcrypt.php.expectf"], "fixing_code_end_loc": [464, 301, 11... | 1,442 |
Determine whether the {function_name} code is vulnerable or not. | [
"bool(true)\nbool(true)\nbool(true)\nbool(true)\nbool(true)\nbool(true)\nbool(true)\nbool(true)\nbool(true)\nbool(true)\nbool(true)\nbool(true)\nbool(true)\nbool(true)\nbool(true)",
"Deprecated: Function mcrypt_cbc() is deprecated in %s/test/slow/ext_mcrypt/ext_mcrypt.php on line 60",
"Deprecated: Function mcry... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [464, 301, 108, 40], "buggy_code_start_loc": [460, 300, 108, 40], "filenames": ["hphp/runtime/ext/mcrypt/ext_mcrypt.cpp", "hphp/runtime/ext/mcrypt/ext_mcrypt.php", "hphp/test/slow/ext_mcrypt/ext_mcrypt.php", "hphp/test/slow/ext_mcrypt/ext_mcrypt.php.expectf"], "fixing_code_end_loc": [464, 301, 11... | 1,442 |
Determine whether the {function_name} code is vulnerable or not. | [
"bool(true)\nbool(true)\nbool(true)\nbool(true)\nbool(true)\nbool(true)\nbool(true)\nbool(true)\nbool(true)\nbool(true)\nbool(true)\nbool(true)\nbool(true)\nbool(true)\nbool(true)",
"Deprecated: Function mcrypt_cbc() is deprecated in %s/test/slow/ext_mcrypt/ext_mcrypt.php on line 60",
"Deprecated: Function mcry... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [464, 301, 108, 40], "buggy_code_start_loc": [460, 300, 108, 40], "filenames": ["hphp/runtime/ext/mcrypt/ext_mcrypt.cpp", "hphp/runtime/ext/mcrypt/ext_mcrypt.php", "hphp/test/slow/ext_mcrypt/ext_mcrypt.php", "hphp/test/slow/ext_mcrypt/ext_mcrypt.php.expectf"], "fixing_code_end_loc": [464, 301, 11... | 1,442 |
Determine whether the {function_name} code is vulnerable or not. | [
"use std::collections::HashMap;\nuse std::fmt;\nuse std::iter;\nuse std::result;\nuse std::sync::Arc;",
"use regex_syntax::hir::{self, Hir};\nuse regex_syntax::is_word_byte;\nuse regex_syntax::utf8::{Utf8Range, Utf8Sequence, Utf8Sequences};",
"use crate::prog::{\n EmptyLook, Inst, InstBytes, InstChar, InstEm... | [
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [500, 152], "buggy_code_start_loc": [40, 152], "filenames": ["src/compile.rs", "tests/test_default.rs"], "fixing_code_end_loc": [523, 223], "fixing_code_start_loc": [41, 153], "message": "regex is an implementation of regular expressions for the Rust language. The regex crate features built-in mi... | 1,443 |
Determine whether the {function_name} code is vulnerable or not. | [
"use std::collections::HashMap;\nuse std::fmt;\nuse std::iter;\nuse std::result;\nuse std::sync::Arc;",
"use regex_syntax::hir::{self, Hir};\nuse regex_syntax::is_word_byte;\nuse regex_syntax::utf8::{Utf8Range, Utf8Sequence, Utf8Sequences};",
"use crate::prog::{\n EmptyLook, Inst, InstBytes, InstChar, InstEm... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [500, 152], "buggy_code_start_loc": [40, 152], "filenames": ["src/compile.rs", "tests/test_default.rs"], "fixing_code_end_loc": [523, 223], "fixing_code_start_loc": [41, 153], "message": "regex is an implementation of regular expressions for the Rust language. The regex crate features built-in mi... | 1,443 |
Determine whether the {function_name} code is vulnerable or not. | [
"#![cfg_attr(feature = \"pattern\", feature(pattern))]",
"use regex;",
"// Due to macro scoping rules, this definition only applies for the modules\n// defined below. Effectively, it allows us to use the same tests for both\n// native and dynamic regexes.\n//\n// This is also used to test the various matching e... | [
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": [500, 152], "buggy_code_start_loc": [40, 152], "filenames": ["src/compile.rs", "tests/test_default.rs"], "fixing_code_end_loc": [523, 223], "fixing_code_start_loc": [41, 153], "message": "regex is an implementation of regular expressions for the Rust language. The regex crate features built-in mi... | 1,443 |
Determine whether the {function_name} code is vulnerable or not. | [
"#![cfg_attr(feature = \"pattern\", feature(pattern))]",
"use regex;",
"// Due to macro scoping rules, this definition only applies for the modules\n// defined below. Effectively, it allows us to use the same tests for both\n// native and dynamic regexes.\n//\n// This is also used to test the various matching e... | [
1,
1,
1,
1,
1,
1,
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": [500, 152], "buggy_code_start_loc": [40, 152], "filenames": ["src/compile.rs", "tests/test_default.rs"], "fixing_code_end_loc": [523, 223], "fixing_code_start_loc": [41, 153], "message": "regex is an implementation of regular expressions for the Rust language. The regex crate features built-in mi... | 1,443 |
Determine whether the {function_name} code is vulnerable or not. | [
"#! /usr/bin/python -Es\n# Authors: Dan Walsh <dwalsh@redhat.com>\n# Authors: Thomas Liu <tliu@fedoraproject.org>\n# Authors: Josh Cogliati\n#\n# Copyright (C) 2009,2010 Red Hat\n# see file 'COPYING' for use and warranty information\n#\n# This program is free software; you can redistribute it and/or\n# modify it u... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [478], "buggy_code_start_loc": [474], "filenames": ["policycoreutils/sandbox/sandbox"], "fixing_code_end_loc": [483], "fixing_code_start_loc": [474], "message": "SELinux policycoreutils allows local users to execute arbitrary commands outside of the sandbox via a crafted TIOCSTI ioctl call.", "ot... | 1,444 |
Determine whether the {function_name} code is vulnerable or not. | [
"#! /usr/bin/python -Es\n# Authors: Dan Walsh <dwalsh@redhat.com>\n# Authors: Thomas Liu <tliu@fedoraproject.org>\n# Authors: Josh Cogliati\n#\n# Copyright (C) 2009,2010 Red Hat\n# see file 'COPYING' for use and warranty information\n#\n# This program is free software; you can redistribute it and/or\n# modify it u... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [478], "buggy_code_start_loc": [474], "filenames": ["policycoreutils/sandbox/sandbox"], "fixing_code_end_loc": [483], "fixing_code_start_loc": [474], "message": "SELinux policycoreutils allows local users to execute arbitrary commands outside of the sandbox via a crafted TIOCSTI ioctl call.", "ot... | 1,444 |
Determine whether the {function_name} code is vulnerable or not. | [
"package org.airsonic.player.controller;",
"import de.triology.recaptchav2java.ReCaptcha;\nimport org.airsonic.player.domain.User;\nimport org.airsonic.player.service.SecurityService;\nimport org.airsonic.player.service.SettingsService;",
"import org.apache.commons.lang.RandomStringUtils;",
"import org.apache... | [
1,
1,
0,
1,
1,
0,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [73], "buggy_code_start_loc": [7], "filenames": ["airsonic-main/src/main/java/org/airsonic/player/controller/RecoverController.java"], "fixing_code_end_loc": [83], "fixing_code_start_loc": [6], "message": "In Airsonic 10.2.1, RecoverController.java generates passwords via org.apache.commons.lang.... | 1,445 |
Determine whether the {function_name} code is vulnerable or not. | [
"package org.airsonic.player.controller;",
"import de.triology.recaptchav2java.ReCaptcha;\nimport org.airsonic.player.domain.User;\nimport org.airsonic.player.service.SecurityService;\nimport org.airsonic.player.service.SettingsService;",
"",
"import org.apache.commons.lang.StringUtils;\nimport org.slf4j.Logg... | [
1,
1,
1,
1,
1,
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], "buggy_code_start_loc": [7], "filenames": ["airsonic-main/src/main/java/org/airsonic/player/controller/RecoverController.java"], "fixing_code_end_loc": [83], "fixing_code_start_loc": [6], "message": "In Airsonic 10.2.1, RecoverController.java generates passwords via org.apache.commons.lang.... | 1,445 |
Determine whether the {function_name} code is vulnerable or not. | [
"'use strict'\n",
"var child = require('child_process')",
"",
"function GitFn (version, options) {\n this._version = version\n this._options = {\n cwd: options.dir,\n env: process.env,\n setsid: false,\n stdio: [0, 1, 2]",
" }\n}",
"module.exports = GitFn",
"",
"GitFn.prototype = {\n t... | [
1,
0,
1,
0,
1,
0,
1,
0,
1,
0
] | PreciseBugs | {"buggy_code_end_loc": [32, 313], "buggy_code_start_loc": [3, 312], "filenames": ["lib/gitfn.js", "test/test.js"], "fixing_code_end_loc": [45, 323], "fixing_code_start_loc": [3, 312], "message": "versionn, software for changing version information across multiple files, has a command injection vulnerability in all vers... | 1,446 |
Determine whether the {function_name} code is vulnerable or not. | [
"'use strict'\n",
"const child = require('child_process')\nconst semver = require('semver')",
"",
"const assertVersionValid = version => {\n if (!semver.valid(version)) {\n throw new Error('version is invalid')",
" }\n}",
"",
"",
"const exec = (cmd, options, cb) => child.exec(cmd, options, cb)",
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [32, 313], "buggy_code_start_loc": [3, 312], "filenames": ["lib/gitfn.js", "test/test.js"], "fixing_code_end_loc": [45, 323], "fixing_code_start_loc": [3, 312], "message": "versionn, software for changing version information across multiple files, has a command injection vulnerability in all vers... | 1,446 |
Determine whether the {function_name} code is vulnerable or not. | [
"/**\n * versionn\n *\n * @copyright (C) 2014- commenthol\n * @license MIT\n */",
"'use strict'",
"/* global describe, it, before, beforeEach */",
"const assert = require('assert')\nconst path = require('path')\nconst async = require('asyncc')\nconst sh = require('shelljs')",
"const Version = require('../li... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [32, 313], "buggy_code_start_loc": [3, 312], "filenames": ["lib/gitfn.js", "test/test.js"], "fixing_code_end_loc": [45, 323], "fixing_code_start_loc": [3, 312], "message": "versionn, software for changing version information across multiple files, has a command injection vulnerability in all vers... | 1,446 |
Determine whether the {function_name} code is vulnerable or not. | [
"/**\n * versionn\n *\n * @copyright (C) 2014- commenthol\n * @license MIT\n */",
"'use strict'",
"/* global describe, it, before, beforeEach */",
"const assert = require('assert')\nconst path = require('path')\nconst async = require('asyncc')\nconst sh = require('shelljs')",
"const Version = require('../li... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [32, 313], "buggy_code_start_loc": [3, 312], "filenames": ["lib/gitfn.js", "test/test.js"], "fixing_code_end_loc": [45, 323], "fixing_code_start_loc": [3, 312], "message": "versionn, software for changing version information across multiple files, has a command injection vulnerability in all vers... | 1,446 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php defined('SYSPATH') or die('No direct script access.');\n/**\n * This controller handles login requests.\n *\n * PHP version 5\n * LICENSE: This source file is subject to LGPL license\n * that is available through the world-wide-web at the following URI:\n * http://www.gnu.org/copyleft/lesser.html\n * @author... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | PreciseBugs | {"buggy_code_end_loc": [875, 62, 362], "buggy_code_start_loc": [323, 62, 362], "filenames": ["application/controllers/login.php", "application/hooks/2_settings.php", "application/models/user.php"], "fixing_code_end_loc": [870, 72, 398], "fixing_code_start_loc": [323, 63, 363], "message": "Ushahidi before 2.6.1 has insu... | 1,447 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php defined('SYSPATH') or die('No direct script access.');\n/**\n * This controller handles login requests.\n *\n * PHP version 5\n * LICENSE: This source file is subject to LGPL license\n * that is available through the world-wide-web at the following URI:\n * http://www.gnu.org/copyleft/lesser.html\n * @author... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [875, 62, 362], "buggy_code_start_loc": [323, 62, 362], "filenames": ["application/controllers/login.php", "application/hooks/2_settings.php", "application/models/user.php"], "fixing_code_end_loc": [870, 72, 398], "fixing_code_start_loc": [323, 63, 363], "message": "Ushahidi before 2.6.1 has insu... | 1,447 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php defined('SYSPATH') or die('No direct script access.');",
"/**\n* Default Settings From Database\n*/",
"// Retrieve Cached Settings",
"$cache = Cache::instance();\n$subdomain = Kohana::config('settings.subdomain');\n$settings = $cache->get($subdomain.'_settings');\nif ( ! $settings OR ! is_array($settin... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0
] | PreciseBugs | {"buggy_code_end_loc": [875, 62, 362], "buggy_code_start_loc": [323, 62, 362], "filenames": ["application/controllers/login.php", "application/hooks/2_settings.php", "application/models/user.php"], "fixing_code_end_loc": [870, 72, 398], "fixing_code_start_loc": [323, 63, 363], "message": "Ushahidi before 2.6.1 has insu... | 1,447 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php defined('SYSPATH') or die('No direct script access.');",
"/**\n* Default Settings From Database\n*/",
"// Retrieve Cached Settings",
"$cache = Cache::instance();\n$subdomain = Kohana::config('settings.subdomain');\n$settings = $cache->get($subdomain.'_settings');\nif ( ! $settings OR ! is_array($settin... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [875, 62, 362], "buggy_code_start_loc": [323, 62, 362], "filenames": ["application/controllers/login.php", "application/hooks/2_settings.php", "application/models/user.php"], "fixing_code_end_loc": [870, 72, 398], "fixing_code_start_loc": [323, 63, 363], "message": "Ushahidi before 2.6.1 has insu... | 1,447 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.