prima: Check ie_len against 255 in function get_container_ies_len

Adaption from qcacld-3.0 to prima.

In function get_container_ies_len, output parameter pnConsumed is
uint8_t and poses a risk of integer overflow. Check value against 255
before assigning to the output parameter.

Issue: SEC-1861
Bug: 72957155
Change-Id: I6e02037952ced13de45a6c030cc5a1e85070f5cd
CRs-Fixed: 2125781
(adapted from commit fbbdfacc058216c20c825899d645b403d7319b07)
1 file changed