You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The condition checks if size_int > 2000 or size_int == 0 and then sets the size, which means invalid values (0 or greater than 2000) are accepted while valid values (1-2000) are silently ignored. The logic is inverted - it should set the size when the value is within the valid range (1-2000), not outside of it.
Bug: Inverted Logic Accepts Invalid Sizes
The condition checks if
size_int > 2000 or size_int == 0and then sets the size, which means invalid values (0 or greater than 2000) are accepted while valid values (1-2000) are silently ignored. The logic is inverted - it should set the size when the value is within the valid range (1-2000), not outside of it.Originally posted by @cursor in #423 (comment)