fix: EXIF解析越界与转正丢文件、.psb归类、日志接管panic恢复

This commit is contained in:
2025-05-25 21:01:16 +08:00
parent a2cded251a
commit cf8d991974
3 changed files with 29 additions and 8 deletions
+2 -2
View File
@@ -280,8 +280,8 @@ type imageProbeResult struct {
// 只读数据库(查指纹),这是安全的。
func (o *Organizer) probeImage(f scanner.File) imageProbeResult {
r := imageProbeResult{}
// PSD 不体检,直接标记"原样收走"
if strings.EqualFold(f.Ext, ".psd") {
// PSD/PSB 设计稿不体检,直接标记"原样收走"
if strings.EqualFold(f.Ext, ".psd") || strings.EqualFold(f.Ext, ".psb") {
r.psd = true
return r
}