View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000371 | file | General | public | 2022-07-27 20:56 | 2022-07-30 18:07 |
Reporter | Mark.Taylor | Assigned To | christos | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 5.42 | ||||
Fixed in Version | 5.43 | ||||
Summary | 0000371: magic type returned is 100% bogus: ", utcTime=2073-\0120-.0 23:85:8\012 GMT" | ||||
Description | Tested using Mac `file` 5.41, Linux `file` 5.37, 5.38, and 5.42: a sample text file containing floating point numbers returns a bogus magic type, as in ", utcTime=2073-\0120-.0 23:85:8\012 GMT". 0.000252 0.065583 0.024648 0.028474 0.024969 0.024273 0.031606 0.024479 0.02417 0.024741 0.024859 0.024396 0.027473 0.023858 0.024483 0.024377 0.032009 0.024065 0.024564 | ||||
Steps To Reproduce | Put the above, or the include d/l file, and run `file` on it - it should return `ASCII text`, but instead it returns the indicated string. Note that on a Mac with 5.41 it returns: # file x.txt x.txt: , not-valid-before=2073- 0-.0 23:85:8 GMT | ||||
Additional Information | Not including "soft" (`file -e soft`) makes the return `ASCII text` as expected. Note that I tracked it down to a problem in softmagic.c:match() when it was working on either magindex 14184 or 14231 (skipping both of those seems to make it DTRT). | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2022-07-27 20:56 | Mark.Taylor | New Issue | |
2022-07-27 20:56 | Mark.Taylor | File Added: x.txt | |
2022-07-30 18:07 | christos | Assigned To | => christos |
2022-07-30 18:07 | christos | Status | new => assigned |
2022-07-30 18:07 | christos | Status | assigned => resolved |
2022-07-30 18:07 | christos | Resolution | open => fixed |
2022-07-30 18:07 | christos | Fixed in Version | => 5.43 |