[Asterisk-code-review] pjproject: fixed a few bugs (asterisk[13])

Alexei Gradinari asteriskteam at digium.com
Mon Jul 25 10:56:27 CDT 2016


Alexei Gradinari has posted comments on this change.

Change subject: pjproject: fixed a few bugs
......................................................................


Patch Set 1:

Why the bundled pjproject is compiled with disabled PJ_ENABLE_EXTRA_CHECK?

/**
 * Enable library's extra check.
 * If this macro is enabled, #PJ_ASSERT_RETURN macro will expand to
 * run-time checking. If this macro is disabled, #PJ_ASSERT_RETURN
 * will simply evaluate to #pj_assert().
 *
 * You can disable this macro to reduce size, at the risk of crashes
 * if invalid value (e.g. NULL) is passed to the library.
 *
 * Default: 1
 */
#ifndef PJ_ENABLE_EXTRA_CHECK
#   define PJ_ENABLE_EXTRA_CHECK    1
#endif

I think the crashes have to be avoided in production.
The PJ_ENABLE_EXTRA_CHECK should be disabled only in Debug mode.

-- 
To view, visit https://gerrit.asterisk.org/3278
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I4c7a132b9664afaecbd6bf5ea4c951e43e273e40
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Alexei Gradinari <alex2grad at gmail.com>
Gerrit-Reviewer: Alexei Gradinari <alex2grad at gmail.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-HasComments: No



More information about the asterisk-code-review mailing list