Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

aubuf: avoid underflow of cur_sz #108

Merged
merged 1 commit into from
Nov 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/aubuf/aubuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ int aubuf_append_auframe(struct aubuf *ab, struct mbuf *mb,
#endif
f = list_ledata(ab->afl.head);
if (f) {
ab->cur_sz -= sz;
ab->cur_sz -= mbuf_get_left(f->mb);
mem_deref(f);
}
}
Expand Down