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

grow_buffer in strbuf.c fails if string->allocated is 1 #51

lonesword opened this Issue Jul 29, 2014 · 1 comment


None yet
2 participants
Copy link

lonesword commented Jul 29, 2014

Line to grow buffer :
toallocate = string->allocated + (string->allocated / 2);

If string->allocated is initially 1, then the buffer will not grow.

@navaneeth navaneeth closed this in 5fcfd06 Aug 5, 2014


This comment has been minimized.

Copy link

navaneeth commented Aug 5, 2014

This is fixed. Great find.

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