Commit ce2efb48 authored by J. Alexander Treuman's avatar J. Alexander Treuman

This fixes a bug where a client sending just the right data could cause mpd

to segfault. This could be exploited by malicious users to crash other users' mpd. But more importantly, I believe clients are doing this unintentionally, and that this is what is causing mpd to segfault for many people after running for long periods of time. git-svn-id: https://svn.musicpd.org/mpd/trunk@5649 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent b1d50567
......@@ -398,6 +398,7 @@ static int processBytesRead(Interface * interface, int bytesRead)
return 1;
}
if (interface->cmd_list_OK >= 0 &&
interface->cmd_list &&
!interface->cmd_list_dup)
cmd_list_clone(interface);
interface->bufferLength -= interface->bufferPos;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment