Hi Mark, > Did you actually find situations where these functions were called with addrp > >= endp? Yes, for example libdw/libdw_form.c:91:7. > It turns out that get_[su]leb128 dominates some operations and really does > have to be as fast as possible. So I do like to know what the impact is of > this change. This patch just moves __libdw_max_len_uleb128 to the beginning of the function and adds only one new if. So hopefully it shouldn't affect performance at all.