[threadsafety] watch out for non-Java pnames

Summary: That match branch is Java-only but could be reached with a C++ method, causing a crash.

Reviewed By: jberdine, mbouaziz

Differential Revision: D5814041

fbshipit-source-id: 6b1b501
master
Jules Villard 7 years ago committed by Facebook Github Bot
parent 8cad1b5e69
commit b3b4e42067

@ -485,6 +485,7 @@ module TransferFunctions (CFG : ProcCfg.S) = struct
in
match List.rev accesses with
| (AccessPath.FieldAccess base_field) :: (AccessPath.FieldAccess container_field) :: _
when Typ.Procname.is_java callee_pname
-> let base_typename =
Typ.Name.Java.from_string (Typ.Fieldname.java_get_class base_field)
in

Loading…
Cancel
Save