Project

General

Profile

Actions

Bug #4961

closed

ndncert-client crashes if client.conf cannot be opened

Added by Davide Pesavento almost 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Start date:
Due date:
% Done:

100%

Estimated time:

Description

If client.conf doesn't exist in the right location or cannot be opened for whatever reason (e.g., wrong permissions), ndncert-client will crash with an uncaught exception.

terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::json_parser::json_parser_error> >'
  what():  /usr/local/etc/ndncert/client.conf: cannot open file
Aborted (core dumped)
Actions #1

Updated by Davide Pesavento almost 5 years ago

And I get a similar crash if the config file is empty or malformed.

Actions #2

Updated by Davide Pesavento almost 5 years ago

This is with:

$ git rev-parse HEAD
781a560d7a18d020209c0394bb308e1650ef9a2d
Actions #3

Updated by Zhiyi Zhang almost 5 years ago

  • Status changed from New to Code review
Actions #4

Updated by Davide Pesavento over 4 years ago

  • Status changed from Code review to Closed
  • % Done changed from 0 to 100

Fixed in commit d8993b9b52f9b6d11522520b1888d841df756ea3

Actions

Also available in: Atom PDF