Open prigluchenie opened 7 months ago
Default constructed Binary makes UB here https://github.com/jbeder/yaml-cpp/blob/eaf72053724814be3b99d38e292fca5797a57b7b/include/yaml-cpp/binary.h#L33
m_data[0] is illegal for empty vector. Using vector::data() member is a proper way.
m_data[0]
Clang UB sanitizer reports "Reference binding to null pointer" here.
Default constructed Binary makes UB here https://github.com/jbeder/yaml-cpp/blob/eaf72053724814be3b99d38e292fca5797a57b7b/include/yaml-cpp/binary.h#L33
m_data[0]
is illegal for empty vector. Using vector::data() member is a proper way.Clang UB sanitizer reports "Reference binding to null pointer" here.