| Ticket UUID: | 2787933 | |||
| Title: | Leak: md5 or trf? | |||
| Type: | Bug | Version: | None | |
| Submitter: | msofer | Created on: | 2009-05-06 16:02:57 | |
| Subsystem: | md5 | Assigned To: | andreas_kupries | |
| Priority: | 8 | Severity: | ||
| Status: | Closed | Last Modified: | 2009-05-07 12:33:06 | |
| Resolution: | Fixed | Closed By: | andreas_kupries | |
| Closed on: | 2009-05-07 05:33:06 | |||
| Description: |
The following script leaks when Trf is loaded (run it under nice: tight busy loop!):
package require md5 2
set digits {0 1 2 3 4 5 6 7 8 9 A B C D E F}
# any init will do
set hx [::md5::md5 -hex {}]
while {$hx ne [::md5::md5 -hex $hx]} {
# bernoulli-like shift with random last hex
set idx [expr {int(floor(16*rand()))}]
set hx [string range $hx 1 end][lindex $digits $idx]
}
puts "Found it! It is '$hx'"
| |||
| User Comments: |
andreas_kupries added on 2009-05-07 12:33:06:
allow_comments - 1 Two leaks in Trf. Fixed there (CVS Head, v2.1.4). | |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki