rpc: avoid undefined behaviour when parsing bindings
Checklist
-
Commits have Signed-off-by:
with name/author being identical to the commit author
Reviewer's checklist:
-
There is a test suite reasonably covering new functionality or modifications -
Function naming, parameters, return values, types, etc., are consistent and according to README.Coding.md
-
This feature/change has adequate documentation added -
No obvious mistakes in the code