mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-15 05:40:25 +08:00
feat: 实现数据库备份和恢复并发调度 (#84)
This commit is contained in:
@@ -272,7 +272,6 @@ func pkcs7UnPadding(data []byte) ([]byte, error) {
|
||||
}
|
||||
//获取填充的个数
|
||||
unPadding := int(data[length-1])
|
||||
// todo fix: slice bounds out of range
|
||||
if unPadding > length {
|
||||
return nil, errors.New("解密字符串时去除填充个数超出字符串长度")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user