- 
                Notifications
    
You must be signed in to change notification settings  - Fork 179
 
Open
Description
Dear Gabriel,
thank you for this useful library. Unfortunately the tests fail on i386 machines:
GOARCH=386 go test .                                                     ✔
--- FAIL: TestIndexOutOfRangePanic (0.19s)
    --- FAIL: TestIndexOutOfRangePanic/docx (0.03s)
panic: runtime error: slice bounds out of range [-69267888:] [recovered]
	panic: runtime error: slice bounds out of range [-69267888:]
goroutine 558 [running]:
testing.tRunner.func1.2({0x8248440, 0x9f51da0})
	/usr/lib/go-1.24/src/testing/testing.go:1734 +0x283
testing.tRunner.func1()
	/usr/lib/go-1.24/src/testing/testing.go:1737 +0x415
panic({0x8248440, 0x9f51da0})
	/usr/lib/go-1.24/src/runtime/panic.go:792 +0x103
github.com/gabriel-vasile/mimetype/internal/magic.matchOleClsid({0x9d3c000, 0x200, 0x1000}, {0x9c44f1c, 0x10, 0x10})
	/home/martin/build/mimetype/internal/magic/ms_office.go:199 +0xba
github.com/gabriel-vasile/mimetype/internal/magic.Msi({0x9d3c000, 0x200, 0x1000}, 0x400)
	/home/martin/build/mimetype/internal/magic/ms_office.go:160 +0x89
github.com/gabriel-vasile/mimetype.TestIndexOutOfRangePanic.func1(0x9c837a8, {0x9d3c000, 0xfde, 0x1000})
	/home/martin/build/mimetype/mimetype_test.go:642 +0x75
github.com/gabriel-vasile/mimetype.TestIndexOutOfRangePanic.func2(0x9c837a8)
	/home/martin/build/mimetype/mimetype_test.go:649 +0x60
testing.tRunner(0x9c837a8, 0x9c10b80)
	/usr/lib/go-1.24/src/testing/testing.go:1792 +0x119
created by testing.(*T).Run in goroutine 514
	/usr/lib/go-1.24/src/testing/testing.go:1851 +0x468
FAIL	github.com/gabriel-vasile/mimetype	0.225s
FAIL
Metadata
Metadata
Assignees
Labels
No labels