Skip to content

Conversation

@RonaldJudin
Copy link

This analysis checks that OCaml objects in C programs are not deleted by the garbage collector before usage.
It is based on OCaml's documentation at https://ocaml.org/manual/5.4/intfc.html.
The implementation uses the variable set domain.

(* If rval is a pointer, checks whether rval is accounted for, handles assignment to v accordingly *) (* state *)
(* Emits an event for the variable v not being zero. *)

if Cil.isPointerType (Cil.typeOf rval) then

Check warning

Code scanning / Semgrep OSS

Semgrep Finding: semgrep.cilfacade Warning

use Cilfacade instead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants