Skip to content

Drop usage of alloca(3)#412

Merged
cgzones merged 1 commit intologrotate:masterfrom
cgzones:alloca
Aug 5, 2021
Merged

Drop usage of alloca(3)#412
cgzones merged 1 commit intologrotate:masterfrom
cgzones:alloca

Conversation

@cgzones
Copy link
Member

@cgzones cgzones commented Jul 26, 2021

Memory allocations via alloca(3) of user controlled size can lead to abnormal program exists, e.g. SIGSEGV, or memory corruption since failures are not passed to the caller.

Also alloca(3) might be less portable and the usages in logrotate are not performance critical.

Memory allocations via alloca(3) of user controlled size can lead to
abnormal program exists, e.g. SIGSEGV, or memory corruption since
failures are not passed to the caller.

Also alloca(3) might be less portable and the usages in logrotate are
not performance critical.
@cgzones cgzones merged commit c03c61a into logrotate:master Aug 5, 2021
@cgzones cgzones deleted the alloca branch August 5, 2021 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants