Fix Exception Replay in Lambda by jpbempel · Pull Request #10505 · DataDog/dd-trace-java

@jpbempel

In Lambda, the inner stack trace is truncated -- stack frames from
fileName='AWSLambda.java' are removed. Therefore, in the original
code, we would end up with a negative currentIdx, resulting in an
error occurring in sanityCheckSnapshotAssignment. This PR adds a
fallback to fix the mismatched pointer.

shreyamalpani