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.
[ "# frozen_string_literal: true", "class DiscourseReactions::CustomReactionsController < ApplicationController\n MAX_USERS_COUNT = 26", " requires_plugin DiscourseReactions::PLUGIN_NAME", " before_action :ensure_logged_in, except: [:post_reactions_users]", " def toggle\n post = fetch_post_from_params"...
[ 1, 1, 1, 1, 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, 0, 1, 1, 0, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [251, 6, 414], "buggy_code_start_loc": [141, 5, 11], "filenames": ["app/controllers/discourse_reactions/custom_reactions_controller.rb", "plugin.rb", "spec/requests/custom_reactions_controller_spec.rb"], "fixing_code_end_loc": [254, 6, 449], "fixing_code_start_loc": [141, 5, 12], "message": "Disc...
1,325
Determine whether the {function_name} code is vulnerable or not.
[ "# frozen_string_literal: true", "class DiscourseReactions::CustomReactionsController < ApplicationController\n MAX_USERS_COUNT = 26", " requires_plugin DiscourseReactions::PLUGIN_NAME", " before_action :ensure_logged_in, except: [:post_reactions_users]", " def toggle\n post = fetch_post_from_params"...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [251, 6, 414], "buggy_code_start_loc": [141, 5, 11], "filenames": ["app/controllers/discourse_reactions/custom_reactions_controller.rb", "plugin.rb", "spec/requests/custom_reactions_controller_spec.rb"], "fixing_code_end_loc": [254, 6, 449], "fixing_code_start_loc": [141, 5, 12], "message": "Disc...
1,325
Determine whether the {function_name} code is vulnerable or not.
[ "# frozen_string_literal: true", "# name: discourse-reactions\n# about: Allows users to react with emojis to a post", "# version: 0.2", "# author: Ahmed Gagan, Rafael dos Santos Silva, Kris Aubuchon, Joffrey Jaffeux, Kris Kotlarek, Jordan Vidrine\n# url: https://github.com/discourse/discourse-reactions\n# tra...
[ 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": [251, 6, 414], "buggy_code_start_loc": [141, 5, 11], "filenames": ["app/controllers/discourse_reactions/custom_reactions_controller.rb", "plugin.rb", "spec/requests/custom_reactions_controller_spec.rb"], "fixing_code_end_loc": [254, 6, 449], "fixing_code_start_loc": [141, 5, 12], "message": "Disc...
1,325
Determine whether the {function_name} code is vulnerable or not.
[ "# frozen_string_literal: true", "# name: discourse-reactions\n# about: Allows users to react with emojis to a post", "# version: 0.3", "# author: Ahmed Gagan, Rafael dos Santos Silva, Kris Aubuchon, Joffrey Jaffeux, Kris Kotlarek, Jordan Vidrine\n# url: https://github.com/discourse/discourse-reactions\n# tra...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [251, 6, 414], "buggy_code_start_loc": [141, 5, 11], "filenames": ["app/controllers/discourse_reactions/custom_reactions_controller.rb", "plugin.rb", "spec/requests/custom_reactions_controller_spec.rb"], "fixing_code_end_loc": [254, 6, 449], "fixing_code_start_loc": [141, 5, 12], "message": "Disc...
1,325
Determine whether the {function_name} code is vulnerable or not.
[ "# frozen_string_literal: true", "require \"rails_helper\"", "describe DiscourseReactions::CustomReactionsController do\n fab!(:post_1) { Fabricate(:post) }\n fab!(:user_1) { Fabricate(:user) }\n fab!(:user_2) { Fabricate(:user) }\n fab!(:user_3) { Fabricate(:user) }\n fab!(:user_4) { Fabricate(:user) }\n ...
[ 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 0, 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": [251, 6, 414], "buggy_code_start_loc": [141, 5, 11], "filenames": ["app/controllers/discourse_reactions/custom_reactions_controller.rb", "plugin.rb", "spec/requests/custom_reactions_controller_spec.rb"], "fixing_code_end_loc": [254, 6, 449], "fixing_code_start_loc": [141, 5, 12], "message": "Disc...
1,325
Determine whether the {function_name} code is vulnerable or not.
[ "# frozen_string_literal: true", "require \"rails_helper\"", "describe DiscourseReactions::CustomReactionsController do\n fab!(:post_1) { Fabricate(:post) }\n fab!(:user_1) { Fabricate(:user) }\n fab!(:user_2) { Fabricate(:user) }\n fab!(:user_3) { Fabricate(:user) }\n fab!(:user_4) { Fabricate(:user) }\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": [251, 6, 414], "buggy_code_start_loc": [141, 5, 11], "filenames": ["app/controllers/discourse_reactions/custom_reactions_controller.rb", "plugin.rb", "spec/requests/custom_reactions_controller_spec.rb"], "fixing_code_end_loc": [254, 6, 449], "fixing_code_start_loc": [141, 5, 12], "message": "Disc...
1,325
Determine whether the {function_name} code is vulnerable or not.
[ "<?php\n/*\n\tFusionPBX\n\tVersion: MPL 1.1", "\tThe contents of this file are subject to the Mozilla Public License Version\n\t1.1 (the \"License\"); you may not use this file except in compliance with\n\tthe License. You may obtain a copy of the License at\n\thttp://www.mozilla.org/MPL/", "\tSoftware distribu...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
PreciseBugs
{"buggy_code_end_loc": [350], "buggy_code_start_loc": [349], "filenames": ["app/contacts/contact_edit.php"], "fixing_code_end_loc": [350], "fixing_code_start_loc": [349], "message": "In FusionPBX up to 4.5.7, the file app\\contacts\\contact_edit.php uses an unsanitized \"query_string\" variable coming from the URL, whi...
1,326
Determine whether the {function_name} code is vulnerable or not.
[ "<?php\n/*\n\tFusionPBX\n\tVersion: MPL 1.1", "\tThe contents of this file are subject to the Mozilla Public License Version\n\t1.1 (the \"License\"); you may not use this file except in compliance with\n\tthe License. You may obtain a copy of the License at\n\thttp://www.mozilla.org/MPL/", "\tSoftware distribu...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [350], "buggy_code_start_loc": [349], "filenames": ["app/contacts/contact_edit.php"], "fixing_code_end_loc": [350], "fixing_code_start_loc": [349], "message": "In FusionPBX up to 4.5.7, the file app\\contacts\\contact_edit.php uses an unsanitized \"query_string\" variable coming from the URL, whi...
1,326
Determine whether the {function_name} code is vulnerable or not.
[ "/* mqtt_client.c\n *\n * Copyright (C) 2006-2021 wolfSSL Inc.\n *\n * This file is part of wolfMQTT.\n *\n * wolfMQTT 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, o...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [911], "buggy_code_start_loc": [909], "filenames": ["src/mqtt_client.c"], "fixing_code_end_loc": [912], "fixing_code_start_loc": [909], "message": "wolfSSL wolfMQTT 1.9 has a heap-based buffer overflow in MqttClient_DecodePacket (called from MqttClient_WaitType and MqttClient_Connect).", "other":...
1,327
Determine whether the {function_name} code is vulnerable or not.
[ "/* mqtt_client.c\n *\n * Copyright (C) 2006-2021 wolfSSL Inc.\n *\n * This file is part of wolfMQTT.\n *\n * wolfMQTT 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, o...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [911], "buggy_code_start_loc": [909], "filenames": ["src/mqtt_client.c"], "fixing_code_end_loc": [912], "fixing_code_start_loc": [909], "message": "wolfSSL wolfMQTT 1.9 has a heap-based buffer overflow in MqttClient_DecodePacket (called from MqttClient_WaitType and MqttClient_Connect).", "other":...
1,327
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd.\n *\n * Author: zccrs <zccrs@live.com>\n *\n * Maintainer: zccrs <zhangjide@deepin.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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [309, 507, 101, 60, 135], "buggy_code_start_loc": [306, 102, 101, 58, 105], "filenames": ["app/src/corelib/ddevicediskinfo.cpp", "app/src/corelib/helper.cpp", "app/src/corelib/helper.h", "app/src/fixboot/bootdoctor.cpp", "app/src/main.cpp"], "fixing_code_end_loc": [309, 509, 104, 59, 119], "fixin...
1,328
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd.\n *\n * Author: zccrs <zccrs@live.com>\n *\n * Maintainer: zccrs <zhangjide@deepin.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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [309, 507, 101, 60, 135], "buggy_code_start_loc": [306, 102, 101, 58, 105], "filenames": ["app/src/corelib/ddevicediskinfo.cpp", "app/src/corelib/helper.cpp", "app/src/corelib/helper.h", "app/src/fixboot/bootdoctor.cpp", "app/src/main.cpp"], "fixing_code_end_loc": [309, 509, 104, 59, 119], "fixin...
1,328
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd.\n *\n * Author: zccrs <zccrs@live.com>\n *\n * Maintainer: zccrs <zhangjide@deepin.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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PreciseBugs
{"buggy_code_end_loc": [309, 507, 101, 60, 135], "buggy_code_start_loc": [306, 102, 101, 58, 105], "filenames": ["app/src/corelib/ddevicediskinfo.cpp", "app/src/corelib/helper.cpp", "app/src/corelib/helper.h", "app/src/fixboot/bootdoctor.cpp", "app/src/main.cpp"], "fixing_code_end_loc": [309, 509, 104, 59, 119], "fixin...
1,328
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd.\n *\n * Author: zccrs <zccrs@live.com>\n *\n * Maintainer: zccrs <zhangjide@deepin.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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [309, 507, 101, 60, 135], "buggy_code_start_loc": [306, 102, 101, 58, 105], "filenames": ["app/src/corelib/ddevicediskinfo.cpp", "app/src/corelib/helper.cpp", "app/src/corelib/helper.h", "app/src/fixboot/bootdoctor.cpp", "app/src/main.cpp"], "fixing_code_end_loc": [309, 509, 104, 59, 119], "fixin...
1,328
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd.\n *\n * Author: zccrs <zccrs@live.com>\n *\n * Maintainer: zccrs <zhangjide@deepin.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...
[ 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 ]
PreciseBugs
{"buggy_code_end_loc": [309, 507, 101, 60, 135], "buggy_code_start_loc": [306, 102, 101, 58, 105], "filenames": ["app/src/corelib/ddevicediskinfo.cpp", "app/src/corelib/helper.cpp", "app/src/corelib/helper.h", "app/src/fixboot/bootdoctor.cpp", "app/src/main.cpp"], "fixing_code_end_loc": [309, 509, 104, 59, 119], "fixin...
1,328
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd.\n *\n * Author: zccrs <zccrs@live.com>\n *\n * Maintainer: zccrs <zhangjide@deepin.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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [309, 507, 101, 60, 135], "buggy_code_start_loc": [306, 102, 101, 58, 105], "filenames": ["app/src/corelib/ddevicediskinfo.cpp", "app/src/corelib/helper.cpp", "app/src/corelib/helper.h", "app/src/fixboot/bootdoctor.cpp", "app/src/main.cpp"], "fixing_code_end_loc": [309, 509, 104, 59, 119], "fixin...
1,328
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd.\n *\n * Author: zccrs <zccrs@live.com>\n *\n * Maintainer: zccrs <zhangjide@deepin.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...
[ 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 ]
PreciseBugs
{"buggy_code_end_loc": [309, 507, 101, 60, 135], "buggy_code_start_loc": [306, 102, 101, 58, 105], "filenames": ["app/src/corelib/ddevicediskinfo.cpp", "app/src/corelib/helper.cpp", "app/src/corelib/helper.h", "app/src/fixboot/bootdoctor.cpp", "app/src/main.cpp"], "fixing_code_end_loc": [309, 509, 104, 59, 119], "fixin...
1,328
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd.\n *\n * Author: zccrs <zccrs@live.com>\n *\n * Maintainer: zccrs <zhangjide@deepin.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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [309, 507, 101, 60, 135], "buggy_code_start_loc": [306, 102, 101, 58, 105], "filenames": ["app/src/corelib/ddevicediskinfo.cpp", "app/src/corelib/helper.cpp", "app/src/corelib/helper.h", "app/src/fixboot/bootdoctor.cpp", "app/src/main.cpp"], "fixing_code_end_loc": [309, 509, 104, 59, 119], "fixin...
1,328
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd.\n *\n * Author: zccrs <zccrs@live.com>\n *\n * Maintainer: zccrs <zhangjide@deepin.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...
[ 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, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PreciseBugs
{"buggy_code_end_loc": [309, 507, 101, 60, 135], "buggy_code_start_loc": [306, 102, 101, 58, 105], "filenames": ["app/src/corelib/ddevicediskinfo.cpp", "app/src/corelib/helper.cpp", "app/src/corelib/helper.h", "app/src/fixboot/bootdoctor.cpp", "app/src/main.cpp"], "fixing_code_end_loc": [309, 509, 104, 59, 119], "fixin...
1,328
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd.\n *\n * Author: zccrs <zccrs@live.com>\n *\n * Maintainer: zccrs <zhangjide@deepin.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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [309, 507, 101, 60, 135], "buggy_code_start_loc": [306, 102, 101, 58, 105], "filenames": ["app/src/corelib/ddevicediskinfo.cpp", "app/src/corelib/helper.cpp", "app/src/corelib/helper.h", "app/src/fixboot/bootdoctor.cpp", "app/src/main.cpp"], "fixing_code_end_loc": [309, 509, 104, 59, 119], "fixin...
1,328
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * \"Real\" compatible demuxer.\n * Copyright (c) 2000, 2001 Fabrice Bellard\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * 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, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PreciseBugs
{"buggy_code_end_loc": [526], "buggy_code_start_loc": [525], "filenames": ["libavformat/rmdec.c"], "fixing_code_end_loc": [526], "fixing_code_start_loc": [525], "message": "FFmpeg before commit a7e032a277452366771951e29fd0bf2bd5c029f0 contains a use-after-free vulnerability in the realmedia demuxer that can result in v...
1,329
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * \"Real\" compatible demuxer.\n * Copyright (c) 2000, 2001 Fabrice Bellard\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * v...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PreciseBugs
{"buggy_code_end_loc": [526], "buggy_code_start_loc": [525], "filenames": ["libavformat/rmdec.c"], "fixing_code_end_loc": [526], "fixing_code_start_loc": [525], "message": "FFmpeg before commit a7e032a277452366771951e29fd0bf2bd5c029f0 contains a use-after-free vulnerability in the realmedia demuxer that can result in v...
1,329
Determine whether the {function_name} code is vulnerable or not.
[ "<?php \n", "$lastOperatorChanged = false;\n$lastOperatorId = false;", "", "", "foreach ($messages as $msg ) : if ($msg->user_id > -1 || $msg->user_id == -2) : ", "", "if ($lastOperatorId !== false && $lastOperatorId != $msg->user_id) {\n $lastOperatorChanged = true;\n} else {\n $lastOperatorChang...
[ 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0 ]
PreciseBugs
{"buggy_code_end_loc": [33, 46, 2, 16, 186, 6], "buggy_code_start_loc": [1, 1, 1, 1, 185, 1], "filenames": ["lhc_web/design/defaulttheme/tpl/lhchat/lists/msg_obj_list.tpl.php", "lhc_web/design/defaulttheme/tpl/lhchat/lists/msg_obj_list_admin.tpl.php", "lhc_web/design/defaulttheme/tpl/lhchat/messagelist/plain.tpl.php", ...
1,330
Determine whether the {function_name} code is vulnerable or not.
[ "<?php", "$lastOperatorChanged = false;\n$lastOperatorId = false;", "$lastOperatorNick = '';", "", "$messagesStats = array(\n 'total_messages' => count($messages),\n 'counter_messages' => 0,\n);", "", "foreach ($messages as $msg) :\n $msg = $msg->getState();\n $messagesStats['counter_message...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [33, 46, 2, 16, 186, 6], "buggy_code_start_loc": [1, 1, 1, 1, 185, 1], "filenames": ["lhc_web/design/defaulttheme/tpl/lhchat/lists/msg_obj_list.tpl.php", "lhc_web/design/defaulttheme/tpl/lhchat/lists/msg_obj_list_admin.tpl.php", "lhc_web/design/defaulttheme/tpl/lhchat/messagelist/plain.tpl.php", ...
1,330
Determine whether the {function_name} code is vulnerable or not.
[ "<?php ", "$lastOperatorChanged = false;\n$lastOperatorId = false;\n$lastOperatorNick = '';", "foreach ($messages as $msg) : ", "if ($lastOperatorId !== false && ($lastOperatorId != $msg->user_id || $lastOperatorNick != $msg->name_support)) {\n $lastOperatorChanged = true;\n $lastOperatorNick = $msg->na...
[ 0, 0, 0, 0, 1, 0, 0, 1, 0, 0 ]
PreciseBugs
{"buggy_code_end_loc": [33, 46, 2, 16, 186, 6], "buggy_code_start_loc": [1, 1, 1, 1, 185, 1], "filenames": ["lhc_web/design/defaulttheme/tpl/lhchat/lists/msg_obj_list.tpl.php", "lhc_web/design/defaulttheme/tpl/lhchat/lists/msg_obj_list_admin.tpl.php", "lhc_web/design/defaulttheme/tpl/lhchat/messagelist/plain.tpl.php", ...
1,330
Determine whether the {function_name} code is vulnerable or not.
[ "<?php\n$messagesDefault = [];\nforeach ($messages as $msg) {\n $messagesDefault[] = $msg->getState();", "}", "$messages = $messagesDefault;", "?>", "<?php include(erLhcoreClassDesign::designtpl('lhchat/syncadmin.tpl.php'));?>" ]
[ 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [33, 46, 2, 16, 186, 6], "buggy_code_start_loc": [1, 1, 1, 1, 185, 1], "filenames": ["lhc_web/design/defaulttheme/tpl/lhchat/lists/msg_obj_list.tpl.php", "lhc_web/design/defaulttheme/tpl/lhchat/lists/msg_obj_list_admin.tpl.php", "lhc_web/design/defaulttheme/tpl/lhchat/messagelist/plain.tpl.php", ...
1,330
Determine whether the {function_name} code is vulnerable or not.
[ "<?php foreach ($messages as $msg ) : ?><?php if (!isset($remove_meta) || $remove_meta == false ) :?>[<?php echo date(erLhcoreClassModule::$dateDateHourFormat,$msg->time);?>] [<?php echo $msg->user_id == 0 ? htmlspecialchars($chat->nick) : htmlspecialchars($msg->name_support) ?>] <?php endif;?><?php echo erLhcoreCl...
[ 0 ]
PreciseBugs
{"buggy_code_end_loc": [33, 46, 2, 16, 186, 6], "buggy_code_start_loc": [1, 1, 1, 1, 185, 1], "filenames": ["lhc_web/design/defaulttheme/tpl/lhchat/lists/msg_obj_list.tpl.php", "lhc_web/design/defaulttheme/tpl/lhchat/lists/msg_obj_list_admin.tpl.php", "lhc_web/design/defaulttheme/tpl/lhchat/messagelist/plain.tpl.php", ...
1,330
Determine whether the {function_name} code is vulnerable or not.
[ "<?php foreach ($messages as $msg ) :", " if (isset($msg->meta_msg) && $msg->meta_msg != '') {\n $metaMessageData = json_decode($msg->meta_msg, true); $messageId = isset($triggerMessageId) ? $triggerMessageId : $msg->id;\n } else if (isset($metaMessageData)) {\n unset($metaMessageData);\n }...
[ 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [33, 46, 2, 16, 186, 6], "buggy_code_start_loc": [1, 1, 1, 1, 185, 1], "filenames": ["lhc_web/design/defaulttheme/tpl/lhchat/lists/msg_obj_list.tpl.php", "lhc_web/design/defaulttheme/tpl/lhchat/lists/msg_obj_list_admin.tpl.php", "lhc_web/design/defaulttheme/tpl/lhchat/messagelist/plain.tpl.php", ...
1,330
Determine whether the {function_name} code is vulnerable or not.
[ "<h1><?php echo htmlspecialchars($form)?></h1>\r", "\r\n<div class=\"row pb-2\">\r\n\t<div class=\"col-6\"><a href=\"<?php echo erLhcoreClassDesign::baseurl('form/downloadcollected')?>/<?php echo $form->id?>\" class=\"btn btn-secondary\"><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('f...
[ 0, 1, 0, 1 ]
PreciseBugs
{"buggy_code_end_loc": [33, 46, 2, 16, 186, 6], "buggy_code_start_loc": [1, 1, 1, 1, 185, 1], "filenames": ["lhc_web/design/defaulttheme/tpl/lhchat/lists/msg_obj_list.tpl.php", "lhc_web/design/defaulttheme/tpl/lhchat/lists/msg_obj_list_admin.tpl.php", "lhc_web/design/defaulttheme/tpl/lhchat/messagelist/plain.tpl.php", ...
1,330
Determine whether the {function_name} code is vulnerable or not.
[ "<h1 ng-non-bindable><?php echo htmlspecialchars($form)?></h1>\r", "\r\n<div class=\"row pb-2\">\r\n\t<div class=\"col-6\"><a href=\"<?php echo erLhcoreClassDesign::baseurl('form/downloadcollected')?>/<?php echo $form->id?>\" class=\"btn btn-secondary\"><?php echo erTranslationClassLhTranslation::getInstance()->g...
[ 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [33, 46, 2, 16, 186, 6], "buggy_code_start_loc": [1, 1, 1, 1, 185, 1], "filenames": ["lhc_web/design/defaulttheme/tpl/lhchat/lists/msg_obj_list.tpl.php", "lhc_web/design/defaulttheme/tpl/lhchat/lists/msg_obj_list_admin.tpl.php", "lhc_web/design/defaulttheme/tpl/lhchat/messagelist/plain.tpl.php", ...
1,330
Determine whether the {function_name} code is vulnerable or not.
[ "<?php if ($theme->header_css != '') {\n echo $theme->header_css;\n} ?>", "<?php if (isset($cssAttributes['main_background_color']) || isset($cssAttributes['default_tc'])) : ?>\nbody, #page-content-wrapper {\n <?php if (isset($cssAttributes['main_background_color'])) : ?>background-color:#<?php echo $cssAtt...
[ 1, 1, 1, 1, 1, 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 ]
PreciseBugs
{"buggy_code_end_loc": [33, 46, 2, 16, 186, 6], "buggy_code_start_loc": [1, 1, 1, 1, 185, 1], "filenames": ["lhc_web/design/defaulttheme/tpl/lhchat/lists/msg_obj_list.tpl.php", "lhc_web/design/defaulttheme/tpl/lhchat/lists/msg_obj_list_admin.tpl.php", "lhc_web/design/defaulttheme/tpl/lhchat/messagelist/plain.tpl.php", ...
1,330
Determine whether the {function_name} code is vulnerable or not.
[ "<?php if ($theme->header_css != '') {\n echo $theme->header_css;\n} ?>", "<?php if (isset($cssAttributes['main_background_color']) || isset($cssAttributes['default_tc'])) : ?>\nbody, #page-content-wrapper {\n <?php if (isset($cssAttributes['main_background_color'])) : ?>background-color:#<?php echo $cssAtt...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [33, 46, 2, 16, 186, 6], "buggy_code_start_loc": [1, 1, 1, 1, 185, 1], "filenames": ["lhc_web/design/defaulttheme/tpl/lhchat/lists/msg_obj_list.tpl.php", "lhc_web/design/defaulttheme/tpl/lhchat/lists/msg_obj_list_admin.tpl.php", "lhc_web/design/defaulttheme/tpl/lhchat/messagelist/plain.tpl.php", ...
1,330
Determine whether the {function_name} code is vulnerable or not.
[ "<div class=\"row\">", " <div class=\"col-10\"><h1><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('admintheme/form','Edit theme');?> - <?php echo htmlspecialchars($form->name)?></h1></div>", " <?php /*?><div class=\"col-2\">\n <a class=\"btn btn-secondary\" href=\"?export...
[ 0, 1, 0, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [33, 46, 2, 16, 186, 6], "buggy_code_start_loc": [1, 1, 1, 1, 185, 1], "filenames": ["lhc_web/design/defaulttheme/tpl/lhchat/lists/msg_obj_list.tpl.php", "lhc_web/design/defaulttheme/tpl/lhchat/lists/msg_obj_list_admin.tpl.php", "lhc_web/design/defaulttheme/tpl/lhchat/messagelist/plain.tpl.php", ...
1,330
Determine whether the {function_name} code is vulnerable or not.
[ "<div class=\"row\" ng-non-bindable>", " <div class=\"col-10\"><h1><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('admintheme/form','Edit theme');?> - <?php echo htmlspecialchars($form->name)?></h1></div>", "", "</div>", "<form action=\"<?php echo erLhcoreClassDesign::baseurl('...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [33, 46, 2, 16, 186, 6], "buggy_code_start_loc": [1, 1, 1, 1, 185, 1], "filenames": ["lhc_web/design/defaulttheme/tpl/lhchat/lists/msg_obj_list.tpl.php", "lhc_web/design/defaulttheme/tpl/lhchat/lists/msg_obj_list_admin.tpl.php", "lhc_web/design/defaulttheme/tpl/lhchat/messagelist/plain.tpl.php", ...
1,330
Determine whether the {function_name} code is vulnerable or not.
[ "<?php", "namespace Crater\\Http\\Requests;", "use Crater\\Rules\\Base64Mime;\nuse Illuminate\\Foundation\\Http\\FormRequest;", "class UploadExpenseReceiptRequest extends FormRequest\n{\n /**\n * Determine if the user is authorized to make this request.\n *\n * @return bool\n */\n public...
[ 1, 1, 1, 1, 1, 0, 1 ]
PreciseBugs
{"buggy_code_end_loc": [29], "buggy_code_start_loc": [28], "filenames": ["app/Http/Requests/UploadExpenseReceiptRequest.php"], "fixing_code_end_loc": [29], "fixing_code_start_loc": [28], "message": "Unrestricted Upload of File with Dangerous Type in GitHub repository crater-invoice/crater prior to 6.0.6.", "other": {"c...
1,331
Determine whether the {function_name} code is vulnerable or not.
[ "<?php", "namespace Crater\\Http\\Requests;", "use Crater\\Rules\\Base64Mime;\nuse Illuminate\\Foundation\\Http\\FormRequest;", "class UploadExpenseReceiptRequest extends FormRequest\n{\n /**\n * Determine if the user is authorized to make this request.\n *\n * @return bool\n */\n public...
[ 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [29], "buggy_code_start_loc": [28], "filenames": ["app/Http/Requests/UploadExpenseReceiptRequest.php"], "fixing_code_end_loc": [29], "fixing_code_start_loc": [28], "message": "Unrestricted Upload of File with Dangerous Type in GitHub repository crater-invoice/crater prior to 6.0.6.", "other": {"c...
1,331
Determine whether the {function_name} code is vulnerable or not.
[ "# Changelog\nAll notable changes to this project will be documented in this file.", "The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),\nand this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).", "## [Unreleased]", "", "\n## [4.0.1] - 2022-01-09"...
[ 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, 1...
PreciseBugs
{"buggy_code_end_loc": [7, 98, 109], "buggy_code_start_loc": [7, 30, 109], "filenames": ["CHANGELOG.md", "libs/plugins/function.math.php", "tests/UnitTests/TemplateSource/ValueTests/Math/MathTest.php"], "fixing_code_end_loc": [11, 129, 141], "fixing_code_start_loc": [8, 31, 110], "message": "Smarty is a template engine...
1,332
Determine whether the {function_name} code is vulnerable or not.
[ "# Changelog\nAll notable changes to this project will be documented in this file.", "The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),\nand this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).", "## [Unreleased]", "\n### Security\n- Prevent arbitr...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [7, 98, 109], "buggy_code_start_loc": [7, 30, 109], "filenames": ["CHANGELOG.md", "libs/plugins/function.math.php", "tests/UnitTests/TemplateSource/ValueTests/Math/MathTest.php"], "fixing_code_end_loc": [11, 129, 141], "fixing_code_start_loc": [8, 31, 110], "message": "Smarty is a template engine...
1,332
Determine whether the {function_name} code is vulnerable or not.
[ "<?php\n/**\n * Smarty plugin\n * This plugin is only for Smarty2 BC\n *\n * @package Smarty\n * @subpackage PluginsFunction\n */\n/**\n * Smarty {math} function plugin\n * Type: function\n * Name: math\n * Purpose: handle math computations in template\n *\n * @link https://www.smarty.net/manual/en/la...
[ 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1 ]
PreciseBugs
{"buggy_code_end_loc": [7, 98, 109], "buggy_code_start_loc": [7, 30, 109], "filenames": ["CHANGELOG.md", "libs/plugins/function.math.php", "tests/UnitTests/TemplateSource/ValueTests/Math/MathTest.php"], "fixing_code_end_loc": [11, 129, 141], "fixing_code_start_loc": [8, 31, 110], "message": "Smarty is a template engine...
1,332
Determine whether the {function_name} code is vulnerable or not.
[ "<?php\n/**\n * Smarty plugin\n * This plugin is only for Smarty2 BC\n *\n * @package Smarty\n * @subpackage PluginsFunction\n */\n/**\n * Smarty {math} function plugin\n * Type: function\n * Name: math\n * Purpose: handle math computations in template\n *\n * @link https://www.smarty.net/manual/en/la...
[ 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": [7, 98, 109], "buggy_code_start_loc": [7, 30, 109], "filenames": ["CHANGELOG.md", "libs/plugins/function.math.php", "tests/UnitTests/TemplateSource/ValueTests/Math/MathTest.php"], "fixing_code_end_loc": [11, 129, 141], "fixing_code_start_loc": [8, 31, 110], "message": "Smarty is a template engine...
1,332
Determine whether the {function_name} code is vulnerable or not.
[ "<?php\n/**\n * Smarty PHPunit tests of modifier\n *\n * @package PHPunit\n * @author Rodney Rehm\n */", "/**\n * class for modifier tests\n *\n * @runTestsInSeparateProcess\n * @preserveGlobalState disabled\n * @backupStaticAttributes enabled\n */\nclass MathTest extends PHPUnit_Smarty\n{\n public function s...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1 ]
PreciseBugs
{"buggy_code_end_loc": [7, 98, 109], "buggy_code_start_loc": [7, 30, 109], "filenames": ["CHANGELOG.md", "libs/plugins/function.math.php", "tests/UnitTests/TemplateSource/ValueTests/Math/MathTest.php"], "fixing_code_end_loc": [11, 129, 141], "fixing_code_start_loc": [8, 31, 110], "message": "Smarty is a template engine...
1,332
Determine whether the {function_name} code is vulnerable or not.
[ "<?php\n/**\n * Smarty PHPunit tests of modifier\n *\n * @package PHPunit\n * @author Rodney Rehm\n */", "/**\n * class for modifier tests\n *\n * @runTestsInSeparateProcess\n * @preserveGlobalState disabled\n * @backupStaticAttributes enabled\n */\nclass MathTest extends PHPUnit_Smarty\n{\n public function s...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [7, 98, 109], "buggy_code_start_loc": [7, 30, 109], "filenames": ["CHANGELOG.md", "libs/plugins/function.math.php", "tests/UnitTests/TemplateSource/ValueTests/Math/MathTest.php"], "fixing_code_end_loc": [11, 129, 141], "fixing_code_start_loc": [8, 31, 110], "message": "Smarty is a template engine...
1,332
Determine whether the {function_name} code is vulnerable or not.
[ "#include <net-snmp/net-snmp-config.h>\n#include <net-snmp/net-snmp-features.h>\n#include <net-snmp/net-snmp-includes.h>\n#include <net-snmp/agent/net-snmp-agent-includes.h>\n#include <net-snmp/agent/watcher.h>\n#include <net-snmp/agent/agent_callbacks.h>", "#include \"agent/extend.h\"\n#include \"utilities/execu...
[ 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, 0, 1, 1...
PreciseBugs
{"buggy_code_end_loc": [1612], "buggy_code_start_loc": [17], "filenames": ["agent/mibgroup/agent/extend.c"], "fixing_code_end_loc": [1618], "fixing_code_start_loc": [18], "message": "Net-SNMP through 5.7.3 has Improper Privilege Management because SNMP WRITE access to the EXTEND MIB provides the ability to run arbitrar...
1,333
Determine whether the {function_name} code is vulnerable or not.
[ "#include <net-snmp/net-snmp-config.h>\n#include <net-snmp/net-snmp-features.h>\n#include <net-snmp/net-snmp-includes.h>\n#include <net-snmp/agent/net-snmp-agent-includes.h>\n#include <net-snmp/agent/watcher.h>\n#include <net-snmp/agent/agent_callbacks.h>", "#include \"agent/extend.h\"\n#include \"utilities/execu...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [1612], "buggy_code_start_loc": [17], "filenames": ["agent/mibgroup/agent/extend.c"], "fixing_code_end_loc": [1618], "fixing_code_start_loc": [18], "message": "Net-SNMP through 5.7.3 has Improper Privilege Management because SNMP WRITE access to the EXTEND MIB provides the ability to run arbitrar...
1,333
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n% %\n% %\n% ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [218, 534, 217, 43, 1247], "buggy_code_start_loc": [141, 144, 54, 43, 243], "filenames": ["coders/label.c", "coders/viff.c", "magick/exception.c", "magick/memory-private.h", "magick/memory.c"], "fixing_code_end_loc": [220, 518, 235, 47, 1271], "fixing_code_start_loc": [141, 143, 55, 44, 242], "me...
1,334
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n% %\n% %\n% ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [218, 534, 217, 43, 1247], "buggy_code_start_loc": [141, 144, 54, 43, 243], "filenames": ["coders/label.c", "coders/viff.c", "magick/exception.c", "magick/memory-private.h", "magick/memory.c"], "fixing_code_end_loc": [220, 518, 235, 47, 1271], "fixing_code_start_loc": [141, 143, 55, 44, 242], "me...
1,334
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n% %\n% %\n% ...
[ 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
PreciseBugs
{"buggy_code_end_loc": [218, 534, 217, 43, 1247], "buggy_code_start_loc": [141, 144, 54, 43, 243], "filenames": ["coders/label.c", "coders/viff.c", "magick/exception.c", "magick/memory-private.h", "magick/memory.c"], "fixing_code_end_loc": [220, 518, 235, 47, 1271], "fixing_code_start_loc": [141, 143, 55, 44, 242], "me...
1,334
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n% %\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 ]
PreciseBugs
{"buggy_code_end_loc": [218, 534, 217, 43, 1247], "buggy_code_start_loc": [141, 144, 54, 43, 243], "filenames": ["coders/label.c", "coders/viff.c", "magick/exception.c", "magick/memory-private.h", "magick/memory.c"], "fixing_code_end_loc": [220, 518, 235, 47, 1271], "fixing_code_start_loc": [141, 143, 55, 44, 242], "me...
1,334
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n% %\n% %\n% ...
[ 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [218, 534, 217, 43, 1247], "buggy_code_start_loc": [141, 144, 54, 43, 243], "filenames": ["coders/label.c", "coders/viff.c", "magick/exception.c", "magick/memory-private.h", "magick/memory.c"], "fixing_code_end_loc": [220, 518, 235, 47, 1271], "fixing_code_start_loc": [141, 143, 55, 44, 242], "me...
1,334
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n% %\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 ]
PreciseBugs
{"buggy_code_end_loc": [218, 534, 217, 43, 1247], "buggy_code_start_loc": [141, 144, 54, 43, 243], "filenames": ["coders/label.c", "coders/viff.c", "magick/exception.c", "magick/memory-private.h", "magick/memory.c"], "fixing_code_end_loc": [220, 518, 235, 47, 1271], "fixing_code_start_loc": [141, 143, 55, 44, 242], "me...
1,334
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n Copyright 1999-2016 ImageMagick Studio LLC, a non-profit organization\n dedicated to making software imaging solutions freely available.\n \n You may not use this file except in compliance with the License.\n obtain a copy of the License at\n \n http://www.imagemagick.org/script/license.php\n \n Un...
[ 1, 1, 1, 1, 1, 1, 0, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [218, 534, 217, 43, 1247], "buggy_code_start_loc": [141, 144, 54, 43, 243], "filenames": ["coders/label.c", "coders/viff.c", "magick/exception.c", "magick/memory-private.h", "magick/memory.c"], "fixing_code_end_loc": [220, 518, 235, 47, 1271], "fixing_code_start_loc": [141, 143, 55, 44, 242], "me...
1,334
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n Copyright 1999-2016 ImageMagick Studio LLC, a non-profit organization\n dedicated to making software imaging solutions freely available.\n \n You may not use this file except in compliance with the License.\n obtain a copy of the License at\n \n http://www.imagemagick.org/script/license.php\n \n Un...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [218, 534, 217, 43, 1247], "buggy_code_start_loc": [141, 144, 54, 43, 243], "filenames": ["coders/label.c", "coders/viff.c", "magick/exception.c", "magick/memory-private.h", "magick/memory.c"], "fixing_code_end_loc": [220, 518, 235, 47, 1271], "fixing_code_start_loc": [141, 143, 55, 44, 242], "me...
1,334
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n% %\n% %\n% ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1...
PreciseBugs
{"buggy_code_end_loc": [218, 534, 217, 43, 1247], "buggy_code_start_loc": [141, 144, 54, 43, 243], "filenames": ["coders/label.c", "coders/viff.c", "magick/exception.c", "magick/memory-private.h", "magick/memory.c"], "fixing_code_end_loc": [220, 518, 235, 47, 1271], "fixing_code_start_loc": [141, 143, 55, 44, 242], "me...
1,334
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n% %\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": [218, 534, 217, 43, 1247], "buggy_code_start_loc": [141, 144, 54, 43, 243], "filenames": ["coders/label.c", "coders/viff.c", "magick/exception.c", "magick/memory-private.h", "magick/memory.c"], "fixing_code_end_loc": [220, 518, 235, 47, 1271], "fixing_code_start_loc": [141, 143, 55, 44, 242], "me...
1,334
Determine whether the {function_name} code is vulnerable or not.
[ "/* thread_info.h: MIPS low-level thread information\n *\n * Copyright (C) 2002 David Howells (dhowells@redhat.com)\n * - Incorporating suggestions made by Linus Torvalds and Dave Miller\n */", "#ifndef _ASM_THREAD_INFO_H\n#define _ASM_THREAD_INFO_H", "#ifdef __KERNEL__", "\n#ifndef __ASSEMBLY__", "#includ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [140], "buggy_code_start_loc": [139], "filenames": ["arch/mips/include/asm/thread_info.h"], "fixing_code_end_loc": [141], "fixing_code_start_loc": [139], "message": "arch/mips/include/asm/thread_info.h in the Linux kernel before 3.14.8 on the MIPS platform does not configure _TIF_SECCOMP checks o...
1,335
Determine whether the {function_name} code is vulnerable or not.
[ "/* thread_info.h: MIPS low-level thread information\n *\n * Copyright (C) 2002 David Howells (dhowells@redhat.com)\n * - Incorporating suggestions made by Linus Torvalds and Dave Miller\n */", "#ifndef _ASM_THREAD_INFO_H\n#define _ASM_THREAD_INFO_H", "#ifdef __KERNEL__", "\n#ifndef __ASSEMBLY__", "#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 ]
PreciseBugs
{"buggy_code_end_loc": [140], "buggy_code_start_loc": [139], "filenames": ["arch/mips/include/asm/thread_info.h"], "fixing_code_end_loc": [141], "fixing_code_start_loc": [139], "message": "arch/mips/include/asm/thread_info.h in the Linux kernel before 3.14.8 on the MIPS platform does not configure _TIF_SECCOMP checks o...
1,335
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * base64.c\n * base64 encode/decode implementation\n *\n * Copyright (c) 2011 Nikias Bassen, All Rights Reserved.\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; eithe...
[ 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [127], "buggy_code_start_loc": [31], "filenames": ["src/base64.c"], "fixing_code_end_loc": [113], "fixing_code_start_loc": [31], "message": "The base64decode function in base64.c in libimobiledevice libplist through 1.12 allows attackers to obtain sensitive information from process memory or caus...
1,336
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * base64.c\n * base64 encode/decode implementation\n *\n * Copyright (c) 2011 Nikias Bassen, All Rights Reserved.\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; eithe...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [127], "buggy_code_start_loc": [31], "filenames": ["src/base64.c"], "fixing_code_end_loc": [113], "fixing_code_start_loc": [31], "message": "The base64decode function in base64.c in libimobiledevice libplist through 1.12 allows attackers to obtain sensitive information from process memory or caus...
1,336
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * x86 single-step support code, common to 32-bit and 64-bit.\n */\n#include <linux/sched.h>\n#include <linux/mm.h>\n#include <linux/ptrace.h>\n#include <asm/desc.h>", "unsigned long convert_ip_to_linear(struct task_struct *child, struct pt_regs *regs)\n{\n\tunsigned long addr, seg;", "\taddr = regs->ip;\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, 0, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [172, 1043, 1921], "buggy_code_start_loc": [168, 124, 1796], "filenames": ["arch/x86/kernel/step.c", "kernel/ptrace.c", "kernel/signal.c"], "fixing_code_end_loc": [173, 1088, 1927], "fixing_code_start_loc": [168, 125, 1797], "message": "Race condition in the ptrace functionality in the Linux kern...
1,337
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * x86 single-step support code, common to 32-bit and 64-bit.\n */\n#include <linux/sched.h>\n#include <linux/mm.h>\n#include <linux/ptrace.h>\n#include <asm/desc.h>", "unsigned long convert_ip_to_linear(struct task_struct *child, struct pt_regs *regs)\n{\n\tunsigned long addr, seg;", "\taddr = regs->ip;\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 ]
PreciseBugs
{"buggy_code_end_loc": [172, 1043, 1921], "buggy_code_start_loc": [168, 124, 1796], "filenames": ["arch/x86/kernel/step.c", "kernel/ptrace.c", "kernel/signal.c"], "fixing_code_end_loc": [173, 1088, 1927], "fixing_code_start_loc": [168, 125, 1797], "message": "Race condition in the ptrace functionality in the Linux kern...
1,337
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * linux/kernel/ptrace.c\n *\n * (C) Copyright 1999 Linus Torvalds\n *\n * Common interfaces for \"ptrace()\" which we do not want\n * to continually duplicate across every architecture.\n */", "#include <linux/capability.h>\n#include <linux/export.h>\n#include <linux/sched.h>\n#include <linux/errno.h>\n#inc...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PreciseBugs
{"buggy_code_end_loc": [172, 1043, 1921], "buggy_code_start_loc": [168, 124, 1796], "filenames": ["arch/x86/kernel/step.c", "kernel/ptrace.c", "kernel/signal.c"], "fixing_code_end_loc": [173, 1088, 1927], "fixing_code_start_loc": [168, 125, 1797], "message": "Race condition in the ptrace functionality in the Linux kern...
1,337
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * linux/kernel/ptrace.c\n *\n * (C) Copyright 1999 Linus Torvalds\n *\n * Common interfaces for \"ptrace()\" which we do not want\n * to continually duplicate across every architecture.\n */", "#include <linux/capability.h>\n#include <linux/export.h>\n#include <linux/sched.h>\n#include <linux/errno.h>\n#inc...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [172, 1043, 1921], "buggy_code_start_loc": [168, 124, 1796], "filenames": ["arch/x86/kernel/step.c", "kernel/ptrace.c", "kernel/signal.c"], "fixing_code_end_loc": [173, 1088, 1927], "fixing_code_start_loc": [168, 125, 1797], "message": "Race condition in the ptrace functionality in the Linux kern...
1,337
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * linux/kernel/signal.c\n *\n * Copyright (C) 1991, 1992 Linus Torvalds\n *\n * 1997-11-02 Modified for POSIX.1b signals by Richard Henderson\n *\n * 2003-06-02 Jim Houston - Concurrent Computer Corp.\n *\t\tChanges to use preallocated sigqueue structures\n *\t\tto allow signals to be sent reliably.\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": [172, 1043, 1921], "buggy_code_start_loc": [168, 124, 1796], "filenames": ["arch/x86/kernel/step.c", "kernel/ptrace.c", "kernel/signal.c"], "fixing_code_end_loc": [173, 1088, 1927], "fixing_code_start_loc": [168, 125, 1797], "message": "Race condition in the ptrace functionality in the Linux kern...
1,337
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * linux/kernel/signal.c\n *\n * Copyright (C) 1991, 1992 Linus Torvalds\n *\n * 1997-11-02 Modified for POSIX.1b signals by Richard Henderson\n *\n * 2003-06-02 Jim Houston - Concurrent Computer Corp.\n *\t\tChanges to use preallocated sigqueue structures\n *\t\tto allow signals to be sent reliably.\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": [172, 1043, 1921], "buggy_code_start_loc": [168, 124, 1796], "filenames": ["arch/x86/kernel/step.c", "kernel/ptrace.c", "kernel/signal.c"], "fixing_code_end_loc": [173, 1088, 1927], "fixing_code_start_loc": [168, 125, 1797], "message": "Race condition in the ptrace functionality in the Linux kern...
1,337
Determine whether the {function_name} code is vulnerable or not.
[ "# Release Notes for Craft CMS 4", "## Unreleased", "### Added\n- Added `craft\\config\\GeneralConfig::getRememberedUserSessionDuration()`.\n- Added `craft\\helpers\\DateTimeHelper::toDateInterval()`.", "### Changed\n- `craft\\config\\DbConfig::dsn()` now parses the DSN string and populates the other DSN-sett...
[ 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PreciseBugs
{"buggy_code_end_loc": [22, 1726, 104], "buggy_code_start_loc": [21, 1623, 103], "filenames": ["CHANGELOG.md", "src/helpers/Cp.php", "src/templates/settings/fields/index.twig"], "fixing_code_end_loc": [22, 1726, 104], "fixing_code_start_loc": [21, 1623, 103], "message": "Craft CMS 4.2.0.1 is vulnerable to stored a cros...
1,338
Determine whether the {function_name} code is vulnerable or not.
[ "# Release Notes for Craft CMS 4", "## Unreleased", "### Added\n- Added `craft\\config\\GeneralConfig::getRememberedUserSessionDuration()`.\n- Added `craft\\helpers\\DateTimeHelper::toDateInterval()`.", "### Changed\n- `craft\\config\\DbConfig::dsn()` now parses the DSN string and populates the other DSN-sett...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [22, 1726, 104], "buggy_code_start_loc": [21, 1623, 103], "filenames": ["CHANGELOG.md", "src/helpers/Cp.php", "src/templates/settings/fields/index.twig"], "fixing_code_end_loc": [22, 1726, 104], "fixing_code_start_loc": [21, 1623, 103], "message": "Craft CMS 4.2.0.1 is vulnerable to stored a cros...
1,338
Determine whether the {function_name} code is vulnerable or not.
[ "<?php\n/**\n * @link https://craftcms.com/\n * @copyright Copyright (c) Pixel & Tonic, Inc.\n * @license https://craftcms.github.io/license/\n */", "namespace craft\\helpers;", "use Craft;\nuse craft\\base\\Element;\nuse craft\\base\\ElementInterface;\nuse craft\\base\\FieldLayoutElement;\nuse craft\\behaviors...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [22, 1726, 104], "buggy_code_start_loc": [21, 1623, 103], "filenames": ["CHANGELOG.md", "src/helpers/Cp.php", "src/templates/settings/fields/index.twig"], "fixing_code_end_loc": [22, 1726, 104], "fixing_code_start_loc": [21, 1623, 103], "message": "Craft CMS 4.2.0.1 is vulnerable to stored a cros...
1,338
Determine whether the {function_name} code is vulnerable or not.
[ "<?php\n/**\n * @link https://craftcms.com/\n * @copyright Copyright (c) Pixel & Tonic, Inc.\n * @license https://craftcms.github.io/license/\n */", "namespace craft\\helpers;", "use Craft;\nuse craft\\base\\Element;\nuse craft\\base\\ElementInterface;\nuse craft\\base\\FieldLayoutElement;\nuse craft\\behaviors...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [22, 1726, 104], "buggy_code_start_loc": [21, 1623, 103], "filenames": ["CHANGELOG.md", "src/helpers/Cp.php", "src/templates/settings/fields/index.twig"], "fixing_code_end_loc": [22, 1726, 104], "fixing_code_start_loc": [21, 1623, 103], "message": "Craft CMS 4.2.0.1 is vulnerable to stored a cros...
1,338
Determine whether the {function_name} code is vulnerable or not.
[ "{% requireAdmin %}", "{% extends \"_layouts/cp\" %}\n{% set title = \"Fields\"|t('app') %}", "{% do view.registerAssetBundle(\"craft\\\\web\\\\assets\\\\fields\\\\FieldsAsset\") %}\n{% do view.registerAssetBundle('craft\\\\web\\\\assets\\\\admintable\\\\AdminTableAsset') -%}", "{% do view.registerTranslation...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [22, 1726, 104], "buggy_code_start_loc": [21, 1623, 103], "filenames": ["CHANGELOG.md", "src/helpers/Cp.php", "src/templates/settings/fields/index.twig"], "fixing_code_end_loc": [22, 1726, 104], "fixing_code_start_loc": [21, 1623, 103], "message": "Craft CMS 4.2.0.1 is vulnerable to stored a cros...
1,338
Determine whether the {function_name} code is vulnerable or not.
[ "{% requireAdmin %}", "{% extends \"_layouts/cp\" %}\n{% set title = \"Fields\"|t('app') %}", "{% do view.registerAssetBundle(\"craft\\\\web\\\\assets\\\\fields\\\\FieldsAsset\") %}\n{% do view.registerAssetBundle('craft\\\\web\\\\assets\\\\admintable\\\\AdminTableAsset') -%}", "{% do view.registerTranslation...
[ 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": [22, 1726, 104], "buggy_code_start_loc": [21, 1623, 103], "filenames": ["CHANGELOG.md", "src/helpers/Cp.php", "src/templates/settings/fields/index.twig"], "fixing_code_end_loc": [22, 1726, 104], "fixing_code_start_loc": [21, 1623, 103], "message": "Craft CMS 4.2.0.1 is vulnerable to stored a cros...
1,338
Determine whether the {function_name} code is vulnerable or not.
[ "/* Copyright 2015 The TensorFlow Authors. All Rights Reserved.", "Licensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at", " http://www.apache.org/licenses/LICENSE-2.0", "Unless required b...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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": [452], "buggy_code_start_loc": [39], "filenames": ["tensorflow/core/framework/attr_value_util.cc"], "fixing_code_end_loc": [508], "fixing_code_start_loc": [40], "message": "TensorFlow is an end-to-end open source platform for machine learning. The implementation of `ParseAttrValue`(https://github...
1,339
Determine whether the {function_name} code is vulnerable or not.
[ "/* Copyright 2015 The TensorFlow Authors. All Rights Reserved.", "Licensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at", " http://www.apache.org/licenses/LICENSE-2.0", "Unless required b...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PreciseBugs
{"buggy_code_end_loc": [452], "buggy_code_start_loc": [39], "filenames": ["tensorflow/core/framework/attr_value_util.cc"], "fixing_code_end_loc": [508], "fixing_code_start_loc": [40], "message": "TensorFlow is an end-to-end open source platform for machine learning. The implementation of `ParseAttrValue`(https://github...
1,339
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * NET\t\tAn implementation of the SOCKET network access protocol.\n *\n * Version:\t@(#)socket.c\t1.1.93\t18/02/95\n *\n * Authors:\tOrest Zborowski, <obz@Kodak.COM>\n *\t\tRoss Biro\n *\t\tFred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>\n *\n * Fixes:\n *\t\tAnonymous\t:\tNOTSOCK/BADF cleanup. Error fix in\...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [1983], "buggy_code_start_loc": [1968], "filenames": ["net/socket.c"], "fixing_code_end_loc": [1985], "fixing_code_start_loc": [1968], "message": "The __sys_sendmsg function in net/socket.c in the Linux kernel before 3.1 allows local users to cause a denial of service (system crash) via crafted u...
1,340
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * NET\t\tAn implementation of the SOCKET network access protocol.\n *\n * Version:\t@(#)socket.c\t1.1.93\t18/02/95\n *\n * Authors:\tOrest Zborowski, <obz@Kodak.COM>\n *\t\tRoss Biro\n *\t\tFred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>\n *\n * Fixes:\n *\t\tAnonymous\t:\tNOTSOCK/BADF cleanup. Error fix in\...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [1983], "buggy_code_start_loc": [1968], "filenames": ["net/socket.c"], "fixing_code_end_loc": [1985], "fixing_code_start_loc": [1968], "message": "The __sys_sendmsg function in net/socket.c in the Linux kernel before 3.1 allows local users to cause a denial of service (system crash) via crafted u...
1,340
Determine whether the {function_name} code is vulnerable or not.
[ "<?php\n/*\n Copyright (C) 2004-2006 NBI SARL, ISVTEC SARL", " This file is part of Webfinance.", " Webfinance 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, o...
[ 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": [50], "buggy_code_start_loc": [42], "filenames": ["htdocs/prospection/save_contact.php"], "fixing_code_end_loc": [50], "fixing_code_start_loc": [42], "message": "A vulnerability was found in fanzila WebFinance 0.5. It has been declared as critical. Affected by this vulnerability is an unknown fun...
1,341
Determine whether the {function_name} code is vulnerable or not.
[ "<?php\n/*\n Copyright (C) 2004-2006 NBI SARL, ISVTEC SARL", " This file is part of Webfinance.", " Webfinance 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, o...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [50], "buggy_code_start_loc": [42], "filenames": ["htdocs/prospection/save_contact.php"], "fixing_code_end_loc": [50], "fixing_code_start_loc": [42], "message": "A vulnerability was found in fanzila WebFinance 0.5. It has been declared as critical. Affected by this vulnerability is an unknown fun...
1,341
Determine whether the {function_name} code is vulnerable or not.
[ "<?php\n/**\n * 2007-2019 PrestaShop and Contributors\n *\n * NOTICE OF LICENSE\n *\n * This source file is subject to the Open Software License (OSL 3.0)\n * that is bundled with this package in the file LICENSE.txt.\n * It is also available through the world-wide-web at this URL:\n * https://opensource.org/licens...
[ 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1...
PreciseBugs
{"buggy_code_end_loc": [275], "buggy_code_start_loc": [29], "filenames": ["src/PrestaShopBundle/Controller/Admin/AttributeController.php"], "fixing_code_end_loc": [286], "fixing_code_start_loc": [30], "message": "\"In PrestaShop between versions 1.7.0.0 and 1.7.6.5, there is improper access controls on product attribut...
1,342
Determine whether the {function_name} code is vulnerable or not.
[ "<?php\n/**\n * 2007-2019 PrestaShop and Contributors\n *\n * NOTICE OF LICENSE\n *\n * This source file is subject to the Open Software License (OSL 3.0)\n * that is bundled with this package in the file LICENSE.txt.\n * It is also available through the world-wide-web at this URL:\n * https://opensource.org/licens...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [275], "buggy_code_start_loc": [29], "filenames": ["src/PrestaShopBundle/Controller/Admin/AttributeController.php"], "fixing_code_end_loc": [286], "fixing_code_start_loc": [30], "message": "\"In PrestaShop between versions 1.7.0.0 and 1.7.6.5, there is improper access controls on product attribut...
1,342
Determine whether the {function_name} code is vulnerable or not.
[ "/* ADMesh -- process triangulated solid meshes\n * Copyright (C) 1995, 1996 Anthony D. Martin <amartin@engr.csulb.edu>\n * Copyright (C) 2013, 2014 several contributors, see AUTHORS\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public ...
[ 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 ]
PreciseBugs
{"buggy_code_end_loc": [146], "buggy_code_start_loc": [145], "filenames": ["src/normals.c"], "fixing_code_end_loc": [147], "fixing_code_start_loc": [145], "message": "An improper array index validation vulnerability exists in the stl_fix_normal_directions functionality of ADMesh Master Commit 767a105 and v0.98.4. A spe...
1,343
Determine whether the {function_name} code is vulnerable or not.
[ "/* ADMesh -- process triangulated solid meshes\n * Copyright (C) 1995, 1996 Anthony D. Martin <amartin@engr.csulb.edu>\n * Copyright (C) 2013, 2014 several contributors, see AUTHORS\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [146], "buggy_code_start_loc": [145], "filenames": ["src/normals.c"], "fixing_code_end_loc": [147], "fixing_code_start_loc": [145], "message": "An improper array index validation vulnerability exists in the stl_fix_normal_directions functionality of ADMesh Master Commit 767a105 and v0.98.4. A spe...
1,343
Determine whether the {function_name} code is vulnerable or not.
[ "/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.", "Licensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at", " http://www.apache.org/licenses/LICENSE-2.0", "Unless required b...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [286, 23, 107, 1364], "buggy_code_start_loc": [251, 22, 22, 1360], "filenames": ["tensorflow/c/eager/dlpack.cc", "tensorflow/python/dlpack/BUILD", "tensorflow/python/dlpack/dlpack_test.py", "tensorflow/python/tfe_wrapper.cc"], "fixing_code_end_loc": [302, 21, 116, 1370], "fixing_code_start_loc": ...
1,344
Determine whether the {function_name} code is vulnerable or not.
[ "/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.", "Licensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at", " http://www.apache.org/licenses/LICENSE-2.0", "Unless required b...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [286, 23, 107, 1364], "buggy_code_start_loc": [251, 22, 22, 1360], "filenames": ["tensorflow/c/eager/dlpack.cc", "tensorflow/python/dlpack/BUILD", "tensorflow/python/dlpack/dlpack_test.py", "tensorflow/python/tfe_wrapper.cc"], "fixing_code_end_loc": [302, 21, 116, 1370], "fixing_code_start_loc": ...
1,344
Determine whether the {function_name} code is vulnerable or not.
[ "load(\"//tensorflow:tensorflow.bzl\", \"cuda_py_test\")", "package(\n default_visibility = [\"//visibility:private\"],\n licenses = [\"notice\"], # Apache 2.0\n)", "py_library(\n name = \"dlpack\",\n srcs = [\"dlpack.py\"],\n srcs_version = \"PY2AND3\",\n visibility = [\"//tensorflow:__subpa...
[ 1, 1, 1, 1, 0, 1 ]
PreciseBugs
{"buggy_code_end_loc": [286, 23, 107, 1364], "buggy_code_start_loc": [251, 22, 22, 1360], "filenames": ["tensorflow/c/eager/dlpack.cc", "tensorflow/python/dlpack/BUILD", "tensorflow/python/dlpack/dlpack_test.py", "tensorflow/python/tfe_wrapper.cc"], "fixing_code_end_loc": [302, 21, 116, 1370], "fixing_code_start_loc": ...
1,344
Determine whether the {function_name} code is vulnerable or not.
[ "load(\"//tensorflow:tensorflow.bzl\", \"cuda_py_test\")", "package(\n default_visibility = [\"//visibility:private\"],\n licenses = [\"notice\"], # Apache 2.0\n)", "py_library(\n name = \"dlpack\",\n srcs = [\"dlpack.py\"],\n srcs_version = \"PY2AND3\",\n visibility = [\"//tensorflow:__subpa...
[ 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [286, 23, 107, 1364], "buggy_code_start_loc": [251, 22, 22, 1360], "filenames": ["tensorflow/c/eager/dlpack.cc", "tensorflow/python/dlpack/BUILD", "tensorflow/python/dlpack/dlpack_test.py", "tensorflow/python/tfe_wrapper.cc"], "fixing_code_end_loc": [302, 21, 116, 1370], "fixing_code_start_loc": ...
1,344
Determine whether the {function_name} code is vulnerable or not.
[ "# Copyright 2020 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requ...
[ 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1 ]
PreciseBugs
{"buggy_code_end_loc": [286, 23, 107, 1364], "buggy_code_start_loc": [251, 22, 22, 1360], "filenames": ["tensorflow/c/eager/dlpack.cc", "tensorflow/python/dlpack/BUILD", "tensorflow/python/dlpack/dlpack_test.py", "tensorflow/python/tfe_wrapper.cc"], "fixing_code_end_loc": [302, 21, 116, 1370], "fixing_code_start_loc": ...
1,344
Determine whether the {function_name} code is vulnerable or not.
[ "# Copyright 2020 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [286, 23, 107, 1364], "buggy_code_start_loc": [251, 22, 22, 1360], "filenames": ["tensorflow/c/eager/dlpack.cc", "tensorflow/python/dlpack/BUILD", "tensorflow/python/dlpack/dlpack_test.py", "tensorflow/python/tfe_wrapper.cc"], "fixing_code_end_loc": [302, 21, 116, 1370], "fixing_code_start_loc": ...
1,344
Determine whether the {function_name} code is vulnerable or not.
[ "/* Copyright 2019 The TensorFlow Authors. All Rights Reserved.", "Licensed under the Apache License, Version 2.0 (the \"License\");;\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at", " http://www.apache.org/licenses/LICENSE-2.0", "Unless required ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [286, 23, 107, 1364], "buggy_code_start_loc": [251, 22, 22, 1360], "filenames": ["tensorflow/c/eager/dlpack.cc", "tensorflow/python/dlpack/BUILD", "tensorflow/python/dlpack/dlpack_test.py", "tensorflow/python/tfe_wrapper.cc"], "fixing_code_end_loc": [302, 21, 116, 1370], "fixing_code_start_loc": ...
1,344
Determine whether the {function_name} code is vulnerable or not.
[ "/* Copyright 2019 The TensorFlow Authors. All Rights Reserved.", "Licensed under the Apache License, Version 2.0 (the \"License\");;\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at", " http://www.apache.org/licenses/LICENSE-2.0", "Unless required ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [286, 23, 107, 1364], "buggy_code_start_loc": [251, 22, 22, 1360], "filenames": ["tensorflow/c/eager/dlpack.cc", "tensorflow/python/dlpack/BUILD", "tensorflow/python/dlpack/dlpack_test.py", "tensorflow/python/tfe_wrapper.cc"], "fixing_code_end_loc": [302, 21, 116, 1370], "fixing_code_start_loc": ...
1,344
Determine whether the {function_name} code is vulnerable or not.
[ "// SPDX-License-Identifier: BSD-2-Clause\n/*\n * Copyright (c) 2014, STMicroelectronics International N.V.\n * Copyright (c) 2015-2017 Linaro Limited\n */", "#include <assert.h>\n#include <compiler.h>\n#include <ctype.h>\n#include <initcall.h>\n#include <keep.h>\n#include <kernel/panic.h>\n#include <kernel/tee_m...
[ 1, 1, 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...
PreciseBugs
{"buggy_code_end_loc": [202], "buggy_code_start_loc": [200], "filenames": ["core/arch/arm/kernel/user_ta.c"], "fixing_code_end_loc": [206], "fixing_code_start_loc": [200], "message": "Linaro/OP-TEE OP-TEE 3.3.0 and earlier is affected by: Rounding error. The impact is: Potentially leaking code and/or data from previous...
1,345
Determine whether the {function_name} code is vulnerable or not.
[ "// SPDX-License-Identifier: BSD-2-Clause\n/*\n * Copyright (c) 2014, STMicroelectronics International N.V.\n * Copyright (c) 2015-2017 Linaro Limited\n */", "#include <assert.h>\n#include <compiler.h>\n#include <ctype.h>\n#include <initcall.h>\n#include <keep.h>\n#include <kernel/panic.h>\n#include <kernel/tee_m...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [202], "buggy_code_start_loc": [200], "filenames": ["core/arch/arm/kernel/user_ta.c"], "fixing_code_end_loc": [206], "fixing_code_start_loc": [200], "message": "Linaro/OP-TEE OP-TEE 3.3.0 and earlier is affected by: Rounding error. The impact is: Potentially leaking code and/or data from previous...
1,345
Determine whether the {function_name} code is vulnerable or not.
[ "'use strict'\n// external modules\nconst Sequelize = require('sequelize')\nconst scrypt = require('scrypt-kdf')", "", "\n// core\nconst logger = require('../logger')\nconst { generateAvatarURL } = require('../letter-avatars')", "module.exports = function (sequelize, DataTypes) {\n const User = sequelize.def...
[ 1, 0, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [139, 11], "buggy_code_start_loc": [4, 10], "filenames": ["lib/models/user.js", "public/views/hedgedoc/head.ejs"], "fixing_code_end_loc": [140, 11], "fixing_code_start_loc": [5, 10], "message": "HedgeDoc is a platform to write and share markdown. HedgeDoc before version 1.8.2 is vulnerable to a c...
1,346
Determine whether the {function_name} code is vulnerable or not.
[ "'use strict'\n// external modules\nconst Sequelize = require('sequelize')\nconst scrypt = require('scrypt-kdf')", "const filterXSS = require('xss')", "\n// core\nconst logger = require('../logger')\nconst { generateAvatarURL } = require('../letter-avatars')", "module.exports = function (sequelize, DataTypes)...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [139, 11], "buggy_code_start_loc": [4, 10], "filenames": ["lib/models/user.js", "public/views/hedgedoc/head.ejs"], "fixing_code_end_loc": [140, 11], "fixing_code_start_loc": [5, 10], "message": "HedgeDoc is a platform to write and share markdown. HedgeDoc before version 1.8.2 is vulnerable to a c...
1,346
Determine whether the {function_name} code is vulnerable or not.
[ "<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.0, user-scalable=no\">\n<meta name=\"apple-mobile-web-app-capable\" content=\"yes\">\n<meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black\">\n<...
[ 1, 0, 1 ]
PreciseBugs
{"buggy_code_end_loc": [139, 11], "buggy_code_start_loc": [4, 10], "filenames": ["lib/models/user.js", "public/views/hedgedoc/head.ejs"], "fixing_code_end_loc": [140, 11], "fixing_code_start_loc": [5, 10], "message": "HedgeDoc is a platform to write and share markdown. HedgeDoc before version 1.8.2 is vulnerable to a c...
1,346
Determine whether the {function_name} code is vulnerable or not.
[ "<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.0, user-scalable=no\">\n<meta name=\"apple-mobile-web-app-capable\" content=\"yes\">\n<meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black\">\n<...
[ 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [139, 11], "buggy_code_start_loc": [4, 10], "filenames": ["lib/models/user.js", "public/views/hedgedoc/head.ejs"], "fixing_code_end_loc": [140, 11], "fixing_code_start_loc": [5, 10], "message": "HedgeDoc is a platform to write and share markdown. HedgeDoc before version 1.8.2 is vulnerable to a c...
1,346
Determine whether the {function_name} code is vulnerable or not.
[ "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\nBottle is a fast and simple micro-framework for small web applications. It\noffers request dispatching (Routes) with URL parameter support, templates,\na built-in HTTP Server and adapters for many third party WSGI/HTTP-server and\ntemplate engines - all in a ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [2211, 697], "buggy_code_start_loc": [1576, 5], "filenames": ["bottle.py", "test/test_environ.py"], "fixing_code_end_loc": [2214, 712], "fixing_code_start_loc": [1576, 6], "message": "redirect() in bottle.py in bottle 0.12.10 doesn't filter a \"\\r\\n\" sequence, which leads to a CRLF attack, as ...
1,347
Determine whether the {function_name} code is vulnerable or not.
[ "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\nBottle is a fast and simple micro-framework for small web applications. It\noffers request dispatching (Routes) with URL parameter support, templates,\na built-in HTTP Server and adapters for many third party WSGI/HTTP-server and\ntemplate engines - all in a ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [2211, 697], "buggy_code_start_loc": [1576, 5], "filenames": ["bottle.py", "test/test_environ.py"], "fixing_code_end_loc": [2214, 712], "fixing_code_start_loc": [1576, 6], "message": "redirect() in bottle.py in bottle 0.12.10 doesn't filter a \"\\r\\n\" sequence, which leads to a CRLF attack, as ...
1,347
Determine whether the {function_name} code is vulnerable or not.
[ "# -*- coding: utf-8 -*-\n''' Tests for the BaseRequest and BaseResponse objects and their subclasses. '''", "import unittest\nimport sys", "", "import bottle\nfrom bottle import request, tob, touni, tonat, json_dumps, HTTPError, parse_date\nfrom test import tools\nimport wsgiref.util\nimport base64", "from...
[ 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PreciseBugs
{"buggy_code_end_loc": [2211, 697], "buggy_code_start_loc": [1576, 5], "filenames": ["bottle.py", "test/test_environ.py"], "fixing_code_end_loc": [2214, 712], "fixing_code_start_loc": [1576, 6], "message": "redirect() in bottle.py in bottle 0.12.10 doesn't filter a \"\\r\\n\" sequence, which leads to a CRLF attack, as ...
1,347
Determine whether the {function_name} code is vulnerable or not.
[ "# -*- coding: utf-8 -*-\n''' Tests for the BaseRequest and BaseResponse objects and their subclasses. '''", "import unittest\nimport sys", "\nimport itertools\n", "import bottle\nfrom bottle import request, tob, touni, tonat, json_dumps, HTTPError, parse_date\nfrom test import tools\nimport wsgiref.util\nimp...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [2211, 697], "buggy_code_start_loc": [1576, 5], "filenames": ["bottle.py", "test/test_environ.py"], "fixing_code_end_loc": [2214, 712], "fixing_code_start_loc": [1576, 6], "message": "redirect() in bottle.py in bottle 0.12.10 doesn't filter a \"\\r\\n\" sequence, which leads to a CRLF attack, as ...
1,347
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * Copyright (C) 2015-present ScyllaDB\n */", "/*\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */", "#include \"server.hh\"", "#include <boost/bimap/unordered_set_of.hpp>\n#include <boost/range/irange.hpp>\n#include <boost/bimap.hpp>\n#include <boost/assign.hpp>\n#include <boost/range/adaptor/sliced....
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [731], "buggy_code_start_loc": [730], "filenames": ["transport/server.cc"], "fixing_code_end_loc": [734], "fixing_code_start_loc": [730], "message": "Scylla is a real-time big data database that is API-compatible with Apache Cassandra and Amazon DynamoDB. When decompressing CQL frame received fro...
1,348
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * Copyright (C) 2015-present ScyllaDB\n */", "/*\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */", "#include \"server.hh\"", "#include <boost/bimap/unordered_set_of.hpp>\n#include <boost/range/irange.hpp>\n#include <boost/bimap.hpp>\n#include <boost/assign.hpp>\n#include <boost/range/adaptor/sliced....
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [731], "buggy_code_start_loc": [730], "filenames": ["transport/server.cc"], "fixing_code_end_loc": [734], "fixing_code_start_loc": [730], "message": "Scylla is a real-time big data database that is API-compatible with Apache Cassandra and Amazon DynamoDB. When decompressing CQL frame received fro...
1,348