-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove #include <malloc.h>
#792
Remove #include <malloc.h>
#792
Conversation
Fix submitted upstream at hercules-team/augeas#792.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
* augeas 1.14.0 * augeas: remove patch The patch is now in the release. * augeas: fix build Fix submitted upstream at hercules-team/augeas#792. Closes #118025. Signed-off-by: Dawid Dziurla <[email protected]> Signed-off-by: BrewTestBot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
augprint compiles normally with this change, as per the description of this PR
As it turns out, there is another similar problem affecting FreeBSD and brew, which causes
|
n.b.: including |
`<malloc.h>` is not present on all platforms (e.g. macOS). `<stdlib.h>` should be the place to look for `malloc`, and it has already been `#include`d. Signed-off-by: Ruoyu Zhong <[email protected]>
This fixes a segfault with `augprint -h` on some non-GNU platforms. See: https://manpages.ubuntu.com/manpages/bionic/en/man3/basename.3.html Signed-off-by: Ruoyu Zhong <[email protected]>
6cc785a
to
97c137d
Compare
OK, done. Tested locally and confirmed that this is fixed.
Thanks for bringing this up, @igalic. In this case I think it's fine since |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating the PR
Hi! Submitting this patch to fix the build error in Homebrew/homebrew-core#118025.
<malloc.h>
is not present on all platforms (e.g. macOS). To usemalloc
,<stdlib.h>
should be the place to look formalloc
, and it has already been#include
d.Signed-off-by: Ruoyu Zhong [email protected]