Lib: check encoded table length isn't too long
Lib: check encoded table length isn't too long

Check encoded table length isn't longer than the encoded buffer.

Fixes CID 1383630 caught by Coverity.

alanxz/rabbitmq-c,alanxz/rabbitmq-c,alanxz/rabbitmq-c