| Summary: | SegFault on fdisk, hexedit, ed due to read_line_edit dereferencing state->hist_file | ||
|---|---|---|---|
| Product: | Busybox | Reporter: | Takahiro <xellworks> |
| Component: | Other | Assignee: | unassigned |
| Status: | RESOLVED FIXED | ||
| Severity: | major | CC: | busybox-cvs |
| Priority: | P5 | ||
| Version: | 1.29.x | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
| Attachments: | fix suggestion for lineedit.c | ||
Fixed in git, thanks! |
Created attachment 7936 [details] fix suggestion for lineedit.c fdisk, hexedit and ed calls read_line_edit in libbb/lineedit.c with NULL as first argument. On line 2373 of lineedit.c of busybox version 1.29.3, state->hist_file is referenced without checking the state->flag. This causes segmentation fault on fdisk, hexedit and ed on ARM Cortex-A9. It somehow works on x86_64. Attached is a fix suggestion for lineedit.c