sstrip: fix a section length corruption bug (patch from #6847)