Compiler Security Flag /Gs

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Compiler Security Flag /Gs

Postby akjana » Fri Mar 17, 2017 3:54 pm

Hi

It looks like /GS (Buffer Security Check) flag is turned for CEF builds. Is there a specific reason why its turned off ?
Its a potential security issue found using static analysis tool BinScope.

Thanks
akjana
Techie
 
Posts: 39
Joined: Wed Feb 03, 2016 2:15 am

Re: Compiler Security Flag /Gs

Postby magreenblatt » Fri Mar 17, 2017 4:46 pm

Turned off where? For what builds?
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Compiler Security Flag /Gs

Postby akjana » Fri Mar 17, 2017 6:08 pm

I was testing the Cef binaries from 11/27/2016 - CEF 3.2785.1486.g8c4ba9f / Chromium 53.0.2785.116

The static analysis tool only says that the Flag is turned off for libcef.dll

Searching the chromium code base, I found this entry in Skia which turns off the flag.
[ur]https://cs.chromium.org/chromium/src/third_party/skia/gn/BUILD.gn?q=/GS-+package:%5Echromium$&dr=C&l=410[url]

Did not find such an entry in the cef code though on a basic search. Any idea if cef turns off this flag as well ?

And regarding the instance where Skia disables the compiler flag pardon if its an question beyond the scope of discussion for this forum, any thoughts/ideas why its done?
Disabling /Gs flag raises the concern that Buffer Overrun exploits could be possible, where should I pursue a fix for Skia ? Would this be a chromium bug report, I guess not.
akjana
Techie
 
Posts: 39
Joined: Wed Feb 03, 2016 2:15 am

Re: Compiler Security Flag /Gs

Postby akjana » Wed Mar 22, 2017 11:14 am

Any comments/thoughts
akjana
Techie
 
Posts: 39
Joined: Wed Feb 03, 2016 2:15 am

Re: Compiler Security Flag /Gs

Postby magreenblatt » Wed Mar 22, 2017 11:19 am

As you say, there is nothing in Chromium or CEF that explicitly disables this flag. Here's the commit that turned it off for Skia: https://skia.googlesource.com/skia.git/ ... d86c0ad819
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Compiler Security Flag /Gs

Postby akjana » Wed Mar 22, 2017 12:00 pm

Thanks magreenblatt for the commit Id, i'll discuss this in Chromium Forum then.
akjana
Techie
 
Posts: 39
Joined: Wed Feb 03, 2016 2:15 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 27 guests