Commit 81223bd
committed
fix: remove unnecessary size equality check bypass
The `P->bk->size == P->prev_size` check in unlink() was introduced in
GLIBC 2.26 and does not exist in the implementations of GLIBC 2.23 or
2.24. Therefore, fake_chunk[0] and fake_chunk[1] do not need to be
equal in these versions.
The original note explicitly stated that they should be equal, which
could be misleading in many situations.1 parent 9cdc4e0 commit 81223bd
File tree
2 files changed
+2
-2
lines changed- glibc_2.23
- glibc_2.24
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
0 commit comments