[
https://issues.apache.org/jira/browse/AVRO-3991?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gerrit Birkeland resolved AVRO-3991.
------------------------------------
Resolution: Invalid
> [C++] Undefined behavior in Compiler.cc
> ---------------------------------------
>
> Key: AVRO-3991
> URL: https://issues.apache.org/jira/browse/AVRO-3991
> Project: Apache Avro
> Issue Type: Bug
> Affects Versions: 1.9.0, 1.9.1, 1.9.2, 1.11.0, 1.10.1, 1.10.2, 1.11.1,
> 1.11.2, 1.11.3
> Reporter: Gerrit Birkeland
> Priority: Critical
> Labels: pull-request-available
> Time Spent: 20m
> Remaining Estimate: 0h
>
> 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)