[OpenSIPS-Devel] [OpenSIPS/opensips] 2dc1c8: qrouting: Fix Coverity paranoid warning

Liviu Chircu noreply at github.com
Thu Jul 9 09:23:01 EST 2020


  Branch: refs/heads/coverity_scan
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 2dc1c8fec574087b9d530d302dc32eae178a3e2e
      https://github.com/OpenSIPS/opensips/commit/2dc1c8fec574087b9d530d302dc32eae178a3e2e
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2020-07-09 (Thu, 09 Jul 2020)

  Changed paths:
    M modules/qrouting/qr_load.c

  Log Message:
  -----------
  qrouting: Fix Coverity paranoid warning

Even if the buffer can never be overflown here thanks to the CHAR(64) DB
schema restriction, if the user were to change the DB schema by hand and
extend the column to 65+ chars, it would crash OpenSIPS, so the warning
makes some sense.

Fixes CID #211387





More information about the Devel mailing list