#define skinny_textid2raw(label) (label > 0 ? switch_mprintf("\200%c", label) : switch_mprintf(""))
char *skinny_format_message(const char *str);
+#define SKINNY_MAX_STRING 16384
+
#endif /* _MOD_SKINNY_H */
/* For Emacs:
}
i = 0;
pos = 0;
+
+ if ( string_len > SKINNY_MAX_STRING ) {
+ skinny_log_l_msg(listener, SWITCH_LOG_ERROR, "Codec string list too long.\n");
+ return SWITCH_STATUS_FALSE;
+ }
+
codec_string = calloc(string_len+1,1);
if ( !codec_string ) {
skinny_log_l_msg(listener, SWITCH_LOG_ERROR, "Unable to allocate memory for codec string.\n");