Summary: | ASTERISK-01221: [patch] ${LEN()} crashes on string containing colon (:) | ||
Reporter: | Tilghman Lesher (tilghman) | Labels: | |
Date Opened: | 2004-03-16 12:10:33.000-0600 | Date Closed: | 2008-01-15 14:47:43.000-0600 |
Priority: | Critical | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) 20040316__pbx_fix_len.diff.txt | |
Description: | Mysterious segfault crash. It doesn't appear to be anything obvious. ****** ADDITIONAL INFORMATION ****** #0 0x08064d30 in pbx_substitute_variables_temp (c=0x8141810, var=0x49f6bacc "LEN(H323/${EXTEN:3}@69.43.135.248)", ret=0x49f6b9c8, workspace=0x49f6bbcc "", workspacelen=256) at pbx.c:784 784 (*ret)[offset2] = '\0'; (gdb) bt #0 0x08064d30 in pbx_substitute_variables_temp (c=0x8141810, var=0x49f6bacc "LEN(H323/${EXTEN:3}@69.43.135.248)", ret=0x49f6b9c8, workspace=0x49f6bbcc "", workspacelen=256) at pbx.c:784 #1 0x080658b4 in pbx_substitute_variables_helper (c=0x8141810, cp1=0x49f6bd1c "${LEN(${dstring})} = 0", cp2=0x49f6be1c "", count=255) at pbx.c:1038 #2 0x08065b54 in pbx_substitute_variables_helper (c=0x8141810, cp1=0x42f455b0 "$[${LEN(${dstring})} = 0]?306", cp2=0x49f6c22c "", count=255) at pbx.c:1082 #3 0x0806b947 in pbx_extension_helper (c=0x8141810, context=0x8141968 "outgoing", exten=0x49f6c22c "", priority=105, callerid=0x0, action=135141368) at pbx.c:1168 #4 0x0806635c in ast_pbx_run (c=0x80e17f8) at pbx.c:1661 ASTERISK-1 0x46965d56 in ss_thread (data=0x8141810) at chan_zap.c:4325 ASTERISK-2 0x40025811 in pthread_start_thread () from /lib/i686/libpthread.so.0 (gdb) p offset2 $1 = 0 (gdb) p *ret $2 = 0x80bb047 "" | ||
Comments: | By: Mark Spencer (markster) 2004-03-19 01:41:17.000-0600 Fixed in both stable and head. By: Digium Subversion (svnbot) 2008-01-15 14:47:42.000-0600 Repository: asterisk Revision: 2468 U branches/v1-0_stable/pbx.c ------------------------------------------------------------------------ r2468 | markster | 2008-01-15 14:47:42 -0600 (Tue, 15 Jan 2008) | 2 lines Fix LEN segfault (bug ASTERISK-1221) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=2468 By: Digium Subversion (svnbot) 2008-01-15 14:47:43.000-0600 Repository: asterisk Revision: 2469 U trunk/pbx.c ------------------------------------------------------------------------ r2469 | markster | 2008-01-15 14:47:43 -0600 (Tue, 15 Jan 2008) | 2 lines Fix LEN segfault (bug ASTERISK-1221) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=2469 |