SIGN IN SIGN UP

Type consistency in psbt_parse_rawtx, and some other hardenings

Change key_len and output_index to size_t for consistency with
other APIs, add some extra bounds checks.

Also adds:
- missing return value check on parser_consolidate_buffers
- reject trailing data during parsing
- zero txid_parser_outputs_t before starting parsing
S
Salvatore Ingala committed
1af862798a107e3339310de0b5ba1da2fb72deee
Parent: 373f4a5