Overview
| Artifact ID: | b5e6cefc6e5efe2e8ad7e43597c329e557ddef0b64b168f439867de4ed177e51 |
|---|---|
| Ticket: | 176de86b3bb11df158b0245f8706cf9e543ccc19
TEBCResume(): pointer overflow for INST_LREPLACE4 |
| User & Date: | chrstphrchvz on 2023-05-08 16:16:12 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed to:
As of [7a2fc29ce038], <tt>numNewElems</tt> is declared as <tt>size_t</tt>, which can lead to pointer overflow in <tt>OBJ_AT_DEPTH(numNewElems - 1)</tt>. Example <tt>-fsanitize=pointer-overflow</tt> error during autoMkindex-3.4: <pre> generic/tclExecute.c:5109:9: runtime error: subtraction of unsigned offset from 0x611000099078 overflowed to 0x611000099080 </pre> Declaring <tt>numToDelete</tt> as <tt>size_t</tt> seems fine, though.
- foundin changed to: "trunk"
- is_private changed to: "0"
- login: "chrstphrchvz"
- priority changed to: "5 Medium"
- private_contact changed to: "6133eb3026f9b10aa9b7b48da92ae2834fc225b0"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "chrstphrchvz"
- subsystem changed to: "17. Commands I-L"
- title changed to: "TEBCResume(): pointer overflow for INST_LREPLACE4"
- type changed to: "Bug"