Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 06eb9b4c77bfce4b384564dd4d806cb9aea3e78f
https://github.com/WebKit/WebKit/commit/06eb9b4c77bfce4b384564dd4d806cb9aea3e78f
Author: Zak Ridouh <[email protected]>
Date: 2026-02-19 (Thu, 19 Feb 2026)
Changed paths:
M Tools/Scripts/filter-build-webkit
Log Message:
-----------
Fix filter-build-webkit crash when build line has no path argument
https://bugs.webkit.org/show_bug.cgi?id=308249
rdar://170756867
Reviewed by Simon Fraser.
Guard basename() call against undef $4 when the optional path capture group
doesn't match, which causes a error from File::Basename, causing the script to
crash.
This was manifesting as output stopping and the following error code being
emitted, when piping build output through `filter-build-webkit`:
```
Use of uninitialized value $_[0] in substitution (s///) at
/System/Library/Perl/5.34/File/Basename.pm line 341, <> line 11967.
fileparse(): need a valid pathname at
/Users/z/ws/wk/OpenSource/Tools/Scripts/filter-build-webkit line 188.
```
* Tools/Scripts/filter-build-webkit:
(main):
Canonical link: https://commits.webkit.org/307866@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications