]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix a crash if `-D' is used without `-t title'
authordteske <dteske@FreeBSD.org>
Wed, 27 Jan 2016 06:21:35 +0000 (06:21 +0000)
committerdteske <dteske@FreeBSD.org>
Wed, 27 Jan 2016 06:21:35 +0000 (06:21 +0000)
commit9e39febd77269eef9d0d16682859af23e9cc83ac
treeaef9d0ceec08c870165bbe1f1c291bb260d97d6a
parent1f1c0f4112dbf60fee7e350dd01863d75a57446e
Fix a crash if `-D' is used without `-t title'

dialog(3)'s dlg_reallocate_gauge(), used both by dialog(3)'s dialog_gauge()
and dialog(1)'s `--gauge', will segmentation fault in strlen(3) if no title
is set for the widget. Reproducible with `dialog --gauge hi 6 20' (adding
`--title ""' is enough to prevent segmentation fault).

MFC after: 3 days
X-MFC-to: stable/10
lib/libdpv/dialog_util.c