Fixed: _glyphsFrames and _glyphsOffsets could be used uninitialized in CPTextView (#2886)

This commit is contained in:
daboe01 authored and GitHub committed 2020-03-03 17:04:52 +01:00
1 parent 3a51c386ca
commit 82e55b4761
1 file changed
+3 -1
+3 -1
View File
@@ -1156,7 +1156,9 @@ var _objectsInRange = function(aList, aRange)
_range = CPMakeRangeCopy(aRange);
_textContainer = aContainer;
_isInvalid = NO;
_runs = [[CPMutableArray alloc] init];
_runs = [];
_glyphsFrames = [];
_glyphsOffsets = [];
for (location = aRange.location; location < CPMaxRange(aRange); location = CPMaxRange(effectiveRange))
{