🐛 fix: validate .tsf files and mmap frame data

This commit is contained in:
2026-07-16 21:57:26 +07:00
parent 172615f68f
commit 340b26ddb7
4 changed files with 191 additions and 29 deletions
+3 -2
View File
@@ -4,6 +4,7 @@ package main
import "os"
func readFrameFile(filename string) ([]byte, error) {
return os.ReadFile(filename)
func readFrameFile(filename string) (*frameFile, error) {
data, err := os.ReadFile(filename)
return &frameFile{data: data}, err
}