View Issue Details

IDProjectCategoryView StatusLast Update
0000371fileGeneralpublic2022-07-30 18:07
ReporterMark.Taylor Assigned Tochristos  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version5.42 
Fixed in Version5.43 
Summary0000371: magic type returned is 100% bogus: ", utcTime=2073-\0120-.0 23:85:8\012 GMT"
DescriptionTested 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 ReproducePut 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 InformationNot 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).
TagsNo tags attached.

Activities

Mark.Taylor

2022-07-27 20:56

reporter  

x.txt (170 bytes)   
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
x.txt (170 bytes)   

Issue History

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