Service Engine crashes with data storage evacuation and SG API query

Service Engine crashes with data storage evacuation and SG API query

Summary

Variable count was not set when reading archive data from Data Storage. This led to arithmetic underflow when decrementing the counter (inside CSGGHistorianRequest::AddArchive2Payload), which in turn led to a memory exception due to reservation of an absurdly high amount of memory (inside CSGGHistorianRequest::AddVariable2Payload).

Description

Variable count was not set when reading archive data from Data Storage. This led to arithmetic underflow when decrementing the counter (inside CSGGHistorianRequest::AddArchive2Payload), which in turn led to a memory exception due to reservation of an absurdly high amount of memory (inside CSGGHistorianRequest::AddVariable2Payload).


Issue Number: 240196
Fixed on Date: 0.0.0
Versions: 10 0 BUILD 83962