[OpenSIPS-Devel] [OpenSIPS/opensips] 75da6a: ldap: Fix possible buffer overflow

Răzvan Crainea noreply at github.com
Wed Jul 21 14:52:12 EST 2021


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 75da6a680da3b09d297729e2d808ff5a8b13e9b0
      https://github.com/OpenSIPS/opensips/commit/75da6a680da3b09d297729e2d808ff5a8b13e9b0
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2021-07-21 (Wed, 21 Jul 2021)

  Changed paths:
    M modules/ldap/iniparser.c

  Log Message:
  -----------
  ldap: Fix possible buffer overflow

If gcc says "2050 chars can overflow a 2049 buffer", gcc is definitely
not wrong...

(cherry picked from commit 4675b1fff4c2691a37fd2997bfadf972458bc317)


  Commit: df0a145bcd8d7ece160c4e5d631aceb4ac4d7b71
      https://github.com/OpenSIPS/opensips/commit/df0a145bcd8d7ece160c4e5d631aceb4ac4d7b71
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2021-07-21 (Wed, 21 Jul 2021)

  Changed paths:
    M modules/httpd/httpd_proc.c

  Log Message:
  -----------
  httpd: Fix gcc warning for unchecked fread() retcode

(cherry picked from commit 5b5f2f68b5b59d0ca7348b4a1777a404f816dc4d)


  Commit: a79e6c68cf61fab855b30ed7909946b8e6018129
      https://github.com/OpenSIPS/opensips/commit/a79e6c68cf61fab855b30ed7909946b8e6018129
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2021-07-21 (Wed, 21 Jul 2021)

  Changed paths:
    M modules/jabber/xjab_wlist.c

  Log Message:
  -----------
  jabber: Fix off-by-one strncpy() error

warning: ‘__builtin_strncpy’ output truncated before terminating nul
copying as many bytes from a string as its length [-Wstringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bo...
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
xjab_wlist.c: In function ‘xj_wlist_set_aliases’:
xjab_wlist.c:455:34: note: length computed here
  455 |   i = jwl->aliases->proxy->len = strlen(pa);
      |                                  ^~~~~~~~~~

(cherry picked from commit 2d98eefa0c1963f22b063aa5514ce44d82160387)


  Commit: 0ce870632fba02e3eb4d848ae09b7661344f18bb
      https://github.com/OpenSIPS/opensips/commit/0ce870632fba02e3eb4d848ae09b7661344f18bb
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2021-07-21 (Wed, 21 Jul 2021)

  Changed paths:
    M modules/statistics/statistics.c

  Log Message:
  -----------
  statistics: Fix possible uninitialized output variable

(cherry picked from commit 6d26478e7900e426c46df0b4a4c7dc563ba79c66)


  Commit: bfa125dab917fb4a4b79b588f9066a0f62a9ed99
      https://github.com/OpenSIPS/opensips/commit/bfa125dab917fb4a4b79b588f9066a0f62a9ed99
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2021-07-21 (Wed, 21 Jul 2021)

  Changed paths:
    M modules/cachedb_mongodb/cachedb_mongodb_dbase.c

  Log Message:
  -----------
  cachedb_mongodb: Fix possible uninitialized variable

(cherry picked from commit 2b3d73d8bc4f981d67802ca739132902fd959a64)


  Commit: a6d6d26bac3705dfe6f731be4e3e51c0663046e6
      https://github.com/OpenSIPS/opensips/commit/a6d6d26bac3705dfe6f731be4e3e51c0663046e6
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2021-07-21 (Wed, 21 Jul 2021)

  Changed paths:
    M modules/uac_registrant/reg_records.c

  Log Message:
  -----------
  uac_registrant: Fix buggy gcc 7.x "uninitialized" error

reg_records.c:302:7: error: ‘new_elem’
    may be used uninitialized in this function

(cherry picked from commit 20fc08a49e1a8780b4cecb7251cc8243f368c0a5)


  Commit: 20cc8075df631a400bc140a4588e9c0986499ea8
      https://github.com/OpenSIPS/opensips/commit/20cc8075df631a400bc140a4588e9c0986499ea8
  Author: Razvan Crainea <razvan at opensips.org>
  Date:   2021-07-21 (Wed, 21 Jul 2021)

  Changed paths:
    M modules/rtp_relay/rtp_relay.c

  Log Message:
  -----------
  rtp_relay: fix uninitialized warning

(cherry picked from commit 80ff0f404fce998e9b8c6243b5f7083343f0ca2e)


Compare: https://github.com/OpenSIPS/opensips/compare/7bc88e2d029e...20cc8075df63



More information about the Devel mailing list