Fixed off by 1 error in section code (did not return len-2 on buffer overflow in some cases, but len-1).