[Mesa-dev] [Bug 80266] Many instances of 1<<31, which is undefined in C99

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jul 15 02:14:08 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=80266

Eero Tamminen <eero.t.tamminen at intel.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |http://blog.llvm.org/2011/0
                   |                            |5/what-every-c-programmer-s
                   |                            |hould-know.html

--- Comment #14 from Eero Tamminen <eero.t.tamminen at intel.com> ---
(In reply to comment #10)
> And as tedious as this is to mention, C99 section 6.5.7.4 does state this is
> undefined behavior. I know the "C abstract machine" is far removed from real
> problems with drivers and whatnot -- and I appreciate the awesome work you
> all do on Mesa. I just wanted to clarify that there is spec support for this
> claim.

LLVM compiler site has 3 article series on issues with undefined behavior (see
URL field), it's a very good read.

Coccinelle might be able to help detection and patching of issues like this:
http://lwn.net/Articles/380835/

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140715/e071adc3/attachment.html>


More information about the mesa-dev mailing list