Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 67335a3cc0c456ba1b0a77a37598b96f7ab86db2
https://github.com/WebKit/WebKit/commit/67335a3cc0c456ba1b0a77a37598b96f7ab86db2
Author: Vassili Bykov <[email protected]>
Date: 2025-05-09 (Fri, 09 May 2025)
Changed paths:
M Source/JavaScriptCore/wasm/WasmIndexOrName.cpp
Log Message:
-----------
Guard against a null name section in makeString in WasmIndexOrName.cpp
https://bugs.webkit.org/show_bug.cgi?id=292796
rdar://151025732
Reviewed by Mark Lam.
The IndexOrName::dump method guards against nameSection being null, but the
makeString function doesn't. The ion.isEmpty() check does not take into account
the presence of nameSection, so it is possible to have an IndexOrName
instance configured such that it would cause a segfault in makeString.
The patch makes the makeString as robust as the dump method, and also
matches the logic of printing the index.
Canonical link: https://commits.webkit.org/294737@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes