Commit ed0fd13
authored
[scudo] Double frees result in chunk state error (llvm#110345)
Fixes bug where a device that supports tagged pointers doesn't use
the tagged pointer when computing the checksum.
Add tests to verify that double frees result in chunk state error
not corrupted header errors.1 parent 1b6a46a commit ed0fd13
File tree
2 files changed
+35
-8
lines changed- compiler-rt/lib/scudo/standalone
- tests
2 files changed
+35
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1255 | 1255 | | |
1256 | 1256 | | |
1257 | 1257 | | |
1258 | | - | |
1259 | | - | |
| 1258 | + | |
1260 | 1259 | | |
1261 | | - | |
1262 | | - | |
1263 | | - | |
1264 | | - | |
| 1260 | + | |
1265 | 1261 | | |
1266 | 1262 | | |
1267 | | - | |
1268 | | - | |
1269 | 1263 | | |
1270 | 1264 | | |
1271 | 1265 | | |
1272 | 1266 | | |
1273 | 1267 | | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
1274 | 1278 | | |
1275 | 1279 | | |
1276 | 1280 | | |
| |||
1288 | 1292 | | |
1289 | 1293 | | |
1290 | 1294 | | |
| 1295 | + | |
| 1296 | + | |
1291 | 1297 | | |
1292 | 1298 | | |
1293 | 1299 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
534 | 534 | | |
535 | 535 | | |
536 | 536 | | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
537 | 558 | | |
538 | 559 | | |
539 | 560 | | |
| |||
0 commit comments