Skip to content

Commit

Permalink
Fix logic inversion that can lead to the out-of-the-bounds write
Browse files Browse the repository at this point in the history
and subsequent corryption of the refcounter, causing memory leak
with oss-fuzz.
  • Loading branch information
sobomax committed Sep 10, 2024
1 parent e8b69f1 commit 2966984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rtpp_command_reply.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ DEFINE_SMETHODS(rtpc_reply,
#define CBP(pvt) ((pvt)->buf.r + (pvt)->buf.ulen)
#define CBL(pvt) ((pvt)->buf.ulen)
#define CBRL(pvt, fin) (sizeof(pvt->buf.r) - (pvt)->buf.ulen - \
((fin) ? (pvt)->buf.rlen : 0))
((fin) ? 0 : (pvt)->buf.rlen))
#define CBP_C(pvt) ((pvt)->buf.r + (pvt)->buf.clen)
#define CBL_C(pvt) ((pvt)->buf.clen)

Expand Down

0 comments on commit 2966984

Please sign in to comment.