Skip to content
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

small bug in libedit might cause abnormal program termination #3

Closed
elad opened this issue Jun 17, 2014 · 1 comment
Closed

small bug in libedit might cause abnormal program termination #3

elad opened this issue Jun 17, 2014 · 1 comment

Comments

@elad
Copy link
Owner

elad commented Jun 17, 2014


    libedit covers several vi and emacs functions and stores
    descriptions about them in a structure called el_func_help
    which will be generated automatically. This structure is
    terminated by { NULL, 0, NULL } as customary to have an
    exit condition for use with loops. The problem is that
    the map_init function in lib/libedit/map.c do not respect
    this null-termination. It allocates memory for only N
    functions, but N+1 is necessary to include the termination.
    You'll get a segmentation fault in certain cases.


This was referenced Jun 20, 2014
@elad
Copy link
Owner Author

elad commented Dec 13, 2015

clutter

@elad elad closed this as completed Dec 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant