Compile XnView MP with /guard:cf

Ideas for improvements and requests for new features in XnView MP

Moderators: helmut, XnTriq, xnview

Post Reply
arko
Posts: 11
Joined: Wed Apr 22, 2020 5:10 am

Compile XnView MP with /guard:cf

Post 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.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Compile XnView MP with /guard:cf

Post by xnview »

why?
Pierre.
arko
Posts: 11
Joined: Wed Apr 22, 2020 5:10 am

Re: Compile XnView MP with /guard:cf

Post 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:
Post Reply