I have been modifying and maintaining an ActiveX product of the company and performing some image processing. What's not so nice is that I have mistaken the suffix of the image file, the JPG file is treated as BMP, so the image cannot be displayed in IE7 or IE8. This problem first appeared in a brother's project. When I came over, the brother of another project also experienced this problem, and I was overwhelmed.
The image is correct. You can also see the image using the image tool that comes with windows. I think that tool should be the file read Based on the file header ID, then, analyze and display the data. Before using third-party software, you may not be able to read the file carefully. This is simply because the file name suffix is incorrect.
Windows brings us a kind of convenience, but also brings us an illusion that files in windows are identified by file name suffixes, unlike Linux, it is identified based on the actual representation of the file. Many Trojans or other undesirableProgram. Txt file. These things are easily prototype exposed in Linux, but the design of Windows makes this problem a very difficult problem.
I think this problem may not be taken into account when I first designed DoS or windows. By the time it was necessary to consider it, Windows had blossomed everywhere and it was hard to make any modifications to this problem. However, Internet Explorer is not a particularly open platform. Internet Explorer is only used for surfing the Internet. There is no need to identify files based on the filename suffix, which is easily exploited.
I should have studied this part of Internet Explorer, but I still want to forget it. At this point, I will leave it to the exploiter.
Is it an IE bug? In the near future, if someone takes advantage of this feature, it can be counted as yes.