Overview
| Artifact ID: | ec956ab8e65d1e4c94a7713fa7daa757106b97c1 |
|---|---|
| Ticket: | a3fb3356b76ec4a853d1b86aadc08675f8bef359
Segmentation fault due to int overflow in GrowEvaluationStack |
| User & Date: | sebres on 2017-05-29 14:35:16 |
Changes
- icomment:
This going to the array of indices that will be used for sorting, allocated via "TclStackAlloc(interp, sizeof(int) * sortInfo.indexc)" which indeed very doubtful by lsort, that can sort really large lists. Instead of the rewriting of GrowEvaluationStack/TclStackAlloc rather the ckalloc should be used here instead (at least by large size of the sorting list). I want fix it right away... BTW If someone nevertheless want to rewrite "int" as "ptrdiff_t", then the "int numBytes" for pair TclStackAlloc/TclStackRealloc should be then also rewritten as "size_t numBytes".
- login: "sebres"
- mimetype: "text/plain"
- subsystem changed to: "17. Commands I-L"