View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001927 | SOGo | SOPE | public | 2012-08-10 12:24 | 2012-08-28 12:12 |
Reporter | buzzdee | Assigned To | ludovic | ||
Priority | normal | Severity | crash | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.3.16 | ||||
Fixed in Version | 1.3.18 | ||||
Summary | 0001927: PATCH: Searching for Umlauts in OGo contacts interface, and other search interfaces throws an exception | ||||
Description | When searching for Umlauts in OGo webinterface, I get an exception about an unterminated character string. Attached patch fixes the problem for me, and I verified with SOGo, and it doesn't break it. As far as I can see, SOGo doesn't even seem to use that method. | ||||
Additional Information | Could this patch be considered to be added to the next SOPE release please. | ||||
Tags | No tags attached. | ||||
2012-08-10 12:24
|
patch-sope-gdl1_GDLAccess_EOExpressionArray_m (1,045 bytes)
$OpenBSD$ Fix crasher in OGo when running OGo with LC_CTYPE='de_DE.UTF-8' and searching with Umlauts. --- sope-gdl1/GDLAccess/EOExpressionArray.m.orig Tue Jul 31 17:37:56 2012 +++ sope-gdl1/GDLAccess/EOExpressionArray.m Tue Jul 31 17:38:31 2012 @@ -140,14 +140,16 @@ relationshipPaths:(NSMutableArray *)relationshipPaths { EOExpressionArray *exprArray; - unsigned char buf[[expression cStringLength] + 4]; // TODO: not too good + unsigned char buf[[expression lengthOfBytesUsingEncoding:NSUTF8StringEncoding] + 4]; // TODO: not too good const unsigned char *s, *start; id objectToken; NSAutoreleasePool *pool; exprArray = [[EOExpressionArray new] autorelease]; pool = [[NSAutoreleasePool alloc] init]; - [expression getCString:(char *)buf]; + [expression getCString:(char *)buf + maxLength:[expression lengthOfBytesUsingEncoding:NSUTF8StringEncoding] + 4 + encoding:NSUTF8StringEncoding]; s = buf; /* Divide the expression string in alternating substrings that obey the |
can this patch be considered for SOPE 1.3.18 please. thanks, |
|
Fix pushed: Thanks! |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2012-08-10 12:24 | buzzdee | New Issue | |
2012-08-10 12:24 | buzzdee | File Added: patch-sope-gdl1_GDLAccess_EOExpressionArray_m | |
2012-08-28 11:31 | buzzdee | Note Added: 0004392 | |
2012-08-28 12:12 | ludovic | Note Added: 0004393 | |
2012-08-28 12:12 | ludovic | Status | new => resolved |
2012-08-28 12:12 | ludovic | Fixed in Version | => 1.3.18 |
2012-08-28 12:12 | ludovic | Resolution | open => fixed |
2012-08-28 12:12 | ludovic | Assigned To | => ludovic |
2012-08-28 12:12 | ludovic | Status | resolved => closed |