THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - Andrey A Berekelya (bandry)
Attached to Project - sip-router
Summary - presence_xml with db_postgres
Task Type - Bug Report
Category - Module
Status - Unconfirmed
Assigned To -
Operating System - All
Severity - Medium
Priority - Normal
Reported Version - Development
Due in Version - Undecided
Due Date - Undecided
Details - In modules/db_postgres/km_val.c: the functions db_postgres_str2val string not
terminate '\0', as the result the processing of a string BLOB fields is wrong. In
particular, presence_xml is not working properly and cause the error:
'ERROR: presence_xml [notify_body.c:515]: while parsing xml body message'
patch:
=====================================================================
75c75,76
< VAL_BLOB(_v).s = pkg_malloc(VAL_BLOB(_v).len);
---
VAL_BLOB(_v).s =
pkg_malloc(VAL_BLOB(_v).len + 1);
81c82
< LM_DBG("allocate %d bytes memory for BLOB at %p",
VAL_BLOB(_v).len, VAL_BLOB(_v).s);
---
LM_DBG("allocate %d bytes memory
for BLOB at %p", VAL_BLOB(_v).len + 1, VAL_BLOB(_v).s);
82a84,85
VAL_BLOB(_v).s[VAL_BLOB(_v).len] =
'\0';
VAL_BLOB(_v).len++;
=====================================================================
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=77
You are receiving this message because you have requested it from the Flyspray bugtracking
system. If you did not expect this message or don't want to receive mails in future,
you can change your notification settings at the URL shown above.