Overview
| Artifact ID: | f820b3c0cd6df3e16cc3e13fc61cdd180c239d484b68c7b92c5cacf06597a676 |
|---|---|
| Ticket: | 41b1406f515e092067103439e63caad5843039e3
AppendUtfToUtfRep(): undefined behavior involving pointers |
| User & Date: | jan.nijtmans on 2021-12-13 13:43:26 |
Changes
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2459562.07183899"
- closer changed to: "jan.nijtmans"
- icomment:
I think the "runtime error" is fixed [3f70533e6d35fa9f|here]. About the pointer arithmetic, I don't think very much can be done. I you have an idea, feel free to re-open this issue. For now, it's best to just close it as "fixed". Explanation: if objPtr->bytes is NULL, it means that there is no byte representation yet, so GrowBuffer() will create a new buffer. This also means that "bytes" can never point to somewhere in the new buffer, so the whole extra processing can just be skipped. Thanks for the report!
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"