bugGNU FreeIPMI - Bugs: bug #43787, bmc-config : configure a vlan with...

 
 

bug #43787: bmc-config : configure a vlan with an id > 255

Submitter:  jbd <jbdenis>
Submitted:  Tue 09 Dec 2014 05:07:50 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 09 Dec 2014 07:30:18 PM UTC, comment #1: 

Oops, you're absolutely right.  It'll be fixed in the next release

--- ipmi-config-category-core-lan-conf-section.c        (revision 10147)
+++ ipmi-config-category-core-lan-conf-section.c        (working copy)
@@ -42,7 +42,7 @@
 /* convenience struct */
 struct vlan_id
 {
-  uint8_t vlan_id;
+  uint16_t vlan_id;
   uint8_t vlan_id_enable;
 };

Albert Chu <chu11>
Group administrator
Tue 09 Dec 2014 05:07:50 PM UTC, original submission:  

Hi,

I'm trying to set a vlan with an id > 255 and it looks like there is an unsigned 8 bit overflow here.

"bmc-config ... -e Lan_Conf:Vlan_id=257" results with Vlan_id=1 in a checkout.

Looks like something like that :

http://fossies.org/dox/freeipmi-1.4.6/structvlan__id.html#a20cc1c1ac77a6e75bbc4933891adeb1b

Jean-Baptiste


jbd <jbdenis>

 

(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 chu11 (Updated the item)
  • -email is unavailable- added by jbdenis (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-12-09 chu11 StatusIn Progress Fixed
        Open/ClosedOpen Closed
    2014-12-09 chu11 StatusNone In Progress

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code