commit | 66e5e36469b337f915bdfde04c652e2d624bb8c3 | [log] [tgz] |
---|---|---|
author | Mark Wielaard <mark@klomp.org> | Mon May 11 18:55:03 2020 +0200 |
committer | Dodji Seketeli <dodji@redhat.com> | Wed May 13 13:00:52 2020 +0200 |
tree | 3e2a0127cbfd7ad55844c7b91f23e64358313629 | |
parent | f7a85ec9d0fdf0d8301aff9c3ae40753f852f143 [diff] |
Don't iterate before the start of a RandomAccessOutputIterator. Found with -D_GLIBCXX_DEBUG. You cannot go before the start of an RandomAccessOutputIterator. Iterator -1 + 1 might seem to work, but is actually undefined behaviour. * include/abg-diff-utils.h (compute_diff): Put brackets around p[ux].[xy]() + 1 calculation. Signed-off-by: Mark Wielaard <mark@klomp.org>