You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Nicolas (Jira)" <ji...@apache.org> on 2020/02/05 15:26:00 UTC
[jira] [Created] (DISPATCH-1566) safe_snpritf is not safe.
Nicolas created DISPATCH-1566:
---------------------------------
Summary: safe_snpritf is not safe.
Key: DISPATCH-1566
URL: https://issues.apache.org/jira/browse/DISPATCH-1566
Project: Qpid Dispatch
Issue Type: Bug
Components: Router Node
Reporter: Nicolas
{{/* **************************************** */}}
{{static inline int safe_snprintf(char *str, size_t size, const char *format, ...)}}
{{{ .... }}{{}}}
This function fails for size = 0, and ... inside it calls vsnprintf, without considering that in case of error vsnprintf returns a negative number.
PR in progress.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org