bugGPSD - Bugs: bug #43952, Broken definition of STARTSWITH...

 
 

bug #43952: Broken definition of STARTSWITH macro

Submitted by:  Zbigniew Chyla <zchyla_nokia>
Submitted on:  Thu 08 Jan 2015 02:49:01 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Eric S. Raymond <esr>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 08 Jan 2015 02:49:01 PM UTC, original submission:

Commit 881f408 introduced incorrect definition of STARTSWITH macro. Now the last character of prefix is ignored in comparison. For example, STARTSWITH(classtag, "\"class\":\"DEVICE\"") will match both "class":"DEVICE" and "class":"DEVICES" (this exact problem won't show up with existing code as "DEVICES" is checked before "DEVICE").

Zbigniew Chyla <zchyla_nokia>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #32785:  0001-Fix-definition-of-STARTSWITH-macro.patch added by zchyla_nokia (987B - text/x-patch - [PATCH] Fix definition of STARTSWITH macro)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by esr (Updated the item)
  • -unavailable- added by zchyla_nokia (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 22 Feb 2015 05:03:32 PM UTCesrOpen/ClosedOpen=>Closed
    Tue 13 Jan 2015 12:05:20 PM UTCesrStatusNone=>Fixed
      Assigned toNone=>esr
    Thu 08 Jan 2015 02:51:09 PM UTCzchyla_nokiaAttached File-=>Added 0001-Fix-definition-of-STARTSWITH-macro.patch, #32785

    Back to the top


    Powered by Savane 3.1-cleanup1