-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reproducible crash on OpenBSD #8
Comments
|
lichray
added a commit
that referenced
this issue
Oct 24, 2013
The meaning of buffer length was changed from characters count to bytes count. This is the only place I found so far which wildly compares the text length to buffer length. Closes-Issue: #8
Fixed after reproducing in FreeBSD. Thank you very much! I reworked the memory allocation macros some time ago, and it seems that the original nvi code does not always use the macros to manage memory. Can you confirm the fix on OpenBSD as well? Thanks. |
Can no longer reproduce the problem. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Create a file consisting of one line, exactly as follows:
(That's 13 X, followed by two tabs, followed by 17 Y.)
After it has been created, open it in nvi.
Type ':' or '/', then backspace. (I.e., put a character in the status bar.)
Type 'A' to append to the line, and insert a single space.
At this point, '^@' will show up to the right of the cursor.
esc :q!
On both my i386 and amd64 machines, this will crash about 1 in 20 times. Where it crashes varies; I've seen it crash immediately after 'A', immediately after 'esc', or immediately after ':q!enter'.
The text was updated successfully, but these errors were encountered: