diff --git a/infer/src/bufferoverrun/bufferOverrunSemantics.ml b/infer/src/bufferoverrun/bufferOverrunSemantics.ml index c19698ae3..ecbb350db 100644 --- a/infer/src/bufferoverrun/bufferOverrunSemantics.ml +++ b/infer/src/bufferoverrun/bufferOverrunSemantics.ml @@ -24,7 +24,7 @@ struct let eval_const : Const.t -> Val.t = function - | Const.Cint intlit -> Val.of_int (IntLit.to_int intlit) + | Const.Cint intlit -> (try Val.of_int (IntLit.to_int intlit) with _ -> Val.top_itv) | Const.Cfloat f -> f |> int_of_float |> Val.of_int | _ -> Val.bot (* TODO *)