From patchwork Fri Nov 27 16:30:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dodji Seketeli X-Patchwork-Id: 41213 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 87FD13973056; Fri, 27 Nov 2020 16:37:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 87FD13973056 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1606495044; bh=enfEFjB3M3hO+PUkamMxsq/PG6WPxWe8RmzbYya9I7U=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Help: List-Subscribe:From:Reply-To:Cc:From; b=SEzOCygXRHthpE6ZTitPNhOeiwPrwPw/wJwuJ8eN38IKNH6jc/4k7uZMOGt6EzgY7 JaIagMrci4h+ukfxzZsWvvGaa4ko5v8HRWE+lODEoDSIU0JBsUQ2KKMkm9Pa4pT3CR yYAnoGwDyQSQ4D0HtnnLfcTzL8OwvH1cPAqUsARY= X-Original-To: libabigail@sourceware.org Delivered-To: libabigail@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by sourceware.org (Postfix) with ESMTP id 73FE13858026 for ; Fri, 27 Nov 2020 16:37:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 73FE13858026 Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-348-Jq_TJTeEOqyV_Quxwg_9yQ-1; Fri, 27 Nov 2020 11:37:18 -0500 X-MC-Unique: Jq_TJTeEOqyV_Quxwg_9yQ-1 Received: by mail-wr1-f71.google.com with SMTP id 91so3631065wrk.17 for ; Fri, 27 Nov 2020 08:37:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:organization:date:message-id :user-agent:mime-version; bh=enfEFjB3M3hO+PUkamMxsq/PG6WPxWe8RmzbYya9I7U=; b=Y/3x7QXp7eo+5wDe2z/7jfzOwH6Eq6V5kOxwiqeGVO2ZaUp94TdywbR4Vnp6aCnItR q4fng3+aHQ4YYw1gohQM9NL5JfMvjcc5/JF4hrALMEjeyztlHDTAV0Z+IC4O0G51e8tN TKyqm2f12TIwWTfTuuT58B4okzwXZ+au9xplhtmGdZAR9tveM9CxlR3xo4FO+6vMWQbJ 4bX5nHmZAFZykcINVAl+NmzBQ5K2Ma/ZmqhLgcG6yy2j5pRjBS7Tm1fPPZXEFnPSB5KB QeGpMwcwsRXVVrrHIZNvtvyRT3NqzlBk7xN77DIxC+UFpOhmrStbBXyMRUihkyI6FxSE AYCA== X-Gm-Message-State: AOAM532jW9ET/Y7NzIhIoKf8ZCi9e4luo72E0y5RZ6S53oqwI2vdaUW3 HKXfKIWMk2dqTZ8mx9W182STR3xQcQK4oXVMgjiDvlynM33rK3UzcSpkdOaK8ImLOYlqcFxxeIJ biPa21JulqEiDTdvvOaKr X-Received: by 2002:a1c:a402:: with SMTP id n2mr10293001wme.185.1606495036953; Fri, 27 Nov 2020 08:37:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJwOxulZYt28x8kxoO1dBxLqihHtAnjSxkrw3mL7fLIwEhrRzAuovne9JKlxU0BXoATMdaBMDw== X-Received: by 2002:a1c:a402:: with SMTP id n2mr10292973wme.185.1606495036624; Fri, 27 Nov 2020 08:37:16 -0800 (PST) Received: from localhost ([2a01:e0a:1a0:d060:5246:5dff:feab:d19c]) by smtp.gmail.com with ESMTPSA id o134sm2601591wme.6.2020.11.27.08.37.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Nov 2020 08:37:14 -0800 (PST) Received: by localhost (Postfix, from userid 1000) id 3AC71581D21; Fri, 27 Nov 2020 17:30:21 +0100 (CET) To: libabigail@sourceware.org Subject: [PATCH 0/2] Fix array subrange (de) serialization Organization: Red Hat / France X-Operating-System: Fedora 34 X-URL: http://www.redhat.com Date: Fri, 27 Nov 2020 17:30:21 +0100 Message-ID: <87wny67of6.fsf@redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libabigail@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list of the Libabigail project List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-Patchwork-Original-From: Dodji Seketeli via Libabigail From: Dodji Seketeli Reply-To: Dodji Seketeli Cc: dodji@redhat.com Errors-To: libabigail-bounces@sourceware.org Sender: "Libabigail" Hello, The following two small patches are to fix bug https://sourceware.org/bugzilla/show_bug.cgi?id=26780 where libabigail fails to properly serialise Fortran array sub-ranges. The first patch is just a small cleanup patch for a little issue I saw while looking at the bug. The second patch is the bug fix itself. The two patches have been applied to master. Dodji Seketeli (2): reader: Read array subrange length into an uint64_t Bug 26780 - Fix array subrange bounds (de)serialization src/abg-reader.cc | 28 ++++++++++++++++-- src/abg-writer.cc | 10 +++++++ tests/data/Makefile.am | 3 ++ .../hdf5-1.10.6-2.fc33.x86_64.rpm | Bin 0 -> 2227815 bytes ...10.6-2.fc33.x86_64.self-check-report-0.txt | 24 +++++++++++++++ .../hdf5-debuginfo-1.10.6-2.fc33.x86_64.rpm | Bin 0 -> 3825438 bytes tests/test-diff-pkg.cc | 12 ++++++++ 7 files changed, 75 insertions(+), 2 deletions(-) create mode 100644 tests/data/test-diff-pkg/hdf5-1.10.6-2.fc33.x86_64.rpm create mode 100644 tests/data/test-diff-pkg/hdf5-1.10.6-2.fc33.x86_64.self-check-report-0.txt create mode 100644 tests/data/test-diff-pkg/hdf5-debuginfo-1.10.6-2.fc33.x86_64.rpm