Commit 7f5f460
committed
Rework places in libmagic regarding previous CVE-2014-3538 fixes
CVE-2014-3538 was fixed upstream, but the old patch was still kept in
the PHP port. This patch causes performance regressions when PCRE JIT is
not enabled. This is fixed by applying the relevant original code from
the newer libmagic, which makes the old patch obsolete as the
CVE-2014-3538 tests still pass.1 parent aea4116 commit 7f5f460
2 files changed
+17
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2567 | 2567 | | |
2568 | 2568 | | |
2569 | 2569 | | |
2570 | | - | |
2571 | | - | |
| 2570 | + | |
2572 | 2571 | | |
2573 | 2572 | | |
2574 | 2573 | | |
2575 | 2574 | | |
2576 | 2575 | | |
2577 | 2576 | | |
| 2577 | + | |
2578 | 2578 | | |
2579 | 2579 | | |
| 2580 | + | |
2580 | 2581 | | |
2581 | | - | |
| 2582 | + | |
2582 | 2583 | | |
2583 | 2584 | | |
2584 | 2585 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1268 | 1268 | | |
1269 | 1269 | | |
1270 | 1270 | | |
1271 | | - | |
1272 | | - | |
1273 | | - | |
1274 | | - | |
1275 | | - | |
1276 | | - | |
1277 | | - | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
1278 | 1277 | | |
1279 | 1278 | | |
1280 | | - | |
1281 | | - | |
1282 | | - | |
1283 | | - | |
1284 | | - | |
1285 | | - | |
1286 | | - | |
1287 | | - | |
1288 | | - | |
1289 | | - | |
1290 | | - | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
1291 | 1284 | | |
1292 | | - | |
| 1285 | + | |
1293 | 1286 | | |
1294 | 1287 | | |
1295 | 1288 | | |
| |||
1302 | 1295 | | |
1303 | 1296 | | |
1304 | 1297 | | |
1305 | | - | |
| 1298 | + | |
1306 | 1299 | | |
1307 | 1300 | | |
1308 | 1301 | | |
| |||
0 commit comments