XnView 2.36 is still vulnerable to ASCII .reg files

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

Moderators: XnTriq, xnview

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

XnView 2.36 is still vulnerable to ASCII .reg files

Post by Mixer » Tue May 03, 2016 2:52 pm

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: 31884
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 » Tue May 03, 2016 4:43 pm

yes i have not found it
Pierre.

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

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

Post by Mixer » Tue May 03, 2016 4:59 pm

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

Post Reply