Page 1 of 1

Compile XnView MP with /guard:cf

Posted: Wed Apr 22, 2020 6:41 am
by arko
It seems like my previous topic has magically disappeared... Or on hold pending moderation.

XnView MP has DEP/ASLR enabled, which is great! Would it be possible to enable /guard:cf as well? It is supported in Visual Studio 2017.

Re: Compile XnView MP with /guard:cf

Posted: Mon Jun 01, 2020 6:07 pm
by xnview
why?

Re: Compile XnView MP with /guard:cf

Posted: Tue Jun 02, 2020 2:06 pm
by arko
xnview wrote: Mon Jun 01, 2020 6:07 pmwhy?
Not everything that quacks like a JPEG is just a JPEG; might be a fancy ROP gadget disguised as an image.

/GUARD:CF, similar to the -fcf-protection (GCC) and CFI (CLang) helps to prevent some of those.

:bug: