Fixes ontop:
* !input.cert_chain_address test was repeated. I saw that by aligning
them vertically, i.e., after making it more readable, the repetition
became obvious.
* Do the lengths checks first and the access_ok after, in each PDH and
cert chain test.
* Do the checks first and the allocations after, not interleaved.
* Comments are sentences which should end with a '.'
(hunk below contains also that &psp_master->cmd_buf change but you're going to
remove that arg anyway).