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 *\tIPv6 output functions\n *\tLinux INET6 implementation\n *\n *\tAuthors:\n *\tPedro Roque\t\t<roque@di.fc.ul.pt>\n *\n *\tBased on linux/net/ipv4/ip_output.c\n *\n *\tThis program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * 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": [119, 600, 117, 93], "buggy_code_start_loc": [119, 600, 82, 93], "filenames": ["net/ipv6/ip6_offload.c", "net/ipv6/ip6_output.c", "net/ipv6/output_core.c", "net/ipv6/udp_offload.c"], "fixing_code_end_loc": [122, 605, 119, 96], "fixing_code_start_loc": [120, 601, 81, 94], "message": "The IPv6 frag...
1,302
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n *\tIPv6 output functions\n *\tLinux INET6 implementation\n *\n *\tAuthors:\n *\tPedro Roque\t\t<roque@di.fc.ul.pt>\n *\n *\tBased on linux/net/ipv4/ip_output.c\n *\n *\tThis program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * 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": [119, 600, 117, 93], "buggy_code_start_loc": [119, 600, 82, 93], "filenames": ["net/ipv6/ip6_offload.c", "net/ipv6/ip6_output.c", "net/ipv6/output_core.c", "net/ipv6/udp_offload.c"], "fixing_code_end_loc": [122, 605, 119, 96], "fixing_code_start_loc": [120, 601, 81, 94], "message": "The IPv6 frag...
1,302
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * IPv6 library code, needed by static components when full IPv6 support is\n * not configured or static. These functions are needed by GSO/GRO implementation.\n */\n#include <linux/export.h>\n#include <net/ip.h>\n#include <net/ipv6.h>\n#include <net/ip6_fib.h>\n#include <net/addrconf.h>\n#include <net/secure...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [119, 600, 117, 93], "buggy_code_start_loc": [119, 600, 82, 93], "filenames": ["net/ipv6/ip6_offload.c", "net/ipv6/ip6_output.c", "net/ipv6/output_core.c", "net/ipv6/udp_offload.c"], "fixing_code_end_loc": [122, 605, 119, 96], "fixing_code_start_loc": [120, 601, 81, 94], "message": "The IPv6 frag...
1,302
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * IPv6 library code, needed by static components when full IPv6 support is\n * not configured or static. These functions are needed by GSO/GRO implementation.\n */\n#include <linux/export.h>\n#include <net/ip.h>\n#include <net/ipv6.h>\n#include <net/ip6_fib.h>\n#include <net/addrconf.h>\n#include <net/secure...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [119, 600, 117, 93], "buggy_code_start_loc": [119, 600, 82, 93], "filenames": ["net/ipv6/ip6_offload.c", "net/ipv6/ip6_output.c", "net/ipv6/output_core.c", "net/ipv6/udp_offload.c"], "fixing_code_end_loc": [122, 605, 119, 96], "fixing_code_start_loc": [120, 601, 81, 94], "message": "The IPv6 frag...
1,302
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n *\tIPV6 GSO/GRO offload support\n *\tLinux INET6 implementation\n *\n *\tThis program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * as published by the Free Software Foundation; either version\n * 2 of the License, or (at yo...
[ 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 ]
PreciseBugs
{"buggy_code_end_loc": [119, 600, 117, 93], "buggy_code_start_loc": [119, 600, 82, 93], "filenames": ["net/ipv6/ip6_offload.c", "net/ipv6/ip6_output.c", "net/ipv6/output_core.c", "net/ipv6/udp_offload.c"], "fixing_code_end_loc": [122, 605, 119, 96], "fixing_code_start_loc": [120, 601, 81, 94], "message": "The IPv6 frag...
1,302
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n *\tIPV6 GSO/GRO offload support\n *\tLinux INET6 implementation\n *\n *\tThis program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * as published by the Free Software Foundation; either version\n * 2 of the License, or (at yo...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [119, 600, 117, 93], "buggy_code_start_loc": [119, 600, 82, 93], "filenames": ["net/ipv6/ip6_offload.c", "net/ipv6/ip6_output.c", "net/ipv6/output_core.c", "net/ipv6/udp_offload.c"], "fixing_code_end_loc": [122, 605, 119, 96], "fixing_code_start_loc": [120, 601, 81, 94], "message": "The IPv6 frag...
1,302
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * Copyright (c) 2013 Functional Streams for Scala\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy of\n * this software and associated documentation files (the \"Software\"), to deal in\n * the Software without restriction, including without limitation the rights to\n * use...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1 ]
PreciseBugs
{"buggy_code_end_loc": [182, 47], "buggy_code_start_loc": [109, 35], "filenames": ["io/js/src/test/scala/fs2/io/net/tls/TLSSocketSuite.scala", "io/js/src/test/scala/fs2/io/net/tls/TLSSuite.scala"], "fixing_code_end_loc": [230, 50], "fixing_code_start_loc": [109, 35], "message": "fs2 is a compositional, streaming I/O li...
1,303
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * Copyright (c) 2013 Functional Streams for Scala\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy of\n * this software and associated documentation files (the \"Software\"), to deal in\n * the Software without restriction, including without limitation the rights to\n * use...
[ 1, 1, 1, 1, 1, 1, 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": [182, 47], "buggy_code_start_loc": [109, 35], "filenames": ["io/js/src/test/scala/fs2/io/net/tls/TLSSocketSuite.scala", "io/js/src/test/scala/fs2/io/net/tls/TLSSuite.scala"], "fixing_code_end_loc": [230, 50], "fixing_code_start_loc": [109, 35], "message": "fs2 is a compositional, streaming I/O li...
1,303
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * Copyright (c) 2013 Functional Streams for Scala\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy of\n * this software and associated documentation files (the \"Software\"), to deal in\n * the Software without restriction, including without limitation the rights to\n * use...
[ 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [182, 47], "buggy_code_start_loc": [109, 35], "filenames": ["io/js/src/test/scala/fs2/io/net/tls/TLSSocketSuite.scala", "io/js/src/test/scala/fs2/io/net/tls/TLSSuite.scala"], "fixing_code_end_loc": [230, 50], "fixing_code_start_loc": [109, 35], "message": "fs2 is a compositional, streaming I/O li...
1,303
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * Copyright (c) 2013 Functional Streams for Scala\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy of\n * this software and associated documentation files (the \"Software\"), to deal in\n * the Software without restriction, including without limitation the rights to\n * use...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [182, 47], "buggy_code_start_loc": [109, 35], "filenames": ["io/js/src/test/scala/fs2/io/net/tls/TLSSocketSuite.scala", "io/js/src/test/scala/fs2/io/net/tls/TLSSuite.scala"], "fixing_code_end_loc": [230, 50], "fixing_code_start_loc": [109, 35], "message": "fs2 is a compositional, streaming I/O li...
1,303
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n* ModSecurity for Apache 2.x, http://www.modsecurity.org/\n* Copyright (c) 2004-2011 Trustwave Holdings, Inc. (http://www.trustwave.com/)\n*\n* You may not use this file except in compliance with\n* the License.  You may obtain a copy of the License at\n*\n*     http://www.apache.org/licenses/LICENSE-2.0\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, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PreciseBugs
{"buggy_code_end_loc": [3225, 597, 26], "buggy_code_start_loc": [157, 597, 16], "filenames": ["apache2/apache2_config.c", "apache2/modsecurity.h", "apache2/msc_xml.c"], "fixing_code_end_loc": [3270, 601, 38], "fixing_code_start_loc": [158, 598, 17], "message": "ModSecurity before 2.7.3 allows remote attackers to read a...
1,304
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n* ModSecurity for Apache 2.x, http://www.modsecurity.org/\n* Copyright (c) 2004-2011 Trustwave Holdings, Inc. (http://www.trustwave.com/)\n*\n* You may not use this file except in compliance with\n* the License.  You may obtain a copy of the License at\n*\n*     http://www.apache.org/licenses/LICENSE-2.0\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": [3225, 597, 26], "buggy_code_start_loc": [157, 597, 16], "filenames": ["apache2/apache2_config.c", "apache2/modsecurity.h", "apache2/msc_xml.c"], "fixing_code_end_loc": [3270, 601, 38], "fixing_code_start_loc": [158, 598, 17], "message": "ModSecurity before 2.7.3 allows remote attackers to read a...
1,304
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n* ModSecurity for Apache 2.x, http://www.modsecurity.org/\n* Copyright (c) 2004-2011 Trustwave Holdings, Inc. (http://www.trustwave.com/)\n*\n* You may not use this file except in compliance with\n* the License.  You may obtain a copy of the License at\n*\n*     http://www.apache.org/licenses/LICENSE-2.0\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": [3225, 597, 26], "buggy_code_start_loc": [157, 597, 16], "filenames": ["apache2/apache2_config.c", "apache2/modsecurity.h", "apache2/msc_xml.c"], "fixing_code_end_loc": [3270, 601, 38], "fixing_code_start_loc": [158, 598, 17], "message": "ModSecurity before 2.7.3 allows remote attackers to read a...
1,304
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n* ModSecurity for Apache 2.x, http://www.modsecurity.org/\n* Copyright (c) 2004-2011 Trustwave Holdings, Inc. (http://www.trustwave.com/)\n*\n* You may not use this file except in compliance with\n* the License.  You may obtain a copy of the License at\n*\n*     http://www.apache.org/licenses/LICENSE-2.0\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": [3225, 597, 26], "buggy_code_start_loc": [157, 597, 16], "filenames": ["apache2/apache2_config.c", "apache2/modsecurity.h", "apache2/msc_xml.c"], "fixing_code_end_loc": [3270, 601, 38], "fixing_code_start_loc": [158, 598, 17], "message": "ModSecurity before 2.7.3 allows remote attackers to read a...
1,304
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n* ModSecurity for Apache 2.x, http://www.modsecurity.org/\n* Copyright (c) 2004-2011 Trustwave Holdings, Inc. (http://www.trustwave.com/)\n*\n* You may not use this file except in compliance with\n* the License.  You may obtain a copy of the License at\n*\n*     http://www.apache.org/licenses/LICENSE-2.0\n*\n*...
[ 1, 1, 0, 1, 0, 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": [3225, 597, 26], "buggy_code_start_loc": [157, 597, 16], "filenames": ["apache2/apache2_config.c", "apache2/modsecurity.h", "apache2/msc_xml.c"], "fixing_code_end_loc": [3270, 601, 38], "fixing_code_start_loc": [158, 598, 17], "message": "ModSecurity before 2.7.3 allows remote attackers to read a...
1,304
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n* ModSecurity for Apache 2.x, http://www.modsecurity.org/\n* Copyright (c) 2004-2011 Trustwave Holdings, Inc. (http://www.trustwave.com/)\n*\n* You may not use this file except in compliance with\n* the License.  You may obtain a copy of the License at\n*\n*     http://www.apache.org/licenses/LICENSE-2.0\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 ]
PreciseBugs
{"buggy_code_end_loc": [3225, 597, 26], "buggy_code_start_loc": [157, 597, 16], "filenames": ["apache2/apache2_config.c", "apache2/modsecurity.h", "apache2/msc_xml.c"], "fixing_code_end_loc": [3270, 601, 38], "fixing_code_start_loc": [158, 598, 17], "message": "ModSecurity before 2.7.3 allows remote attackers to read a...
1,304
Determine whether the {function_name} code is vulnerable or not.
[ "import treeService from \"../../services/tree.js\";\nimport utils from \"../../services/utils.js\";\nimport ws from \"../../services/ws.js\";\nimport toastService from \"../../services/toast.js\";\nimport froca from \"../../services/froca.js\";\nimport openService from \"../../services/open.js\";\nimport BasicWidg...
[ 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [220], "buggy_code_start_loc": [216], "filenames": ["src/public/app/widgets/dialogs/export.js"], "fixing_code_end_loc": [217], "fixing_code_start_loc": [216], "message": "Cross-site Scripting (XSS) - Stored in GitHub repository zadam/trilium prior to 0.53.3.", "other": {"cve": {"cisaActionDue": n...
1,305
Determine whether the {function_name} code is vulnerable or not.
[ "import treeService from \"../../services/tree.js\";\nimport utils from \"../../services/utils.js\";\nimport ws from \"../../services/ws.js\";\nimport toastService from \"../../services/toast.js\";\nimport froca from \"../../services/froca.js\";\nimport openService from \"../../services/open.js\";\nimport BasicWidg...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [220], "buggy_code_start_loc": [216], "filenames": ["src/public/app/widgets/dialogs/export.js"], "fixing_code_end_loc": [217], "fixing_code_start_loc": [216], "message": "Cross-site Scripting (XSS) - Stored in GitHub repository zadam/trilium prior to 0.53.3.", "other": {"cve": {"cisaActionDue": n...
1,305
Determine whether the {function_name} code is vulnerable or not.
[ "#include \"dhcps.h\"\n#include \"tcpip.h\"", "", "//static struct dhcp_server_state dhcp_server_state_machine;\nstatic uint8_t dhcp_server_state_machine = DHCP_SERVER_STATE_IDLE;\n/* recorded the client MAC addr(default sudo mac) */\n//static uint8_t dhcps_record_first_client_mac[6] = {0xff,0xff,0xff,0xff,0xff...
[ 1, 0, 1, 1, 0, 1, 0, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0...
PreciseBugs
{"buggy_code_end_loc": [745, 117], "buggy_code_start_loc": [4, 9], "filenames": ["component/common/network/dhcp/dhcps.c", "component/common/network/dhcp/dhcps.h"], "fixing_code_end_loc": [1150, 137], "fixing_code_start_loc": [4, 10], "message": "component/common/network/dhcp/dhcps.c in ambiot amb1_sdk (aka SDK for Ameb...
1,306
Determine whether the {function_name} code is vulnerable or not.
[ "#include \"dhcps.h\"\n#include \"tcpip.h\"", "#include \"wifi_constants.h\"\nextern rtw_mode_t wifi_mode;", "//static struct dhcp_server_state dhcp_server_state_machine;\nstatic uint8_t dhcp_server_state_machine = DHCP_SERVER_STATE_IDLE;\n/* recorded the client MAC addr(default sudo mac) */\n//static uint8_t d...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [745, 117], "buggy_code_start_loc": [4, 9], "filenames": ["component/common/network/dhcp/dhcps.c", "component/common/network/dhcp/dhcps.h"], "fixing_code_end_loc": [1150, 137], "fixing_code_start_loc": [4, 10], "message": "component/common/network/dhcp/dhcps.c in ambiot amb1_sdk (aka SDK for Ameb...
1,306
Determine whether the {function_name} code is vulnerable or not.
[ "#ifndef __DHCPS_H__\n#define __DHCPS_H__", "#include \"lwip/arch.h\"\n#include \"lwip/netif.h\"\n#include \"lwip/udp.h\"\n#include \"lwip/stats.h\"\n#include \"lwip/sys.h\"", "", "\n#include <platform/platform_stdlib.h>", "#define CONFIG_DHCPS_KEPT_CLIENT_INFO", "#define DHCP_POOL_START\t\t\t100\n#define...
[ 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [745, 117], "buggy_code_start_loc": [4, 9], "filenames": ["component/common/network/dhcp/dhcps.c", "component/common/network/dhcp/dhcps.h"], "fixing_code_end_loc": [1150, 137], "fixing_code_start_loc": [4, 10], "message": "component/common/network/dhcp/dhcps.c in ambiot amb1_sdk (aka SDK for Ameb...
1,306
Determine whether the {function_name} code is vulnerable or not.
[ "#ifndef __DHCPS_H__\n#define __DHCPS_H__", "#include \"lwip/arch.h\"\n#include \"lwip/netif.h\"\n#include \"lwip/udp.h\"\n#include \"lwip/stats.h\"\n#include \"lwip/sys.h\"", "#include \"netif/etharp.h\"", "\n#include <platform/platform_stdlib.h>", "#define CONFIG_DHCPS_KEPT_CLIENT_INFO", "#define DHCP_P...
[ 1, 1, 1, 1, 1, 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": [745, 117], "buggy_code_start_loc": [4, 9], "filenames": ["component/common/network/dhcp/dhcps.c", "component/common/network/dhcp/dhcps.h"], "fixing_code_end_loc": [1150, 137], "fixing_code_start_loc": [4, 10], "message": "component/common/network/dhcp/dhcps.c in ambiot amb1_sdk (aka SDK for Ameb...
1,306
Determine whether the {function_name} code is vulnerable or not.
[ "<?php\n/* Pi-hole: A black hole for Internet advertisements\n* (c) 2017 Pi-hole, LLC (https://pi-hole.net)\n* Network-wide ad blocking via your own hardware.\n*\n* This file is copyright under the latest version of the EUPL.\n* Please see LICENSE file for your rights under this license. */", "// Credit: http...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [474, 45], "buggy_code_start_loc": [474, 44], "filenames": ["scripts/pi-hole/php/func.php", "settings.php"], "fixing_code_end_loc": [476, 45], "fixing_code_start_loc": [475, 44], "message": "adminlte is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripti...
1,307
Determine whether the {function_name} code is vulnerable or not.
[ "<?php\n/* Pi-hole: A black hole for Internet advertisements\n* (c) 2017 Pi-hole, LLC (https://pi-hole.net)\n* Network-wide ad blocking via your own hardware.\n*\n* This file is copyright under the latest version of the EUPL.\n* Please see LICENSE file for your rights under this license. */", "// Credit: http...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [474, 45], "buggy_code_start_loc": [474, 44], "filenames": ["scripts/pi-hole/php/func.php", "settings.php"], "fixing_code_end_loc": [476, 45], "fixing_code_start_loc": [475, 44], "message": "adminlte is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripti...
1,307
Determine whether the {function_name} code is vulnerable or not.
[ "<?php /*\n* Pi-hole: A black hole for Internet advertisements\n* (c) 2017 Pi-hole, LLC (https://pi-hole.net)\n* Network-wide ad blocking via your own hardware.\n*\n* This file is copyright under the latest version of the EUPL.\n* Please see LICENSE file for your rights under this license. */\nrequir...
[ 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 ]
PreciseBugs
{"buggy_code_end_loc": [474, 45], "buggy_code_start_loc": [474, 44], "filenames": ["scripts/pi-hole/php/func.php", "settings.php"], "fixing_code_end_loc": [476, 45], "fixing_code_start_loc": [475, 44], "message": "adminlte is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripti...
1,307
Determine whether the {function_name} code is vulnerable or not.
[ "<?php /*\n* Pi-hole: A black hole for Internet advertisements\n* (c) 2017 Pi-hole, LLC (https://pi-hole.net)\n* Network-wide ad blocking via your own hardware.\n*\n* This file is copyright under the latest version of the EUPL.\n* Please see LICENSE file for your rights under this license. */\nrequir...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [474, 45], "buggy_code_start_loc": [474, 44], "filenames": ["scripts/pi-hole/php/func.php", "settings.php"], "fixing_code_end_loc": [476, 45], "fixing_code_start_loc": [475, 44], "message": "adminlte is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripti...
1,307
Determine whether the {function_name} code is vulnerable or not.
[ "import { blockElementParserList, inlineElementParserList } from \"./parser\";", "export const marked = (markdownStr: string, blockParsers = blockElementParserList, inlineParsers = inlineElementParserList): string => {\n for (const parser of blockParsers) {\n const matchResult = parser.matcher(markdownStr);\n...
[ 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": [51, 19, 19, 19, 21, 18], "buggy_code_start_loc": [50, 1, 1, 1, 20, 1], "filenames": ["web/src/labs/marked/index.ts", "web/src/labs/marked/parser/Bold.ts", "web/src/labs/marked/parser/BoldEmphasis.ts", "web/src/labs/marked/parser/Emphasis.ts", "web/src/labs/marked/parser/Link.ts", "web/src/labs/m...
1,308
Determine whether the {function_name} code is vulnerable or not.
[ "import { blockElementParserList, inlineElementParserList } from \"./parser\";", "export const marked = (markdownStr: string, blockParsers = blockElementParserList, inlineParsers = inlineElementParserList): string => {\n for (const parser of blockParsers) {\n const matchResult = parser.matcher(markdownStr);\n...
[ 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": [51, 19, 19, 19, 21, 18], "buggy_code_start_loc": [50, 1, 1, 1, 20, 1], "filenames": ["web/src/labs/marked/index.ts", "web/src/labs/marked/parser/Bold.ts", "web/src/labs/marked/parser/BoldEmphasis.ts", "web/src/labs/marked/parser/Emphasis.ts", "web/src/labs/marked/parser/Link.ts", "web/src/labs/m...
1,308
Determine whether the {function_name} code is vulnerable or not.
[ "import { escape } from \"lodash\";", "import { marked } from \"..\";\nimport Link from \"./Link\";", "export const BOLD_REG = /\\*\\*(.+?)\\*\\*/;", "const matcher = (rawStr: string) => {\n const matchResult = rawStr.match(BOLD_REG);\n return matchResult;\n};", "const renderer = (rawStr: string): string ...
[ 0, 1, 1, 1, 1, 0, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [51, 19, 19, 19, 21, 18], "buggy_code_start_loc": [50, 1, 1, 1, 20, 1], "filenames": ["web/src/labs/marked/index.ts", "web/src/labs/marked/parser/Bold.ts", "web/src/labs/marked/parser/BoldEmphasis.ts", "web/src/labs/marked/parser/Emphasis.ts", "web/src/labs/marked/parser/Link.ts", "web/src/labs/m...
1,308
Determine whether the {function_name} code is vulnerable or not.
[ "", "import { marked } from \"..\";\nimport Link from \"./Link\";", "export const BOLD_REG = /\\*\\*(.+?)\\*\\*/;", "const matcher = (rawStr: string) => {\n const matchResult = rawStr.match(BOLD_REG);\n return matchResult;\n};", "const renderer = (rawStr: string): string => {\n const matchResult = matche...
[ 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [51, 19, 19, 19, 21, 18], "buggy_code_start_loc": [50, 1, 1, 1, 20, 1], "filenames": ["web/src/labs/marked/index.ts", "web/src/labs/marked/parser/Bold.ts", "web/src/labs/marked/parser/BoldEmphasis.ts", "web/src/labs/marked/parser/Emphasis.ts", "web/src/labs/marked/parser/Link.ts", "web/src/labs/m...
1,308
Determine whether the {function_name} code is vulnerable or not.
[ "import { escape } from \"lodash\";", "import { marked } from \"..\";\nimport Link from \"./Link\";", "export const BOLD_EMPHASIS_REG = /\\*\\*\\*(.+?)\\*\\*\\*/;", "const matcher = (rawStr: string) => {\n const matchResult = rawStr.match(BOLD_EMPHASIS_REG);\n return matchResult;\n};", "const renderer = (...
[ 0, 1, 1, 1, 1, 0, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [51, 19, 19, 19, 21, 18], "buggy_code_start_loc": [50, 1, 1, 1, 20, 1], "filenames": ["web/src/labs/marked/index.ts", "web/src/labs/marked/parser/Bold.ts", "web/src/labs/marked/parser/BoldEmphasis.ts", "web/src/labs/marked/parser/Emphasis.ts", "web/src/labs/marked/parser/Link.ts", "web/src/labs/m...
1,308
Determine whether the {function_name} code is vulnerable or not.
[ "", "import { marked } from \"..\";\nimport Link from \"./Link\";", "export const BOLD_EMPHASIS_REG = /\\*\\*\\*(.+?)\\*\\*\\*/;", "const matcher = (rawStr: string) => {\n const matchResult = rawStr.match(BOLD_EMPHASIS_REG);\n return matchResult;\n};", "const renderer = (rawStr: string): string => {\n co...
[ 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [51, 19, 19, 19, 21, 18], "buggy_code_start_loc": [50, 1, 1, 1, 20, 1], "filenames": ["web/src/labs/marked/index.ts", "web/src/labs/marked/parser/Bold.ts", "web/src/labs/marked/parser/BoldEmphasis.ts", "web/src/labs/marked/parser/Emphasis.ts", "web/src/labs/marked/parser/Link.ts", "web/src/labs/m...
1,308
Determine whether the {function_name} code is vulnerable or not.
[ "import { escape } from \"lodash\";", "import { marked } from \"..\";\nimport Link from \"./Link\";", "export const EMPHASIS_REG = /\\*(.+?)\\*/;", "const matcher = (rawStr: string) => {\n const matchResult = rawStr.match(EMPHASIS_REG);\n return matchResult;\n};", "const renderer = (rawStr: string): strin...
[ 0, 1, 1, 1, 1, 0, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [51, 19, 19, 19, 21, 18], "buggy_code_start_loc": [50, 1, 1, 1, 20, 1], "filenames": ["web/src/labs/marked/index.ts", "web/src/labs/marked/parser/Bold.ts", "web/src/labs/marked/parser/BoldEmphasis.ts", "web/src/labs/marked/parser/Emphasis.ts", "web/src/labs/marked/parser/Link.ts", "web/src/labs/m...
1,308
Determine whether the {function_name} code is vulnerable or not.
[ "", "import { marked } from \"..\";\nimport Link from \"./Link\";", "export const EMPHASIS_REG = /\\*(.+?)\\*/;", "const matcher = (rawStr: string) => {\n const matchResult = rawStr.match(EMPHASIS_REG);\n return matchResult;\n};", "const renderer = (rawStr: string): string => {\n const matchResult = matc...
[ 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [51, 19, 19, 19, 21, 18], "buggy_code_start_loc": [50, 1, 1, 1, 20, 1], "filenames": ["web/src/labs/marked/index.ts", "web/src/labs/marked/parser/Bold.ts", "web/src/labs/marked/parser/BoldEmphasis.ts", "web/src/labs/marked/parser/Emphasis.ts", "web/src/labs/marked/parser/Link.ts", "web/src/labs/m...
1,308
Determine whether the {function_name} code is vulnerable or not.
[ "import { escape } from \"lodash-es\";\nimport Emphasis from \"./Emphasis\";\nimport Bold from \"./Bold\";\nimport { marked } from \"..\";\nimport InlineCode from \"./InlineCode\";\nimport BoldEmphasis from \"./BoldEmphasis\";", "export const LINK_REG = /\\[(.*?)\\]\\((.+?)\\)+/;", "const matcher = (rawStr: str...
[ 1, 1, 1, 1, 0, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [51, 19, 19, 19, 21, 18], "buggy_code_start_loc": [50, 1, 1, 1, 20, 1], "filenames": ["web/src/labs/marked/index.ts", "web/src/labs/marked/parser/Bold.ts", "web/src/labs/marked/parser/BoldEmphasis.ts", "web/src/labs/marked/parser/Emphasis.ts", "web/src/labs/marked/parser/Link.ts", "web/src/labs/m...
1,308
Determine whether the {function_name} code is vulnerable or not.
[ "import { escape } from \"lodash-es\";\nimport Emphasis from \"./Emphasis\";\nimport Bold from \"./Bold\";\nimport { marked } from \"..\";\nimport InlineCode from \"./InlineCode\";\nimport BoldEmphasis from \"./BoldEmphasis\";", "export const LINK_REG = /\\[(.*?)\\]\\((.+?)\\)+/;", "const matcher = (rawStr: str...
[ 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [51, 19, 19, 19, 21, 18], "buggy_code_start_loc": [50, 1, 1, 1, 20, 1], "filenames": ["web/src/labs/marked/index.ts", "web/src/labs/marked/parser/Bold.ts", "web/src/labs/marked/parser/BoldEmphasis.ts", "web/src/labs/marked/parser/Emphasis.ts", "web/src/labs/marked/parser/Link.ts", "web/src/labs/m...
1,308
Determine whether the {function_name} code is vulnerable or not.
[ "import { marked } from \"..\";", "\nexport const STRIKETHROUGH_REG = /~~(.+?)~~/;", "const matcher = (rawStr: string) => {\n const matchResult = rawStr.match(STRIKETHROUGH_REG);\n return matchResult;\n};", "const renderer = (rawStr: string): string => {\n const matchResult = matcher(rawStr);\n if (!match...
[ 0, 1, 1, 1, 0, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [51, 19, 19, 19, 21, 18], "buggy_code_start_loc": [50, 1, 1, 1, 20, 1], "filenames": ["web/src/labs/marked/index.ts", "web/src/labs/marked/parser/Bold.ts", "web/src/labs/marked/parser/BoldEmphasis.ts", "web/src/labs/marked/parser/Emphasis.ts", "web/src/labs/marked/parser/Link.ts", "web/src/labs/m...
1,308
Determine whether the {function_name} code is vulnerable or not.
[ "import { escape } from \"lodash\";", "\nexport const STRIKETHROUGH_REG = /~~(.+?)~~/;", "const matcher = (rawStr: string) => {\n const matchResult = rawStr.match(STRIKETHROUGH_REG);\n return matchResult;\n};", "const renderer = (rawStr: string): string => {\n const matchResult = matcher(rawStr);\n if (!m...
[ 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [51, 19, 19, 19, 21, 18], "buggy_code_start_loc": [50, 1, 1, 1, 20, 1], "filenames": ["web/src/labs/marked/index.ts", "web/src/labs/marked/parser/Bold.ts", "web/src/labs/marked/parser/BoldEmphasis.ts", "web/src/labs/marked/parser/Emphasis.ts", "web/src/labs/marked/parser/Link.ts", "web/src/labs/m...
1,308
Determine whether the {function_name} code is vulnerable or not.
[ "![Rdiffweb Banner](https://gitlab.com/ikus-soft/rdiffweb/-/raw/master/doc/_static/banner.png)", "<p align=\"center\">\n<strong>\n<a href=\"https://www.rdiffweb.org\">website</a>\n• <a href=\"https://www.ikus-soft.com/archive/rdiffweb/doc/latest/html/\">docs</a>\n• <a href=\"https://groups.google.com/d/forum/rdif...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
PreciseBugs
{"buggy_code_end_loc": [108, 124, 117, 68], "buggy_code_start_loc": [108, 31, 117, 34], "filenames": ["README.md", "rdiffweb/controller/dispatch.py", "rdiffweb/controller/tests/test_secure_headers.py", "rdiffweb/tools/secure_headers.py"], "fixing_code_end_loc": [115, 118, 184, 108], "fixing_code_start_loc": [109, 30, 1...
1,309
Determine whether the {function_name} code is vulnerable or not.
[ "![Rdiffweb Banner](https://gitlab.com/ikus-soft/rdiffweb/-/raw/master/doc/_static/banner.png)", "<p align=\"center\">\n<strong>\n<a href=\"https://www.rdiffweb.org\">website</a>\n• <a href=\"https://www.ikus-soft.com/archive/rdiffweb/doc/latest/html/\">docs</a>\n• <a href=\"https://groups.google.com/d/forum/rdif...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [108, 124, 117, 68], "buggy_code_start_loc": [108, 31, 117, 34], "filenames": ["README.md", "rdiffweb/controller/dispatch.py", "rdiffweb/controller/tests/test_secure_headers.py", "rdiffweb/tools/secure_headers.py"], "fixing_code_end_loc": [115, 118, 184, 108], "fixing_code_start_loc": [109, 30, 1...
1,309
Determine whether the {function_name} code is vulnerable or not.
[ "# -*- coding: utf-8 -*-\n# rdiffweb, A web interface to rdiff-backup repositories\n# Copyright (C) 2012-2021 rdiffweb contributors\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, eith...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [108, 124, 117, 68], "buggy_code_start_loc": [108, 31, 117, 34], "filenames": ["README.md", "rdiffweb/controller/dispatch.py", "rdiffweb/controller/tests/test_secure_headers.py", "rdiffweb/tools/secure_headers.py"], "fixing_code_end_loc": [115, 118, 184, 108], "fixing_code_start_loc": [109, 30, 1...
1,309
Determine whether the {function_name} code is vulnerable or not.
[ "# -*- coding: utf-8 -*-\n# rdiffweb, A web interface to rdiff-backup repositories\n# Copyright (C) 2012-2021 rdiffweb contributors\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, eith...
[ 1, 1, 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": [108, 124, 117, 68], "buggy_code_start_loc": [108, 31, 117, 34], "filenames": ["README.md", "rdiffweb/controller/dispatch.py", "rdiffweb/controller/tests/test_secure_headers.py", "rdiffweb/tools/secure_headers.py"], "fixing_code_end_loc": [115, 118, 184, 108], "fixing_code_start_loc": [109, 30, 1...
1,309
Determine whether the {function_name} code is vulnerable or not.
[ "# -*- coding: utf-8 -*-\n# rdiffweb, A web interface to rdiff-backup repositories\n# Copyright (C) 2012-2021 rdiffweb contributors\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, eith...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 ]
PreciseBugs
{"buggy_code_end_loc": [108, 124, 117, 68], "buggy_code_start_loc": [108, 31, 117, 34], "filenames": ["README.md", "rdiffweb/controller/dispatch.py", "rdiffweb/controller/tests/test_secure_headers.py", "rdiffweb/tools/secure_headers.py"], "fixing_code_end_loc": [115, 118, 184, 108], "fixing_code_start_loc": [109, 30, 1...
1,309
Determine whether the {function_name} code is vulnerable or not.
[ "# -*- coding: utf-8 -*-\n# rdiffweb, A web interface to rdiff-backup repositories\n# Copyright (C) 2012-2021 rdiffweb contributors\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, eith...
[ 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": [108, 124, 117, 68], "buggy_code_start_loc": [108, 31, 117, 34], "filenames": ["README.md", "rdiffweb/controller/dispatch.py", "rdiffweb/controller/tests/test_secure_headers.py", "rdiffweb/tools/secure_headers.py"], "fixing_code_end_loc": [115, 118, 184, 108], "fixing_code_start_loc": [109, 30, 1...
1,309
Determine whether the {function_name} code is vulnerable or not.
[ "# -*- coding: utf-8 -*-\n# rdiffweb, A web interface to rdiff-backup repositories\n# Copyright (C) 2012-2021 rdiffweb contributors\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, eith...
[ 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1 ]
PreciseBugs
{"buggy_code_end_loc": [108, 124, 117, 68], "buggy_code_start_loc": [108, 31, 117, 34], "filenames": ["README.md", "rdiffweb/controller/dispatch.py", "rdiffweb/controller/tests/test_secure_headers.py", "rdiffweb/tools/secure_headers.py"], "fixing_code_end_loc": [115, 118, 184, 108], "fixing_code_start_loc": [109, 30, 1...
1,309
Determine whether the {function_name} code is vulnerable or not.
[ "# -*- coding: utf-8 -*-\n# rdiffweb, A web interface to rdiff-backup repositories\n# Copyright (C) 2012-2021 rdiffweb contributors\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, eith...
[ 1, 1, 1, 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": [108, 124, 117, 68], "buggy_code_start_loc": [108, 31, 117, 34], "filenames": ["README.md", "rdiffweb/controller/dispatch.py", "rdiffweb/controller/tests/test_secure_headers.py", "rdiffweb/tools/secure_headers.py"], "fixing_code_end_loc": [115, 118, 184, 108], "fixing_code_start_loc": [109, 30, 1...
1,309
Determine whether the {function_name} code is vulnerable or not.
[ "<?php\n/**\n * ---------------------------------------------------------------------\n * GLPI - Gestionnaire Libre de Parc Informatique\n * Copyright (C) 2015-2020 Teclib' and contributors.\n *\n * http://glpi-project.org\n *\n * based on GLPI - Gestionnaire Libre de Parc Informatique\n * Copyright (C) 2003-2014 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": [1296], "buggy_code_start_loc": [1295], "filenames": ["inc/knowbaseitem.class.php"], "fixing_code_end_loc": [1298], "fixing_code_start_loc": [1295], "message": "In GLPI before version 9.5.2, there is a leakage of user information through the public FAQ. The issue was introduced in version 9.5.0 a...
1,310
Determine whether the {function_name} code is vulnerable or not.
[ "<?php\n/**\n * ---------------------------------------------------------------------\n * GLPI - Gestionnaire Libre de Parc Informatique\n * Copyright (C) 2015-2020 Teclib' and contributors.\n *\n * http://glpi-project.org\n *\n * based on GLPI - Gestionnaire Libre de Parc Informatique\n * Copyright (C) 2003-2014 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": [1296], "buggy_code_start_loc": [1295], "filenames": ["inc/knowbaseitem.class.php"], "fixing_code_end_loc": [1298], "fixing_code_start_loc": [1295], "message": "In GLPI before version 9.5.2, there is a leakage of user information through the public FAQ. The issue was introduced in version 9.5.0 a...
1,310
Determine whether the {function_name} code is vulnerable or not.
[ "//\n// System.Reflection.Emit.DynamicMethod.cs\n//\n// Author:\n// Paolo Molaro (lupus@ximian.com)\n// Zoltan Varga (vargaz@freemail.hu)\n//\n// (C) 2003 Ximian, Inc. http://www.ximian.com\n//", "//\n// Copyright (C) 2004 Novell, Inc (http://www.novell.com)\n//\n// Permission is hereby granted, free of char...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [169, 517, 1450, 11168], "buggy_code_start_loc": [133, 516, 1450, 11066], "filenames": ["mcs/class/corlib/System.Reflection.Emit/DynamicMethod.cs", "mono/metadata/icall-def.h", "mono/metadata/object-internals.h", "mono/metadata/reflection.c"], "fixing_code_end_loc": [160, 515, 1454, 11203], "fixi...
1,311
Determine whether the {function_name} code is vulnerable or not.
[ "//\n// System.Reflection.Emit.DynamicMethod.cs\n//\n// Author:\n// Paolo Molaro (lupus@ximian.com)\n// Zoltan Varga (vargaz@freemail.hu)\n//\n// (C) 2003 Ximian, Inc. http://www.ximian.com\n//", "//\n// Copyright (C) 2004 Novell, Inc (http://www.novell.com)\n//\n// Permission is hereby granted, free of char...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [169, 517, 1450, 11168], "buggy_code_start_loc": [133, 516, 1450, 11066], "filenames": ["mcs/class/corlib/System.Reflection.Emit/DynamicMethod.cs", "mono/metadata/icall-def.h", "mono/metadata/object-internals.h", "mono/metadata/reflection.c"], "fixing_code_end_loc": [160, 515, 1454, 11203], "fixi...
1,311
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * This file contains the default set of the mono internal calls.\n * Each type that has internal call methods must be declared here\n * with the ICALL_TYPE macro as follows:\n *\n * \tICALL_TYPE(typeid, typename, first_icall_id)\n *\n * typeid must be a C symbol name unique to the type, don't worry about name...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [169, 517, 1450, 11168], "buggy_code_start_loc": [133, 516, 1450, 11066], "filenames": ["mcs/class/corlib/System.Reflection.Emit/DynamicMethod.cs", "mono/metadata/icall-def.h", "mono/metadata/object-internals.h", "mono/metadata/reflection.c"], "fixing_code_end_loc": [160, 515, 1454, 11203], "fixi...
1,311
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * This file contains the default set of the mono internal calls.\n * Each type that has internal call methods must be declared here\n * with the ICALL_TYPE macro as follows:\n *\n * \tICALL_TYPE(typeid, typename, first_icall_id)\n *\n * typeid must be a C symbol name unique to the type, don't worry about name...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [169, 517, 1450, 11168], "buggy_code_start_loc": [133, 516, 1450, 11066], "filenames": ["mcs/class/corlib/System.Reflection.Emit/DynamicMethod.cs", "mono/metadata/icall-def.h", "mono/metadata/object-internals.h", "mono/metadata/reflection.c"], "fixing_code_end_loc": [160, 515, 1454, 11203], "fixi...
1,311
Determine whether the {function_name} code is vulnerable or not.
[ "#ifndef __MONO_OBJECT_INTERNALS_H__\n#define __MONO_OBJECT_INTERNALS_H__", "#include <mono/metadata/object.h>\n#include <mono/metadata/threads.h>\n#include <mono/metadata/reflection.h>\n#include <mono/metadata/mempool.h>\n#include <mono/metadata/class-internals.h>\n#include <mono/io-layer/io-layer.h>\n#include \...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PreciseBugs
{"buggy_code_end_loc": [169, 517, 1450, 11168], "buggy_code_start_loc": [133, 516, 1450, 11066], "filenames": ["mcs/class/corlib/System.Reflection.Emit/DynamicMethod.cs", "mono/metadata/icall-def.h", "mono/metadata/object-internals.h", "mono/metadata/reflection.c"], "fixing_code_end_loc": [160, 515, 1454, 11203], "fixi...
1,311
Determine whether the {function_name} code is vulnerable or not.
[ "#ifndef __MONO_OBJECT_INTERNALS_H__\n#define __MONO_OBJECT_INTERNALS_H__", "#include <mono/metadata/object.h>\n#include <mono/metadata/threads.h>\n#include <mono/metadata/reflection.h>\n#include <mono/metadata/mempool.h>\n#include <mono/metadata/class-internals.h>\n#include <mono/io-layer/io-layer.h>\n#include \...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PreciseBugs
{"buggy_code_end_loc": [169, 517, 1450, 11168], "buggy_code_start_loc": [133, 516, 1450, 11066], "filenames": ["mcs/class/corlib/System.Reflection.Emit/DynamicMethod.cs", "mono/metadata/icall-def.h", "mono/metadata/object-internals.h", "mono/metadata/reflection.c"], "fixing_code_end_loc": [160, 515, 1454, 11203], "fixi...
1,311
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * reflection.c: Routines for creating an image at runtime.\n * \n * Author:\n * Paolo Molaro (lupus@ximian.com)\n *\n * Copyright 2001-2003 Ximian, Inc (http://www.ximian.com)\n * Copyright 2004-2009 Novell, Inc (http://www.novell.com)\n *\n */\n#include <config.h>\n#include \"mono/utils/mono-digest.h\"\n#i...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PreciseBugs
{"buggy_code_end_loc": [169, 517, 1450, 11168], "buggy_code_start_loc": [133, 516, 1450, 11066], "filenames": ["mcs/class/corlib/System.Reflection.Emit/DynamicMethod.cs", "mono/metadata/icall-def.h", "mono/metadata/object-internals.h", "mono/metadata/reflection.c"], "fixing_code_end_loc": [160, 515, 1454, 11203], "fixi...
1,311
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n * reflection.c: Routines for creating an image at runtime.\n * \n * Author:\n * Paolo Molaro (lupus@ximian.com)\n *\n * Copyright 2001-2003 Ximian, Inc (http://www.ximian.com)\n * Copyright 2004-2009 Novell, Inc (http://www.novell.com)\n *\n */\n#include <config.h>\n#include \"mono/utils/mono-digest.h\"\n#i...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PreciseBugs
{"buggy_code_end_loc": [169, 517, 1450, 11168], "buggy_code_start_loc": [133, 516, 1450, 11066], "filenames": ["mcs/class/corlib/System.Reflection.Emit/DynamicMethod.cs", "mono/metadata/icall-def.h", "mono/metadata/object-internals.h", "mono/metadata/reflection.c"], "fixing_code_end_loc": [160, 515, 1454, 11203], "fixi...
1,311
Determine whether the {function_name} code is vulnerable or not.
[ "/**********************************************************************\n regparse.c - Oniguruma (regular expression library)\n**********************************************************************/\n/*-\n * Copyright (c) 2002-2016 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>\n * All rights reserved.\n *\n * Redis...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [4046], "buggy_code_start_loc": [4046], "filenames": ["src/regparse.c"], "fixing_code_end_loc": [4050], "fixing_code_start_loc": [4047], "message": "An issue was discovered in Oniguruma 6.2.0, as used in Oniguruma-mod in Ruby through 2.4.1 and mbstring in PHP through 7.1.5. A heap out-of-bounds w...
1,312
Determine whether the {function_name} code is vulnerable or not.
[ "/**********************************************************************\n regparse.c - Oniguruma (regular expression library)\n**********************************************************************/\n/*-\n * Copyright (c) 2002-2016 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>\n * All rights reserved.\n *\n * Redis...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [4046], "buggy_code_start_loc": [4046], "filenames": ["src/regparse.c"], "fixing_code_end_loc": [4050], "fixing_code_start_loc": [4047], "message": "An issue was discovered in Oniguruma 6.2.0, as used in Oniguruma-mod in Ruby through 2.4.1 and mbstring in PHP through 7.1.5. A heap out-of-bounds w...
1,312
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n *\t\t\tGPAC - Multimedia Framework C SDK\n *\n *\t\t\tAuthors: Jean Le Feuvre, Romain Bouqueau, Cyril Concolato\n *\t\t\tCopyright (c) Telecom ParisTech 2000-2021\n *\t\t\t\t\tAll rights reserved\n *\n * This file is part of GPAC / Media Tools sub-project\n *\n * GPAC is free software; you can redistribute ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [5675], "buggy_code_start_loc": [4707], "filenames": ["src/media_tools/av_parsers.c"], "fixing_code_end_loc": [5679], "fixing_code_start_loc": [4708], "message": "A Segmentation fault caused by null pointer dereference vulnerability eists in Gpac through 1.0.2 via the avc_parse_slice function in ...
1,313
Determine whether the {function_name} code is vulnerable or not.
[ "/*\n *\t\t\tGPAC - Multimedia Framework C SDK\n *\n *\t\t\tAuthors: Jean Le Feuvre, Romain Bouqueau, Cyril Concolato\n *\t\t\tCopyright (c) Telecom ParisTech 2000-2021\n *\t\t\t\t\tAll rights reserved\n *\n * This file is part of GPAC / Media Tools sub-project\n *\n * GPAC is free software; you can redistribute ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [5675], "buggy_code_start_loc": [4707], "filenames": ["src/media_tools/av_parsers.c"], "fixing_code_end_loc": [5679], "fixing_code_start_loc": [4708], "message": "A Segmentation fault caused by null pointer dereference vulnerability eists in Gpac through 1.0.2 via the avc_parse_slice function in ...
1,313
Determine whether the {function_name} code is vulnerable or not.
[ "// SPDX-License-Identifier: GPL-2.0\n/*\n * Copyright (c) 2016, Linaro Ltd.\n * Copyright (c) 2012, Michal Simek <monstr@monstr.eu>\n * Copyright (c) 2012, PetaLogix\n * Copyright (c) 2011, Texas Instruments, Inc.\n * Copyright (c) 2011, Google, Inc.\n *\n * Based on rpmsg performance statistics driver by Michal S...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [232], "buggy_code_start_loc": [230], "filenames": ["drivers/rpmsg/rpmsg_char.c"], "fixing_code_end_loc": [234], "fixing_code_start_loc": [230], "message": "A memory leak in the rpmsg_eptdev_write_iter() function in drivers/rpmsg/rpmsg_char.c in the Linux kernel through 5.3.11 allows attackers to...
1,314
Determine whether the {function_name} code is vulnerable or not.
[ "// SPDX-License-Identifier: GPL-2.0\n/*\n * Copyright (c) 2016, Linaro Ltd.\n * Copyright (c) 2012, Michal Simek <monstr@monstr.eu>\n * Copyright (c) 2012, PetaLogix\n * Copyright (c) 2011, Texas Instruments, Inc.\n * Copyright (c) 2011, Google, Inc.\n *\n * Based on rpmsg performance statistics driver by Michal S...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [232], "buggy_code_start_loc": [230], "filenames": ["drivers/rpmsg/rpmsg_char.c"], "fixing_code_end_loc": [234], "fixing_code_start_loc": [230], "message": "A memory leak in the rpmsg_eptdev_write_iter() function in drivers/rpmsg/rpmsg_char.c in the Linux kernel through 5.3.11 allows attackers to...
1,314
Determine whether the {function_name} code is vulnerable or not.
[ "<div class=\"templates form\">\n<?php \n\techo $this->Form->create('Template');\n?>\n\t<fieldset>\n\t\t<legend><?php echo __('Create Template'); ?></legend>\n\t<?php\n\t\techo ($this->Form->input('name', array('div' => 'clear')));\n\t\techo ($this->Form->input('tags', array('id' => 'hiddenTags','div' => 'clear', '...
[ 1, 0, 1 ]
PreciseBugs
{"buggy_code_end_loc": [60, 67, 907], "buggy_code_start_loc": [59, 66, 906], "filenames": ["app/View/Templates/add.ctp", "app/View/Templates/edit.ctp", "app/webroot/js/ajaxification.js"], "fixing_code_end_loc": [60, 67, 914], "fixing_code_start_loc": [59, 66, 907], "message": "Multiple cross-site scripting (XSS) vulner...
1,315
Determine whether the {function_name} code is vulnerable or not.
[ "<div class=\"templates form\">\n<?php \n\techo $this->Form->create('Template');\n?>\n\t<fieldset>\n\t\t<legend><?php echo __('Create Template'); ?></legend>\n\t<?php\n\t\techo ($this->Form->input('name', array('div' => 'clear')));\n\t\techo ($this->Form->input('tags', array('id' => 'hiddenTags','div' => 'clear', '...
[ 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [60, 67, 907], "buggy_code_start_loc": [59, 66, 906], "filenames": ["app/View/Templates/add.ctp", "app/View/Templates/edit.ctp", "app/webroot/js/ajaxification.js"], "fixing_code_end_loc": [60, 67, 914], "fixing_code_start_loc": [59, 66, 907], "message": "Multiple cross-site scripting (XSS) vulner...
1,315
Determine whether the {function_name} code is vulnerable or not.
[ "<div class=\"templates form\">\n<?php \n\techo $this->Form->create('Template');\n?>\n\t<fieldset>\n\t\t<legend><?php echo __('Edit Template'); ?></legend>\n\t<?php\n\t\techo ($this->Form->input('name', array('div' => 'clear')));\n\t\techo ($this->Form->input('tags', array('id' => 'hiddenTags','div' => 'clear', 'la...
[ 1, 0, 1 ]
PreciseBugs
{"buggy_code_end_loc": [60, 67, 907], "buggy_code_start_loc": [59, 66, 906], "filenames": ["app/View/Templates/add.ctp", "app/View/Templates/edit.ctp", "app/webroot/js/ajaxification.js"], "fixing_code_end_loc": [60, 67, 914], "fixing_code_start_loc": [59, 66, 907], "message": "Multiple cross-site scripting (XSS) vulner...
1,315
Determine whether the {function_name} code is vulnerable or not.
[ "<div class=\"templates form\">\n<?php \n\techo $this->Form->create('Template');\n?>\n\t<fieldset>\n\t\t<legend><?php echo __('Edit Template'); ?></legend>\n\t<?php\n\t\techo ($this->Form->input('name', array('div' => 'clear')));\n\t\techo ($this->Form->input('tags', array('id' => 'hiddenTags','div' => 'clear', 'la...
[ 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [60, 67, 907], "buggy_code_start_loc": [59, 66, 906], "filenames": ["app/View/Templates/add.ctp", "app/View/Templates/edit.ctp", "app/webroot/js/ajaxification.js"], "fixing_code_end_loc": [60, 67, 914], "fixing_code_start_loc": [59, 66, 907], "message": "Multiple cross-site scripting (XSS) vulner...
1,315
Determine whether the {function_name} code is vulnerable or not.
[ "String.prototype.ucfirst = function() {\n\treturn this.charAt(0).toUpperCase() + this.slice(1);\n}", "function deleteObject(type, action, id, event) {\n\tvar destination = 'attributes';\n\tif (type == 'shadow_attributes') destination = 'shadow_attributes';\n\tif (type == 'template_elements') destination = 'templ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [60, 67, 907], "buggy_code_start_loc": [59, 66, 906], "filenames": ["app/View/Templates/add.ctp", "app/View/Templates/edit.ctp", "app/webroot/js/ajaxification.js"], "fixing_code_end_loc": [60, 67, 914], "fixing_code_start_loc": [59, 66, 907], "message": "Multiple cross-site scripting (XSS) vulner...
1,315
Determine whether the {function_name} code is vulnerable or not.
[ "String.prototype.ucfirst = function() {\n\treturn this.charAt(0).toUpperCase() + this.slice(1);\n}", "function deleteObject(type, action, id, event) {\n\tvar destination = 'attributes';\n\tif (type == 'shadow_attributes') destination = 'shadow_attributes';\n\tif (type == 'template_elements') destination = 'templ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [60, 67, 907], "buggy_code_start_loc": [59, 66, 906], "filenames": ["app/View/Templates/add.ctp", "app/View/Templates/edit.ctp", "app/webroot/js/ajaxification.js"], "fixing_code_end_loc": [60, 67, 914], "fixing_code_start_loc": [59, 66, 907], "message": "Multiple cross-site scripting (XSS) vulner...
1,315
Determine whether the {function_name} code is vulnerable or not.
[ "/* ecc.c\n *\n * Copyright (C) 2006-2017 wolfSSL Inc.\n *\n * This file is part of wolfSSL.\n *\n * wolfSSL 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 ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [3979], "buggy_code_start_loc": [3142], "filenames": ["wolfcrypt/src/ecc.c"], "fixing_code_end_loc": [4020], "fixing_code_start_loc": [3141], "message": "wolfcrypt/src/ecc.c in wolfSSL before 3.15.1.patch allows a memory-cache side-channel attack on ECDSA signatures, aka the Return Of the Hidden ...
1,316
Determine whether the {function_name} code is vulnerable or not.
[ "/* ecc.c\n *\n * Copyright (C) 2006-2017 wolfSSL Inc.\n *\n * This file is part of wolfSSL.\n *\n * wolfSSL 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 ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [3979], "buggy_code_start_loc": [3142], "filenames": ["wolfcrypt/src/ecc.c"], "fixing_code_end_loc": [4020], "fixing_code_start_loc": [3141], "message": "wolfcrypt/src/ecc.c in wolfSSL before 3.15.1.patch allows a memory-cache side-channel attack on ECDSA signatures, aka the Return Of the Hidden ...
1,316
Determine whether the {function_name} code is vulnerable or not.
[ "/* vi:set ts=8 sts=4 sw=4 noet:\n *\n * VIM - Vi IMproved\tby Bram Moolenaar\n *\n * Do \":help uganda\" in Vim to read copying and usage conditions.\n * Do \":help credits\" in Vim to see a list of people who contributed.\n * See README.txt for an overview of the Vim source code.\n */\n/*\n * move.c: Functions f...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PreciseBugs
{"buggy_code_end_loc": [1738, 1931, 697], "buggy_code_start_loc": [1737, 1775, 697], "filenames": ["src/move.c", "src/testdir/test_window_cmd.vim", "src/version.c"], "fixing_code_end_loc": [1738, 1950, 700], "fixing_code_start_loc": [1737, 1775, 698], "message": "Divide By Zero in GitHub repository vim/vim prior to 9.0...
1,317
Determine whether the {function_name} code is vulnerable or not.
[ "/* vi:set ts=8 sts=4 sw=4 noet:\n *\n * VIM - Vi IMproved\tby Bram Moolenaar\n *\n * Do \":help uganda\" in Vim to read copying and usage conditions.\n * Do \":help credits\" in Vim to see a list of people who contributed.\n * See README.txt for an overview of the Vim source code.\n */\n/*\n * move.c: Functions f...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PreciseBugs
{"buggy_code_end_loc": [1738, 1931, 697], "buggy_code_start_loc": [1737, 1775, 697], "filenames": ["src/move.c", "src/testdir/test_window_cmd.vim", "src/version.c"], "fixing_code_end_loc": [1738, 1950, 700], "fixing_code_start_loc": [1737, 1775, 698], "message": "Divide By Zero in GitHub repository vim/vim prior to 9.0...
1,317
Determine whether the {function_name} code is vulnerable or not.
[ "\" Tests for window cmd (:wincmd, :split, :vsplit, :resize and etc...)", "source check.vim\nsource screendump.vim", "func Test_window_cmd_ls0_with_split()\n set ls=0\n set splitbelow\n split\n quit\n call assert_equal(0, &lines - &cmdheight - winheight(0))\n new | only!\n \"\n set splitbelow&vim\n bot...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [1738, 1931, 697], "buggy_code_start_loc": [1737, 1775, 697], "filenames": ["src/move.c", "src/testdir/test_window_cmd.vim", "src/version.c"], "fixing_code_end_loc": [1738, 1950, 700], "fixing_code_start_loc": [1737, 1775, 698], "message": "Divide By Zero in GitHub repository vim/vim prior to 9.0...
1,317
Determine whether the {function_name} code is vulnerable or not.
[ "\" Tests for window cmd (:wincmd, :split, :vsplit, :resize and etc...)", "source check.vim\nsource screendump.vim", "func Test_window_cmd_ls0_with_split()\n set ls=0\n set splitbelow\n split\n quit\n call assert_equal(0, &lines - &cmdheight - winheight(0))\n new | only!\n \"\n set splitbelow&vim\n bot...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [1738, 1931, 697], "buggy_code_start_loc": [1737, 1775, 697], "filenames": ["src/move.c", "src/testdir/test_window_cmd.vim", "src/version.c"], "fixing_code_end_loc": [1738, 1950, 700], "fixing_code_start_loc": [1737, 1775, 698], "message": "Divide By Zero in GitHub repository vim/vim prior to 9.0...
1,317
Determine whether the {function_name} code is vulnerable or not.
[ "/* vi:set ts=8 sts=4 sw=4 noet:\n *\n * VIM - Vi IMproved\t\tby Bram Moolenaar\n *\n * Do \":help uganda\" in Vim to read copying and usage conditions.\n * Do \":help credits\" in Vim to see a list of people who contributed.\n * See README.txt for an overview of the Vim source code.\n */", "#include \"vim.h\"",...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [1738, 1931, 697], "buggy_code_start_loc": [1737, 1775, 697], "filenames": ["src/move.c", "src/testdir/test_window_cmd.vim", "src/version.c"], "fixing_code_end_loc": [1738, 1950, 700], "fixing_code_start_loc": [1737, 1775, 698], "message": "Divide By Zero in GitHub repository vim/vim prior to 9.0...
1,317
Determine whether the {function_name} code is vulnerable or not.
[ "/* vi:set ts=8 sts=4 sw=4 noet:\n *\n * VIM - Vi IMproved\t\tby Bram Moolenaar\n *\n * Do \":help uganda\" in Vim to read copying and usage conditions.\n * Do \":help credits\" in Vim to see a list of people who contributed.\n * See README.txt for an overview of the Vim source code.\n */", "#include \"vim.h\"",...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [1738, 1931, 697], "buggy_code_start_loc": [1737, 1775, 697], "filenames": ["src/move.c", "src/testdir/test_window_cmd.vim", "src/version.c"], "fixing_code_end_loc": [1738, 1950, 700], "fixing_code_start_loc": [1737, 1775, 698], "message": "Divide By Zero in GitHub repository vim/vim prior to 9.0...
1,317
Determine whether the {function_name} code is vulnerable or not.
[ "<?php\r\nrequire_once(NAVIGATE_PATH.'/lib/packages/files/file.class.php');\r\nrequire_once(NAVIGATE_PATH.'/lib/packages/webusers/webuser_group.class.php');\r\n\r\nfunction run()\r\n{\r\n\tglobal $user;\r\n\tglobal $layout;\r\n\tglobal $DB;\r\n\tglobal $website;\r\n\t\r\n\t$out = '';\r\n\t$item = new file();\r\n\t\...
[ 1, 0, 1 ]
PreciseBugs
{"buggy_code_end_loc": [380, 159], "buggy_code_start_loc": [336, 86], "filenames": ["lib/packages/files/files.php", "navigate_upload.php"], "fixing_code_end_loc": [335, 135], "fixing_code_start_loc": [335, 86], "message": "An \"Unrestricted Upload of File with Dangerous Type\" issue with directory traversal in navigate...
1,318
Determine whether the {function_name} code is vulnerable or not.
[ "<?php\r\nrequire_once(NAVIGATE_PATH.'/lib/packages/files/file.class.php');\r\nrequire_once(NAVIGATE_PATH.'/lib/packages/webusers/webuser_group.class.php');\r\n\r\nfunction run()\r\n{\r\n\tglobal $user;\r\n\tglobal $layout;\r\n\tglobal $DB;\r\n\tglobal $website;\r\n\t\r\n\t$out = '';\r\n\t$item = new file();\r\n\t\...
[ 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [380, 159], "buggy_code_start_loc": [336, 86], "filenames": ["lib/packages/files/files.php", "navigate_upload.php"], "fixing_code_end_loc": [335, 135], "fixing_code_start_loc": [335, 86], "message": "An \"Unrestricted Upload of File with Dangerous Type\" issue with directory traversal in navigate...
1,318
Determine whether the {function_name} code is vulnerable or not.
[ "<?php\r\n@ini_set('max_execution_time','3600');\r\n@ini_set('max_input_time','3600');\r\n\r\nheader(\"Content-Type: application/json\");\r\n\r\nif(empty($_REQUEST['session_id']))\r\n die('{\"jsonrpc\" : \"2.0\", \"error\" : {\"code\": 100, \"message\": \"Failed to retrieve session_id.\"}, \"id\" : \"id\"}');\r\...
[ 1, 0, 1, 0, 1, 0, 1 ]
PreciseBugs
{"buggy_code_end_loc": [380, 159], "buggy_code_start_loc": [336, 86], "filenames": ["lib/packages/files/files.php", "navigate_upload.php"], "fixing_code_end_loc": [335, 135], "fixing_code_start_loc": [335, 86], "message": "An \"Unrestricted Upload of File with Dangerous Type\" issue with directory traversal in navigate...
1,318
Determine whether the {function_name} code is vulnerable or not.
[ "<?php\r\n@ini_set('max_execution_time','3600');\r\n@ini_set('max_input_time','3600');\r\n\r\nheader(\"Content-Type: application/json\");\r\n\r\nif(empty($_REQUEST['session_id']))\r\n die('{\"jsonrpc\" : \"2.0\", \"error\" : {\"code\": 100, \"message\": \"Failed to retrieve session_id.\"}, \"id\" : \"id\"}');\r\...
[ 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [380, 159], "buggy_code_start_loc": [336, 86], "filenames": ["lib/packages/files/files.php", "navigate_upload.php"], "fixing_code_end_loc": [335, 135], "fixing_code_start_loc": [335, 86], "message": "An \"Unrestricted Upload of File with Dangerous Type\" issue with directory traversal in navigate...
1,318
Determine whether the {function_name} code is vulnerable or not.
[ "////////////////////////////////////////////////////////////////////////////\n// **** WAVPACK **** //\n// Hybrid Lossless Wavefile Compressor //\n// Copyright (c) 1998 - 2016 David Bryant. //\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, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PreciseBugs
{"buggy_code_end_loc": [283, 290, 245], "buggy_code_start_loc": [282, 289, 244], "filenames": ["cli/dsdiff.c", "cli/riff.c", "cli/wave64.c"], "fixing_code_end_loc": [290, 297, 252], "fixing_code_start_loc": [282, 289, 244], "message": "An issue was discovered in WavPack 5.1.0 and earlier for W64 input. Out-of-bounds wr...
1,319
Determine whether the {function_name} code is vulnerable or not.
[ "////////////////////////////////////////////////////////////////////////////\n// **** WAVPACK **** //\n// Hybrid Lossless Wavefile Compressor //\n// Copyright (c) 1998 - 2016 David Bryant. //\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": [283, 290, 245], "buggy_code_start_loc": [282, 289, 244], "filenames": ["cli/dsdiff.c", "cli/riff.c", "cli/wave64.c"], "fixing_code_end_loc": [290, 297, 252], "fixing_code_start_loc": [282, 289, 244], "message": "An issue was discovered in WavPack 5.1.0 and earlier for W64 input. Out-of-bounds wr...
1,319
Determine whether the {function_name} code is vulnerable or not.
[ "////////////////////////////////////////////////////////////////////////////\n// **** WAVPACK **** //\n// Hybrid Lossless Wavefile Compressor //\n// Copyright (c) 1998 - 2016 David Bryant. //\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, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PreciseBugs
{"buggy_code_end_loc": [283, 290, 245], "buggy_code_start_loc": [282, 289, 244], "filenames": ["cli/dsdiff.c", "cli/riff.c", "cli/wave64.c"], "fixing_code_end_loc": [290, 297, 252], "fixing_code_start_loc": [282, 289, 244], "message": "An issue was discovered in WavPack 5.1.0 and earlier for W64 input. Out-of-bounds wr...
1,319
Determine whether the {function_name} code is vulnerable or not.
[ "////////////////////////////////////////////////////////////////////////////\n// **** WAVPACK **** //\n// Hybrid Lossless Wavefile Compressor //\n// Copyright (c) 1998 - 2016 David Bryant. //\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": [283, 290, 245], "buggy_code_start_loc": [282, 289, 244], "filenames": ["cli/dsdiff.c", "cli/riff.c", "cli/wave64.c"], "fixing_code_end_loc": [290, 297, 252], "fixing_code_start_loc": [282, 289, 244], "message": "An issue was discovered in WavPack 5.1.0 and earlier for W64 input. Out-of-bounds wr...
1,319
Determine whether the {function_name} code is vulnerable or not.
[ "////////////////////////////////////////////////////////////////////////////\n// **** WAVPACK **** //\n// Hybrid Lossless Wavefile Compressor //\n// Copyright (c) 1998 - 2016 David Bryant. //\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, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PreciseBugs
{"buggy_code_end_loc": [283, 290, 245], "buggy_code_start_loc": [282, 289, 244], "filenames": ["cli/dsdiff.c", "cli/riff.c", "cli/wave64.c"], "fixing_code_end_loc": [290, 297, 252], "fixing_code_start_loc": [282, 289, 244], "message": "An issue was discovered in WavPack 5.1.0 and earlier for W64 input. Out-of-bounds wr...
1,319
Determine whether the {function_name} code is vulnerable or not.
[ "////////////////////////////////////////////////////////////////////////////\n// **** WAVPACK **** //\n// Hybrid Lossless Wavefile Compressor //\n// Copyright (c) 1998 - 2016 David Bryant. //\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": [283, 290, 245], "buggy_code_start_loc": [282, 289, 244], "filenames": ["cli/dsdiff.c", "cli/riff.c", "cli/wave64.c"], "fixing_code_end_loc": [290, 297, 252], "fixing_code_start_loc": [282, 289, 244], "message": "An issue was discovered in WavPack 5.1.0 and earlier for W64 input. Out-of-bounds wr...
1,319
Determine whether the {function_name} code is vulnerable or not.
[ "# frozen_string_literal: true", "module GitUrl\n class << self", " SSH_REGEXP = /(\\w+@(\\w+\\.)*\\w+):(.*)/", "\n def normalize(url)\n if m = SSH_REGEXP.match(url)\n url = \"ssh://#{m[1]}/#{m[3]}\"\n end", " if url.start_with?(\"https://github.com/\") && !url.end_with?(\".git\...
[ 1, 1, 0, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [6], "buggy_code_start_loc": [5], "filenames": ["lib/git_url.rb"], "fixing_code_end_loc": [6], "fixing_code_start_loc": [5], "message": "Discourse is an open source discussion platform. In affected versions a malicious user can cause a regular expression denial of service using a carefully crafte...
1,320
Determine whether the {function_name} code is vulnerable or not.
[ "# frozen_string_literal: true", "module GitUrl\n class << self", " SSH_REGEXP = /\\A(\\w+@\\w+(\\.\\w+)*):(.*)\\z/", "\n def normalize(url)\n if m = SSH_REGEXP.match(url)\n url = \"ssh://#{m[1]}/#{m[3]}\"\n end", " if url.start_with?(\"https://github.com/\") && !url.end_with?(\...
[ 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [6], "buggy_code_start_loc": [5], "filenames": ["lib/git_url.rb"], "fixing_code_end_loc": [6], "fixing_code_start_loc": [5], "message": "Discourse is an open source discussion platform. In affected versions a malicious user can cause a regular expression denial of service using a carefully crafte...
1,320
Determine whether the {function_name} code is vulnerable or not.
[ "# -*- coding: utf-8 -*-\n#\n# Copyright (C) 2008-2012 Red Hat, Inc.\n# Copyright (C) 2008 Ricky Zhou\n# This file is part of python-fedora\n#\n# python-fedora 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 Softwar...
[ 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, 1, 1, 1, 1, 1, 1, 1...
PreciseBugs
{"buggy_code_end_loc": [83], "buggy_code_start_loc": [83], "filenames": ["fedora/tg/utils.py"], "fixing_code_end_loc": [89], "fixing_code_start_loc": [84], "message": "python-fedora 0.8.0 and lower is vulnerable to an open redirect resulting in loss of CSRF protection", "other": {"cve": {"cisaActionDue": null, "cisaExp...
1,321
Determine whether the {function_name} code is vulnerable or not.
[ "# -*- coding: utf-8 -*-\n#\n# Copyright (C) 2008-2012 Red Hat, Inc.\n# Copyright (C) 2008 Ricky Zhou\n# This file is part of python-fedora\n#\n# python-fedora 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 Softwar...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PreciseBugs
{"buggy_code_end_loc": [83], "buggy_code_start_loc": [83], "filenames": ["fedora/tg/utils.py"], "fixing_code_end_loc": [89], "fixing_code_start_loc": [84], "message": "python-fedora 0.8.0 and lower is vulnerable to an open redirect resulting in loss of CSRF protection", "other": {"cve": {"cisaActionDue": null, "cisaExp...
1,321
Determine whether the {function_name} code is vulnerable or not.
[ "# Copyright (c) 2008-2013 Michael Dvorkin and contributors.\n#\n# Fat Free CRM is freely distributable under the terms of MIT license.\n# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php\n#------------------------------------------------------------------------------\nclass HomeController...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [68, 192], "buggy_code_start_loc": [60, 45], "filenames": ["app/controllers/home_controller.rb", "spec/controllers/home_controller_spec.rb"], "fixing_code_end_loc": [73, 241], "fixing_code_start_loc": [60, 45], "message": "Multiple SQL injection vulnerabilities in app/controllers/home_controller....
1,322
Determine whether the {function_name} code is vulnerable or not.
[ "# Copyright (c) 2008-2013 Michael Dvorkin and contributors.\n#\n# Fat Free CRM is freely distributable under the terms of MIT license.\n# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php\n#------------------------------------------------------------------------------\nclass HomeController...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [68, 192], "buggy_code_start_loc": [60, 45], "filenames": ["app/controllers/home_controller.rb", "spec/controllers/home_controller_spec.rb"], "fixing_code_end_loc": [73, 241], "fixing_code_start_loc": [60, 45], "message": "Multiple SQL injection vulnerabilities in app/controllers/home_controller....
1,322
Determine whether the {function_name} code is vulnerable or not.
[ "# Copyright (c) 2008-2013 Michael Dvorkin and contributors.\n#\n# Fat Free CRM is freely distributable under the terms of MIT license.\n# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php\n#------------------------------------------------------------------------------\nrequire File.expand_...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [68, 192], "buggy_code_start_loc": [60, 45], "filenames": ["app/controllers/home_controller.rb", "spec/controllers/home_controller_spec.rb"], "fixing_code_end_loc": [73, 241], "fixing_code_start_loc": [60, 45], "message": "Multiple SQL injection vulnerabilities in app/controllers/home_controller....
1,322
Determine whether the {function_name} code is vulnerable or not.
[ "# Copyright (c) 2008-2013 Michael Dvorkin and contributors.\n#\n# Fat Free CRM is freely distributable under the terms of MIT license.\n# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php\n#------------------------------------------------------------------------------\nrequire File.expand_...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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": [68, 192], "buggy_code_start_loc": [60, 45], "filenames": ["app/controllers/home_controller.rb", "spec/controllers/home_controller_spec.rb"], "fixing_code_end_loc": [73, 241], "fixing_code_start_loc": [60, 45], "message": "Multiple SQL injection vulnerabilities in app/controllers/home_controller....
1,322
Determine whether the {function_name} code is vulnerable or not.
[ "# detect-character-encoding", "[![npm](https://img.shields.io/npm/v/detect-character-encoding.svg)](https://www.npmjs.com/package/detect-character-encoding)\n[![Build status](https://img.shields.io/travis/sonicdoe/detect-character-encoding.svg)](https://travis-ci.org/sonicdoe/detect-character-encoding)", "> De...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [28, 42, 20], "buggy_code_start_loc": [28, 42, 20], "filenames": ["README.md", "icuWrapper.cpp", "test/index.js"], "fixing_code_end_loc": [31, 49, 25], "fixing_code_start_loc": [29, 43, 21], "message": "detect-character-encoding is an open source character encoding inspection library. In detect-c...
1,324
Determine whether the {function_name} code is vulnerable or not.
[ "# detect-character-encoding", "[![npm](https://img.shields.io/npm/v/detect-character-encoding.svg)](https://www.npmjs.com/package/detect-character-encoding)\n[![Build status](https://img.shields.io/travis/sonicdoe/detect-character-encoding.svg)](https://travis-ci.org/sonicdoe/detect-character-encoding)", "> De...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [28, 42, 20], "buggy_code_start_loc": [28, 42, 20], "filenames": ["README.md", "icuWrapper.cpp", "test/index.js"], "fixing_code_end_loc": [31, 49, 25], "fixing_code_start_loc": [29, 43, 21], "message": "detect-character-encoding is an open source character encoding inspection library. In detect-c...
1,324
Determine whether the {function_name} code is vulnerable or not.
[ "#include <node.h>\n#include <nan.h>", "#include <unicode/ucsdet.h>", "NAN_METHOD(DetectCharacterEncoding) {\n\tNan::HandleScope scope;", "\tv8::Local<v8::Object> inputBuffer = info[0]->ToObject();", "\tUCharsetDetector *charsetDetector;\n\tconst UCharsetMatch *charsetMatch;\n\tUErrorCode errorCode = U_ZERO...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [28, 42, 20], "buggy_code_start_loc": [28, 42, 20], "filenames": ["README.md", "icuWrapper.cpp", "test/index.js"], "fixing_code_end_loc": [31, 49, 25], "fixing_code_start_loc": [29, 43, 21], "message": "detect-character-encoding is an open source character encoding inspection library. In detect-c...
1,324
Determine whether the {function_name} code is vulnerable or not.
[ "#include <node.h>\n#include <nan.h>", "#include <unicode/ucsdet.h>", "NAN_METHOD(DetectCharacterEncoding) {\n\tNan::HandleScope scope;", "\tv8::Local<v8::Object> inputBuffer = info[0]->ToObject();", "\tUCharsetDetector *charsetDetector;\n\tconst UCharsetMatch *charsetMatch;\n\tUErrorCode errorCode = U_ZERO...
[ 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": [28, 42, 20], "buggy_code_start_loc": [28, 42, 20], "filenames": ["README.md", "icuWrapper.cpp", "test/index.js"], "fixing_code_end_loc": [31, 49, 25], "fixing_code_start_loc": [29, 43, 21], "message": "detect-character-encoding is an open source character encoding inspection library. In detect-c...
1,324
Determine whether the {function_name} code is vulnerable or not.
[ "'use strict';", "const assert = require('assert');\nconst fs = require('fs');\nconst path = require('path');", "const detectCharacterEncoding = require('..');", "function getFixture(fixture) {\n\treturn fs.readFileSync(path.join(__dirname, 'fixtures', fixture));\n}", "it('should return the encoding', () =>...
[ 1, 1, 1, 1, 1, 1, 0, 1 ]
PreciseBugs
{"buggy_code_end_loc": [28, 42, 20], "buggy_code_start_loc": [28, 42, 20], "filenames": ["README.md", "icuWrapper.cpp", "test/index.js"], "fixing_code_end_loc": [31, 49, 25], "fixing_code_start_loc": [29, 43, 21], "message": "detect-character-encoding is an open source character encoding inspection library. In detect-c...
1,324
Determine whether the {function_name} code is vulnerable or not.
[ "'use strict';", "const assert = require('assert');\nconst fs = require('fs');\nconst path = require('path');", "const detectCharacterEncoding = require('..');", "function getFixture(fixture) {\n\treturn fs.readFileSync(path.join(__dirname, 'fixtures', fixture));\n}", "it('should return the encoding', () =>...
[ 1, 1, 1, 1, 1, 1, 1, 1 ]
PreciseBugs
{"buggy_code_end_loc": [28, 42, 20], "buggy_code_start_loc": [28, 42, 20], "filenames": ["README.md", "icuWrapper.cpp", "test/index.js"], "fixing_code_end_loc": [31, 49, 25], "fixing_code_start_loc": [29, 43, 21], "message": "detect-character-encoding is an open source character encoding inspection library. In detect-c...
1,324