Store an image in resources
Hello,
I tried to store a bmp image in my RT_RCDATA or RT_BITMAP and my file has a false positive now.
Is it normal that an array gets picked up as
AntiVir (Avira) TR/Dropper.Gen
And what are the possible work arounds?
Thanks in advance.
Regards,
Qwerz
Re: Store an image in resources
Re: Store an image in resources
That is not exactly the work around that I meant, because I still want to use the embedded resources. But thanks
Re: Store an image in resources
You have to elaborate a bit on "embedded resources" as the samples exactly demonstrate how to embed pictures to resources and use those at runtime.
Re: Store an image in resources
Quote:
Originally Posted by
qwerz
That is not exactly the work around that I meant
The workaround is to contact the company that makes the anti-virus and report what you're doing as a false positive.
Regards,
Paul McKenzie
Re: Store an image in resources
Not that I'm familiar with how a virus scanner does it's decisions but why would the bitmap be considered malicious when stored as a resource in the exe but not as a file? I would try copying that bitmap to a file that ends with exe to check if its really the bitmap that cause the false positive. Just in case the virus scanner needs a proper exe header you might also try attaching it to another exe by doing a copy /B file.exe + /B file.bmp test.exe
Re: Store an image in resources
Just test it yourself if you do not believe it. I added the embedded resource under RT_STRING or RT_RCDATA. Not a single combination works.
Avira detects resources as a virus if they are bigger than 20kb.
Re: Store an image in resources
Sorry, I failed to understand your original problem. :)
Quote:
Just test it yourself if you do not believe it.
No, thanks. I'm fine with MSE. ;)
Quote:
Avira detects resources as a virus if they are bigger than 20kb.
And what kind of (programming?) workaround you expect here other than to get rid of the offending software and never use the one, never ever?
Re: Store an image in resources
Quote:
Originally Posted by
qwerz
Just test it yourself if you do not believe it. I added the embedded resource under RT_STRING or RT_RCDATA. Not a single combination works.
Avira detects resources as a virus if they are bigger than 20kb.
What if I wrote a program that detected that all your EXE's had viruses? Are you going to pull your hair out looking for a "workaround", or are you going to contact my company and ask me what the heck is going on?
So contact the company and state very simply that their program is detecting your legitimate file has a virus. Let them resolve the issue.
Regards,
Paul McKenzie
Re: Store an image in resources
I might do that test when I get home if I'm in the mode for it. Maybe you can post that bitmap?