Compile XnView MP with /guard:cf

Ideas for improvements and requests for new features in XnView MP

Moderators: XnTriq, xnview

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

Compile XnView MP with /guard:cf

Post by arko » Wed Apr 22, 2020 6:41 am

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: 33336
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Compile XnView MP with /guard:cf

Post by xnview » Mon Jun 01, 2020 6:07 pm

why?
Pierre.

arko
Posts: 3
Joined: Wed Apr 22, 2020 5:10 am

Re: Compile XnView MP with /guard:cf

Post by arko » Tue Jun 02, 2020 2:06 pm

xnview wrote:
Mon Jun 01, 2020 6:07 pm
why?
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