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
We are unable to detect potential failing range checks in the model. Here is an example:
packageTestistype A ismod2 ** 32;
type B is
message
C : A
then D
with Size => C * 8;
D : Opaque;
endmessage;
endTest;
rflx-test-generic_b.adb:78:72: medium: range check might fail, in instantiation at rflx-test-b.ads:6rflx-test-generic_b.adb:97:56: medium: range check might fail, in instantiation at rflx-test-b.ads:6
type Length isnew Natural;
type Bit_Length isrange0 .. Length'Last * 8;
But a user is able to use a custom buffer type with another value range for its index (the upper limit of Index and Length must be equal). So I doubt we will be able to completely prevent such cases by adding a check to the model.
The text was updated successfully, but these errors were encountered:
We are unable to detect potential failing range checks in the model. Here is an example:
Bit_Length
is defined as follows by default:But a user is able to use a custom buffer type with another value range for its index (the upper limit of
Index
andLength
must be equal). So I doubt we will be able to completely prevent such cases by adding a check to the model.The text was updated successfully, but these errors were encountered: