XnView incompatible with Data Execution Protection
Moderators: helmut, XnTriq, xnview
XnView incompatible with Data Execution Protection
Hello Everyone,
Using
XnView 1.94.2
Windows XP SP3 ENG
with boot.ini string /NoExecute=AlwaysOn
makes XnView crash instantaneously crash when running the xnview.exe or double clicking a picture file.
I found some information here:
http://blog.fabriceroux.com/index.php/2 ... oor?blog=1
The problem appears to be using ASPack to compact XnView. The solution appears to be to use UPX or PECompact instead. Please fix this issue so that XnView is usable on these systems. Thank you.
Using
XnView 1.94.2
Windows XP SP3 ENG
with boot.ini string /NoExecute=AlwaysOn
makes XnView crash instantaneously crash when running the xnview.exe or double clicking a picture file.
I found some information here:
http://blog.fabriceroux.com/index.php/2 ... oor?blog=1
The problem appears to be using ASPack to compact XnView. The solution appears to be to use UPX or PECompact instead. Please fix this issue so that XnView is usable on these systems. Thank you.
Screw contacting the author, we should make the switch to UPX as well!
BTW, I don't have any DEP crashes at all!
Here's my boot.ini...
BTW, I don't have any DEP crashes at all!
Here's my boot.ini...
Code: Select all
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect /usepmtimer
AMD Ryzen 3 3300X 3.8Ghz, 16Gb DDR4, RX6600XT with Dell U2520D at 2560x1440@60Hz scaling 125%
Win11 x64 24H2, Hard Disk Sentinel Pro, MS PowerToys, Process Lasso Pro and Wintoys
Win11 x64 24H2, Hard Disk Sentinel Pro, MS PowerToys, Process Lasso Pro and Wintoys
With your boot.ini ckit, you will not have crashes. It only crashes when having the switch /NoExecute=AlwaysOn because this forces XnView to run in DEP mode. However, since XnView is incompatible with DEP, it will crash.
Using the /noexecute=optin mode will not make it crash because XnView will not automatically run in DEP mode.
Using the /noexecute=optout mode will not make it crash either, because XnView will also not run in DEP mode.
If you wish, you might look at it using ProcessExplorer:
http://technet.microsoft.com/en-us/sysi ... 96653.aspx
After you run ProcessExplorer, make it show the DEP column and you will see which programs run with DEP enabled and which do not.
Using the /noexecute=optin mode will not make it crash because XnView will not automatically run in DEP mode.
Using the /noexecute=optout mode will not make it crash either, because XnView will also not run in DEP mode.
If you wish, you might look at it using ProcessExplorer:
http://technet.microsoft.com/en-us/sysi ... 96653.aspx
After you run ProcessExplorer, make it show the DEP column and you will see which programs run with DEP enabled and which do not.
Really boring


• I agree and support for a change !Screw contacting the author, we should make the switch to UPX as well! …

Claude
Clo
Old user ON SELECTIVE STRIKE till further notice •
Unpacked is nice


• Right, and i.e. the author of Total Commander provides a non-UPX-packed EXE…But why do we need it UPX packed? Isn't this pretty much useless these days (fast internet connections and large harddisks)?
(as a separate download for those who need it…).
- Currently, Xnview.exe should be ~ 4 Mio as unpacked instead of ~ 1.5 Mio, like you say not a big deal nowadays…

Claude
Clo
Old user ON SELECTIVE STRIKE till further notice •
No "viral"


• About the ratio of sizes, it's similar. For instance, TC unpacked = 2.7 MiB, UPX-packed = ~1 MiB.
- The main benefit is that UPXed EXEs are never "seen" as viral, AFAIK…
- However, like Dstruct and I said above, a non-packed EXE is not a problem now, and leads to a faster programme
(especially when a virus-scanner is running in the background, and can't be disabled by the user, i.e. in Companies…).

Claude
Clo
Last edited by Clo on Tue Sep 30, 2008 10:34 pm, edited 1 time in total.
Old user ON SELECTIVE STRIKE till further notice •
1. UPX has unpacking as "official" feature. ASPACK needs an "external hack" to unpack. UPX 3.xx uses LZMA algo (very good on large files).xnview wrote:Yes, i can perhaps use UPX, is it better than ASPack?
2. UPX/ASPACK won't reduce download size or time. Save either in UPX/ASPACK or ZIP/7-ZIP. You can't reduce twice.
3. Conclusions:
a) don't use any EXEpacker.

b) 7-ZIP the packages.
> The main benefit is that UPXed EXEs are never "saw" as viral
Wrong. There are always false positives.

There is indeed no WinZIP under my rock.
Agreed, but if executable packers are to be used UPX is the right way to go.Dstruct wrote: THE fix would be to throw away these executable packers completely.

XnView Tweak UI - Tool to customize your XnView beyond the regular XnView options.
UI-less Settings - Documentation of all the hidden settings in XnView.
XFAM - Tool to create and customize XnView file associations.
UI-less Settings - Documentation of all the hidden settings in XnView.
XFAM - Tool to create and customize XnView file associations.