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

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


  Branch: refs/heads/3.2
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 33ab410525ac9c86340d613c506e3c9565e8a735
      https://github.com/OpenSIPS/opensips/commit/33ab410525ac9c86340d613c506e3c9565e8a735
  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