Unsoundness for LLVM overrides of functions that return NULL pointers #640
Labels
subsystem: crucible-llvm
Issues related to LLVM bitcode verification with crucible-llvm
type: bug
Issues reporting bugs or unexpected/unwanted behavior
unsoundness
Issues that can lead to unsoundness or false verification
Milestone
Here's the C code:
And the saw-script:
Note that we can prove either that
bar
always returns0
, or thatbar
always returns1
, depending on whether we use the override forfoo
. This is obviously unsound.When checking the spec that we give here for
foo
(which has acrucible_alloc
in the post-state section) saw ought to check that the returned pointer is actually non-NULL, because when we use the override saw always creates a fresh non-NULL pointer.The text was updated successfully, but these errors were encountered: