private static void putInterpolator(int hash, WeakReference<Interpolator> interpolator) {
    // This must be synchronized because get and put isn't thread safe because
    // SparseArrayCompat has to create new sized arrays sometimes.
    synchronized (KeyframeParser.class) {
      pathInterpolatorCache.put(hash, interpolator);
    }
  }
Some animations get exported with insane cp values in the tens of thousands.
PathInterpolator fails to create the interpolator in those cases and hangs.
Clamping the cp helps prevent that.
lottie/src/main/java/com/airbnb/lottie/parser/KeyframeParser.java