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

 
 

bug #43952: Broken definition of STARTSWITH macro

Submitter:  Zbigniew Chyla <zchyla_nokia>
Submitted:  Thu 08 Jan 2015 02:49:01 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  esr
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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 Files:
   
   
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
  • -email is unavailable- added by esr (Updated the item)
  • -email is unavailable- added by zchyla_nokia (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-02-22 esr Open/ClosedOpen Closed
    2015-01-13 esr StatusNone Fixed
        Assigned toNone esr
    2015-01-08 zchyla_nokia Attached File- Added 0001-Fix-definition-of-STARTSWITH-macro.patch, #32785

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code