sync: dequeue newSize may be overflow on 32bit system #44532
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
len(d.vals) return type is int which on 32 bit system is 4 bytes. When d.vals reachs the max size 2^30, then newSize will be 2^31. But 2^31 is greater than the max int32 2^31 -1 , and if condition will test fail .
The text was updated successfully, but these errors were encountered: