| Summary: | A Korean text file is classified as a DOS executable file | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Radek Bíba <rbiba> | ||||
| Component: | file | Assignee: | Jan Kaluža <jkaluza> | ||||
| Status: | CLOSED ERRATA | QA Contact: | BaseOS QE Security Team <qe-baseos-security> | ||||
| Severity: | low | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 6.0 | CC: | dapospis, ksrot, mfojtik, ovasik | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | file-5.04-12.el6 | Doc Type: | Bug Fix | ||||
| Doc Text: |
Previously, the file utility contained "magic" patterns that incorrectly detected files according to one byte only. Unicode text files starting with that particular byte could be therefore incorrectly recognized as DOS executable files. This update removes the problematic patterns. Patterns that match less than 16 bits are no longer accepted, and the utility no longer detects Unicode files as DOS executables.
|
Story Points: | --- | ||||
| Clone Of: | |||||||
| : | 826901 (view as bug list) | Environment: | |||||
| Last Closed: | 2012-03-15 08:23:22 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Bug Depends On: | |||||||
| Bug Blocks: | 826901 | ||||||
| Attachments: |
|
||||||
|
Description
Radek Bíba
2011-03-16 12:39:28 UTC
Created attachment 486755 [details]
proposed patch
This patch removes generic pattern which is causing the problem. New upstream policy is to not accept patterns which match less than 16 bits, so upstream should accept this pattern too.
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
New Contents:
Cause: File contained weak magic patterns which were detecting file just according to one byte.
Consequence: Some unicode text files starting with that particular byte have been misdetected as "DOS execuatable file".
Fix: Weak magic patterns causing that misdetection have been removed.
Result: File does not misdetect unicode files as DOS executable file.
seems not to be fixed $ rpm -q file file-5.04-12.el6.x86_64 $ file license_ko.txt license_ko.txt: DOS executable (COM) Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2012-0391.html |