]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[sofia-sip] Fix out-of-bounds write in sres_sofia_update(). 412/head
authorAndrey Volk <andywolk@gmail.com>
Mon, 24 Feb 2020 22:09:27 +0000 (02:09 +0400)
committerAndrey Volk <andywolk@gmail.com>
Mon, 24 Feb 2020 22:09:27 +0000 (02:09 +0400)
libs/sofia-sip/.update
libs/sofia-sip/libsofia-sip-ua/sresolv/sresolv.c

index 4dd82d032be96bd6f0a010012f497d3cc5e3e5e4..379d5d609cd93f563ef63d8d9b2d7bb917f1fad2 100644 (file)
@@ -1 +1 @@
-Thu Feb 20 12:12:22 UTC 2020
+Mon Feb 24 22:07:30 UTC 2020
index 0720265926176d2b7a13ef796c9f6e4879de74fc..30812a60f12b65d08456e5b699df201b39a7fd74 100644 (file)
@@ -224,7 +224,7 @@ static int sres_sofia_update(sres_sofia_t *srs,
        if (!(srs->srs_reg + i)->reg_ptr)
          break;
       }
-      if (i > N)
+      if (i >= N)
        return su_seterrno(ENOMEM);
 
       reg = srs->srs_reg + i;