mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 23:47:07 -05:00
fix buffer leak in crypto io
This commit is contained in:
parent
4761139fbc
commit
d1e7e7002f
@ -51,6 +51,8 @@ func (w *CryptionWriter) Write(data []byte) (int, error) {
|
||||
}
|
||||
|
||||
func (w *CryptionWriter) WriteMultiBuffer(mb buf.MultiBuffer) error {
|
||||
defer mb.Release()
|
||||
|
||||
bs := mb.ToNetBuffers()
|
||||
for _, b := range bs {
|
||||
w.stream.XORKeyStream(b, b)
|
||||
|
Loading…
Reference in New Issue
Block a user