|
| 1 | +[ |
| 2 | + { |
| 3 | + "nwo": "github/codeql", |
| 4 | + "status": "Completed", |
| 5 | + "interpretedResults": [ |
| 6 | + { |
| 7 | + "message": { |
| 8 | + "tokens": [ |
| 9 | + { |
| 10 | + "t": "text", |
| 11 | + "text": "This part of the regular expression may cause exponential backtracking on strings containing many repetitions of 'aa'." |
| 12 | + } |
| 13 | + ] |
| 14 | + }, |
| 15 | + "shortDescription": "This part of the regular expression may cause exponential backtracking on strings containing many repetitions of 'aa'.", |
| 16 | + "fileLink": { |
| 17 | + "fileLinkPrefix": "https://github.com/github/codeql/blob/d094bbc06d063d0da8d0303676943c345e61de53", |
| 18 | + "filePath": "javascript/extractor/tests/regexp/input/multipart.js" |
| 19 | + }, |
| 20 | + "severity": "Warning", |
| 21 | + "codeSnippet": { |
| 22 | + "startLine": 15, |
| 23 | + "endLine": 22, |
| 24 | + "text": "\nvar bad95 = new RegExp(\n \"(a\" + \n \"|\" + \n \"aa)*\" + \n \"b$\"\n);\n\n" |
| 25 | + }, |
| 26 | + "highlightedRegion": { |
| 27 | + "startLine": 17, |
| 28 | + "startColumn": 6, |
| 29 | + "endLine": 20, |
| 30 | + "endColumn": 6 |
| 31 | + }, |
| 32 | + "codeFlows": [] |
| 33 | + } |
| 34 | + ] |
| 35 | + }, |
| 36 | + { |
| 37 | + "nwo": "meteor/meteor", |
| 38 | + "status": "Completed", |
| 39 | + "interpretedResults": [ |
| 40 | + { |
| 41 | + "message": { |
| 42 | + "tokens": [ |
| 43 | + { |
| 44 | + "t": "text", |
| 45 | + "text": "This part of the regular expression may cause exponential backtracking on strings containing many repetitions of '----'." |
| 46 | + } |
| 47 | + ] |
| 48 | + }, |
| 49 | + "shortDescription": "This part of the regular expression may cause exponential backtracking on strings containing many repetitions of '----'.", |
| 50 | + "fileLink": { |
| 51 | + "fileLinkPrefix": "https://github.com/meteor/meteor/blob/53f3c4442d3542d3d2a012a854472a0d1bef9d12", |
| 52 | + "filePath": "packages/deprecated/markdown/showdown.js" |
| 53 | + }, |
| 54 | + "severity": "Warning", |
| 55 | + "codeSnippet": { |
| 56 | + "startLine": 413, |
| 57 | + "endLine": 417, |
| 58 | + "text": "\t\t/g,hashElement);\n\t*/\n\ttext = text.replace(/(\\n\\n[ ]{0,3}<!(--[^\\r]*?--\\s*)+>[ \\t]*(?=\\n{2,}))/g,hashElement);\n\n\t// PHP and ASP-style processor instructions (<?...?> and <%...%>)\n" |
| 59 | + }, |
| 60 | + "highlightedRegion": { |
| 61 | + "startLine": 415, |
| 62 | + "startColumn": 41, |
| 63 | + "endLine": 415, |
| 64 | + "endColumn": 48 |
| 65 | + }, |
| 66 | + "codeFlows": [] |
| 67 | + }, |
| 68 | + { |
| 69 | + "message": { |
| 70 | + "tokens": [ |
| 71 | + { |
| 72 | + "t": "text", |
| 73 | + "text": "This part of the regular expression may cause exponential backtracking on strings starting with '<!--' and containing many repetitions of '----'." |
| 74 | + } |
| 75 | + ] |
| 76 | + }, |
| 77 | + "shortDescription": "This part of the regular expression may cause exponential backtracking on strings starting with '<!--' and containing many repetitions of '----'.", |
| 78 | + "fileLink": { |
| 79 | + "fileLinkPrefix": "https://github.com/meteor/meteor/blob/53f3c4442d3542d3d2a012a854472a0d1bef9d12", |
| 80 | + "filePath": "packages/deprecated/markdown/showdown.js" |
| 81 | + }, |
| 82 | + "severity": "Warning", |
| 83 | + "codeSnippet": { |
| 84 | + "startLine": 521, |
| 85 | + "endLine": 525, |
| 86 | + "text": "\t// Build a regex to find HTML tags and comments. See Friedl's\n\t// \"Mastering Regular Expressions\", 2nd Ed., pp. 200-201.\n\tvar regex = /(<[a-z\\/!$](\"[^\"]*\"|'[^']*'|[^'\">])*>|<!(--.*?--\\s*)+>)/gi;\n\n\ttext = text.replace(regex, function(wholeMatch) {\n" |
| 87 | + }, |
| 88 | + "highlightedRegion": { |
| 89 | + "startLine": 523, |
| 90 | + "startColumn": 58, |
| 91 | + "endLine": 523, |
| 92 | + "endColumn": 61 |
| 93 | + }, |
| 94 | + "codeFlows": [] |
| 95 | + }, |
| 96 | + { |
| 97 | + "message": { |
| 98 | + "tokens": [ |
| 99 | + { |
| 100 | + "t": "text", |
| 101 | + "text": "This part of the regular expression may cause exponential backtracking on strings starting with ''' and containing many repetitions of '\\&'." |
| 102 | + } |
| 103 | + ] |
| 104 | + }, |
| 105 | + "shortDescription": "This part of the regular expression may cause exponential backtracking on strings starting with ''' and containing many repetitions of '\\&'.", |
| 106 | + "fileLink": { |
| 107 | + "fileLinkPrefix": "https://github.com/meteor/meteor/blob/53f3c4442d3542d3d2a012a854472a0d1bef9d12", |
| 108 | + "filePath": "tools/tests/apps/modules/imports/links/acorn/src/parseutil.js" |
| 109 | + }, |
| 110 | + "severity": "Warning", |
| 111 | + "codeSnippet": { |
| 112 | + "startLine": 7, |
| 113 | + "endLine": 11, |
| 114 | + "text": "// ## Parser utilities\n\nconst literal = /^(?:'((?:\\\\.|[^'])*?)'|\"((?:\\\\.|[^\"])*?)\")/\npp.strictDirective = function(start) {\n for (;;) {\n" |
| 115 | + }, |
| 116 | + "highlightedRegion": { |
| 117 | + "startLine": 9, |
| 118 | + "startColumn": 24, |
| 119 | + "endLine": 9, |
| 120 | + "endColumn": 38 |
| 121 | + }, |
| 122 | + "codeFlows": [] |
| 123 | + }, |
| 124 | + { |
| 125 | + "message": { |
| 126 | + "tokens": [ |
| 127 | + { |
| 128 | + "t": "text", |
| 129 | + "text": "This part of the regular expression may cause exponential backtracking on strings starting with '\"' and containing many repetitions of '\\!'." |
| 130 | + } |
| 131 | + ] |
| 132 | + }, |
| 133 | + "shortDescription": "This part of the regular expression may cause exponential backtracking on strings starting with '\"' and containing many repetitions of '\\!'.", |
| 134 | + "fileLink": { |
| 135 | + "fileLinkPrefix": "https://github.com/meteor/meteor/blob/53f3c4442d3542d3d2a012a854472a0d1bef9d12", |
| 136 | + "filePath": "tools/tests/apps/modules/imports/links/acorn/src/parseutil.js" |
| 137 | + }, |
| 138 | + "severity": "Warning", |
| 139 | + "codeSnippet": { |
| 140 | + "startLine": 7, |
| 141 | + "endLine": 11, |
| 142 | + "text": "// ## Parser utilities\n\nconst literal = /^(?:'((?:\\\\.|[^'])*?)'|\"((?:\\\\.|[^\"])*?)\")/\npp.strictDirective = function(start) {\n for (;;) {\n" |
| 143 | + }, |
| 144 | + "highlightedRegion": { |
| 145 | + "startLine": 9, |
| 146 | + "startColumn": 43, |
| 147 | + "endLine": 9, |
| 148 | + "endColumn": 57 |
| 149 | + }, |
| 150 | + "codeFlows": [] |
| 151 | + } |
| 152 | + ] |
| 153 | + } |
| 154 | +] |
0 commit comments