tcpclient icon indicating copy to clipboard operation
tcpclient copied to clipboard

内存泄漏

Open Big-Biscuit opened this issue 4 years ago • 0 comments

在tcpclient.c中,342行(pipe_buff[res] = '\0';)这句话,当res=BUFF_SIZE时,写操作会超出内存边界,导致(free(pipe_buff);)失败,报错内容(to free a bad data block: mem: 0x2001708c, used flag: 1, magic code: 0x1e00),需要屏蔽342行,第325行(sock_buff[res] = '\0';)也可能导致同样的问题。

Big-Biscuit avatar Jan 05 '22 05:01 Big-Biscuit