Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 532602 - x11-libs/libva-1.4.1 - .../work/libva-1.4.1/va/x11/va_dricommon.c:90:46: warning: iteration 31u invokes undefined behavior [-Waggressive-loop-optimizations]
Summary: x11-libs/libva-1.4.1 - .../work/libva-1.4.1/va/x11/va_dricommon.c:90:46: warn...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alexis Ballier
URL: http://cgit.freedesktop.org/libva/com...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-12-15 00:15 UTC by David Carlos Manuelda
Modified: 2015-02-03 10:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Carlos Manuelda 2014-12-15 00:15:15 UTC
When compiling libva-1.4.1 I found an undefined behavior detected by gcc in a while loop which I reported upstream via their mailing list.

They fixed it in git, but it may be important since it involves a possible out of bounds access to an array, so I post here if you think it is important to apply a patch before they release a new version.

The message I got in Gentoo was:
* /var/tmp/portage/x11-
libs/libva-1.4.1/work/libva-1.4.1/va/x11/va_dricommon.c:90:46: warning: 
iteration 31u invokes undefined behavior [-Waggressive-loop-optimizations]

The patch can be found at: http://cgit.freedesktop.org/libva/commit/va/x11/va_dricommon.c?id=ddbb8fc9279233277497350846c7d57fe5a9b1de

Feel free to close as invalid if you think it is not worth adding the patch and is better to wait until official release of new version containing the fix (because the bug do not seem to cause trobles, or at least, not easily reproducible troubles)
Comment 1 Alexis Ballier gentoo-dev 2015-02-03 10:52:16 UTC
seems fixed in 1.5.0