Closed milanlenco closed 7 years ago
Seems as a false positive to me - compiler probably reserves more space to the (struct lyxml_elem
) variables on stack than is the value returned by sizeof
, but it shouldn't be an issue since we are always working only with the data within the size returned by sizeof
, which are initialized by memset
at the mentioned line, seems that there are just some more bytes that are not initialized but also not accessed anywhere (if I'm not wrong :)).
Jan Kundrát has reported here that clang's AddressSanitizer detected a stack-buffer-underflow inside libyang:
I honestly don't know what buffer underflow means in this context and whether it is an actual issue or just a false positive, therefore I'm just forwarding it as it is.