+2006-01-22 Helge Hess <helge.hess@opengroupware.org>
+
+ * FdExt.subproj/NGPropertyListParser.m (_skipComments): fixed a bug
+ when parsing comments which contain stars (v4.5.181)
+
2005-12-13 Helge Hess <helge.hess@opengroupware.org>
* NGQuotedPrintableCoding.m (NGDecodeQuotedPrintable): properly decode
pos += 2; // skip '/*'
- do { // search for '*/'
+ do {
+ // search for '*/'
while ((pos < _len) && (_buffer[pos] != '*'))
pos++;
-
- if (pos < _len) { // found '*'
- if ((pos + 1) < _len) {
- if (_buffer[pos + 1] == '/') { // found '*/'
- commentIsClosed = YES;
- pos += 2; // skip '*/'
- lookAgain = YES;
- break; // leave loop
- }
- }
- }
+
+ if (pos + 1 >= _len)
+ // did not find '*' or not enough left for '/'
+ break;
+
+ pos++; // skip '*'
+
+ if (_buffer[pos] != '/')
+ // missing slash in '*/'
+ continue;
+
+ commentIsClosed = YES;
+ pos++; // skip '/'
+ lookAgain = YES;
+ break; // leave loop
}
while (pos < _len);
# version
-SUBMINOR_VERSION:=180
+SUBMINOR_VERSION:=181
# v4.3.115 requires libFoundation v1.0.59
# v4.2.72 requires libEOControl v4.2.39