From ed333a896aab0cea8489e5715488b2e1c2ff041a Mon Sep 17 00:00:00 2001 From: Hao Li Date: Tue, 17 Jul 2012 09:15:20 +0800 Subject: [PATCH] avoid memory overflow and fix TZIVI-78 --- packaging/hfdialer.changes | 3 +++ qml/CallItemViewLarge.qml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packaging/hfdialer.changes b/packaging/hfdialer.changes index b73e8a8..01b243d 100644 --- a/packaging/hfdialer.changes +++ b/packaging/hfdialer.changes @@ -1,3 +1,6 @@ +* Tue Jul 17 2012 Hao Li - 0.3.0 +- make sure msisdn.lenth>=10 to avoid memory overflow and fix TZIVI-78 + * Wed Jul 11 2012 Rusty Lynch - 0.3.0 - Disable fullscreen support since the updated qtwayland has an issue with input events while in fullscreen diff --git a/qml/CallItemViewLarge.qml b/qml/CallItemViewLarge.qml index c7edaea..7c90bad 100644 --- a/qml/CallItemViewLarge.qml +++ b/qml/CallItemViewLarge.qml @@ -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] + '-' + -- 2.7.4