mirror of
https://github.com/YuzuZensai/TrollSSH.git
synced 2026-09-13 20:39:04 +00:00
🐛 fix: validate .tsf files and mmap frame data
This commit is contained in:
+3
-2
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user