From 4e008c29ceeacdaf5dab791402c7338b5dd12652 Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Tue, 5 Jul 2011 20:30:00 +0200 Subject: [PATCH] b/f: fix string out of bounds access --- apps/gateway/mISDNChannel.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/apps/gateway/mISDNChannel.cpp b/apps/gateway/mISDNChannel.cpp index 1608217d..8abd77aa 100644 --- a/apps/gateway/mISDNChannel.cpp +++ b/apps/gateway/mISDNChannel.cpp @@ -319,20 +319,23 @@ int mISDNChannel::call() { if (m_Presentation_r >= 0) { ie[1] = 0x00 + (m_TON_r<<4) + m_NPI_r; ie[2] = 0x80 + (m_Presentation_r<<5) + m_Screening_r; - for (i=0; i<=m_caller.size(); i++) - ie[3+i] = m_caller[i] & 0x7f; + for (i=0; i