Commit 85ee630
Address review feedback: fix regex ReDoS, finally-block state leaks, and typo
- Use possessive quantifiers in META_TAG_PATTERN and META_CHARSET_PATTERN
to eliminate polynomial backtracking flagged by CodeQL
- Wrap charset reset in try/finally so classpath restoration always
executes even if setDefaultCharset throws
- Fix remaining 'Shouldhave' typo in testBug426058
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 10cde8e commit 85ee630
2 files changed
Lines changed: 14 additions & 8 deletions
File tree
- org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model
- org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core
Lines changed: 12 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1096 | 1096 | | |
1097 | 1097 | | |
1098 | 1098 | | |
1099 | | - | |
| 1099 | + | |
1100 | 1100 | | |
1101 | 1101 | | |
1102 | 1102 | | |
| |||
1170 | 1170 | | |
1171 | 1171 | | |
1172 | 1172 | | |
1173 | | - | |
| 1173 | + | |
1174 | 1174 | | |
1175 | 1175 | | |
1176 | 1176 | | |
| |||
1179 | 1179 | | |
1180 | 1180 | | |
1181 | 1181 | | |
1182 | | - | |
1183 | | - | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
1184 | 1187 | | |
1185 | 1188 | | |
1186 | 1189 | | |
| |||
1241 | 1244 | | |
1242 | 1245 | | |
1243 | 1246 | | |
1244 | | - | |
1245 | | - | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
1246 | 1252 | | |
1247 | 1253 | | |
1248 | 1254 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
| 66 | + | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
0 commit comments