Project

General

Profile

Actions

Bug #4758

closed

ValidatorPolicyConfig segfaults when loading policy without assigning Validator instance

Added by Alex Afanasyev over 5 years ago. Updated about 3 years 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.

Actions #1

Updated by Alex Afanasyev over 5 years ago

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

Updated by Alex Afanasyev over 5 years 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.

Actions #3

Updated by Alex Afanasyev over 5 years ago

  • Status changed from Code review to Closed
Actions #4

Updated by Davide Pesavento about 3 years ago

  • Tags set to ValidatorConfig
Actions

Also available in: Atom PDF