← Back to team overview

desktop-packages team mailing list archive

[Bug 1049426] Re: Unable to properly convert Orange Spain provider string (from +COPS) to UTF-8

 

** Changed in: modemmanager (Ubuntu)
     Assignee: Mathieu Trudel-Lapierre (mathieu-tl) => (unassigned)

** Changed in: modemmanager (Ubuntu Precise)
     Assignee: Mathieu Trudel-Lapierre (mathieu-tl) => (unassigned)

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to modemmanager in Ubuntu.
https://bugs.launchpad.net/bugs/1049426

Title:
  Unable to properly convert Orange Spain provider string (from +COPS)
  to UTF-8

Status in ModemManager (with NetworkManager support):
  Fix Released
Status in modemmanager package in Ubuntu:
  Fix Released
Status in modemmanager source package in Precise:
  Triaged

Bug description:
  This appears to be reproducible quite well with Orange in Spain. Bug
  opened on behalf of Chris Hemsing. This is an SRU candidate for
  ModemManager in 12.04 if the patch can be cherry-picked and doesn't
  need to many modifications.

  "
  There is a problem with the charset, which finally leads to a SIGSEGV in
  g_utf8_validate called from parse_operator.

  The modem is a
  Bus 002 Device 003: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800
  HSDPA Modem

  Kernel:
  3.2.0-30-generic #48-Ubuntu SMP Fri Aug 24 16:52:48 UTC 2012 x86_64 x86_64
  x86_64 GNU/Linux

  What happens:

  parse_operator gets called

  parse_operator (reply=0x674cc0 "+COPS: 0,0,\"Orange\241\",2",
  cur_charset=MM_MODEM_CHARSET_UCS2) at mm-generic-gsm.c:2856

  after the regexep, correctly

  (gdb) p operator
  $1 = 0x67e2e0 "Orange\241"

  However, "Orange\241" is not UCS2 and therefore

  operator = mm_charset_take_and_convert_to_utf8 (operator,
  MM_MODEM_CHARSET_UCS2);

  returns 0x0 !

  The variable "operator" is not being checked and this leads to a call
  of

  g_utf8_validate (str=0x0 (operator), max_len=-1, end=0x0)

  g_utf8_validate then hits the SIGSEGV.
  "

To manage notifications about this bug go to:
https://bugs.launchpad.net/modemmanager/+bug/1049426/+subscriptions