From 42148c0fbdb95b6e0a2fd8b601a5c5d4e954000c Mon Sep 17 00:00:00 2001 From: LXY <767763591@qq.com> Date: Tue, 1 Aug 2023 10:33:41 +0800 Subject: [PATCH] fix: T119 (#221) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 奇怪的永真式引起的报错 * Update tlv_decoders.go * fix: 我是憨憨 * fix: 我是憨憨 --------- Co-authored-by: 源文雨 <41315874+fumiama@users.noreply.github.com> --- client/tlv_decoders.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/tlv_decoders.go b/client/tlv_decoders.go index 200e5370f..9d74ea450 100644 --- a/client/tlv_decoders.go +++ b/client/tlv_decoders.go @@ -109,7 +109,7 @@ func (c *QQClient) decodeT119(data, ek []byte) { s.PsKeyMap = psKeyMap s.Pt4TokenMap = pt4TokenMap - if len(c.PasswordMd5[:]) > 0 { + if len(c.sig.EncryptedA1) > 51+16 { data, cl := binary.OpenWriterF(func(w *binary.Writer) { w.Write(c.PasswordMd5[:]) w.WriteUInt32(0) // []byte{0x00, 0x00, 0x00, 0x00}...