View Issue Details

IDProjectCategoryView StatusLast Update
0000624filegeneralpublic2017-07-05 14:10
ReporterSebastian Johansson 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version5.31 
Target VersionFixed in Version 
Summary0000624: BMP has unofficial mime type
DescriptionBitmap files has an older, unofficial mime type. BMP was allocated an official mime type by the IANA in 2016, in RFC7903: https://tools.ietf.org/html/rfc7903

I've attached an patch that replaces the old "image/x-ms-bmp" mime type with "image/bmp" in the magic file.
TagsNo tags attached.

Relationships

Activities

Sebastian Johansson

Sebastian Johansson

2017-07-05 14:10

reporter  

0001-Replace-BMP-mime-with-official-RFC7903-entry.patch (1,141 bytes)
diff --git a/magic/Magdir/images b/magic/Magdir/images
index f0d087b..9504332 100644
--- a/magic/Magdir/images
+++ b/magic/Magdir/images
@@ -569,30 +569,30 @@
 # 28bitmap_information_header.29
 0	string		BM
 >14	leshort		12		PC bitmap, OS/2 1.x format
-!:mime	image/x-ms-bmp
+!:mime	image/bmp
 >>18	leshort		x		\b, %d x
 >>20	leshort		x		%d
 >14	leshort		64		PC bitmap, OS/2 2.x format
-!:mime	image/x-ms-bmp
+!:mime	image/bmp
 >>18	leshort		x		\b, %d x
 >>20	leshort		x		%d
 >14	leshort		40		PC bitmap, Windows 3.x format
-!:mime	image/x-ms-bmp
+!:mime	image/bmp
 >>18	lelong		x		\b, %d x
 >>22	lelong		x		%d x
 >>28	leshort		x		%d
 >14	leshort		124		PC bitmap, Windows 98/2000 and newer format
-!:mime	image/x-ms-bmp
+!:mime	image/bmp
 >>18	lelong		x		\b, %d x
 >>22	lelong		x		%d x
 >>28	leshort		x		%d
 >14	leshort		108		PC bitmap, Windows 95/NT4 and newer format
-!:mime	image/x-ms-bmp
+!:mime	image/bmp
 >>18	lelong		x		\b, %d x
 >>22	lelong		x		%d x
 >>28	leshort		x		%d
 >14	leshort		128		PC bitmap, Windows NT/2000 format
-!:mime	image/x-ms-bmp
+!:mime	image/bmp
 >>18	lelong		x		\b, %d x
 >>22	lelong		x		%d x
 >>28	leshort		x		%d

Issue History

Date Modified Username Field Change
2017-07-05 14:10 Sebastian Johansson New Issue
2017-07-05 14:10 Sebastian Johansson File Added: 0001-Replace-BMP-mime-with-official-RFC7903-entry.patch