Re: SMS sending error with Telit module



I've taken a look at MM sources... I think I've found a bug, but maybe I'm missing something.

On qcdm_cmd_gsm_subsys_state_info_result() function, at row 1956 of commands.c, a buffer of 10 bytes is declared for IMSI/IMEI; isn't it too short? And on imxi_bcd_to_string() function, there is a consistency check that seems wrong:

qcdm_return_val_if_fail (buflen > len, FALSE);

I think it should be:

qcdm_return_val_if_fail (buflen > 15, FALSE);
(considering that "len" must be 8, and conversion skips the first IMxI nibble...)

Am I wrong?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]