We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd82abd commit d2840fbCopy full SHA for d2840fb
src/analyses/base.ml
@@ -268,7 +268,7 @@ struct
268
begin match IdxDom.(to_bool (eq f_offset (neg (iDtoIdx n)))) with
269
| Some true -> `NoOffset
270
| _ when isArrayType f.ftype -> `Field (f, `Index (n, `NoOffset))
271
- | _ when GobOption.exists (Z.equal Z.zero) (ID.to_int n) -> `NoOffset (* adding (or subtracting) 0 to any type of pointer is ok *)
+ | _ when GobOption.exists (Z.equal Z.zero) (ID.to_int n) -> `Field (f, `NoOffset) (* adding (or subtracting) 0 to any type of pointer is ok *)
272
| _ -> raise UnknownPtr (* adding (or subtracting) anything else than 0 to a pointer that is non-indexable will yield an unknown pointer *)
273
end
274
| `Index (i, o) ->
0 commit comments