#302 new
Vittorio Zecca

Undefined behaviour in yasm 1.3.0

Reported by Vittorio Zecca | August 29th, 2016 @ 08:30 PM

Hi there, I just compiled yasm 1.3.0 with the gnu gcc
-fsanitize=undefined option. Running make check I found many issues, as in bitvect.c where in several places
the undefined expression ~0L << lshift is computed.
This is undefined because ~0L is negative.
I believe it should be ~0LU instead.

Will somebody please double check?
There are more undefined expressions in yasm, if you have gnu gcc
you may find them by compiling it with the sanitizer.

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Yasm Modular Assembler Project

Shared Ticket Bins

People watching this ticket

Pages