XnView 2.36 is still vulnerable to ASCII .reg files

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: XnTriq, helmut, xnview

Post Reply
Mixer
Banned
Posts: 166
Joined: Fri Aug 28, 2015 6:24 am

XnView 2.36 is still vulnerable to ASCII .reg files

Post by Mixer »

I see you have released version 2.36. Great job!
Unfortunately, bug with mistakenly loadable ASCII .reg files is still present.
Whatever you did to avoid it, you only had raised length of first word in file it needs to be "successfully" loaded with LoadBitmap(). In earlier beta it was word "Wi", now in release build from 29 April 2016 it is enough that first characters in file were "Windows". LoadBitmap() returns TRUE, SetBitmap() tries to put this "picture" on the screen, XnView crashes like before.
User avatar
xnview
Author of XnView
Posts: 43595
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: XnView 2.36 is still vulnerable to ASCII .reg files

Post by xnview »

yes i have not found it
Pierre.
Mixer
Banned
Posts: 166
Joined: Fri Aug 28, 2015 6:24 am

Re: XnView 2.36 is still vulnerable to ASCII .reg files

Post by Mixer »

Ok, I'll workaround it with preceding call to GetBitmapInfo()
Post Reply