diff options
author | Denys Vlasenko | 2018-07-23 14:21:07 +0200 |
---|---|---|
committer | Denys Vlasenko | 2018-07-23 14:26:55 +0200 |
commit | ca2f831ead327d98ab3374acb3b07ad7632ea02d (patch) | |
tree | 297a6533950a24a21390483f54f053513e67868f /shell/ash_test/ash-vars/var_bash5.tests | |
parent | f36caa4071bbb5bb6d098ced8116accc65370dd8 (diff) | |
download | busybox-ca2f831ead327d98ab3374acb3b07ad7632ea02d.zip busybox-ca2f831ead327d98ab3374acb3b07ad7632ea02d.tar.gz |
hexedit: fixes for redraw and down movement causing SEGV on attempt to access
"Go to:" command was not updating row position, making next "down" movements
for one screenful print empty lines instead of showing the contents.
If the file is whole pages long, "down" movement at EOF was advancing position
+16 bytes, mapping the next portion (entirely past the end of the file),
then finding out that the new position is beyond the EOF, rolling it back
-16 bytes... ending up with this postion pointing *before* the mapped portion.
Any next access (e.g. "move right" key) SEGVs.
function old new delta
hexedit_main 1170 1184 +14
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test/ash-vars/var_bash5.tests')
0 files changed, 0 insertions, 0 deletions