Overview
| Artifact ID: | d843135d95146f49c085383cfda8a53d64f661a52eecf3d83153c29007749ad7 |
|---|---|
| Ticket: | 37108037b980ea6e705f56a9d983e05ee218dd0c
Code cleanups to support CHERI |
| User & Date: | jan.nijtmans on 2022-08-25 09:46:29 |
Changes
- assignee changed to: "jan.nijtmans"
- icomment:
Thank you for those patches! The 008_* patch has already been applied to core-8-6-branch and up. I will have a look at the other ones as well. One remark: the PTR2INT/INT2PTR macro's only guarantee round-trip from size_t -> pointer -> size_t (in Tcl 8.6 it was int -> pointer -> int), not pointer -> size_t -> pointer, since size(size_t) might be smaller than sizeof(void *). So, whenever size_t is insufficient to store what the code wants, use a pointer. I don't think the PTR2INT/INT2PTR should be modified. In stead the code should be modified not to use size_t/ptrdiff_t in the places where it is problematic. Anyway, Thanks! I will have a further look.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"