Skip to content

Commit 72869f1

Browse files
committed
[sofia-sip] Fix out-of-bounds write in sres_sofia_update().
1 parent cf0e81c commit 72869f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libs/sofia-sip/.update

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Thu Feb 20 12:12:22 UTC 2020
1+
Mon Feb 24 22:07:30 UTC 2020

libs/sofia-sip/libsofia-sip-ua/sresolv/sresolv.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ static int sres_sofia_update(sres_sofia_t *srs,
224224
if (!(srs->srs_reg + i)->reg_ptr)
225225
break;
226226
}
227-
if (i > N)
227+
if (i >= N)
228228
return su_seterrno(ENOMEM);
229229

230230
reg = srs->srs_reg + i;

0 commit comments

Comments
 (0)