From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 66549 invoked by alias); 26 Feb 2015 21:16:38 -0000 Mailing-List: contact gdb-testers-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-testers-owner@sourceware.org Received: (qmail 66532 invoked by uid 89); 26 Feb 2015 21:16:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: kwanyin.sergiodj.net Received: from kwanyin.sergiodj.net (HELO kwanyin.sergiodj.net) (176.31.208.32) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 26 Feb 2015 21:16:35 +0000 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [binutils-gdb] Fix undefined arithmetic operations detected by -fsanitize=undefined when running readelf on fuzzed binaries. From: sergiodj+buildbot@redhat.com To: gdb-testers@sourceware.org Message-Id: Date: Thu, 26 Feb 2015 22:17:00 -0000 X-SW-Source: 2015-q1/txt/msg03397.txt.bz2 *** TEST RESULTS FOR COMMIT c8071705c69a13d237aeca4709bf91deaff7e5cb *** Author: Nick Clifton Branch: master Commit: c8071705c69a13d237aeca4709bf91deaff7e5cb Fix undefined arithmetic operations detected by -fsanitize=undefined when running readelf on fuzzed binaries. PR binutils/17512 * dwarf.c (display_debug_loc): Pacify the undefined behaviour sanitizer by simplifying address difference calculation. (struct Frame_Chunk): Change type of cfa_offset to dwarf_vma in order to avoid arithmetic overflows. (frame_display_row): Cast cfa_offset before printing it. (display_debug_frames): Likewise. Check for an unexpected segment size. Chnage type of 'l' local to dwarf_vma and cast it back to an int when printing. (process_cu_tu_index): Tighten check for an invalid ncols value. * readelf.c (process_corefile_note_segment): Check for inote.descdata extending beyond the end of the section. (process_v850_notes): Likewise.