Closed secure-sw-dev-bot closed 2 years ago
This issue was copied from https://github.com/microsoft/checkedc-clang/issues/1169
Fixes #1158
This PR updates the bounds checking behavior for lvalue expressions with bounds-safe interfaces in unchecked scopes.
If:
S
e
e = e1
e1
The bounds of e are not validated after checking S.
This issue was copied from https://github.com/microsoft/checkedc-clang/issues/1169
Fixes #1158
This PR updates the bounds checking behavior for lvalue expressions with bounds-safe interfaces in unchecked scopes.
If:
S
is in an unchecked scope, and:e
has unchecked pointer type (its bounds were declared using a bounds-safe interface), and:S
does not contain an assignmente = e1
wheree1
is a checked pointer, then:The bounds of
e
are not validated after checkingS
.