Menu

#446 ipmitool firewall reset segfaults

version-1.8.18
closed-fixed
None
5
2016-06-06
2016-06-01
Boris Ranto
No

Hi,

the netfn structures are populated sequentially in the gather_info function and they are accessed only by even indices (and to the double of its real length). This results in a segmentation fault if you run

  • ipmitool firewall reset

This seems to be cause by double meaning of 'n' variable in code that populates it and the code that processes it. I'm attaching the patch that fixes the behaviour so that the ipmi_firewall_reset function treats the structure the same way as the rest of the code does.

Thanks,
Boris

1 Attachments

Discussion

  • Zdenek Styblik

    Zdenek Styblik - 2016-06-06
    • status: open --> closed-fixed
    • assigned_to: Zdenek Styblik
     
  • Zdenek Styblik

    Zdenek Styblik - 2016-06-06

    Thanks.

     

Log in to post a comment.