Skip to content

Fix valgrind error in TgcDigitASDposCondAlg

Walter Lampl requested to merge wlampl/athena:TgcDigitASDposCondAlg_vgfix into master

While working on something else using valgrind, I came across a bunch of "invalid read" errors originating in the TgcDigitASDposCondAlg. Apparently the strings stored as blobs in the database are not (always) zero-terminated.

This MR solves this problem by using the blob.size() to limit the number of chars copied from the blob to the std::string used later on.

Merge request reports

Loading