bugMibble MIB Parser - Bugs: bug #22854, Binary and hexadecimal constant...

 
 

bug #22854: Binary and hexadecimal constant padding is sometimes removed

Submitter:  Per Cederberg <cederberg>
Submitted:  Sun 06 Apr 2008 06:17:28 PM UTC
   
 
Severity:  2 - Normal Item Group:  Software
Status:  Fixed Privacy:  Public
Assigned to:  cederberg Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 04 Apr 2009 09:09:33 AM UTC, comment #2: 

Version 2.9 was released on 2009-03-19.

Per Cederberg <cederberg>
Group administrator
Sun 06 Apr 2008 08:01:44 PM UTC, comment #1: 

Fixed in version 2.9.alpha2.

Per Cederberg <cederberg>
Group administrator
Sun 06 Apr 2008 06:17:28 PM UTC, original submission:  

Some binary and hexadecimal values are still printed with the wrong number of characters. The implementation from issue #17834 only takes the lowest size range value into consideration, so ranges like SIZE (0 | 2 | 4) or similar only require a minimum printing length of 0. Hence, in the current implementation '05'H would print to '5'H instead.

The solution to this issue is probably to only consider the size range values larger or equal to the initial value specification. In such a solution, no padding zeros would ever be removed, but padding might still be added in some cases.

Thanks to M.S.Thiraviyakumar for reporting this and providing a patch.

Per Cederberg <cederberg>
Group administrator

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by cederberg (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-04-04 cederberg Open/ClosedOpen Closed
    2008-04-06 cederberg StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-c373.
    Corresponding source code