Monotone-Parent: 6e892bd0470a59c4edc792bd0d24b13e56e6a5e0

Monotone-Revision: f5ba6db440f5a8ba817af65dea12b4a616fdfe71

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-01-09T16:36:51
maint-2.0.2
Wolfgang Sourdeau 2012-01-09 16:36:51 +00:00
parent 1bf0fb1244
commit be34aeee0e
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2012-01-09 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* NSString+NGCards.m (-vCardSubvalues): fixed allocation of
parsing buffer to avoid a buffer overflow.
2011-11-21 Francis Lachapelle <flachapelle@inverse.ca>
* iCalTimeZone.m (+knownTimeZoneNames): ignore files that don't

View File

@ -325,7 +325,7 @@
ELEM;...:subvalue1;subvalue1,subvalue2 (where KEY = @"") */
NSMutableDictionary *values; /* key <> ordered values associations */
NSMutableArray *orderedValues = nil; /* those are separated by ';' and contain
subvalues, may or may not be named */
subvalues, may or may not be named */
NSMutableArray *subValues = nil; /* those are separeted by ',' */
unichar *stringBuffer, *substringBuffer;
NSString *valuesKey, *substring;
@ -337,7 +337,7 @@
valuesKey = @"";
max = [self length];
stringBuffer = NSZoneMalloc (NULL, sizeof (unichar) * max + 1);
stringBuffer = NSZoneMalloc (NULL, sizeof (unichar) * (max + 1));
[self getCharacters: stringBuffer];
stringBuffer[max] = 0;