fix bug 917383 h1 overflow
Merge pull request #1289 from shansm/h1-overflow-branch

fix bug 917383 h1 overflow