Add an assert to show Coverity that we don't expect this to fail.
Fix potential buffer overflow in build_pt_list_cb

Spotted by: Coverity