Validate the number of received info structs in introspect.c
Submitted by Tanu Kaskinen
Assigned to pul..@..op.org
introspect.c doesn't check how many info structs it gets in response, when the info for exactly one object is requested. This means that if applications want to be robust against broken/malicious servers, they have to count the info structs themselves, which is not trivial. This input validation should be done by libpulse, so that applications can assume that when requesting the info of one object, exactly one info is returned (or an error).