| Summary: | [JSC] Fix WebKitAdditions directory traversal in offlineasm | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Yusuke Suzuki <ysuzuki> | ||||||
| Component: | New Bugs | Assignee: | Yusuke Suzuki <ysuzuki> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | ews-watchlist, keith_miller, mark.lam, msaboff, saam, tzagallo, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Yusuke Suzuki
2021-09-02 16:45:17 PDT
Created attachment 437219 [details]
Patch
Comment on attachment 437219 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=437219&action=review r=me > Source/JavaScriptCore/offlineasm/asm.rb:338 > + opts.banner = "Usage: asm.rb asmFile offsetsFile outputFileName [--assembler=<ASM> --use-deployment-location]" Should this be "[--assembler=<ASM>] [--use-deployment-location]" instead since the 2 options are independent? > Source/JavaScriptCore/offlineasm/generate_offset_extractor.rb:52 > + # This option is currently only used to specify the masm assembler This comment is not relevant. I think it's just copied from above. Please remove. > Source/JavaScriptCore/offlineasm/generate_settings_extractor.rb:49 > + # This option is currently only used to specify the masm assembler Ditto. Please remove. Comment on attachment 437219 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=437219&action=review Thanks! >> Source/JavaScriptCore/offlineasm/asm.rb:338 >> + opts.banner = "Usage: asm.rb asmFile offsetsFile outputFileName [--assembler=<ASM> --use-deployment-location]" > > Should this be "[--assembler=<ASM>] [--use-deployment-location]" instead since the 2 options are independent? Changed. >> Source/JavaScriptCore/offlineasm/generate_offset_extractor.rb:52 >> + # This option is currently only used to specify the masm assembler > > This comment is not relevant. I think it's just copied from above. Please remove. Removed. >> Source/JavaScriptCore/offlineasm/generate_settings_extractor.rb:49 >> + # This option is currently only used to specify the masm assembler > > Ditto. Please remove. Removed. Comment on attachment 437219 [details]
Patch
You missed one spot in parser.rb: search for "/usr/local/include/WebKitAdditions/" and you'll see a seconds place the path is chosen in `def parseIncludes(final, comment)`.
Created attachment 437225 [details]
Patch
Comment on attachment 437225 [details]
Patch
r=me
OK, compilation finished. Committed r281972 (241279@main): <https://commits.webkit.org/241279@main> |