]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Allow 10-byte ULEB128
authorPetr Machata <pmachata@redhat.com>
Mon, 26 Jan 2009 22:03:56 +0000 (23:03 +0100)
committerPetr Machata <pmachata@redhat.com>
Mon, 26 Jan 2009 22:03:56 +0000 (23:03 +0100)
src/ChangeLog
src/dwarflint.c

index 3585a89c644ac359cafe66ad5a34b59938472fca..daf09502399659ac1257b547ad79852faf3cd402 100644 (file)
@@ -1,6 +1,8 @@
 2009-01-26  Petr Machata  <pmachata@redhat.com>
 
-       * dwarflint.c (check_aranges_structural): More checking.
+       * dwarflint.c (check_aranges_structural): Check that each CU is
+       referenced from one aranges section only.
+       (read_ctx_read_uleb128): Allow ten-byte ULEB128.
 
 2009-01-23  Petr Machata  <pmachata@redhat.com>
 
index 3fadf88c8c78a5f1c2545371e636f6a6cd2f3d39..e1ad896b47ae76c9764cf65fffcf389bcefb0a8f 100644 (file)
@@ -914,7 +914,7 @@ read_ctx_read_uleb128 (struct read_ctx *ctx, uint64_t *ret)
       zero_tail = payload == 0 && shift > 0;
       result |= (uint64_t)payload << shift;
       shift += 7;
-      if (shift > size)
+      if (shift > size && byte != 0x1)
        return -1;
       if ((byte & 0x80) == 0)
        break;