search for: pj_strlen

Displaying 2 results from an estimated 2 matches for "pj_strlen".

Did you mean: _strlen
2017 Jun 09
2
pjsip user_eq_phone adds user=phone to anonymous user bug?
...====================================================================== int i = 0; //..... if (pj_strbuf(&sip_uri->user)[0] == '+') { i = 1; } /* Test URI user against allowed characters in AST_DIGIT_ANY */ for (; i < pj_strlen(&sip_uri->user); i++) { if (!strchr(AST_DIGIT_ANYNUM, pj_strbuf(&sip_uri->user)[i])) { break; } } if (i < pj_strlen(&sip_uri->user)) { return; } //add user=phone if we get t...
2017 Jun 18
2
asterisk 13.16. - sigseg during negotiation
...x00007fba4238dbcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115 (gdb) frame 0 #0 ast_copy_pj_str (dest=0x7fb9f5901100 "x\277\001<h\025\220", <incomplete sequence \365>, src=0x20, size=1025) at res_pjsip.c:4147 4147 size_t chars_to_copy = MIN(size - 1, pj_strlen(src)); (gdb) list 4142 return std.fail; 4143 } 4144 4145 void ast_copy_pj_str(char *dest, const pj_str_t *src, size_t size) 4146 { 4147 size_t chars_to_copy = MIN(size - 1, pj_strlen(src)); 4148 memcpy(dest, pj_strbuf(src), chars_to_copy); 4149 d...