-
Notifications
You must be signed in to change notification settings - Fork 42
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
Limit usage of malloc.conf options to OpenBSD #282
Conversation
Codecov Report
@@ Coverage Diff @@
## master #282 +/- ##
=======================================
Coverage 90.14% 90.14%
=======================================
Files 1 1
Lines 497 497
=======================================
Hits 448 448
Misses 49 49 Continue to review full report at Codecov.
|
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.
Good catch.
configure.ac
Outdated
@@ -15,5 +15,19 @@ AC_SEARCH_LIBS([setupterm], [curses], [], [ | |||
)] | |||
) | |||
]) | |||
AC_DEFUN([AC_MALLOC_OPTIONS], [ | |||
AC_MSG_CHECKING([for malloc hardening options]) | |||
case "`uname -s`" in |
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.
If you AC_CANONICAL_HOST
then you can use $host_os
in here instead.
Thanks @mike-burns! Updated diff with your proposal and significant
@DBOTW could you confirm that it's working as expected on NetBSD? |
Looks good: |
Turns out the S option has a different meaning on {Free,Net}BSD and the R option is not supported.
@DBOTW thanks for testing! |
Turns out the S option has a different meaning on {Free,Net}BSD and the R option
is not supported.
/cc @DBOTW and @mike-burns for autoconf inspection