We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47c9084 commit 970abfeCopy full SHA for 970abfe
src/cdomain/value/cdomains/valueDomain.ml
@@ -1102,8 +1102,7 @@ struct
1102
begin
1103
match fld.ftype with (* TODO: unrolltype? *)
1104
| TArray(_, l, _) ->
1105
- let len = try Cil.lenOfArray l
1106
- with Cil.LenOfArray -> 42 (* will not happen, VLA not allowed in union and struct *) in
+ let len = Cil.lenOfArray l in (* LenOfArray exception will not happen, VLA not allowed in union and struct *)
1107
Array(CArrays.make (IndexDomain.of_int (Cilfacade.ptrdiff_ikind ()) (Z.of_int len)) Top), offs
1108
| _ -> top (), offs (* will not happen*)
1109
end
0 commit comments