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
This commit is contained in:
parent
b1d50567c6
commit
ce2efb48d5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user