Bug 495465 - idzebra-2.0.36-2.1: undefined code
Summary: idzebra-2.0.36-2.1: undefined code
Status: RESOLVED UPSTREAM
Alias: None
Product: openSUSE 11.2
Classification: openSUSE
Component: Other (show other bugs)
Version: Factory
Hardware: All openSUSE 11.1
: P5 - None : Normal (vote)
Target Milestone: unspecified
Assignee: Karl Eichwalder
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-16 10:35 UTC by David Binderman
Modified: 2009-04-21 12:11 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Binderman 2009-04-16 10:35:02 UTC
I just tried to build Factory package idzebra-2.0.36-2.1
and the build said

bset.c:261: warning: operation on 'i' may be undefined

The source code is

            while ((i1=trav_BSet (sh, src, ++i)) == i)

I agree with the compiler. There is no guarantee
that the left side of a compare is evaluated before the
right side of a compare.  Suggest code rework.
Comment 1 Karl Eichwalder 2009-04-20 10:50:16 UTC
Reported upstream: http://lists.indexdata.dk/pipermail/zebralist/2009-April/002185.html
Comment 2 Karl Eichwalder 2009-04-21 12:11:27 UTC
Patch is now available from here: http://lists.indexdata.dk/pipermail/zebralist/2009-April/002187.html (thanks, Adam!).

Because this code fragment is only in use while debugging, I will wait for the next official idzebra update.