Project

General

Profile

Bug #4758

ValidatorPolicyConfig segfaults when loading policy without assigning Validator instance

Added by Alex Afanasyev 9 months ago. Updated 9 months ago.

Status:
Closed
Priority:
High
Category:
Security
Target version:
Start date:
10/17/2018
Due date:
% Done:

100%

Estimated time:

Description

ValidatorPolicyConfig cannot be used by itself and requires Validator instance to be assigned prior loading any policy. At least, the implementation should throw a proper error.

History

#1 Updated by Alex Afanasyev 9 months ago

  • Status changed from In Progress to Code review
  • % Done changed from 0 to 100

#2 Updated by Alex Afanasyev 9 months ago

FYI. The specific error that triggered segfault of NFD was a result of dereferencing nullptr m_validator in ValidatorPolicyConfig::processConfigTrustAnchor method, i.e., if security section includes real trust anchor(s) (as opposite to have "any" trust anchor). If by some magic it would not have segfaulted there, it would whenever config is being reloaded.

#3 Updated by Alex Afanasyev 9 months ago

  • Status changed from Code review to Closed

Also available in: Atom PDF