Bug 161629 - [Win] Enable strict runtime stack buffer checks.
Summary: [Win] Enable strict runtime stack buffer checks.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Per Arne Vollan
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-09-06 08:43 PDT by Per Arne Vollan
Modified: 2016-09-06 11:57 PDT (History)
8 users (show)

See Also:


Attachments
Patch (1.01 KB, patch)
2016-09-06 08:47 PDT, Per Arne Vollan
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Per Arne Vollan 2016-09-06 08:43:06 PDT
We can use #pragma strict_gs_check(on) to enable buffer checks in more cases than with the compile option /GS.
Comment 1 Per Arne Vollan 2016-09-06 08:47:04 PDT
Created attachment 288027 [details]
Patch
Comment 2 Per Arne Vollan 2016-09-06 08:49:23 PDT
<rdar://problem/9915569>
Comment 3 Brent Fulgham 2016-09-06 09:57:50 PDT
Comment on attachment 288027 [details]
Patch

r=me
Comment 4 Alex Christensen 2016-09-06 10:34:48 PDT
Should we remove the compile option /GS then?  Will this hurt performance?
Comment 5 Per Arne Vollan 2016-09-06 11:33:43 PDT
(In reply to comment #4)
> Should we remove the compile option /GS then?  Will this hurt performance?

I believe the /GS option is needed to use the pragma. I don't think it will affect performance much, but it will add a little overhead to the functions where the compiler decides to emit these checks.
Comment 6 Per Arne Vollan 2016-09-06 11:35:33 PDT
Comment on attachment 288027 [details]
Patch

Thanks for reviewing :)
Comment 7 WebKit Commit Bot 2016-09-06 11:57:01 PDT
Comment on attachment 288027 [details]
Patch

Clearing flags on attachment: 288027

Committed r205497: <http://trac.webkit.org/changeset/205497>
Comment 8 WebKit Commit Bot 2016-09-06 11:57:07 PDT
All reviewed patches have been landed.  Closing bug.