Frama-C-discuss mailing list archives

This page gathers the archives of the old Frama-C-discuss archives, that was hosted by Inria's gforge before its demise at the end of 2020. To search for mails newer than September 2020, please visit the page of the new mailing list on Renater.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Frama-c-discuss] using errno

  • Subject: [Frama-c-discuss] using errno
  • From: stephane.duprat at (Stéphane Duprat)
  • Date: Sat, 07 Nov 2009 00:20:20 +0100

Hi again,

Is someone know how to treat errno ?
The cil create a pointer not allowed and after an access to the



src code:
  if (errno == 0) j=2;

the cil:
  int *tmp ;
  { /*undefined sequence*/  tmp = __errno_location(); ; }
  /*@ assert \valid(tmp);
          // synthesized
  if (*tmp == 0) { j = 2; }

warning: out of bounds read. assert \valid(tmp);
-------------- next part --------------
An HTML attachment was scrubbed...