|
From: | cvs-commit at gcc dot gnu.org |
Subject: | [Bug binutils/26415] UBSAN error: bfd/vms-misc.c:636:26: |
Date: | Wed, 26 Aug 2020 13:54:21 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=26415 --- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Alan Modra <amodra@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b4e125d9351f84233698bef91530743547c87403 commit b4e125d9351f84233698bef91530743547c87403 Author: Alan Modra <amodra@gmail.com> Date: Wed Aug 26 11:26:35 2020 +0930 PR26415 UBSAN: vms-misc.c:636 left shift cannot be represented An unsigned short value is promoted to int, thus triggering UB on a left shift of a positive value that results in a negative int. PR 26415 * vms-misc.c (vms_time_t_to_vms_time): Don't use unsigned short vars. -- You are receiving this mail because: You are on the CC list for the bug.
[Prev in Thread] | Current Thread | [Next in Thread] |