make sure msisdn.lenth>=10 to avoid memory overflow and fix TZIVI-78 build/2012-07-17.004834
authorHao Li <hao.h.li@intel.com>
Tue, 17 Jul 2012 00:44:28 +0000 (08:44 +0800)
committerHao Li <hao.h.li@intel.com>
Tue, 17 Jul 2012 00:44:28 +0000 (08:44 +0800)
packaging/hfdialer.changes
qml/CallItemViewLarge.qml

index b73e8a8..01b243d 100644 (file)
@@ -1,3 +1,6 @@
+* Tue Jul 17 2012 Hao Li <hao.h.li@intel.com> - 0.3.0
+- make sure msisdn.lenth>=10 to avoid memory overflow and fix TZIVI-78
+
 * Wed Jul 11 2012 Rusty Lynch <rusty.lynch@intel.com> - 0.3.0
 - Disable fullscreen support since the updated qtwayland has
   an issue with input events while in fullscreen
index c7edaea..7c90bad 100644 (file)
@@ -30,7 +30,7 @@ Item
 
             if (call.msisdn !== undefined && call.msisdn[0]!== undefined)
             {
-                if (call.msisdn.trim().length <= 10)
+                if (call.msisdn.trim().length >= 10)
                 {
                     root.callerLabelText = call.msisdn[0] + call.msisdn[1] + call.msisdn[2] + '-' +
                             call.msisdn[3] + call.msisdn[4] + call.msisdn[5] + '-' +