Add missing check againt PDU size in __pmDecodeIDList routine
Add missing check againt PDU size in __pmDecodeIDList routine

__pmDecodeIDList did not check that the incoming PDU actually contains
room for numids elements.  This could result in a client crash (read
buffer overflow, not exploitable for code execution) should a server
send too few IDs.

Original report and fixes reviewed by Florian Weimer of the Red Hat
Security team.  Red Hat bugzilla bug #841112.

Security advisory CVE-2012-3418.

wuliming/pcp,aeg-aeg/pcpfans,wuliming/pcp,wuliming/pcp,edwardt/pcp,aeg-aeg/pcpfans,tjanez/pcp,edwardt/pcp,aeg-aeg/pcpfans,andyvand/cygpcpfans,aeg-aeg/pcpfans,aeg-aeg/pcpfans,prasincs/pcp,tjanez/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,tjanez/pcp,prasincs/pcp,andyvand/cygpcpfans,wuliming/pcp,ryandoyle/pcp_original,tjanez/pcp,mbaldessari/pcp,ryandoyle/pcp_original,tjanez/pcp,edwardt/pcp,tjanez/pcp,wuliming/pcp,aeg-aeg/pcpfans,ryandoyle/pcp_original,prasincs/pcp,edwardt/pcp,aeg-aeg/pcpfans,adfernandes/pcp,ryandoyle/pcp_original,andyvand/cygpcpfans,edwardt/pcp,andyvand/cygpcpfans,wuliming/pcp,andyvand/cygpcpfans,wuliming/pcp,edwardt/pcp,mbaldessari/pcp,mbaldessari/pcp,prasincs/pcp,andyvand/cygpcpfans,andyvand/cygpcpfans,ryandoyle/pcp_original,edwardt/pcp,andyvand/cygpcpfans,tjanez/pcp,adfernandes/pcp,mbaldessari/pcp,prasincs/pcp,edwardt/pcp,ryandoyle/pcp_original,wuliming/pcp,aeg-aeg/pcpfans,prasincs/pcp,prasincs/pcp,adfernandes/pcp,mbaldessari/pcp,prasincs/pcp,mbaldessari/pcp,adfernandes/pcp,tjanez/pcp,ryandoyle/pcp_original,adfernandes/pcp,ryandoyle/pcp_original