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

 
 

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

Submitted by:  jbd <jbdenis>
Submitted on:  Tue 09 Dec 2014 05:07:50 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Operating System: None

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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>
Project 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 09 Dec 2014 07:30:29 PM UTCchu11StatusIn Progress=>Fixed
      Open/ClosedOpen=>Closed
    Tue 09 Dec 2014 06:42:04 PM UTCchu11StatusNone=>In Progress

    Back to the top


    Powered by Savane 3.1-cleanup1