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

Add sane limits for buffers #64

Open
prajnoha opened this issue Feb 15, 2021 · 0 comments
Open

Add sane limits for buffers #64

prajnoha opened this issue Feb 15, 2021 · 0 comments

Comments

@prajnoha
Copy link
Member

The buffer.h interface allows defining a limit for buffer use:

struct buffer *buffer_create(struct buffer_spec *spec, struct buffer_init *init, int *ret_code);

int buffer_reset_init(struct buffer *buf, struct buffer_init *init);

Audit all the existing code where buffers are used and set a sane limit everywhere so the buffers can't go unlimited if something goes wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant