Add some tips to C-Allocators #13
No reviewers
Labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Docs/defensive-coding-guide#13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "wip/dueno/cleanup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This adds a couple of tips that can be used with the recent compilers and glibc, namely
cleanup
attribute andreallocarray
.rebased onto 46080eda4139d88947b9f3342eb27fd1d8e5bc7a
3 new commits added
C-Allocators: Mention `realloc` behavior if size is zero
C-Allocators: Mention `cleanup` attribute
C-Allocators: Mention `reallocarray` for safe array allocation
rebased onto
e6baf3d2fb
Pull-Request has been merged by huzaifas