1
0
mirror of https://git.tukaani.org/xz.git synced 2025-02-26 10:28:18 +00:00
xz/src/liblzma
Lasse Collin 359e5c6cb1 Remove incorrect uses of __attribute__((__malloc__)).
xrealloc() is obviously incorrect, modern GCC docs even
mention realloc() as an example where this attribute
cannot be used.

liblzma's lzma_alloc() and lzma_alloc_zero() would be
correct uses most of the time but custom allocators
may use a memory pool or otherwise hold the pointer
so aliasing issues could happen in theory.

The xstrdup() case likely was correct but I removed it anyway.
Now there are no __malloc__ attributes left in the code.
The allocations aren't in hot paths so this should make
no practical difference.
2023-10-31 01:03:25 +08:00
..
2023-08-02 20:32:20 +08:00
2023-08-01 18:44:02 +03:00
2023-08-01 18:44:02 +03:00
2023-08-02 20:32:20 +08:00