[OpenSIPS-Devel] [OpenSIPS/opensips] 6440d4: db_text: return a valid empty string for a null DB...

Vlad Pătrașcu noreply at github.com
Thu Dec 2 22:26:04 EST 2021


  Branch: refs/heads/3.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 6440d44f6136cc760b04c1df1a989891eb423ad0
      https://github.com/OpenSIPS/opensips/commit/6440d44f6136cc760b04c1df1a989891eb423ad0
  Author: Vlad Patrascu <vladp at opensips.org>
  Date:   2021-12-03 (Fri, 03 Dec 2021)

  Changed paths:
    M modules/db_text/dbt_api.c

  Log Message:
  -----------
  db_text: return a valid empty string for a null DB value

This prevents crashes in modules which do not check the null flag
in the db result before using the string value (eg. doing strlen()).

Fixes #2658

(cherry picked from commit ddbec155fc89d2085149f2debc66edecb0789554)





More information about the Devel mailing list