summaryrefslogtreecommitdiff
path: root/objectivec/objc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'objectivec/objc.cpp')
-rw-r--r--objectivec/objc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/objectivec/objc.cpp b/objectivec/objc.cpp
index fb5187ee..3b6a9165 100644
--- a/objectivec/objc.cpp
+++ b/objectivec/objc.cpp
@@ -1687,7 +1687,7 @@ void ObjCProcessor::ProcessCFStrings()
auto data = m_data->ReadBuffer(strLoc, size * 2);
str = "";
- for (uint64_t bufferOff = 0; bufferOff < size * 2; bufferOff += 2)
+ for (uint64_t bufferOff = 0; bufferOff + 1 < data.GetLength(); bufferOff += 2)
{
uint8_t* rawData = static_cast<uint8_t*>(data.GetData());
uint8_t* offsetAddress = rawData + bufferOff;
@@ -1779,7 +1779,7 @@ void ObjCProcessor::ProcessNSConstantArrays()
}
ScopedSymbolQueue::Get().Process();
}
-
+
}
void ObjCProcessor::ProcessNSConstantDictionaries()