Scripts/HoR: Fix possible array overflow

Fix possible array overflow reported by coverity, issue id 1062436 .
Merge pull request #10823 from jackpoz/icewall_overflow

Scripts/HoR: Fix possible array overflow