[Asterisk-bugs] translate.c
Igor Nikolaev
igor at spb.edu
Wed Oct 25 02:32:40 MST 2006
I think in file translate.c in function
struct ast_trans_pvt *ast_translator_build_path(int dest, int source)
after
source = powerof(source); dest = powerof(dest);
we must test values `source` and `dest` before reference to
test tr_matrix[source][dest].step` for correct values, for exapmle
if ( source == -1 || dest == -1 ) return NULL;
function powerof can return value '-1' and
tr_matrix[source][dest] can be incorrect memory pointer.
--
I
More information about the Asterisk-bugs
mailing list