to succeed, o+l need only be <= len(meta.ParentBuf), not <.
This causes fields of exactly correct length to fail to unmarshal. This would not prevent a scan from being successful, but it would stop the targetName and negotiateFlags fields from being populated due to the early exit.
In order for the following line,
to succeed,
o+l
need only be<= len(meta.ParentBuf)
, not<
.This causes fields of exactly correct length to fail to unmarshal. This would not prevent a scan from being successful, but it would stop the
targetName
andnegotiateFlags
fields from being populated due to the early exit.