[OpenSIPS-Devel] [OpenSIPS/opensips] ddbec1: db_text: return a valid empty string for a null DB...
Vlad Pătrașcu
noreply at github.com
Thu Dec 2 22:24:02 EST 2021
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: ddbec155fc89d2085149f2debc66edecb0789554
https://github.com/OpenSIPS/opensips/commit/ddbec155fc89d2085149f2debc66edecb0789554
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
More information about the Devel
mailing list