aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/native-file-system/script-tests
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2025-05-06 02:08:31 -0400
committerGitHub <noreply@github.com>2025-05-06 06:08:31 +0000
commit3b806ca424b3dba859d46b6ab022e4b1994ce31e (patch)
treec81277dc1cca8da11e4975c2bb7469c5848da01d /tests/wpt/web-platform-tests/native-file-system/script-tests
parent8b05b7449d3ceaeb6ae834246012ac04a4f048c6 (diff)
downloadservo-main.tar.gz
servo-main.zip
script_bindings: Check for null pointer before dereferencing proxy handler custom data (#36869)HEADmain
While the vast majority of DOM proxy objects created have a non-null pointer in the handler's extra data field, there is one place we create a proxy object that has a null pointer: https://github.com/servo/servo/blob/8b05b7449d3ceaeb6ae834246012ac04a4f048c6/components/script/window_named_properties.rs#L76 . Before #36818, dereferencing this null pointer was undefined behaviour that was silently being ignored; now that Rust 1.86 adds debug pointer validity checks, we get a panic when trying to dereference it. Testing: Tested about:memory with rustc 1.86. --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
Diffstat (limited to 'tests/wpt/web-platform-tests/native-file-system/script-tests')
0 files changed, 0 insertions, 0 deletions