|
2026-11-08
| ||
| 06:44 | • Closed ticket [176de86b3b]: TEBCResume(): pointer overflow for INST_LREPLACE4</i... artifact: 55bd9cf70d user: chrstphrchvz | |
|
2026-11-07
| ||
| 11:43 | • Closed ticket [94c6511e87]: Undefined pointer arithmetic in `INST_LREPLACE` when... artifact: 8044de5c4d user: apnadkarni | |
| 11:37 | Fix for [94c6511e] from @bef. Undefined pointer arithmetic in INST_LREPLACE. check-in: 77a0c6a995 user: apnadkarni tags: core-9-0-branch | |
| 11:37 | Fix for [94c6511e] from @bef. Undefined pointer arithmetic in INST_LREPLACE. check-in: 81a4f948d7 user: apnadkarni tags: trunk, main | |
|
2026-11-06
| ||
| 18:59 | • Ticket [94c6511e87] Undefined pointer arithmetic in `INST_LREPLACE` when compile... artifact: 3a32de9be6 user: bef | |
| 18:55 | Fix [94c6511e87]: signed element count in INST_LREPLACE (UBSan pointer overflow) closed check-in: 08470818ce user: bef tags: bug-94c651-lreplace-pointer-overflow | |
| 18:46 | • New ticket [94c6511e87] Undefined pointer arithmetic in `INST_LREPLACE` when com... artifact: e149ab6796 user: bef | |
| Ticket UUID: | 94c6511e870541dd5c4fbf8af014a07868b30f37 | ||
| Title: | Undefined pointer arithmetic in `INST_LREPLACE` when compiled `linsert`, `lreplace` or `ledit` insert two or more elements | ||
| Type: | Bug | Created on: | 2026-11-06 18:46:33 |
| Submitter: | bef | Assigned to: | nobody |
| Subsystem: | 17. Commands I-L | Severity: | Minor |
| Priority: | 5 Medium | Last modified: | 2026-11-07 11:43:01 |
| Status: | Closed | Closed by: | apnadkarni |
| Resolution: | Fixed | Closed on: | 2026-11-07 11:43:01 |
| Version: | 9.0.4, 9.1.0, 9.1.1 trunk | ||
| Description: | ||||
|
In
To see it, build with clang's
Any test file gives the same result, because Affected: 9.0.4 ( | ||||
| User Comments: | ||||
bef added on 2026-11-06 18:59:05:
Fix on branch bug-94c651-lreplace-pointer-overflow. The fix makes apnadkarni added on 2026-11-07 11:43:01:
Fixed for 9.0 in [77a0c6a995] and 9.1 in [81a4f948d7]. The original type was signed. I have no idea as to what the rationale was for making them unsigned leading to undefined behaviour. So reverting back to signed as in the original code and the patch. Whoever feels these need to be unsigned please indicate as to why. | ||||
