Monotone-Parent: 6e892bd0470a59c4edc792bd0d24b13e56e6a5e0
Monotone-Revision: f5ba6db440f5a8ba817af65dea12b4a616fdfe71 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2012-01-09T16:36:51maint-2.0.2
parent
1bf0fb1244
commit
be34aeee0e
|
@ -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>
|
2011-11-21 Francis Lachapelle <flachapelle@inverse.ca>
|
||||||
|
|
||||||
* iCalTimeZone.m (+knownTimeZoneNames): ignore files that don't
|
* iCalTimeZone.m (+knownTimeZoneNames): ignore files that don't
|
||||||
|
|
|
@ -325,7 +325,7 @@
|
||||||
ELEM;...:subvalue1;subvalue1,subvalue2 (where KEY = @"") */
|
ELEM;...:subvalue1;subvalue1,subvalue2 (where KEY = @"") */
|
||||||
NSMutableDictionary *values; /* key <> ordered values associations */
|
NSMutableDictionary *values; /* key <> ordered values associations */
|
||||||
NSMutableArray *orderedValues = nil; /* those are separated by ';' and contain
|
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 ',' */
|
NSMutableArray *subValues = nil; /* those are separeted by ',' */
|
||||||
unichar *stringBuffer, *substringBuffer;
|
unichar *stringBuffer, *substringBuffer;
|
||||||
NSString *valuesKey, *substring;
|
NSString *valuesKey, *substring;
|
||||||
|
@ -337,7 +337,7 @@
|
||||||
valuesKey = @"";
|
valuesKey = @"";
|
||||||
|
|
||||||
max = [self length];
|
max = [self length];
|
||||||
stringBuffer = NSZoneMalloc (NULL, sizeof (unichar) * max + 1);
|
stringBuffer = NSZoneMalloc (NULL, sizeof (unichar) * (max + 1));
|
||||||
[self getCharacters: stringBuffer];
|
[self getCharacters: stringBuffer];
|
||||||
stringBuffer[max] = 0;
|
stringBuffer[max] = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue