You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running Valgrind on the compiled code yields an "invalid read".
Note: though this issue looks similar to #1287, these issues are different.
Here, we must forbid replacing a VLA array field because the lifetime of the local array ends when the function returns. In the other issue, we do not have this problem because Buffer has a fixed-size array field (and not a pointer).
These issues may both be resolved by forbidding any array replacement, though for #1287 it may be a bit too restrictive.
The text was updated successfully, but these errors were encountered:
We should perform such checks because the following snippet results in a C code exhibiting UB:
This gets translated to:
Running Valgrind on the compiled code yields an "invalid read".
Note: though this issue looks similar to #1287, these issues are different.
Here, we must forbid replacing a VLA array field because the lifetime of the local array ends when the function returns. In the other issue, we do not have this problem because
Buffer
has a fixed-size array field (and not a pointer).These issues may both be resolved by forbidding any array replacement, though for #1287 it may be a bit too restrictive.
The text was updated successfully, but these errors were encountered: