View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0010407 | CTT UA Binary | 2 - CTT Binary | public | 2025-07-01 15:56 | 2025-07-04 08:12 |
| Reporter | Yannik Klaass | Assigned To | Yannik Klaass | ||
| Priority | normal | Severity | crash | Reproducibility | have not tried |
| Status | resolved | Resolution | fixed | ||
| Summary | 0010407: Allocation error in CttReadValueIdsPrivate does not trigger Resource Cleanup | ||||
| Description | When loading the ModelMap and an allocation error occurs in CttReadValueIdsPrivate::copyTo(), the function tries to write to a null pointer before triggering the resource cleanup, which causes the CTT to crash. This is because the resource cleanup is triggered by a bad_alloc exception, which is not thrown by the used OpcUa_Alloc function in this case. | ||||
| Tags | No tags attached. | ||||
| Files Affected | |||||
|
|
Adding code to throw a bad_alloc exception when allocation fails in CttReadValueIdsPrivate::copyTo() to abort loading the ModelMap and trigger resource cleanup |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2025-07-01 15:56 | Yannik Klaass | New Issue | |
| 2025-07-02 11:07 | Paul Hunkar | Assigned To | => Yannik Klaass |
| 2025-07-02 11:07 | Paul Hunkar | Status | new => assigned |
| 2025-07-04 08:12 | Yannik Klaass | Status | assigned => resolved |
| 2025-07-04 08:12 | Yannik Klaass | Resolution | open => fixed |
| 2025-07-04 08:12 | Yannik Klaass | Note Added: 0023077 |