Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Feb 2016 18:15:15 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 207134] graphics/libfpx: fix build with clang 3.8.0
Message-ID:  <bug-207134-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207134

            Bug ID: 207134
           Summary: graphics/libfpx: fix build with clang 3.8.0
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: dim@FreeBSD.org
                CC: mi@ALDAN.algebra.com
                CC: mi@ALDAN.algebra.com
             Flags: maintainer-feedback?(mi@ALDAN.algebra.com)

Created attachment 166903
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D166903&action=
=3Dedit
Fix infinite loop in libfpx's EB_Copy_To_Memory() function

During a recent exp-run for bug 206074, it was found that graphics/libfpx g=
ives
errors with clang 3.8.0:

/wrkdirs/usr/ports/graphics/libfpx/work/libfpx-1.3.1-4/jpeg/ebuffer.c:94:36:
error: variables 'i' and 'num' used in loop condition not modified in loop =
body
[-Werror,-Wfor-loop-analysis]
  for(i=3D0,mem_ptr=3Dmem,buf_ptr=3Dbuf; i < num ;*mem_ptr++=3D*buf_ptr++);
                                   ^   ~~~

This for loop, in the EB_Copy_To_Memory() function, is non-terminating, sin=
ce
it never increases its counter.  The attached patch fixes this.

[1]
http://package22.nyi.freebsd.org/data/headamd64PR206074-default/2016-02-12_=
13h52m56s/logs/errors/libfpx-1.3.1.4.log

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-207134-13>