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. | [
"$Id: Changelog.txt,v 1.187 2013/06/06 21:36:39 nanard Exp $\nminiUPnP client Changelog.",
"",
"\n2013/08/01:\n define MAXHOSTNAMELEN if not already done",
"2013/06/06:\n update upnpreplyparse to allow larger values (128 chars instead of 64)",
"2013/05/14:\n Update upnpreplyparse to take into account \"e... | [
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,
1... | PreciseBugs | {"buggy_code_end_loc": [2, 166], "buggy_code_start_loc": [2, 165], "filenames": ["miniupnpc/Changelog.txt", "miniupnpc/miniwget.c"], "fixing_code_end_loc": [6, 166], "fixing_code_start_loc": [3, 165], "message": "The getHTTPResponse function in miniwget.c in MiniUPnP 1.9 allows remote attackers to cause a denial of ser... | 1,064 |
Determine whether the {function_name} code is vulnerable or not. | [
"$Id: Changelog.txt,v 1.187 2013/06/06 21:36:39 nanard Exp $\nminiUPnP client Changelog.",
"\n2013/10/07:\n fixed potential buffer overrun in miniwget.c",
"\n2013/08/01:\n define MAXHOSTNAMELEN if not already done",
"2013/06/06:\n update upnpreplyparse to allow larger values (128 chars instead of 64)",
"... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [2, 166], "buggy_code_start_loc": [2, 165], "filenames": ["miniupnpc/Changelog.txt", "miniupnpc/miniwget.c"], "fixing_code_end_loc": [6, 166], "fixing_code_start_loc": [3, 165], "message": "The getHTTPResponse function in miniwget.c in MiniUPnP 1.9 allows remote attackers to cause a denial of ser... | 1,064 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* $Id: miniwget.c,v 1.60 2013/10/07 10:03:16 nanard Exp $ */\n/* Project : miniupnp\n * Website : http://miniupnp.free.fr/\n * Author : Thomas Bernard\n * Copyright (c) 2005-2013 Thomas Bernard\n * This software is subject to the conditions detailed in the\n * LICENCE file provided in this distribution. */",
"#... | [
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": [2, 166], "buggy_code_start_loc": [2, 165], "filenames": ["miniupnpc/Changelog.txt", "miniupnpc/miniwget.c"], "fixing_code_end_loc": [6, 166], "fixing_code_start_loc": [3, 165], "message": "The getHTTPResponse function in miniwget.c in MiniUPnP 1.9 allows remote attackers to cause a denial of ser... | 1,064 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* $Id: miniwget.c,v 1.60 2013/10/07 10:03:16 nanard Exp $ */\n/* Project : miniupnp\n * Website : http://miniupnp.free.fr/\n * Author : Thomas Bernard\n * Copyright (c) 2005-2013 Thomas Bernard\n * This software is subject to the conditions detailed in the\n * LICENCE file provided in this distribution. */",
"#... | [
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": [2, 166], "buggy_code_start_loc": [2, 165], "filenames": ["miniupnpc/Changelog.txt", "miniupnpc/miniwget.c"], "fixing_code_end_loc": [6, 166], "fixing_code_start_loc": [3, 165], "message": "The getHTTPResponse function in miniwget.c in MiniUPnP 1.9 allows remote attackers to cause a denial of ser... | 1,064 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n# MantisBT - A PHP based bugtracking system",
"# MantisBT is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 2 of the License, or\n# (at your option) any later version.\n#\n# Mantis... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [77], "buggy_code_start_loc": [76], "filenames": ["core/classes/IssueAttachmentTimelineEvent.class.php"], "fixing_code_end_loc": [77], "fixing_code_start_loc": [76], "message": "The Timeline feature in my_view_page.php in MantisBT through 2.21.1 has a stored cross-site scripting (XSS) vulnerabili... | 1,065 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n# MantisBT - A PHP based bugtracking system",
"# MantisBT is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 2 of the License, or\n# (at your option) any later version.\n#\n# Mantis... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [77], "buggy_code_start_loc": [76], "filenames": ["core/classes/IssueAttachmentTimelineEvent.class.php"], "fixing_code_end_loc": [77], "fixing_code_start_loc": [76], "message": "The Timeline feature in my_view_page.php in MantisBT through 2.21.1 has a stored cross-site scripting (XSS) vulnerabili... | 1,065 |
Determine whether the {function_name} code is vulnerable or not. | [
"// SPDX-License-Identifier: GPL-2.0-only\n#include <linux/types.h>\n#include <linux/skbuff.h>\n#include <linux/socket.h>\n#include <linux/sysctl.h>\n#include <linux/net.h>\n#include <linux/module.h>\n#include <linux/if_arp.h>\n#include <linux/ipv6.h>\n#include <linux/mpls.h>\n#include <linux/netconf.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": [1438], "buggy_code_start_loc": [1430], "filenames": ["net/mpls/af_mpls.c"], "fixing_code_end_loc": [1443], "fixing_code_start_loc": [1431], "message": "In the Linux kernel before 6.1.13, there is a double free in net/mpls/af_mpls.c upon an allocation failure (for registering the sysctl table und... | 1,066 |
Determine whether the {function_name} code is vulnerable or not. | [
"// SPDX-License-Identifier: GPL-2.0-only\n#include <linux/types.h>\n#include <linux/skbuff.h>\n#include <linux/socket.h>\n#include <linux/sysctl.h>\n#include <linux/net.h>\n#include <linux/module.h>\n#include <linux/if_arp.h>\n#include <linux/ipv6.h>\n#include <linux/mpls.h>\n#include <linux/netconf.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": [1438], "buggy_code_start_loc": [1430], "filenames": ["net/mpls/af_mpls.c"], "fixing_code_end_loc": [1443], "fixing_code_start_loc": [1431], "message": "In the Linux kernel before 6.1.13, there is a double free in net/mpls/af_mpls.c upon an allocation failure (for registering the sysctl table und... | 1,066 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * Packet matching code for ARP packets.\n *\n * Based heavily, if not almost entirely, upon ip_tables.c framework.\n *\n * Some ARP specific bits are:\n *\n * Copyright (C) 2002 David S. Miller (davem@redhat.com)\n * Copyright (C) 2006-2009 Patrick McHardy <kaber@trash.net>\n *\n */\n#define pr_fmt(fmt) KBUIL... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [1236, 1496, 1508], "buggy_code_start_loc": [576, 741, 753], "filenames": ["net/ipv4/netfilter/arp_tables.c", "net/ipv4/netfilter/ip_tables.c", "net/ipv6/netfilter/ip6_tables.c"], "fixing_code_end_loc": [1238, 1498, 1510], "fixing_code_start_loc": [576, 741, 753], "message": "The IPT_SO_SET_REPLA... | 1,067 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * Packet matching code for ARP packets.\n *\n * Based heavily, if not almost entirely, upon ip_tables.c framework.\n *\n * Some ARP specific bits are:\n *\n * Copyright (C) 2002 David S. Miller (davem@redhat.com)\n * Copyright (C) 2006-2009 Patrick McHardy <kaber@trash.net>\n *\n */\n#define pr_fmt(fmt) KBUIL... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [1236, 1496, 1508], "buggy_code_start_loc": [576, 741, 753], "filenames": ["net/ipv4/netfilter/arp_tables.c", "net/ipv4/netfilter/ip_tables.c", "net/ipv6/netfilter/ip6_tables.c"], "fixing_code_end_loc": [1238, 1498, 1510], "fixing_code_start_loc": [576, 741, 753], "message": "The IPT_SO_SET_REPLA... | 1,067 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * Packet matching code.\n *\n * Copyright (C) 1999 Paul `Rusty' Russell & Michael J. Neuling\n * Copyright (C) 2000-2005 Netfilter Core Team <coreteam@netfilter.org>\n * Copyright (C) 2006-2010 Patrick McHardy <kaber@trash.net>\n *\n * This program is free software; you can redistribute it and/or modify\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": [1236, 1496, 1508], "buggy_code_start_loc": [576, 741, 753], "filenames": ["net/ipv4/netfilter/arp_tables.c", "net/ipv4/netfilter/ip_tables.c", "net/ipv6/netfilter/ip6_tables.c"], "fixing_code_end_loc": [1238, 1498, 1510], "fixing_code_start_loc": [576, 741, 753], "message": "The IPT_SO_SET_REPLA... | 1,067 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * Packet matching code.\n *\n * Copyright (C) 1999 Paul `Rusty' Russell & Michael J. Neuling\n * Copyright (C) 2000-2005 Netfilter Core Team <coreteam@netfilter.org>\n * Copyright (C) 2006-2010 Patrick McHardy <kaber@trash.net>\n *\n * This program is free software; you can redistribute it and/or modify\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": [1236, 1496, 1508], "buggy_code_start_loc": [576, 741, 753], "filenames": ["net/ipv4/netfilter/arp_tables.c", "net/ipv4/netfilter/ip_tables.c", "net/ipv6/netfilter/ip6_tables.c"], "fixing_code_end_loc": [1238, 1498, 1510], "fixing_code_start_loc": [576, 741, 753], "message": "The IPT_SO_SET_REPLA... | 1,067 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * Packet matching code.\n *\n * Copyright (C) 1999 Paul `Rusty' Russell & Michael J. Neuling\n * Copyright (C) 2000-2005 Netfilter Core Team <coreteam@netfilter.org>\n * Copyright (c) 2006-2010 Patrick McHardy <kaber@trash.net>\n *\n * This program is free software; you can redistribute it and/or modify\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": [1236, 1496, 1508], "buggy_code_start_loc": [576, 741, 753], "filenames": ["net/ipv4/netfilter/arp_tables.c", "net/ipv4/netfilter/ip_tables.c", "net/ipv6/netfilter/ip6_tables.c"], "fixing_code_end_loc": [1238, 1498, 1510], "fixing_code_start_loc": [576, 741, 753], "message": "The IPT_SO_SET_REPLA... | 1,067 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * Packet matching code.\n *\n * Copyright (C) 1999 Paul `Rusty' Russell & Michael J. Neuling\n * Copyright (C) 2000-2005 Netfilter Core Team <coreteam@netfilter.org>\n * Copyright (c) 2006-2010 Patrick McHardy <kaber@trash.net>\n *\n * This program is free software; you can redistribute it and/or modify\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": [1236, 1496, 1508], "buggy_code_start_loc": [576, 741, 753], "filenames": ["net/ipv4/netfilter/arp_tables.c", "net/ipv4/netfilter/ip_tables.c", "net/ipv6/netfilter/ip6_tables.c"], "fixing_code_end_loc": [1238, 1498, 1510], "fixing_code_start_loc": [576, 741, 753], "message": "The IPT_SO_SET_REPLA... | 1,067 |
Determine whether the {function_name} code is vulnerable or not. | [
"const Model = require('objection').Model\nconst _ = require('lodash')\nconst JSBinType = require('js-binary').Type\nconst pageHelper = require('../helpers/page')\nconst path = require('path')\nconst fs = require('fs-extra')\nconst yaml = require('js-yaml')\nconst striptags = require('striptags')\nconst emojiRegex ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [458], "buggy_code_start_loc": [374], "filenames": ["server/models/pages.js"], "fixing_code_end_loc": [467], "fixing_code_start_loc": [374], "message": "Wiki.js is a wiki app built on Node.js. In affected versions an authenticated user with write access on a restricted set of paths can update a p... | 1,068 |
Determine whether the {function_name} code is vulnerable or not. | [
"const Model = require('objection').Model\nconst _ = require('lodash')\nconst JSBinType = require('js-binary').Type\nconst pageHelper = require('../helpers/page')\nconst path = require('path')\nconst fs = require('fs-extra')\nconst yaml = require('js-yaml')\nconst striptags = require('striptags')\nconst emojiRegex ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [458], "buggy_code_start_loc": [374], "filenames": ["server/models/pages.js"], "fixing_code_end_loc": [467], "fixing_code_start_loc": [374], "message": "Wiki.js is a wiki app built on Node.js. In affected versions an authenticated user with write access on a restricted set of paths can update a p... | 1,068 |
Determine whether the {function_name} code is vulnerable or not. | [
"<!DOCTYPE html>\n<html lang=\"<?php echo erConfigClassLhConfig::getInstance()->getOverrideValue('site', 'content_language')?>\" dir=\"<?php echo erConfigClassLhConfig::getInstance()->getOverrideValue('site', 'dir_language')?>\">\n<head>\n <?php if (isset($Result['fullheight']) && $Result['fullheight']) : ?>\n ... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [72], "buggy_code_start_loc": [67], "filenames": ["lhc_web/design/defaulttheme/tpl/pagelayouts/widget.php"], "fixing_code_end_loc": [72], "fixing_code_start_loc": [67], "message": "livehelperchat is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')... | 1,069 |
Determine whether the {function_name} code is vulnerable or not. | [
"<!DOCTYPE html>\n<html lang=\"<?php echo erConfigClassLhConfig::getInstance()->getOverrideValue('site', 'content_language')?>\" dir=\"<?php echo erConfigClassLhConfig::getInstance()->getOverrideValue('site', 'dir_language')?>\">\n<head>\n <?php if (isset($Result['fullheight']) && $Result['fullheight']) : ?>\n ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [72], "buggy_code_start_loc": [67], "filenames": ["lhc_web/design/defaulttheme/tpl/pagelayouts/widget.php"], "fixing_code_end_loc": [72], "fixing_code_start_loc": [67], "message": "livehelperchat is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')... | 1,069 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* Copyright (C) 2008-2018 - pancake, unlogic, emvivre */",
"#include <r_flag.h>\n#include <r_core.h>\n#include <r_asm.h>\n#include <r_lib.h>\n#include <r_types.h>\n#include <stdio.h>\n#include <string.h>",
"static ut64 getnum(RAsm *a, const char *s);",
"#define ENCODING_SHIFT 0\n#define OPTYPE_SHIFT 6\n#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": [4586], "buggy_code_start_loc": [4578], "filenames": ["libr/asm/p/asm_x86_nz.c"], "fixing_code_end_loc": [4588], "fixing_code_start_loc": [4578], "message": "In radare2 prior to 3.1.1, the parseOperand function inside libr/asm/p/asm_x86_nz.c may allow attackers to cause a denial of service (appli... | 1,070 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* Copyright (C) 2008-2018 - pancake, unlogic, emvivre */",
"#include <r_flag.h>\n#include <r_core.h>\n#include <r_asm.h>\n#include <r_lib.h>\n#include <r_types.h>\n#include <stdio.h>\n#include <string.h>",
"static ut64 getnum(RAsm *a, const char *s);",
"#define ENCODING_SHIFT 0\n#define OPTYPE_SHIFT 6\n#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": [4586], "buggy_code_start_loc": [4578], "filenames": ["libr/asm/p/asm_x86_nz.c"], "fixing_code_end_loc": [4588], "fixing_code_start_loc": [4578], "message": "In radare2 prior to 3.1.1, the parseOperand function inside libr/asm/p/asm_x86_nz.c may allow attackers to cause a denial of service (appli... | 1,070 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\nclass PEAR_Bug_Accountrequest\n{\n var $dbh;\n var $id;\n var $created_on;\n var $handle;\n var $salt;\n var $email;",
" function __construct($handle = false)\n {\n $this->dbh = &$GLOBALS['dbh'];\n if ($handle) {\n $this->handle = $handle;\n } else {... | [
1,
1,
1,
1,
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": [240, 50, 75, 95, 359, 170, 326, 516, 78, 78], "buggy_code_start_loc": [239, 49, 60, 58, 148, 141, 148, 270, 77, 77], "filenames": ["include/bugs/pear-bug-accountrequest.php", "include/pear-database-user.php", "include/pepr/pepr-ppvote.php", "include/users/passwordmanage.php", "pearweb.php", "pea... | 1,071 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\nclass PEAR_Bug_Accountrequest\n{\n var $dbh;\n var $id;\n var $created_on;\n var $handle;\n var $salt;\n var $email;",
" function __construct($handle = false)\n {\n $this->dbh = &$GLOBALS['dbh'];\n if ($handle) {\n $this->handle = $handle;\n } else {... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [240, 50, 75, 95, 359, 170, 326, 516, 78, 78], "buggy_code_start_loc": [239, 49, 60, 58, 148, 141, 148, 270, 77, 77], "filenames": ["include/bugs/pear-bug-accountrequest.php", "include/pear-database-user.php", "include/pepr/pepr-ppvote.php", "include/users/passwordmanage.php", "pearweb.php", "pea... | 1,071 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"class user\n{\n static function remove($uid)\n {\n global $dbh;",
" include_once 'pear-database-note.php';\n note::removeAll($uid);",
" include_once 'pear-rest.php';\n $pear_rest = new pearweb_Channel_REST_Generator(PEAR_REST_PATH, $dbh);\n $pear_rest-... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [240, 50, 75, 95, 359, 170, 326, 516, 78, 78], "buggy_code_start_loc": [239, 49, 60, 58, 148, 141, 148, 270, 77, 77], "filenames": ["include/bugs/pear-bug-accountrequest.php", "include/pear-database-user.php", "include/pepr/pepr-ppvote.php", "include/users/passwordmanage.php", "pearweb.php", "pea... | 1,071 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"class user\n{\n static function remove($uid)\n {\n global $dbh;",
" include_once 'pear-database-note.php';\n note::removeAll($uid);",
" include_once 'pear-rest.php';\n $pear_rest = new pearweb_Channel_REST_Generator(PEAR_REST_PATH, $dbh);\n $pear_rest-... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [240, 50, 75, 95, 359, 170, 326, 516, 78, 78], "buggy_code_start_loc": [239, 49, 60, 58, 148, 141, 148, 270, 77, 77], "filenames": ["include/bugs/pear-bug-accountrequest.php", "include/pear-database-user.php", "include/pepr/pepr-ppvote.php", "include/users/passwordmanage.php", "pearweb.php", "pea... | 1,071 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * Establishes the procedures, objects and variables used throughout PEPr.\n *\n * The <var>$proposalReviewsMap</var> arrays is defined here.\n *\n * NOTE: Proposal constants are defined in pearweb/include/pear-config.php.\n *\n * This source file is subject to version 3.0 of the PHP license,\n * that ... | [
1,
1,
1,
1,
1,
0,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [240, 50, 75, 95, 359, 170, 326, 516, 78, 78], "buggy_code_start_loc": [239, 49, 60, 58, 148, 141, 148, 270, 77, 77], "filenames": ["include/bugs/pear-bug-accountrequest.php", "include/pear-database-user.php", "include/pepr/pepr-ppvote.php", "include/users/passwordmanage.php", "pearweb.php", "pea... | 1,071 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * Establishes the procedures, objects and variables used throughout PEPr.\n *\n * The <var>$proposalReviewsMap</var> arrays is defined here.\n *\n * NOTE: Proposal constants are defined in pearweb/include/pear-config.php.\n *\n * This source file is subject to version 3.0 of the PHP license,\n * that ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [240, 50, 75, 95, 359, 170, 326, 516, 78, 78], "buggy_code_start_loc": [239, 49, 60, 58, 148, 141, 148, 270, 77, 77], "filenames": ["include/bugs/pear-bug-accountrequest.php", "include/pear-database-user.php", "include/pepr/pepr-ppvote.php", "include/users/passwordmanage.php", "pearweb.php", "pea... | 1,071 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\nclass Users_PasswordManage\n{\n var $_dbh;\n var $_mailer;\n function __construct()\n {\n $this->_dbh = &$GLOBALS['dbh'];\n }",
" /**\n * Confirm the user's request to reset the password\n *\n * @param string $user\n * @param string $salt\n * @return array\n ... | [
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [240, 50, 75, 95, 359, 170, 326, 516, 78, 78], "buggy_code_start_loc": [239, 49, 60, 58, 148, 141, 148, 270, 77, 77], "filenames": ["include/bugs/pear-bug-accountrequest.php", "include/pear-database-user.php", "include/pepr/pepr-ppvote.php", "include/users/passwordmanage.php", "pearweb.php", "pea... | 1,071 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\nclass Users_PasswordManage\n{\n var $_dbh;\n var $_mailer;\n function __construct()\n {\n $this->_dbh = &$GLOBALS['dbh'];\n }",
" /**\n * Confirm the user's request to reset the password\n *\n * @param string $user\n * @param string $salt\n * @return array\n ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [240, 50, 75, 95, 359, 170, 326, 516, 78, 78], "buggy_code_start_loc": [239, 49, 60, 58, 148, 141, 148, 270, 77, 77], "filenames": ["include/bugs/pear-bug-accountrequest.php", "include/pear-database-user.php", "include/pepr/pepr-ppvote.php", "include/users/passwordmanage.php", "pearweb.php", "pea... | 1,071 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\nrequire_once 'MDB2/Schema.php';\nclass pearweb_postinstall\n{\n var $lastversion;\n var $dsn;\n /**\n * Frontend object\n * @var PEAR_Frontend\n * @access private\n */\n var $_ui;",
" function init(&$config, &$pkg, $lastversion)\n {\n $this->_ui = &PEAR_Frontend::s... | [
1,
1,
1,
1,
0,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [240, 50, 75, 95, 359, 170, 326, 516, 78, 78], "buggy_code_start_loc": [239, 49, 60, 58, 148, 141, 148, 270, 77, 77], "filenames": ["include/bugs/pear-bug-accountrequest.php", "include/pear-database-user.php", "include/pepr/pepr-ppvote.php", "include/users/passwordmanage.php", "pearweb.php", "pea... | 1,071 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\nrequire_once 'MDB2/Schema.php';\nclass pearweb_postinstall\n{\n var $lastversion;\n var $dsn;\n /**\n * Frontend object\n * @var PEAR_Frontend\n * @access private\n */\n var $_ui;",
" function init(&$config, &$pkg, $lastversion)\n {\n $this->_ui = &PEAR_Frontend::s... | [
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [240, 50, 75, 95, 359, 170, 326, 516, 78, 78], "buggy_code_start_loc": [239, 49, 60, 58, 148, 141, 148, 270, 77, 77], "filenames": ["include/bugs/pear-bug-accountrequest.php", "include/pear-database-user.php", "include/pepr/pepr-ppvote.php", "include/users/passwordmanage.php", "pearweb.php", "pea... | 1,071 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\nrequire_once 'MDB2/Schema.php';\nclass pearweb_election_postinstall\n{\n var $lastversion;\n var $dsn;\n /**\n * Frontend object\n * @var PEAR_Frontend\n * @access private\n */\n var $_ui;",
" function init(&$config, &$pkg, $lastversion)\n {\n $this->_ui = &PEAR_Fr... | [
1,
1,
1,
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [240, 50, 75, 95, 359, 170, 326, 516, 78, 78], "buggy_code_start_loc": [239, 49, 60, 58, 148, 141, 148, 270, 77, 77], "filenames": ["include/bugs/pear-bug-accountrequest.php", "include/pear-database-user.php", "include/pepr/pepr-ppvote.php", "include/users/passwordmanage.php", "pearweb.php", "pea... | 1,071 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\nrequire_once 'MDB2/Schema.php';\nclass pearweb_election_postinstall\n{\n var $lastversion;\n var $dsn;\n /**\n * Frontend object\n * @var PEAR_Frontend\n * @access private\n */\n var $_ui;",
" function init(&$config, &$pkg, $lastversion)\n {\n $this->_ui = &PEAR_Fr... | [
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [240, 50, 75, 95, 359, 170, 326, 516, 78, 78], "buggy_code_start_loc": [239, 49, 60, 58, 148, 141, 148, 270, 77, 77], "filenames": ["include/bugs/pear-bug-accountrequest.php", "include/pear-database-user.php", "include/pepr/pepr-ppvote.php", "include/users/passwordmanage.php", "pearweb.php", "pea... | 1,071 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\nrequire_once 'MDB2/Schema.php';\nclass pearweb_pepr_postinstall\n{\n var $lastversion;\n var $dsn;\n /**\n * Frontend object\n * @var PEAR_Frontend\n * @access private\n */\n var $_ui;",
" function init(&$config, &$pkg, $lastversion)\n {\n $this->_ui = &PEAR_Fronte... | [
1,
1,
1,
1,
0,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [240, 50, 75, 95, 359, 170, 326, 516, 78, 78], "buggy_code_start_loc": [239, 49, 60, 58, 148, 141, 148, 270, 77, 77], "filenames": ["include/bugs/pear-bug-accountrequest.php", "include/pear-database-user.php", "include/pepr/pepr-ppvote.php", "include/users/passwordmanage.php", "pearweb.php", "pea... | 1,071 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\nrequire_once 'MDB2/Schema.php';\nclass pearweb_pepr_postinstall\n{\n var $lastversion;\n var $dsn;\n /**\n * Frontend object\n * @var PEAR_Frontend\n * @access private\n */\n var $_ui;",
" function init(&$config, &$pkg, $lastversion)\n {\n $this->_ui = &PEAR_Fronte... | [
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [240, 50, 75, 95, 359, 170, 326, 516, 78, 78], "buggy_code_start_loc": [239, 49, 60, 58, 148, 141, 148, 270, 77, 77], "filenames": ["include/bugs/pear-bug-accountrequest.php", "include/pear-database-user.php", "include/pepr/pepr-ppvote.php", "include/users/passwordmanage.php", "pearweb.php", "pea... | 1,071 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/*\n +----------------------------------------------------------------------+\n | PEAR Web site version 1.0 |\n +----------------------------------------------------------------------+\n | Copyright (c) 2001-2005 The PHP Group ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [240, 50, 75, 95, 359, 170, 326, 516, 78, 78], "buggy_code_start_loc": [239, 49, 60, 58, 148, 141, 148, 270, 77, 77], "filenames": ["include/bugs/pear-bug-accountrequest.php", "include/pear-database-user.php", "include/pepr/pepr-ppvote.php", "include/users/passwordmanage.php", "pearweb.php", "pea... | 1,071 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/*\n +----------------------------------------------------------------------+\n | PEAR Web site version 1.0 |\n +----------------------------------------------------------------------+\n | Copyright (c) 2001-2005 The PHP Group ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [240, 50, 75, 95, 359, 170, 326, 516, 78, 78], "buggy_code_start_loc": [239, 49, 60, 58, 148, 141, 148, 270, 77, 77], "filenames": ["include/bugs/pear-bug-accountrequest.php", "include/pear-database-user.php", "include/pepr/pepr-ppvote.php", "include/users/passwordmanage.php", "pearweb.php", "pea... | 1,071 |
Determine whether the {function_name} code is vulnerable or not. | [
"#!/usr/bin/env php\n<?php\nrequire_once 'MDB2.php';\n$dsn = 'mysql://root:@localhost/pear';",
"try {\n $proposal_id = (int) $argv[1];\n if ($proposal_id < 1) {\n throw InvalidArgumentException(\"Please supply a number: ./rollback.php NUM\");\n }",
" $mdb2 = MDB2::connect($dsn);\n if (MDB... | [
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": [240, 50, 75, 95, 359, 170, 326, 516, 78, 78], "buggy_code_start_loc": [239, 49, 60, 58, 148, 141, 148, 270, 77, 77], "filenames": ["include/bugs/pear-bug-accountrequest.php", "include/pear-database-user.php", "include/pepr/pepr-ppvote.php", "include/users/passwordmanage.php", "pearweb.php", "pea... | 1,071 |
Determine whether the {function_name} code is vulnerable or not. | [
"#!/usr/bin/env php\n<?php\nrequire_once 'MDB2.php';\n$dsn = 'mysql://root:@localhost/pear';",
"try {\n $proposal_id = (int) $argv[1];\n if ($proposal_id < 1) {\n throw InvalidArgumentException(\"Please supply a number: ./rollback.php NUM\");\n }",
" $mdb2 = MDB2::connect($dsn);\n if (MDB... | [
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": [240, 50, 75, 95, 359, 170, 326, 516, 78, 78], "buggy_code_start_loc": [239, 49, 60, 58, 148, 141, 148, 270, 77, 77], "filenames": ["include/bugs/pear-bug-accountrequest.php", "include/pear-database-user.php", "include/pepr/pepr-ppvote.php", "include/users/passwordmanage.php", "pearweb.php", "pea... | 1,071 |
Determine whether the {function_name} code is vulnerable or not. | [
"#!/usr/bin/env php\n<?php\nrequire_once 'MDB2.php';\n$dsn = 'mysqli://pear:pear@localhost/pear';",
"try {\n $proposal_id = (int) $argv[1];\n if ($proposal_id < 1) {\n throw new InvalidArgumentException(\"Please supply a number: ./rollback.php NUM\");\n }",
" $mdb2 = MDB2::connect($dsn);\n ... | [
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": [240, 50, 75, 95, 359, 170, 326, 516, 78, 78], "buggy_code_start_loc": [239, 49, 60, 58, 148, 141, 148, 270, 77, 77], "filenames": ["include/bugs/pear-bug-accountrequest.php", "include/pear-database-user.php", "include/pepr/pepr-ppvote.php", "include/users/passwordmanage.php", "pearweb.php", "pea... | 1,071 |
Determine whether the {function_name} code is vulnerable or not. | [
"#!/usr/bin/env php\n<?php\nrequire_once 'MDB2.php';\n$dsn = 'mysqli://pear:pear@localhost/pear';",
"try {\n $proposal_id = (int) $argv[1];\n if ($proposal_id < 1) {\n throw new InvalidArgumentException(\"Please supply a number: ./rollback.php NUM\");\n }",
" $mdb2 = MDB2::connect($dsn);\n ... | [
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": [240, 50, 75, 95, 359, 170, 326, 516, 78, 78], "buggy_code_start_loc": [239, 49, 60, 58, 148, 141, 148, 270, 77, 77], "filenames": ["include/bugs/pear-bug-accountrequest.php", "include/pear-database-user.php", "include/pepr/pepr-ppvote.php", "include/users/passwordmanage.php", "pearweb.php", "pea... | 1,071 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * DNxHD/VC-3 parser\n * Copyright (c) 2008 Baptiste Coudurier <baptiste.coudurier@free.fr>\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 Foundatio... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
0,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [93], "buggy_code_start_loc": [83], "filenames": ["libavcodec/dnxhd_parser.c"], "fixing_code_end_loc": [96], "fixing_code_start_loc": [84], "message": "The dnxhd decoder in FFmpeg before 3.2.6, and 3.3.x before 3.3.3 allows remote attackers to cause a denial of service (NULL pointer dereference) ... | 1,072 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * DNxHD/VC-3 parser\n * Copyright (c) 2008 Baptiste Coudurier <baptiste.coudurier@free.fr>\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 Foundatio... | [
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": [93], "buggy_code_start_loc": [83], "filenames": ["libavcodec/dnxhd_parser.c"], "fixing_code_end_loc": [96], "fixing_code_start_loc": [84], "message": "The dnxhd decoder in FFmpeg before 3.2.6, and 3.3.x before 3.3.3 allows remote attackers to cause a denial of service (NULL pointer dereference) ... | 1,072 |
Determine whether the {function_name} code is vulnerable or not. | [
"// Copyright 2017 The OPA Authors. All rights reserved.\n// Use of this source code is governed by an Apache2\n// license that can be found in the LICENSE file.",
"// Package format implements formatting of Rego source files.\npackage format",
"import (\n\t\"bytes\"\n\t\"fmt\"\n\t\"regexp\"\n\t\"sort\"",
"\... | [
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,
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": [913, 351], "buggy_code_start_loc": [15, 338], "filenames": ["format/format.go", "format/format_test.go"], "fixing_code_end_loc": [924, 397], "fixing_code_start_loc": [16, 339], "message": "OPA is an open source, general-purpose policy engine. Under certain conditions, pretty-printing an abstract... | 1,073 |
Determine whether the {function_name} code is vulnerable or not. | [
"// Copyright 2017 The OPA Authors. All rights reserved.\n// Use of this source code is governed by an Apache2\n// license that can be found in the LICENSE file.",
"// Package format implements formatting of Rego source files.\npackage format",
"import (\n\t\"bytes\"\n\t\"fmt\"\n\t\"regexp\"\n\t\"sort\"",
"\... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [913, 351], "buggy_code_start_loc": [15, 338], "filenames": ["format/format.go", "format/format_test.go"], "fixing_code_end_loc": [924, 397], "fixing_code_start_loc": [16, 339], "message": "OPA is an open source, general-purpose policy engine. Under certain conditions, pretty-printing an abstract... | 1,073 |
Determine whether the {function_name} code is vulnerable or not. | [
"// Copyright 2017 The OPA Authors. All rights reserved.\n// Use of this source code is governed by an Apache2\n// license that can be found in the LICENSE file.",
"package format",
"import (\n\t\"bytes\"\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"path/filepath\"\n\t\"strings\"\n\t\"testing\"",
"\t\"github.com/open-po... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [913, 351], "buggy_code_start_loc": [15, 338], "filenames": ["format/format.go", "format/format_test.go"], "fixing_code_end_loc": [924, 397], "fixing_code_start_loc": [16, 339], "message": "OPA is an open source, general-purpose policy engine. Under certain conditions, pretty-printing an abstract... | 1,073 |
Determine whether the {function_name} code is vulnerable or not. | [
"// Copyright 2017 The OPA Authors. All rights reserved.\n// Use of this source code is governed by an Apache2\n// license that can be found in the LICENSE file.",
"package format",
"import (\n\t\"bytes\"\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"path/filepath\"\n\t\"strings\"\n\t\"testing\"",
"\t\"github.com/open-po... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [913, 351], "buggy_code_start_loc": [15, 338], "filenames": ["format/format.go", "format/format_test.go"], "fixing_code_end_loc": [924, 397], "fixing_code_start_loc": [16, 339], "message": "OPA is an open source, general-purpose policy engine. Under certain conditions, pretty-printing an abstract... | 1,073 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* resolv.c: DNS Resolver\n *\n * Copyright (C) 1998 Kenneth Albanowski <kjahds@kjahds.com>,\n * The Silver Hammer Group, Ltd.\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Library General Public\n * License as published by the 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,
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": [2933], "buggy_code_start_loc": [411], "filenames": ["libc/inet/resolv.c"], "fixing_code_end_loc": [2994], "fixing_code_start_loc": [412], "message": "In uClibc and uClibc-ng before 1.0.39, incorrect handling of special characters in domain names returned by DNS servers via gethostbyname, getaddr... | 1,074 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* resolv.c: DNS Resolver\n *\n * Copyright (C) 1998 Kenneth Albanowski <kjahds@kjahds.com>,\n * The Silver Hammer Group, Ltd.\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Library General Public\n * License as published by the 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": [2933], "buggy_code_start_loc": [411], "filenames": ["libc/inet/resolv.c"], "fixing_code_end_loc": [2994], "fixing_code_start_loc": [412], "message": "In uClibc and uClibc-ng before 1.0.39, incorrect handling of special characters in domain names returned by DNS servers via gethostbyname, getaddr... | 1,074 |
Determine whether the {function_name} code is vulnerable or not. | [
"name: Additional tests for pull requests",
"on:\n pull_request:",
"jobs:\n \n changelog:\n name: Check if the changelog was updated\n runs-on: ubuntu-latest\n \n steps:\n - name: Checkout the app\n uses: actions/checkout@v3\n with:... | [
1,
1,
1,
1,
1,
0,
1,
0,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [68], "buggy_code_start_loc": [62], "filenames": [".github/workflows/pull-checks.yml"], "fixing_code_end_loc": [71], "fixing_code_start_loc": [63], "message": "NextCloud Cookbook is a recipe library app. Prior to commit a46d9855 on the `master` branch and commit 489bb744 on the `main-0.9.x` branc... | 1,075 |
Determine whether the {function_name} code is vulnerable or not. | [
"name: Additional tests for pull requests",
"on:\n pull_request:",
"jobs:\n \n changelog:\n name: Check if the changelog was updated\n runs-on: ubuntu-latest\n \n steps:\n - name: Checkout the app\n uses: actions/checkout@v3\n with:... | [
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], "buggy_code_start_loc": [62], "filenames": [".github/workflows/pull-checks.yml"], "fixing_code_end_loc": [71], "fixing_code_start_loc": [63], "message": "NextCloud Cookbook is a recipe library app. Prior to commit a46d9855 on the `master` branch and commit 489bb744 on the `main-0.9.x` branc... | 1,075 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n$currentUser = erLhcoreClassUser::instance();\nif ($currentUser->isLogged()) :\n$UserData = $currentUser->getUserData(true);",
"// Just logout if force to logout\nif ($UserData->force_logout == 1) {\n $UserData->force_logout = 0;\n $UserData->updateThis(['update' => ['force_logout']]);\n $current... | [
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": [16], "buggy_code_start_loc": [15], "filenames": ["lhc_web/design/defaulttheme/tpl/pagelayouts/parts/user_box.tpl.php"], "fixing_code_end_loc": [16], "fixing_code_start_loc": [15], "message": "Cross-site Scripting (XSS) - Stored in Packagist remdex/livehelperchat prior to 3.93v.", "other": {"cve"... | 1,076 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n$currentUser = erLhcoreClassUser::instance();\nif ($currentUser->isLogged()) :\n$UserData = $currentUser->getUserData(true);",
"// Just logout if force to logout\nif ($UserData->force_logout == 1) {\n $UserData->force_logout = 0;\n $UserData->updateThis(['update' => ['force_logout']]);\n $current... | [
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": [16], "buggy_code_start_loc": [15], "filenames": ["lhc_web/design/defaulttheme/tpl/pagelayouts/parts/user_box.tpl.php"], "fixing_code_end_loc": [16], "fixing_code_start_loc": [15], "message": "Cross-site Scripting (XSS) - Stored in Packagist remdex/livehelperchat prior to 3.93v.", "other": {"cve"... | 1,076 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * Routines for driver control interface\n * Copyright (c) by Jaroslav Kysela <perex@perex.cz>\n *\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [1182], "buggy_code_start_loc": [1157], "filenames": ["sound/core/control.c"], "fixing_code_end_loc": [1175], "fixing_code_start_loc": [1156], "message": "The snd_ctl_elem_add function in sound/core/control.c in the ALSA control implementation in the Linux kernel before 3.15.2 does not properly m... | 1,077 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * Routines for driver control interface\n * Copyright (c) by Jaroslav Kysela <perex@perex.cz>\n *\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [1182], "buggy_code_start_loc": [1157], "filenames": ["sound/core/control.c"], "fixing_code_end_loc": [1175], "fixing_code_start_loc": [1156], "message": "The snd_ctl_elem_add function in sound/core/control.c in the ALSA control implementation in the Linux kernel before 3.15.2 does not properly m... | 1,077 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"/**\n * Copyright since 2007 PrestaShop SA and Contributors\n * PrestaShop is an International Registered Trademark & Property of PrestaShop SA\n *\n * NOTICE OF LICENSE\n *\n * This source file is subject to the Academic Free License 3.0 (AFL-3.0)\n * that is bundled with this package in the file LICEN... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [679], "buggy_code_start_loc": [679], "filenames": ["productcomments.php"], "fixing_code_end_loc": [681], "fixing_code_start_loc": [680], "message": "This package is a PrestaShop module that allows users to post reviews and rate products. There is a vulnerability where the attacker could steal an... | 1,078 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"/**\n * Copyright since 2007 PrestaShop SA and Contributors\n * PrestaShop is an International Registered Trademark & Property of PrestaShop SA\n *\n * NOTICE OF LICENSE\n *\n * This source file is subject to the Academic Free License 3.0 (AFL-3.0)\n * that is bundled with this package in the file LICEN... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [679], "buggy_code_start_loc": [679], "filenames": ["productcomments.php"], "fixing_code_end_loc": [681], "fixing_code_start_loc": [680], "message": "This package is a PrestaShop module that allows users to post reviews and rate products. There is a vulnerability where the attacker could steal an... | 1,078 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n Licensed to the Apache Software Foundation (ASF) under one\n or more contributor license agreements. See the NOTICE file\n distributed with this work for additional information\n regarding copyright ownership. The ASF licenses this file\n to you under the Apache License, Version 2.0 (the\n \"License\"); you... | [
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": [32, 327], "buggy_code_start_loc": [32, 49], "filenames": ["src/ios/CDVInAppBrowser.h", "src/ios/CDVInAppBrowser.m"], "fixing_code_end_loc": [34, 345], "fixing_code_start_loc": [33, 50], "message": "The CDVInAppBrowser class in the Apache Cordova In-App-Browser standalone plugin (org.apache.cordo... | 1,079 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n Licensed to the Apache Software Foundation (ASF) under one\n or more contributor license agreements. See the NOTICE file\n distributed with this work for additional information\n regarding copyright ownership. The ASF licenses this file\n to you under the Apache License, Version 2.0 (the\n \"License\"); you... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [32, 327], "buggy_code_start_loc": [32, 49], "filenames": ["src/ios/CDVInAppBrowser.h", "src/ios/CDVInAppBrowser.m"], "fixing_code_end_loc": [34, 345], "fixing_code_start_loc": [33, 50], "message": "The CDVInAppBrowser class in the Apache Cordova In-App-Browser standalone plugin (org.apache.cordo... | 1,079 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n Licensed to the Apache Software Foundation (ASF) under one\n or more contributor license agreements. See the NOTICE file\n distributed with this work for additional information\n regarding copyright ownership. The ASF licenses this file\n to you under the Apache License, Version 2.0 (the\n \"License\"); you... | [
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,
0,
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": [32, 327], "buggy_code_start_loc": [32, 49], "filenames": ["src/ios/CDVInAppBrowser.h", "src/ios/CDVInAppBrowser.m"], "fixing_code_end_loc": [34, 345], "fixing_code_start_loc": [33, 50], "message": "The CDVInAppBrowser class in the Apache Cordova In-App-Browser standalone plugin (org.apache.cordo... | 1,079 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n Licensed to the Apache Software Foundation (ASF) under one\n or more contributor license agreements. See the NOTICE file\n distributed with this work for additional information\n regarding copyright ownership. The ASF licenses this file\n to you under the Apache License, Version 2.0 (the\n \"License\"); you... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [32, 327], "buggy_code_start_loc": [32, 49], "filenames": ["src/ios/CDVInAppBrowser.h", "src/ios/CDVInAppBrowser.m"], "fixing_code_end_loc": [34, 345], "fixing_code_start_loc": [33, 50], "message": "The CDVInAppBrowser class in the Apache Cordova In-App-Browser standalone plugin (org.apache.cordo... | 1,079 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * Symmetric key cipher operations.\n *\n * Generic encrypt/decrypt wrapper for ciphers, handles operations across\n * multiple page boundaries by using temporary blocks. In user context,\n * the kernel is given a chance to schedule us once per page.\n *\n * Copyright (c) 2015 Herbert Xu <herbert@gondor.apana... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [788], "buggy_code_start_loc": [766], "filenames": ["crypto/skcipher.c"], "fixing_code_end_loc": [826], "fixing_code_start_loc": [767], "message": "The crypto_skcipher_init_tfm function in crypto/skcipher.c in the Linux kernel through 4.11.2 relies on a setkey function that lacks a key-size check... | 1,080 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * Symmetric key cipher operations.\n *\n * Generic encrypt/decrypt wrapper for ciphers, handles operations across\n * multiple page boundaries by using temporary blocks. In user context,\n * the kernel is given a chance to schedule us once per page.\n *\n * Copyright (c) 2015 Herbert Xu <herbert@gondor.apana... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [788], "buggy_code_start_loc": [766], "filenames": ["crypto/skcipher.c"], "fixing_code_end_loc": [826], "fixing_code_start_loc": [767], "message": "The crypto_skcipher_init_tfm function in crypto/skcipher.c in the Linux kernel through 4.11.2 relies on a setkey function that lacks a key-size check... | 1,080 |
Determine whether the {function_name} code is vulnerable or not. | [
"# frozen_string_literal: true",
"require_dependency \"mobile_detection\"\nrequire_dependency \"crawler_detection\"\nrequire_dependency \"guardian\"\nrequire_dependency \"http_language_parser\"",
"module Middleware\n class AnonymousCache",
" def self.cache_key_segments\n @@cache_key_segments ||= {\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,
0,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [318, 39, 250], "buggy_code_start_loc": [317, 38, 246], "filenames": ["lib/middleware/anonymous_cache.rb", "lib/middleware/discourse_public_exceptions.rb", "spec/components/middleware/anonymous_cache_spec.rb"], "fixing_code_end_loc": [318, 39, 252], "fixing_code_start_loc": [317, 38, 246], "messa... | 1,081 |
Determine whether the {function_name} code is vulnerable or not. | [
"# frozen_string_literal: true",
"require_dependency \"mobile_detection\"\nrequire_dependency \"crawler_detection\"\nrequire_dependency \"guardian\"\nrequire_dependency \"http_language_parser\"",
"module Middleware\n class AnonymousCache",
" def self.cache_key_segments\n @@cache_key_segments ||= {\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": [318, 39, 250], "buggy_code_start_loc": [317, 38, 246], "filenames": ["lib/middleware/anonymous_cache.rb", "lib/middleware/discourse_public_exceptions.rb", "spec/components/middleware/anonymous_cache_spec.rb"], "fixing_code_end_loc": [318, 39, 252], "fixing_code_start_loc": [317, 38, 246], "messa... | 1,081 |
Determine whether the {function_name} code is vulnerable or not. | [
"# frozen_string_literal: true",
"# since all the rescue from clauses are not caught by the application controller for matches\n# we need to handle certain exceptions here\nmodule Middleware\n class DiscoursePublicExceptions < ::ActionDispatch::PublicExceptions",
" def initialize(path)\n super\n end... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [318, 39, 250], "buggy_code_start_loc": [317, 38, 246], "filenames": ["lib/middleware/anonymous_cache.rb", "lib/middleware/discourse_public_exceptions.rb", "spec/components/middleware/anonymous_cache_spec.rb"], "fixing_code_end_loc": [318, 39, 252], "fixing_code_start_loc": [317, 38, 246], "messa... | 1,081 |
Determine whether the {function_name} code is vulnerable or not. | [
"# frozen_string_literal: true",
"# since all the rescue from clauses are not caught by the application controller for matches\n# we need to handle certain exceptions here\nmodule Middleware\n class DiscoursePublicExceptions < ::ActionDispatch::PublicExceptions",
" def initialize(path)\n super\n end... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [318, 39, 250], "buggy_code_start_loc": [317, 38, 246], "filenames": ["lib/middleware/anonymous_cache.rb", "lib/middleware/discourse_public_exceptions.rb", "spec/components/middleware/anonymous_cache_spec.rb"], "fixing_code_end_loc": [318, 39, 252], "fixing_code_start_loc": [317, 38, 246], "messa... | 1,081 |
Determine whether the {function_name} code is vulnerable or not. | [
"# frozen_string_literal: true",
"require \"rails_helper\"",
"describe Middleware::AnonymousCache do\n let(:middleware) { Middleware::AnonymousCache.new(lambda { |_| [200, {}, []] }) }",
" def env(opts = {})\n Rack::MockRequest.env_for(\"http://test.com/path?bla=1\").merge(opts)\n end",
" describe Mi... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | PreciseBugs | {"buggy_code_end_loc": [318, 39, 250], "buggy_code_start_loc": [317, 38, 246], "filenames": ["lib/middleware/anonymous_cache.rb", "lib/middleware/discourse_public_exceptions.rb", "spec/components/middleware/anonymous_cache_spec.rb"], "fixing_code_end_loc": [318, 39, 252], "fixing_code_start_loc": [317, 38, 246], "messa... | 1,081 |
Determine whether the {function_name} code is vulnerable or not. | [
"# frozen_string_literal: true",
"require \"rails_helper\"",
"describe Middleware::AnonymousCache do\n let(:middleware) { Middleware::AnonymousCache.new(lambda { |_| [200, {}, []] }) }",
" def env(opts = {})\n Rack::MockRequest.env_for(\"http://test.com/path?bla=1\").merge(opts)\n end",
" describe Mi... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [318, 39, 250], "buggy_code_start_loc": [317, 38, 246], "filenames": ["lib/middleware/anonymous_cache.rb", "lib/middleware/discourse_public_exceptions.rb", "spec/components/middleware/anonymous_cache_spec.rb"], "fixing_code_end_loc": [318, 39, 252], "fixing_code_start_loc": [317, 38, 246], "messa... | 1,081 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * linux/fs/open.c\n *\n * Copyright (C) 1991, 1992 Linus Torvalds\n */",
"#include <linux/string.h>\n#include <linux/mm.h>\n#include <linux/file.h>\n#include <linux/fdtable.h>\n#include <linux/fsnotify.h>\n#include <linux/module.h>\n#include <linux/tty.h>\n#include <linux/namei.h>\n#include <linux/backin... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [853, 567], "buggy_code_start_loc": [843, 567], "filenames": ["fs/open.c", "include/linux/dcache.h"], "fixing_code_end_loc": [848, 580], "fixing_code_start_loc": [843, 568], "message": "The filesystem layer in the Linux kernel before 4.5.5 proceeds with post-rename operations after an OverlayFS f... | 1,082 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\n * linux/fs/open.c\n *\n * Copyright (C) 1991, 1992 Linus Torvalds\n */",
"#include <linux/string.h>\n#include <linux/mm.h>\n#include <linux/file.h>\n#include <linux/fdtable.h>\n#include <linux/fsnotify.h>\n#include <linux/module.h>\n#include <linux/tty.h>\n#include <linux/namei.h>\n#include <linux/backin... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [853, 567], "buggy_code_start_loc": [843, 567], "filenames": ["fs/open.c", "include/linux/dcache.h"], "fixing_code_end_loc": [848, 580], "fixing_code_start_loc": [843, 568], "message": "The filesystem layer in the Linux kernel before 4.5.5 proceeds with post-rename operations after an OverlayFS f... | 1,082 |
Determine whether the {function_name} code is vulnerable or not. | [
"#ifndef __LINUX_DCACHE_H\n#define __LINUX_DCACHE_H",
"#include <linux/atomic.h>\n#include <linux/list.h>\n#include <linux/rculist.h>\n#include <linux/rculist_bl.h>\n#include <linux/spinlock.h>\n#include <linux/seqlock.h>\n#include <linux/cache.h>\n#include <linux/rcupdate.h>\n#include <linux/lockref.h>",
"stru... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [853, 567], "buggy_code_start_loc": [843, 567], "filenames": ["fs/open.c", "include/linux/dcache.h"], "fixing_code_end_loc": [848, 580], "fixing_code_start_loc": [843, 568], "message": "The filesystem layer in the Linux kernel before 4.5.5 proceeds with post-rename operations after an OverlayFS f... | 1,082 |
Determine whether the {function_name} code is vulnerable or not. | [
"#ifndef __LINUX_DCACHE_H\n#define __LINUX_DCACHE_H",
"#include <linux/atomic.h>\n#include <linux/list.h>\n#include <linux/rculist.h>\n#include <linux/rculist_bl.h>\n#include <linux/spinlock.h>\n#include <linux/seqlock.h>\n#include <linux/cache.h>\n#include <linux/rcupdate.h>\n#include <linux/lockref.h>",
"stru... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [853, 567], "buggy_code_start_loc": [843, 567], "filenames": ["fs/open.c", "include/linux/dcache.h"], "fixing_code_end_loc": [848, 580], "fixing_code_start_loc": [843, 568], "message": "The filesystem layer in the Linux kernel before 4.5.5 proceeds with post-rename operations after an OverlayFS f... | 1,082 |
Determine whether the {function_name} code is vulnerable or not. | [
"#!/usr/bin/env php\n<?php\n ##################################################\n #\n # Copyright (c) 2004-2016 OIC Group, Inc.\n #\n # This file is part of Exponent\n #\n # Exponent is free software; you can redistribute\n # it and/or modify it under the terms of the GNU\n # General Publ... | [
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": [43, 1216, 123, 1810, 283, 901], "buggy_code_start_loc": [42, 77, 122, 857, 255, 845], "filenames": ["cron/find_help.php", "framework/modules/ecommerce/controllers/cartController.php", "framework/modules/ecommerce/controllers/purchaseOrderController.php", "framework/modules/ecommerce/controllers/... | 1,083 |
Determine whether the {function_name} code is vulnerable or not. | [
"#!/usr/bin/env php\n<?php\n ##################################################\n #\n # Copyright (c) 2004-2016 OIC Group, Inc.\n #\n # This file is part of Exponent\n #\n # Exponent is free software; you can redistribute\n # it and/or modify it under the terms of the GNU\n # General Publ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [43, 1216, 123, 1810, 283, 901], "buggy_code_start_loc": [42, 77, 122, 857, 255, 845], "filenames": ["cron/find_help.php", "framework/modules/ecommerce/controllers/cartController.php", "framework/modules/ecommerce/controllers/purchaseOrderController.php", "framework/modules/ecommerce/controllers/... | 1,083 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"##################################################\n#\n# Copyright (c) 2004-2016 OIC Group, Inc.\n#\n# This file is part of Exponent\n#\n# Exponent is free software; you can redistribute\n# it and/or modify it under the terms of the GNU\n# General Public License as published by the Free\n# Software Foun... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
0,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
0,
1,
1,
0,
1,
1,
1,
1,
1,
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... | PreciseBugs | {"buggy_code_end_loc": [43, 1216, 123, 1810, 283, 901], "buggy_code_start_loc": [42, 77, 122, 857, 255, 845], "filenames": ["cron/find_help.php", "framework/modules/ecommerce/controllers/cartController.php", "framework/modules/ecommerce/controllers/purchaseOrderController.php", "framework/modules/ecommerce/controllers/... | 1,083 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"##################################################\n#\n# Copyright (c) 2004-2016 OIC Group, Inc.\n#\n# This file is part of Exponent\n#\n# Exponent is free software; you can redistribute\n# it and/or modify it under the terms of the GNU\n# General Public License as published by the Free\n# Software Foun... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [43, 1216, 123, 1810, 283, 901], "buggy_code_start_loc": [42, 77, 122, 857, 255, 845], "filenames": ["cron/find_help.php", "framework/modules/ecommerce/controllers/cartController.php", "framework/modules/ecommerce/controllers/purchaseOrderController.php", "framework/modules/ecommerce/controllers/... | 1,083 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"##################################################\n#\n# Copyright (c) 2004-2016 OIC Group, Inc.\n#\n# This file is part of Exponent\n#\n# Exponent is free software; you can redistribute\n# it and/or modify it under the terms of the GNU\n# General Public License as published by the Free\n# Software Foun... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [43, 1216, 123, 1810, 283, 901], "buggy_code_start_loc": [42, 77, 122, 857, 255, 845], "filenames": ["cron/find_help.php", "framework/modules/ecommerce/controllers/cartController.php", "framework/modules/ecommerce/controllers/purchaseOrderController.php", "framework/modules/ecommerce/controllers/... | 1,083 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"##################################################\n#\n# Copyright (c) 2004-2016 OIC Group, Inc.\n#\n# This file is part of Exponent\n#\n# Exponent is free software; you can redistribute\n# it and/or modify it under the terms of the GNU\n# General Public License as published by the Free\n# Software Foun... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [43, 1216, 123, 1810, 283, 901], "buggy_code_start_loc": [42, 77, 122, 857, 255, 845], "filenames": ["cron/find_help.php", "framework/modules/ecommerce/controllers/cartController.php", "framework/modules/ecommerce/controllers/purchaseOrderController.php", "framework/modules/ecommerce/controllers/... | 1,083 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"##################################################\n#\n# Copyright (c) 2004-2016 OIC Group, Inc.\n#\n# This file is part of Exponent\n#\n# Exponent is free software; you can redistribute\n# it and/or modify it under the terms of the GNU\n# General Public License as published by the Free\n# Software Foun... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [43, 1216, 123, 1810, 283, 901], "buggy_code_start_loc": [42, 77, 122, 857, 255, 845], "filenames": ["cron/find_help.php", "framework/modules/ecommerce/controllers/cartController.php", "framework/modules/ecommerce/controllers/purchaseOrderController.php", "framework/modules/ecommerce/controllers/... | 1,083 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"##################################################\n#\n# Copyright (c) 2004-2016 OIC Group, Inc.\n#\n# This file is part of Exponent\n#\n# Exponent is free software; you can redistribute\n# it and/or modify it under the terms of the GNU\n# General Public License as published by the Free\n# Software Foun... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [43, 1216, 123, 1810, 283, 901], "buggy_code_start_loc": [42, 77, 122, 857, 255, 845], "filenames": ["cron/find_help.php", "framework/modules/ecommerce/controllers/cartController.php", "framework/modules/ecommerce/controllers/purchaseOrderController.php", "framework/modules/ecommerce/controllers/... | 1,083 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"##################################################\n#\n# Copyright (c) 2004-2016 OIC Group, Inc.\n#\n# This file is part of Exponent\n#\n# Exponent is free software; you can redistribute\n# it and/or modify it under the terms of the GNU\n# General Public License as published by the Free\n# Software Foun... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
0,
1,
1,
0,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [43, 1216, 123, 1810, 283, 901], "buggy_code_start_loc": [42, 77, 122, 857, 255, 845], "filenames": ["cron/find_help.php", "framework/modules/ecommerce/controllers/cartController.php", "framework/modules/ecommerce/controllers/purchaseOrderController.php", "framework/modules/ecommerce/controllers/... | 1,083 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"##################################################\n#\n# Copyright (c) 2004-2016 OIC Group, Inc.\n#\n# This file is part of Exponent\n#\n# Exponent is free software; you can redistribute\n# it and/or modify it under the terms of the GNU\n# General Public License as published by the Free\n# Software Foun... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [43, 1216, 123, 1810, 283, 901], "buggy_code_start_loc": [42, 77, 122, 857, 255, 845], "filenames": ["cron/find_help.php", "framework/modules/ecommerce/controllers/cartController.php", "framework/modules/ecommerce/controllers/purchaseOrderController.php", "framework/modules/ecommerce/controllers/... | 1,083 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"##################################################\n#\n# Copyright (c) 2004-2016 OIC Group, Inc.\n#\n# This file is part of Exponent\n#\n# Exponent is free software; you can redistribute\n# it and/or modify it under the terms of the GNU\n# General Public License as published by the Free\n# Software Foun... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [43, 1216, 123, 1810, 283, 901], "buggy_code_start_loc": [42, 77, 122, 857, 255, 845], "filenames": ["cron/find_help.php", "framework/modules/ecommerce/controllers/cartController.php", "framework/modules/ecommerce/controllers/purchaseOrderController.php", "framework/modules/ecommerce/controllers/... | 1,083 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php",
"##################################################\n#\n# Copyright (c) 2004-2016 OIC Group, Inc.\n#\n# This file is part of Exponent\n#\n# Exponent is free software; you can redistribute\n# it and/or modify it under the terms of the GNU\n# General Public License as published by the Free\n# Software Foun... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [43, 1216, 123, 1810, 283, 901], "buggy_code_start_loc": [42, 77, 122, 857, 255, 845], "filenames": ["cron/find_help.php", "framework/modules/ecommerce/controllers/cartController.php", "framework/modules/ecommerce/controllers/purchaseOrderController.php", "framework/modules/ecommerce/controllers/... | 1,083 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* Copyright 2016 The TensorFlow Authors. All Rights Reserved.",
"Licensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at",
" http://www.apache.org/licenses/LICENSE-2.0",
"Unless required b... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | PreciseBugs | {"buggy_code_end_loc": [170, 301, 218, 173], "buggy_code_start_loc": [169, 299, 18, 19], "filenames": ["tensorflow/core/kernels/random_op.cc", "tensorflow/core/kernels/random_poisson_op.cc", "tensorflow/python/kernel_tests/random/random_gamma_test.py", "tensorflow/python/kernel_tests/random/random_poisson_test.py"], "f... | 1,084 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* Copyright 2016 The TensorFlow Authors. All Rights Reserved.",
"Licensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at",
" http://www.apache.org/licenses/LICENSE-2.0",
"Unless required b... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [170, 301, 218, 173], "buggy_code_start_loc": [169, 299, 18, 19], "filenames": ["tensorflow/core/kernels/random_op.cc", "tensorflow/core/kernels/random_poisson_op.cc", "tensorflow/python/kernel_tests/random/random_gamma_test.py", "tensorflow/python/kernel_tests/random/random_poisson_test.py"], "f... | 1,084 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* Copyright 2016 The TensorFlow Authors. All Rights Reserved.",
"Licensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at",
" http://www.apache.org/licenses/LICENSE-2.0",
"Unless required b... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [170, 301, 218, 173], "buggy_code_start_loc": [169, 299, 18, 19], "filenames": ["tensorflow/core/kernels/random_op.cc", "tensorflow/core/kernels/random_poisson_op.cc", "tensorflow/python/kernel_tests/random/random_gamma_test.py", "tensorflow/python/kernel_tests/random/random_poisson_test.py"], "f... | 1,084 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* Copyright 2016 The TensorFlow Authors. All Rights Reserved.",
"Licensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at",
" http://www.apache.org/licenses/LICENSE-2.0",
"Unless required b... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [170, 301, 218, 173], "buggy_code_start_loc": [169, 299, 18, 19], "filenames": ["tensorflow/core/kernels/random_op.cc", "tensorflow/core/kernels/random_poisson_op.cc", "tensorflow/python/kernel_tests/random/random_gamma_test.py", "tensorflow/python/kernel_tests/random/random_poisson_test.py"], "f... | 1,084 |
Determine whether the {function_name} code is vulnerable or not. | [
"# Copyright 2016 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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [170, 301, 218, 173], "buggy_code_start_loc": [169, 299, 18, 19], "filenames": ["tensorflow/core/kernels/random_op.cc", "tensorflow/core/kernels/random_poisson_op.cc", "tensorflow/python/kernel_tests/random/random_gamma_test.py", "tensorflow/python/kernel_tests/random/random_poisson_test.py"], "f... | 1,084 |
Determine whether the {function_name} code is vulnerable or not. | [
"# Copyright 2016 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [170, 301, 218, 173], "buggy_code_start_loc": [169, 299, 18, 19], "filenames": ["tensorflow/core/kernels/random_op.cc", "tensorflow/core/kernels/random_poisson_op.cc", "tensorflow/python/kernel_tests/random/random_gamma_test.py", "tensorflow/python/kernel_tests/random/random_poisson_test.py"], "f... | 1,084 |
Determine whether the {function_name} code is vulnerable or not. | [
"# Copyright 2016 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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [170, 301, 218, 173], "buggy_code_start_loc": [169, 299, 18, 19], "filenames": ["tensorflow/core/kernels/random_op.cc", "tensorflow/core/kernels/random_poisson_op.cc", "tensorflow/python/kernel_tests/random/random_gamma_test.py", "tensorflow/python/kernel_tests/random/random_poisson_test.py"], "f... | 1,084 |
Determine whether the {function_name} code is vulnerable or not. | [
"# Copyright 2016 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": [170, 301, 218, 173], "buggy_code_start_loc": [169, 299, 18, 19], "filenames": ["tensorflow/core/kernels/random_op.cc", "tensorflow/core/kernels/random_poisson_op.cc", "tensorflow/python/kernel_tests/random/random_gamma_test.py", "tensorflow/python/kernel_tests/random/random_poisson_test.py"], "f... | 1,084 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n$err = array();",
"function print_done_fail($label, $bool) {\n\techo \"<li>\", $label . ' <strong style=\"color :' . (($bool) ? 'green;\">DONE' : 'red;\">FAILED') . '</strong><br />', \"</li>\\n\";\n}",
"function config_exist() {\n\treturn file_exists(CONFIG_DIR);\n}",
"function cache_exist() {\n\tret... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
0,
1,
0,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [124], "buggy_code_start_loc": [98], "filenames": ["setup/lib/main.lib.php"], "fixing_code_end_loc": [129], "fixing_code_start_loc": [98], "message": "Cross-site Scripting (XSS) - Reflected in GitHub repository flatpressblog/flatpress prior to 1.3.", "other": {"cve": {"cisaActionDue": null, "cisa... | 1,085 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n$err = array();",
"function print_done_fail($label, $bool) {\n\techo \"<li>\", $label . ' <strong style=\"color :' . (($bool) ? 'green;\">DONE' : 'red;\">FAILED') . '</strong><br />', \"</li>\\n\";\n}",
"function config_exist() {\n\treturn file_exists(CONFIG_DIR);\n}",
"function cache_exist() {\n\tret... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [124], "buggy_code_start_loc": [98], "filenames": ["setup/lib/main.lib.php"], "fixing_code_end_loc": [129], "fixing_code_start_loc": [98], "message": "Cross-site Scripting (XSS) - Reflected in GitHub repository flatpressblog/flatpress prior to 1.3.", "other": {"cve": {"cisaActionDue": null, "cisa... | 1,085 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?xml version=\"1.1\" encoding=\"UTF-8\"?>",
"<!--\n * See the NOTICE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published... | [
1,
1,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [160], "buggy_code_start_loc": [53], "filenames": ["xwiki-platform-core/xwiki-platform-tag/xwiki-platform-tag-ui/src/main/resources/Main/Tags.xml"], "fixing_code_end_loc": [161], "fixing_code_start_loc": [54], "message": "XWiki Platform Applications Tag and XWiki Platform Tag UI are tag applicati... | 1,086 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?xml version=\"1.1\" encoding=\"UTF-8\"?>",
"<!--\n * See the NOTICE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published... | [
1,
1,
1,
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": [160], "buggy_code_start_loc": [53], "filenames": ["xwiki-platform-core/xwiki-platform-tag/xwiki-platform-tag-ui/src/main/resources/Main/Tags.xml"], "fixing_code_end_loc": [161], "fixing_code_start_loc": [54], "message": "XWiki Platform Applications Tag and XWiki Platform Tag UI are tag applicati... | 1,086 |
Determine whether the {function_name} code is vulnerable or not. | [
"package jwt",
"import (\n\t\"crypto\"\n\t\"crypto/hmac\"\n\t\"crypto/sha256\"\n\t\"crypto/sha512\"\n\t\"encoding/base64\"\n\t\"encoding/json\"\n\t\"hash\"\n\t\"strings\"\n\t\"time\"",
"\t\"github.com/pkg/errors\"\n)",
"//Algorithm is used to sign and validate a token.\ntype Algorithm struct {\n\tsigningHash ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | PreciseBugs | {"buggy_code_end_loc": [146], "buggy_code_start_loc": [145], "filenames": ["algorithms.go"], "fixing_code_end_loc": [146], "fixing_code_start_loc": [145], "message": "Token validation methods are susceptible to a timing side-channel during HMAC comparison. With a large enough number of requests over a low latency conne... | 1,087 |
Determine whether the {function_name} code is vulnerable or not. | [
"package jwt",
"import (\n\t\"crypto\"\n\t\"crypto/hmac\"\n\t\"crypto/sha256\"\n\t\"crypto/sha512\"\n\t\"encoding/base64\"\n\t\"encoding/json\"\n\t\"hash\"\n\t\"strings\"\n\t\"time\"",
"\t\"github.com/pkg/errors\"\n)",
"//Algorithm is used to sign and validate a token.\ntype Algorithm struct {\n\tsigningHash ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": ["algorithms.go"], "fixing_code_end_loc": [146], "fixing_code_start_loc": [145], "message": "Token validation methods are susceptible to a timing side-channel during HMAC comparison. With a large enough number of requests over a low latency conne... | 1,087 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* Apache 2.0 - Copyright 2007-2018 - pancake and dso\n class.c rewrite: Adam Pridgen <dso@rice.edu || adam.pridgen@thecoverofnight.com>\n */\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <stdarg.h>\n#include <r_types.h>\n#include <r_util.h>\n#include <r_bin.h>\n#include <math.h>\n#incl... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [3747], "buggy_code_start_loc": [3735], "filenames": ["shlr/java/class.c"], "fixing_code_end_loc": [3751], "fixing_code_start_loc": [3736], "message": "Heap-based Buffer Overflow in GitHub repository radareorg/radare2 prior to 5.6.2.", "other": {"cve": {"cisaActionDue": null, "cisaExploitAdd": nu... | 1,088 |
Determine whether the {function_name} code is vulnerable or not. | [
"/* Apache 2.0 - Copyright 2007-2018 - pancake and dso\n class.c rewrite: Adam Pridgen <dso@rice.edu || adam.pridgen@thecoverofnight.com>\n */\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <stdarg.h>\n#include <r_types.h>\n#include <r_util.h>\n#include <r_bin.h>\n#include <math.h>\n#incl... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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": [3747], "buggy_code_start_loc": [3735], "filenames": ["shlr/java/class.c"], "fixing_code_end_loc": [3751], "fixing_code_start_loc": [3736], "message": "Heap-based Buffer Overflow in GitHub repository radareorg/radare2 prior to 5.6.2.", "other": {"cve": {"cisaActionDue": null, "cisaExploitAdd": nu... | 1,088 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.