fix length check in read_section_debug(); fix #1572
Merge pull request #1573 from Fleurer/fix1572

fix length check in read_section_debug()