Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2017-11-08
17:26 • New ticket [6aea6a8e25] dict size overflow. artifact: ea959ea084 user: dgp

dict size overflow

Open6aea6a8e25122d5f6210119897612ef452009fd0Created 9 years agoUpdated 9 years ago
Descriptionplain2017-11-08 17:26:29
With enough RAM and time...

% set count [expr {(1<<31)-1}]
2147483647
% while {[incr count -1]} {
dict set d [expr {rand()}] 0
}
% dict size $d
2147483646
% dict set d 2 0; dict size $d
2147483647
% dict set d 3 0; dict size $d
-2147483648
Log in (anonymous is fine) to add a comment.