[Ndn-lib] ndn-cxx v2::Validator destruction during validation

Junxiao Shi shijunxiao at email.arizona.edu
Sun Jul 2 17:07:18 PDT 2017


Hi Zhiyi

Can you update Doxygen of Validator destructor to indicate requirement?

Yours, Junxiao

On Sat, Jul 1, 2017 at 8:10 PM, Zhiyi Zhang <zhangzhiyi1919 at gmail.com>
wrote:

> This is an undefined behavior.
>
> Given validator instance holds unique_ptrs of both ValidationPolicy and
> Fetcher, once validator is destructed, the validation cannot step forward
> anymore. I think the failure callback should be invoked.
>
> Best,
> Zhiyi
>
> On Fri, Jun 30, 2017 at 8:30 PM, Junxiao Shi <shijunxiao at email.arizona.edu
> > wrote:
>
>> Hi ndn-cxx developers
>>
>> I have a question regarding ndn::security::v2::Validator.
>> I wonder, what would have if the Validator instance is destructed during
>> a validation (after Validator::validation is invoked, but before either
>> success or failure callback is invoked)?
>> Does the validation still progress toward completion, does the validation
>> fail immediately, or is this undefined behavior?
>> I didn't find the answer in security library documentation, and I hope
>> someone can clarify.
>>
>> Yours, Junxiao
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-lib/attachments/20170702/46d13616/attachment.html>


More information about the Ndn-lib mailing list