Onvif with incorrect profile parameter in host name would crash server

Description

Onvif plugin does allow additional parameters in the host name for added supports. Such as profile/tranport settings(#Profile=1 or #transport=udp). Profile expects a number but would crash the server if a string is entered.

<br>

Version Introduced

r38461

<br>

Platform

All

<br>

Steps to reproduce

connect onvif camera with host name and profile with string.

example: 10.16.1.1#profile=test

<br>

Expected result

string in profile is ignored and defaulted to the first profile.

server does not crash.

<br>

Actual result

server crashes with invalid string entry.

<br>

Work Around

remove profile entry or reconnect with valid profile number.

<br>

Version Fixed

r103382 dev build 8.1.8.103450

<br>

Keywords

Onvif