Open nano-o opened 4 years ago
Another information that would be useful here is the C source file and line number of the call site for which no override applies.
The line ptr <- crucible_alloc (llvm_array 1 (llvm_int 8)); // an uninitialized long
is actually not allocating a value of type long
, as the comment suggests; it's allocating an 8-bit integer, which should have 1-byte alignment.
In the following C example,
f1
expects initialized memory but is passed uninitialized memory. SAW reports an error, but there is seemingly no indication in the output that uninitialized memory is the cause of the error. Moreover, I don't understand whyHeapAlloc 4
is 1-byte-aligned and not 8-byte-aligned.