blink/bindings: Fix UB in StringResource.
v8::string::ExternalStringResourceBase -> StringResource{8,16} cast is undefined
behavior, as there is now ParkableStringResource{8,16} and
StringResource{8,16}.
Add a common ancestor to these two classes, and cast to it to avoid UB.
Bug: 909796
Change-Id: I94c65e03f283ca3c9fee344743e3f607686d2846
Reviewed-on: https://chromium-review.googlesource.com/c/1355046
Commit-Queue: Benoit L <lizeb@chromium.org>
Reviewed-by:
Kentaro Hara <haraken@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612250}
Showing
Please register or sign in to comment