Bug 238869 - Fix the address sanitizer build when building with gcc
Summary: Fix the address sanitizer build when building with gcc
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Linux
: P2 Normal
Assignee: Martin Robinson
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-04-06 08:49 PDT by Martin Robinson
Modified: 2022-04-19 01:49 PDT (History)
8 users (show)

See Also:


Attachments
Patch (1.25 KB, patch)
2022-04-06 08:52 PDT, Martin Robinson
no flags Details | Formatted Diff | Diff
Patch (1.29 KB, patch)
2022-04-18 03:03 PDT, Martin Robinson
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Robinson 2022-04-06 08:49:14 PDT
The build currently fails when trying to turn on the address sanitizer using the gcc compiler.
Comment 1 Martin Robinson 2022-04-06 08:52:03 PDT
Created attachment 456823 [details]
Patch
Comment 2 Radar WebKit Bug Importer 2022-04-13 08:50:15 PDT
<rdar://problem/91692190>
Comment 3 Philippe Normand 2022-04-18 02:58:43 PDT
Comment on attachment 456823 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=456823&action=review

> Source/JavaScriptCore/runtime/ConfigFile.cpp:248
>          m_filename[s_maxPathLength] = '\0';

Missing _END before leaving scope?
Comment 4 Martin Robinson 2022-04-18 03:03:46 PDT
Created attachment 457803 [details]
Patch
Comment 5 Martin Robinson 2022-04-18 03:04:22 PDT
(In reply to Philippe Normand from comment #3)
> Comment on attachment 456823 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=456823&action=review
> 
> > Source/JavaScriptCore/runtime/ConfigFile.cpp:248
> >          m_filename[s_maxPathLength] = '\0';
> 
> Missing _END before leaving scope?

Oof. Yes. Thanks for spotting that. I've uploaded a new version of the change.
Comment 6 EWS 2022-04-18 05:44:37 PDT
Found 1 new test failure: http/tests/privateClickMeasurement/store-private-click-measurement-with-source-nonce.html
Comment 7 EWS 2022-04-19 01:49:25 PDT
Committed r293010 (249749@main): <https://commits.webkit.org/249749@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 457803 [details].