| 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. | ||||
