Bug 1045453

Summary: libbluray: off-by-one errors in src/libbluray/register.c
Product: Red Hat Enterprise Linux 7 Reporter: Florian Weimer <fweimer>
Component: libblurayAssignee: Bastien Nocera <bnocera>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: mboisver, mclasen, tpelka, tpopela
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libbluray-0.2.3-6.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 959215 Environment:
Last Closed: 2020-09-29 20:25:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 959215, 1404202    
Bug Blocks: 959198    

Description Florian Weimer 2013-12-20 13:06:04 UTC
+++ This bug was initially created as a clone of Bug #959215 +++

There are a couple of comparisons which should use ">=" instead of ">" (each occurs twice):

    if (reg < 0 || reg > BD_GPR_COUNT) {
    if (reg < 0 || reg > BD_PSR_COUNT) {

These look harmless, but should still be fixed.

--- Additional comment from Fedora End Of Life on 2013-09-16 15:45:48 CEST ---

This bug appears to have been reported against 'rawhide' during the Fedora 20 development cycle.
Changing version to '20'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora20

--- Additional comment from Xavier Bachelot on 2013-10-23 19:24:52 CEST ---

Hi Florian,

Thanks for the report and sorry for the late reply.
I sent a patch upstream, I'll close this bug once committed.

Regards,
Xavier

--- Additional comment from Xavier Bachelot on 2013-10-24 12:02:26 CEST ---

Fix committed upstream :
http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=c6ae9afd73c183231f39804de184e8c5c09de563

Comment 5 Bastien Nocera 2020-04-21 10:14:45 UTC
Built in libbluray-0.2.3-6.el7

Comment 9 errata-xmlrpc 2020-09-29 20:25:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (libbluray bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:3994