summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d8f35e2)
performing n-- is not a safe operation for arbitrary signed input n.
only perform the decrement in the code path where the initial n is
greater than 1, and adjust the condition in the n<=1 code path to
compensate for it not having been decremented.
f->mode |= f->mode-1;
FUNLOCK(f);
f->mode |= f->mode-1;
FUNLOCK(f);
while (n) {
if (f->rpos != f->rend) {
while (n) {
if (f->rpos != f->rend) {