]> granicus.if.org Git - file/commit
From Christoph Biedl:
authorChristos Zoulas <christos@zoulas.com>
Fri, 2 May 2014 00:26:49 +0000 (00:26 +0000)
committerChristos Zoulas <christos@zoulas.com>
Fri, 2 May 2014 00:26:49 +0000 (00:26 +0000)
commit91bdb1f559a5fb07cf6685f848ca3370634225ec
treeb56f8bd836d6261d3540a093a8045f0bacfbd550
parent6c7e051fa4f3611148fd2b730bf6286217728a40
From Christoph Biedl:
Debian bug #745546 et al: At the moment, the magic for "Macromedia
Flash data" and "Macromedia Flash Video" is just three printable
characters, no wonder this results in mis-detection of text files.

"Flash Video" is easy to fix, according to Wikipedia the forth
octet must have value 1.

"Flash data" is more work. The length information at offset 4 must be
non-zero, and the version number at offset 3 must be sound. According
to the pdf document, the latest version is 19, I found a few examples
in the lower twenties, so 32 should be a sane limit for the time
being. There are however quite a few files with version 255, and since
the virus scanners created an alert for all of them, they are now
reported as "suspicious".
magic/Magdir/flash