[klee-dev] About KLEE Error

kmohit kmohit at cdac.in
Tue Jun 8 05:30:50 BST 2021


Hi All,

     I am using KLEE-2.1 for symbolic  analysis on x-86 32 bit system. I want to
generate model error through KLEE . For that , I wrote source code using malloc
for encoutering model error. But it gives me pointer error(ptr.err). So, can you
suggest me how to invoke model error and if possible suggest me source code.

source code written for model error:-


#include <stdio.h>

#include <stdlib.h>

​int main() {

int j;

int *primes;

int i ;

int limit = 2147483647;

​    primes = malloc(sizeof(int) * limit);

for (i = 0; i < limit; i++)

{

primes[i] = 1;

}

return 0;

}


Thanks in advance,
mohit .
------------------------------------------------------------------------------------------------------------
[ C-DAC is on Social-Media too. Kindly follow us at:
Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ]

This e-mail is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. If you are not the
intended recipient, please contact the sender by reply e-mail and destroy
all copies and the original message. Any unauthorized review, use,
disclosure, dissemination, forwarding, printing or copying of this email
is strictly prohibited and appropriate legal action will be taken.
------------------------------------------------------------------------------------------------------------

-------------- next part --------------
HTML attachment scrubbed and removed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.jpg
Type: image/jpeg
Size: 7789 bytes
Desc: not available
URL: <http://mailman.ic.ac.uk/pipermail/klee-dev/attachments/20210608/5393028a/attachment.jpg>


More information about the klee-dev mailing list