ipmitool / test

0 stars 0 forks source link

segfault on empty string when setting user name #79

Open AlexanderAmelkin opened 7 years ago

AlexanderAmelkin commented 7 years ago

Reported by: Jörg Frings-Fürst Original Ticket: ipmitool/bugs/484

Hello,

I forward this bug from Debian[1]:

Dear Maintainer,

when trying to set an empty user name through ipmitool shell, ipmitool segfaults. I am not completly sure an empty string should be considered valid but it should probably not result in a segfault :-) The bug seems reproductible at will.

Steps to reproduce: % ipmitool -I lanplus -H server -U user -P pass shell ipmitool> user set name 3 "" zsh: segmentation fault ipmitool -I lanplus -H server -U user -P pass shell

Valgrind reports an invalid read of size 1 before the segfault, see attached file for full valgrind outuput.

Regards, David Sinquin

The valgrind output is attached.

CU Jörg

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=862099