View Issue Details

IDProjectCategoryView StatusLast Update
0010407CTT UA Binary2 - CTT Binarypublic2025-07-04 08:12
ReporterYannik Klaass Assigned ToYannik Klaass  
PrioritynormalSeveritycrashReproducibilityhave not tried
Status resolvedResolutionfixed 
Summary0010407: 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.

TagsNo tags attached.
Files Affected

Activities

Yannik Klaass

2025-07-04 08:12

developer   ~0023077

Adding code to throw a bad_alloc exception when allocation fails in CttReadValueIdsPrivate::copyTo() to abort loading the ModelMap and trigger resource cleanup

Issue History

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