Commit 3ae29aa
remove malloc_usable_size() and friends from buffer
malloc_usable_size(), _msize() and malloc_size() are meant for
diagnostics, not for relying on in release builds. Arch Linux already
patches this out downstream for -D_FORTIFY_SOURCE=3 compatibility,
which treats the call as a fatal memory violation.
buffer already fell back to the requested (8-byte aligned) size on
platforms without one of these functions, so this just makes that the
only behavior, and drops the now-unused platform headers.
Fixes #80511 parent 05c44cc commit 3ae29aa
1 file changed
Lines changed: 2 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | 27 | | |
38 | 28 | | |
39 | 29 | | |
40 | 30 | | |
41 | | - | |
| 31 | + | |
42 | 32 | | |
43 | 33 | | |
44 | 34 | | |
| |||
55 | 45 | | |
56 | 46 | | |
57 | 47 | | |
58 | | - | |
59 | | - | |
60 | | - | |
| 48 | + | |
61 | 49 | | |
62 | 50 | | |
63 | | - | |
64 | | - | |
65 | 51 | | |
66 | 52 | | |
67 | 53 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | 54 | | |
78 | | - | |
79 | 55 | | |
80 | 56 | | |
81 | 57 | | |
| |||
0 commit comments