out_of_bounds_access_warnings.push(format!("The object bound is based on the possible source value {:#} for the object ID.",source.to_json_compact()));
out_of_bounds_access_warnings.push(format!("The object bound is based on the possible source value {:#} for the object ID.",source.to_json_compact()));
// Replace the bound with `Top` to prevent duplicate CWE warnings with the same root cause.
// Replace the bound with `Top` to prevent duplicate CWE warnings with the same root cause.
self.object_lower_bounds
self.object_lower_bounds
...
@@ -110,6 +122,18 @@ impl State {
...
@@ -110,6 +122,18 @@ impl State {
)=context.compute_bounds_of_id(id,&self.stack_id)
)=context.compute_bounds_of_id(id,&self.stack_id)
{
{
out_of_bounds_access_warnings.push(format!("The object bound is based on the possible source value {:#} for the object ID.",source.to_json_compact()));
out_of_bounds_access_warnings.push(format!("The object bound is based on the possible source value {:#} for the object ID.",source.to_json_compact()));