Android: Add null checks in SpeechRecognitionImpl
This CL is a speculative fix that adds null checks against the native pointer before calling into native layer. The native pointer gets nulled out when the native object is destroyed, so this can help avoid potential UAF. Bug: 1131346 Change-Id: Ie27dc55f308d64638ff09b5bcdbeb53ef2f8edde Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2483740Reviewed-by:Primiano Tucci <primiano@chromium.org> Commit-Queue: Jinsuk Kim <jinsukkim@chromium.org> Cr-Commit-Position: refs/heads/master@{#819658}
Showing
Please register or sign in to comment