net, internal/poll: kernelVersion helper miscalculates minor version component #42733
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
release-blocker
Milestone
In
kernelVersion
, after reaching the end of the major version component, the accumulatedvalue
is used. But it isn't reset to zero after, so the minor version component computation is polluted.This can be reproduced on the playground, see https://play.golang.org/p/U8-OWl-gzR4.
The fix is to add one line:
Both copies of
kernelVersion
helper were introduced recently and can be fixed in time for Go 1.16.CC @cuonglm, @ianlancetaylor.
The text was updated successfully, but these errors were encountered: