We have run a coverity scan and have implemented patches fixing the issues we found. PR link: https://github.com/openssh/openssh-portable/pull/238
I've been through the PR and I think we've gotten most of it, could you please rebase and let us know if we've missed anything?
Yes, I rebased it and some nits looks remaining.