Closed Cglasses closed 3 years ago
Hi, from the blame log of the file @holznerst linked I see that I created it. In the commit message https://github.com/sosy-lab/sv-benchmarks/commit/97299d4b5fefdaf2cb4e53ecf94bd61eb9eabab4 I mention issue https://github.com/sosy-lab/sv-benchmarks/issues/535, which contains a detailed description of the overflow.
tl;dr is that strlen(strerr)
can lead to an integer close to INT_MAX
, which is used in a signed integer addition to determine the length of the error message in bb_perror_msg
, which will be the length of strerr
plus some added stuff around that:
(unsigned long int)(applet_len + used + strerr_len + msgeol_len + 3) // overflow!
Its corresponding YML file states that the expected result of the no-overflow property is false. I wonder under what circumstances will the program overflow? echo-2.zip