Skip to content

Commit

Permalink
Fix unsoundness on unknown function call with tid as argument
Browse files Browse the repository at this point in the history
  • Loading branch information
karoliineh committed Oct 27, 2023
1 parent 1221860 commit 2df7882
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cdomains/valueDomain.ml
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ struct
let v = invalidate_value ask voidType (CArrays.get ask n (array_idx_top)) in
Array (CArrays.set ask n (array_idx_top) v)
| t , Blob n -> Blob (Blobs.invalidate_value ask t n)
| _ , Thread _ -> state (* TODO: no top thread ID set! *)
| _ , Thread tid -> Thread (Threads.join (Threads.top ()) tid)
| _ , JmpBuf _ -> state (* TODO: no top jmpbuf *)
| _, Bot -> Bot (* Leave uninitialized value (from malloc) alone in free to avoid trashing everything. TODO: sound? *)
| t , _ -> top_value t
Expand Down

0 comments on commit 2df7882

Please sign in to comment.