)]}'
{"bandit/plugins/injection_shell.py":[{"author":{"_account_id":8119,"name":"Eric Brown","email":"eric_wade_brown@yahoo.com","username":"ericwb"},"change_message_id":"f43fbe6466fa4847a3a113394e68b0527e111ada","unresolved":false,"context_lines":[{"line_number":651,"context_line":""},{"line_number":652,"context_line":"            # yuck, regex: starts with a windows drive letter (eg C:)"},{"line_number":653,"context_line":"            # or one of our path delimeter characters (/, \\, .)"},{"line_number":654,"context_line":"            delims_re \u003d r\u0027^(?:[A-Za-z](?\u003d\\:)|[\\\\\\/\\.])\u0027"},{"line_number":655,"context_line":"            node \u003d context.node.args[0]"},{"line_number":656,"context_line":"            # some calls take an arg list, check the first part"},{"line_number":657,"context_line":"            if isinstance(node, ast.List):"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a6eadb0_4b31f2eb","line":654,"updated":"2016-12-19 20:36:05.000000000","message":"Note: this won\u0027t work with Windows UNC paths (if we care).\n\nLike: \\\\localhost\\c$\\my_dir","commit_id":"71e163e34a4fca50235a4faec2d203bed9549392"},{"author":{"_account_id":11861,"name":"Travis McPeak","email":"tmcpeak@us.ibm.com","username":"travis-mcpeak"},"change_message_id":"a9c7e2ba0c7f1ddaff3b693e03d930f327bfc333","unresolved":false,"context_lines":[{"line_number":651,"context_line":""},{"line_number":652,"context_line":"            # yuck, regex: starts with a windows drive letter (eg C:)"},{"line_number":653,"context_line":"            # or one of our path delimeter characters (/, \\, .)"},{"line_number":654,"context_line":"            delims_re \u003d r\u0027^(?:[A-Za-z](?\u003d\\:)|[\\\\\\/\\.])\u0027"},{"line_number":655,"context_line":"            node \u003d context.node.args[0]"},{"line_number":656,"context_line":"            # some calls take an arg list, check the first part"},{"line_number":657,"context_line":"            if isinstance(node, ast.List):"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a6eadb0_ab7b667a","line":654,"in_reply_to":"1a6eadb0_4b31f2eb","updated":"2016-12-19 20:38:22.000000000","message":"I don\u0027t really, do you?","commit_id":"71e163e34a4fca50235a4faec2d203bed9549392"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"7c14a29210673c29f7474f673a295c1f6d69b487","unresolved":false,"context_lines":[{"line_number":658,"context_line":"                node \u003d node.elts[0]"},{"line_number":659,"context_line":""},{"line_number":660,"context_line":"            # make sure the param is a string literal and not a var name"},{"line_number":661,"context_line":"            if isinstance(node, ast.Str) and not re.match(delims_re,"},{"line_number":662,"context_line":"                                                          node.s):"},{"line_number":663,"context_line":"                return bandit.Issue("},{"line_number":664,"context_line":"                    severity\u003dbandit.LOW,"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a6eadb0_39d783c0","line":661,"updated":"2016-12-20 15:17:47.000000000","message":"So here\u0027s a thing: each time this is called, Python\u0027s \u0027re\u0027 module will compile the regular expression and then match with it meaning that in a single execution of bandit, there could be *several hundred* compilations which will slow bandit down.\n\nWe should, instead, at the module scope do:\n\n    windows_path_regexp \u003d re.compile(r\u0027...\u0027)\n\nAnd then here do\n\n    if isinstance(node, ast.Str) and not windows_path_regexp.match(node.s):\n\nWhich will prevent slow-downs of bandit since we compile once and match many times.","commit_id":"71e163e34a4fca50235a4faec2d203bed9549392"},{"author":{"_account_id":11861,"name":"Travis McPeak","email":"tmcpeak@us.ibm.com","username":"travis-mcpeak"},"change_message_id":"187253729bffb6508a9194e344da2440c349ca7e","unresolved":false,"context_lines":[{"line_number":658,"context_line":"                node \u003d node.elts[0]"},{"line_number":659,"context_line":""},{"line_number":660,"context_line":"            # make sure the param is a string literal and not a var name"},{"line_number":661,"context_line":"            if isinstance(node, ast.Str) and not re.match(delims_re,"},{"line_number":662,"context_line":"                                                          node.s):"},{"line_number":663,"context_line":"                return bandit.Issue("},{"line_number":664,"context_line":"                    severity\u003dbandit.LOW,"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a6eadb0_08cd125d","line":661,"in_reply_to":"1a6eadb0_39d783c0","updated":"2016-12-20 15:48:07.000000000","message":"ahh, good catch","commit_id":"71e163e34a4fca50235a4faec2d203bed9549392"}]}
