Share

Expat XML Parser

Tracker: Bugs

5 wrong expression - ID: 1895659
Last Update: Comment added ( fdrake )

Dear Sir or Madam,

I found a minor bugs in Expat 2.0.1.

xmltok_impl.c Line 1661:
if (MINBPC(enc) == 1 && *ptr1 == *ptr2)
should be
if ((MINBPC(enc) == 1) && (*ptr1 == *ptr2))

since && has a higher priority than ==.


Sincerely,
Sebastian Gottschalk


Nobody/Anonymous ( nobody ) - 2008-02-17 22:06

5

Closed

Rejected

Fred L. Drake, Jr.

www.libexpat.org

None

Public


Comments ( 2 )

Date: 2008-02-18 20:41
Sender: fdrakeSourceForge.net DonorProject AdminAccepting Donations


schiele's right; rejecting this as not-a-bug.


Date: 2008-02-17 22:31
Sender: schiele


No, precedence of == is higher than &&.

Though putting parentheses there might be considered better programming
style this is definitely no bug.


Attached File

No Files Currently Attached

Changes ( 3 )

Field Old Value Date By
status_id Open 2008-02-18 20:41 fdrake
resolution_id None 2008-02-18 20:41 fdrake
close_date - 2008-02-18 20:41 fdrake