t0004-vector.c
736 Bytes
-
Fixed two buffer handling errors in vector.c · a17777d1
- remove() would read one-past array bounds. - resize() would fail if the initial size was 1, because it multiplied by 1.75 and truncated the resulting value. The buffer would always remain at size 1, but elements would repeatedly be appended (via insert()) causing a crash.
Alex Budovski committed