model-checking / kani

Kani Rust Verifier
https://model-checking.github.io/kani
Apache License 2.0
2.03k stars 85 forks source link

C library: declare malloc #3296

Closed tautschnig closed 3 days ago

tautschnig commented 4 days ago

In #1812 we removed standard library includes and instead provided forward declarations of free, calloc, and memcpy -- but seemingly forgot to include malloc, which we also use.

This avoids a warning seen when dialling up goto-cc verbosity.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.