FW-131. protecting inputBuffer length variable in error case.