Overview
| Artifact ID: | d3fcd2a77df8402b86fff96cfe344a20dca7f806f02dd3ff75603f56af1a60d9 |
|---|---|
| Ticket: | 5d989f9ba34bb5c3457bfee1737daeff565efa13
Seg fault in lsort for large list length |
| User & Date: | sebres on 2020-01-17 13:09:38 |
Changes
- icomment:
I've fixed that for >= 8.5.<br/> I'll push the fix soon, just thinking about tests, but... Although the tests ware simple: <pre style="padding-left:10pt"><code> # 8.6 (x64): $ echo 'puts [llength [set l [lrepeat 89478486 ""]]]; puts [llength [lsort $l]]' | tclsh 89478486 Segmentation fault # 8.5 (x32): $ echo 'puts [llength [set l [lrepeat 178956971 ""]]]; puts [llength [lsort $l]]' | tclsh 178956971 Segmentation fault </code></pre> but are to slow and expecting constrants or some condition to bypass possible OOM situation if testing in env with few memory.
- login: "sebres"
- mimetype: "text/x-fossil-wiki"