librtmp coredump issue

Topics regarding RTMPDump.
Post Reply
TihsYloH
Posts: 1
Joined: Tue Mar 15, 2016 9:49 am

librtmp coredump issue

Post by TihsYloH » Tue Mar 15, 2016 10:36 am

When we call RTMP_ReadPacket, if the packet is not ready the packet->m_body will be saved in r->m_vecChannelsIn.
At the second time, the r->m_vecChannelsIn will be copy to packet, if the read call is failed then, the packet->m_body will be in r->m_vecChannelsIn[packet->m_nChannel] and packet, when we free r or packet , the ptr will free twice

memcpy(packet, r->m_vecChannelsIn[packet->m_nChannel],
sizeof(RTMPPacket));

Post Reply

Who is online

Users browsing this forum: No registered users and 29 guests