cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CB-7643) sendPluginResult is not thread safe
Date Mon, 13 Oct 2014 20:50:34 GMT


ASF GitHub Bot commented on CB-7643:

Github user shazron commented on the pull request:
    Thank you, looks good to me.
    I've searched and it appears that you haven't signed and submitted the Apache iCLA. Could
you please do so?:

> sendPluginResult is not thread safe
> -----------------------------------
>                 Key: CB-7643
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 3.5.0
>            Reporter: Richard Hermanson
>   Original Estimate: 1h
>  Remaining Estimate: 1h
> If _callbackIdPattern in CVDCommandDelegateImpl.m is set at the same time as it is used
(in different threads) then there's an error thrown (EXC_BAD_ACCESS).
> More precisely when this line is run in one thread:
> _callbackIdPattern = [NSRegularExpression regularExpressionWithPattern:@"[^A-Za-z0-9._-]"
options:0 error:&err];
> and this in another:
>     if (([callbackId length] > 100) || [_callbackIdPattern firstMatchInString:callbackId
options:0 range:NSMakeRange(0, [callbackId length])]) {
> The method is: - (BOOL)isValidCallbackId:(NSString *)callbackId
> This happens about every 10th time I start my application. I could surely solve this
by not calling too quickly and repeatedly but this is still a bug and easily fixed.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message