Fix: potential to crash in atmodem
authorDenis Kenzior <denkenz@gmail.com>
Thu, 17 Jun 2010 09:24:08 +0000 (04:24 -0500)
committerDenis Kenzior <denkenz@gmail.com>
Thu, 17 Jun 2010 09:26:16 +0000 (04:26 -0500)
commit412ed596b94526fa8acbaba2a9112ff01a4d1c54
treef8dee76e37f21c889405127d657490275f96c2ff
parent97e62dffdebdd54896642ce0d5293236539ed08f
Fix: potential to crash in atmodem

Some callbacks in call-meter were assuming that a modem follows 27.007
and actually returns a string.  Some modems don't return a string that
is properly formatted (e.g. in quotes).  The strtol was thus accessing
uninitialized memory and crashing ofono.
drivers/atmodem/call-meter.c