| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Look for `<key>_SPCommandLineArguments</key>` in addition to plist root
element to distinguish from other property list XML files.
Our offset specifiers aren't that fancy, so this can trigger on files
that have the above string ´_before_ `<plist version="1.0"`, but those
should be quite pathological cases.
Start offset 34 is length of `<plist version="1.0"><array><dict>`, 384
is arbitrary guesswork.
Closes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/169
|
|
|
|
| |
https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/169
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Matching just 0x64582025 within the first 18725 bytes of any file is
prone to false positives.
The priority of the magic match here being bumped to 60 seems to
indicate intent to make it take precedence over the parent
`audio/vnd.dts`. But we should take the parent magic into account here
as it does not "inherit" with `sub-class-of`.
As the comment for this match says "16bits HD be", accept only "16bits
core be" as the parent at least for now, not all possible parent
magics -- it would not seem consistent to have it in "14bits"
variants, or the "16bits core le" one. The test case we have for this
is one matching "16bits core be".
Refs https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/166
Refs https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/167
|
|
|
|
| |
https://www.iana.org/assignments/media-types/model/gltf+json
|
|
|
|
| |
https://www.iana.org/assignments/media-types/model/gltf-binary
|
|
|
|
|
|
| |
For GRUB modules.
Closes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/165
|
|
|
|
| |
https://wiki.multimedia.cx/index.php/Protracker_Module#File_Format
|
| |
|
|
|
|
|
|
|
|
| |
I failed to include the test files in the list in
238f20f82d485dafa16904c5bd1b07c8034ddacd, and unfortunately can no
longer remember their origin. I likely took an existing one from the
test suite and converted from it, but the details and tools used escape
me.
|
|
|
|
|
|
| |
My editor keeps adding it (which is nice), but I need to remove it
manually all the time not to include it as unrelated whitespace in other
commits (which is not). Just add it.
|
|
|
|
|
|
| |
"BEGIN/END CA CERTIFICATE" seems to be a thing, although not that
common. "BEGIN/END TRUSTED CERTIFICATE" is an OpenSSL marker for trusted
certificates, see x509(1).
|
| |
|
| |
|
| |
|
|
|
|
| |
Closes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/159
|
|
|
|
|
|
|
| |
JSON Schema files are distinguished from other JSON files by a "$schema"
property which is typically at the beginning of the file.
https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-00
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Stub files are files containing type hints, they are
written in normal Python 3 syntax, but
generally leaving out runtime logic like variable
initializers, function bodies, and default arguments.
https://www.python.org/dev/peps/pep-0484/#stub-files
https://mypy.readthedocs.io/en/stable/stubs.html#stub-file-syntax
|
|
|
|
| |
https://en.wikipedia.org/wiki/X_PixMap#XPM2
|
| |
|
|
|
|
|
|
| |
https://toml.io/en/v1.0.0#mime-type
Closes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/156
|
|
|
|
| |
Closes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/155
|
|
|
|
| |
These are the first files of a multivolume archive.
|
|
|
|
| |
https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/124#note_788636
|
|
|
|
| |
https://en.wikipedia.org/wiki/Open_Virtualization_Format
|
|
|
|
| |
https://wiki.qemu.org/Features/QED
|
|
|
|
| |
https://en.wikipedia.org/wiki/VirtualBox#VirtualBox_Disk_Image
|
|
|
|
| |
https://en.wikipedia.org/wiki/VMDK
|
|
|
|
| |
https://en.wikipedia.org/wiki/VHD_(file_format)
|
|
|
|
|
| |
Numbers 3.5 and Pages 5.5 appear to place an Index/Document.iwa, not
index.xml there.
|
|
|
|
|
|
| |
Dart is a programming language by Google.
https://dart.dev/
|
|
|
|
|
|
| |
Fixed by https://gitlab.freedesktop.org/xdg/xdgmime/-/merge_requests/3
Closes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/127
|
|
|
|
| |
Closes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/46
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
As the spec says, if the result from magic sniffing doesn't
match one of the globs, ignore it and return one of the globs.
With this change, test-garbage.key (which was already a doubtful
testcase, see !5) no longer falls back to application/octet-stream
but to one of the globs.
test-really-html-not-xhtml.html is also fixed by this,
it's detected as text/html.
Closes: #138.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
According to mikmod, the tempo table is 128 bytes containing values
ranging from 1 to 32, inclusive. We don't have good means to test all
those 128 bytes, but look into the last one to make it rule out some
short files. Also, accept 0 for the time being due to our match
expression limitations.
0-31 being ASCII control characters gives this a better chance to avoid
matching random ASCII files out there.
Closes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/144
|
|
|
|
| |
Refs https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/144
|
|
|
|
| |
Refs https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/138
|
|
|
|
|
|
|
| |
Its draft specification [1] calls for a "*.ktx2" glob and "image/ktx2" type
as it contains backwards-incompatible changes over version 1.
[1] http://github.khronos.org/KTX-Specification/
|
| |
|
| |
|
|
|
|
| |
The former is the IANA registered type.
|
|
|
|
| |
The former is the IANA registered type.
|
|
|
|
|
| |
The latter is deprecated per
https://www.iana.org/assignments/media-types/application/vnd.apple.keynote
|
|
|
|
| |
Adaptive Scalable Texture Compression files
|
| |
|
|
|
|
|
| |
According to https://3dbrew.org/wiki/3DSX_Format, they start from '3DSX'
magic value and have .3dsx extension.
|
|
|
|
|
|
|
| |
Nintendo 3DS ROMs can have *.3ds or *.cci extensions.
According to https://3dbrew.org/wiki/CCI, they have 'NCSD' magic number at
0x100 offset.
|
|
|
|
|
| |
The next commit will add another MIME type with the same glob, avoid
breakage.
|
| |
|