Package: dialog
Version: 1.1-20071028
Severity: important
Tags: patch

Dialog segfaults when a help button is pressed on a form field that needs to be 
scrolled to.

To reproduce:
* run: ./dialog --help-button --help-status --form test 20 80 7 one 1 1 one 1 
10 10 10 two 2 1 two 2 10 10 10 three 3 1 three 3 10 10 10 four 4 1 four 4 10 
10 10 five 5 1 five 5 10 10 10 six 6 1 six 6 10 10 10 seven 7 1 seven 7 10 10 
10 eight 8 1 eight 8 10 10 10
* scroll to the last field (eight), tab to the help button and press enter
* you should get a Segmentation fault

The following patch by Vladimir Mezentsev appears to fix it:
# diff dialog-1.1-20071028 dialog-1.1-20071028_fixed/
diff dialog-1.1-20071028/formbox.c dialog-1.1-20071028_fixed/formbox.c
772c772
<     *current_item = scrollamt + choice;
---
>     *current_item = choice;
Common subdirectories: dialog-1.1-20071028/po and dialog-1.1-20071028_fixed/po
Common subdirectories: dialog-1.1-20071028/samples and
dialog-1.1-20071028_s/samples



Warmest Regards,
Dmitry Gomerman

________________________________________________________________________



Reply via email to