Gerrit Birkeland created AVRO-3991: -------------------------------------- Summary: [C++] Undefined behavior in Compiler.cc Key: AVRO-3991 URL: https://issues.apache.org/jira/browse/AVRO-3991 Project: Apache Avro Issue Type: Improvement Affects Versions: 1.11.3, 1.11.2, 1.11.1, 1.10.2, 1.10.1, 1.11.0, 1.9.2, 1.9.1, 1.9.0 Reporter: Gerrit Birkeland
The getStringField helper was changed with AVRO-1190 to no longer return a reference, but there are usages of that function which assign the result to a reference, which is undefined behavior. gcc 13 happens to compile this in a way that doesn't result in valgrind finding anything, but it's still broken. -- This message was sent by Atlassian Jira (v8.20.10#820010)