UseJPEGImageDecoder + LoadImage = false virus alerts
Posted: Fri Feb 13, 2015 2:16 am
Got a problem... when I have UseJPEGImageDecoder and LoadImage TOGETHER in my app, Avast throws out a false positive virus alert, and if I submit my exe to VirusTotal, it shows 9 false positives from various virus scanners, too.
However, if I remove UseJPEGImageDecoder, the false alert goes away, and Avast and VirusTotal are happy.
But if I keep UseJPEGImageDecoder and remove LoadImage instead, then Avast and VirusTotal are also happy.
So I need to either remove UseJPEGImageDecoder or LoadImage.
Therefore, is there a way I can call LoadImage via API instead, in the hopes that the false positives go away? Or is there a FAST method of loading JPEG images with LoadImage that doesn't require UseJPEGImageDecoder? Maybe using the FreeImage.dll? I don't know how to do that, so if maybe someone can give me an example of loading/saving JPEGs with FreeImage? 
And no, I'm not going to submit my exe to 9 different scanners as a false positive, because that's too much hassle and time for them to update, and end users might not update their scanners anyway, so they'll still see the alerts.
However, if I remove UseJPEGImageDecoder, the false alert goes away, and Avast and VirusTotal are happy.
But if I keep UseJPEGImageDecoder and remove LoadImage instead, then Avast and VirusTotal are also happy.
So I need to either remove UseJPEGImageDecoder or LoadImage.


And no, I'm not going to submit my exe to 9 different scanners as a false positive, because that's too much hassle and time for them to update, and end users might not update their scanners anyway, so they'll still see the alerts.