Page 1 of 1

XnView 2.36 is still vulnerable to ASCII .reg files

Posted: Tue May 03, 2016 2:52 pm
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.

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

Posted: Tue May 03, 2016 4:43 pm
by xnview
yes i have not found it

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

Posted: Tue May 03, 2016 4:59 pm
by Mixer
Ok, I'll workaround it with preceding call to GetBitmapInfo()