Project

General

Profile

Actions

Bug #3858

closed

Network::isValidCidr throws with large integers

Added by Davide Pesavento about 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Category:
Core
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:

Description

boost::lexical_cast<int> throws if the number cannot be represented in the target type, for example with strings like "192.168.0.0/999999999999". However, there is no try/catch around its invocation.

Actions

Also available in: Atom PDF