clearlinux / cve-check-tool

Original Automated CVE Checking Tool
GNU General Public License v2.0
204 stars 78 forks source link

Check for malloc_trim before using it #48

Closed kraj closed 7 years ago

kraj commented 7 years ago

malloc_trim is gnu specific and not all libc implement it, threfore write a configure check to poke for it first and use the define to guard its use.

Helps in compiling on musl based systems

Signed-off-by: Khem Raj raj.khem@gmail.com

ikeydoherty commented 7 years ago

Just to be sure here - did you mean for this to be against master? This is the (long) rewrite branch, 'legacy' is where the active release is from

ikeydoherty commented 7 years ago

(i.e. master is mostly broken)

kraj commented 7 years ago

my test has been against the released version on OE. but I reworked it to apply for master for submission. Let me resubmit it to appy against legacy branch if thats the active dev branch

ikeydoherty commented 7 years ago

I've moved legacy_tool back into master to remove confusion, as the current branch was just broken..