ipmitool / test

0 stars 0 forks source link

long response crashes raw command #91

Open AlexanderAmelkin opened 7 years ago

AlexanderAmelkin commented 7 years ago

Reported by: vmauery Original Ticket: ipmitool/bugs/497

I am trying to run a raw command against a BMC that returns ~3kB of data. This crashes ipmitool. Upon inspection of the code, it is clearly a buffer overrun due to the max buffer allocated by raw being 256.

AlexanderAmelkin commented 7 years ago

Here is a patch that fixes the problem by allowing larger cmd and response buffers for raw.

Original comment by: vmauery

AlexanderAmelkin commented 6 years ago

See my comments to [ipmitool/source/merge-requests/18]

Original comment by: Alexander Amelkin

AlexanderAmelkin commented 6 years ago

Original comment by: Alexander Amelkin