Report empty vector access in tabulation.ml

Summary: I missed that codepath and it lead to NULL_DEREFERENCE errors when in fact they should be EMPTY_VECTOR_ACCESS

Reviewed By: jvillard

Differential Revision: D3340627

fbshipit-source-id: 52ae85f
master
Andrzej Kotulski 9 years ago committed by Facebook Github Bot 8
parent 56cfac14da
commit 99a58e691d

@ -1201,6 +1201,8 @@ let exe_call_postprocess ret_ids trace_call callee_pname callee_attrs loc result
raise (Exceptions.Parameter_not_null_checked (desc, __POS__))
else if Localise.is_field_not_null_checked_desc desc then
raise (Exceptions.Field_not_null_checked (desc, __POS__))
else if (Localise.is_empty_vector_access_desc desc) then
raise (Exceptions.Empty_vector_access (desc, __POS__))
else raise (Exceptions.Null_dereference (desc, __POS__))
| Dereference_error (Deref_freed _, desc, path_opt) ->
trace_call Specs.CallStats.CR_not_met;

Loading…
Cancel
Save