-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/72233/
-----------------------------------------------------------
Review request for mesos and Andrei Sekretenko.
Repository: mesos
Description
-------
Found by Andrei Sekretenko using -fsanitize=address, the following
expression has an intermediate temporary!
const RepeatedPtrField<Resource::ReservationInfo>&
ancestorReservations =
RepeatedPtrField<Resource>(ancestor).begin()->reservations();
Therefore, the intermediate temporary will not have its lifetime
extended and this is undefined behavior which leads to a crash
in the windows CI.
Diffs
-----
src/master/authorization.cpp 6dfa59ad621d9aa0fd1dbbdbe4fa8965e413774f
Diff: https://reviews.apache.org/r/72233/diff/1/
Testing
-------
Ran through windows CI.
Thanks,
Benjamin Mahler