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 #49

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

Looks good to me - thanks :)

ikeydoherty commented 7 years ago

BTW I'm super curious at the musl use-case with cve-check-tool - would love if you'd elaborate on that :)