Merge "procrank: fix bounds check to prevent heap overflow"