Project

General

Profile

Bug #4758

ValidatorPolicyConfig segfaults when loading policy without assigning Validator instance

Added by Alex Afanasyev over 2 years ago. Updated 12 days 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.

#1

Updated by Alex Afanasyev over 2 years ago

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

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

#3

Updated by Alex Afanasyev over 2 years ago

  • Status changed from Code review to Closed
#4

Updated by Davide Pesavento 12 days ago

  • Tags set to ValidatorConfig

Also available in: Atom PDF